joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483550
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a39ef
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4ee1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.00484b20
mov eax, dword [ebp + 8]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0xffffffff
jne 0x4835a5
or eax, 0xffffffff
jmp 0x48362c
mov dword [ebp - 0x454], 0x428
lea ecx, [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x458]
push edx
call sub.KERNEL32.dll_Module32FirstW
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0
je 0x48361d
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00483890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00484a20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00482ad0
lea edx, [ebp - 0x454]
push edx
mov eax, dword [ebp - 0x458]
push eax
call sub.KERNEL32.dll_Module32NextW
mov dword [ebp - 0x45c], eax
jmp 0x4835c8
mov ecx, dword [ebp - 0x458]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ca5e
mov esp, ebp
pop ebp
ret
Function at 0x4896a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3f08
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4ee1f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x4896e0
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x4896ec
mov al, 1
jmp 0x489891
mov dword [ebp - 0x10], 8
call fcn.00488810
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00488810
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004887c0
add esp, 8
movzx eax, al
test eax, eax
je 0x48972f
xor al, al
jmp 0x489891
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00489310
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.004893e0
mov ecx, eax
call fcn.00489990
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.004827b0
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.004893e0
mov ecx, eax
call fcn.00489990
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x4897ab
cmp dword [ebp - 0x5c], 1
je 0x4897b2
cmp dword [ebp - 0x5c], 3
je 0x48984d
jmp 0x489865
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004893e0
mov ecx, eax
call fcn.00489990
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x489816
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.004893e0
mov ecx, eax
call fcn.00489990
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x489816
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00464590
mov al, byte [ebp - 0x51]
jmp 0x489891
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x489839
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00464590
mov al, byte [ebp - 0x52]
jmp 0x489891
cmp dword [ebp - 0x38], 0
jne 0x48984b
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00487730
jmp 0x48987d
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00464590
mov al, byte [ebp - 0x53]
jmp 0x489891
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00464590
mov al, byte [ebp - 0x54]
jmp 0x489891
jmp 0x489742
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048ca5e
mov esp, ebp
pop ebp
ret
Function at 0x48ca5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ee1f0]
jne 0x48ca68
repz ret
jmp fcn.0048cf14

Function at 0x48f470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x52d0a8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
push eax
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
cmp esi, eax
je 0x48f4ca
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffe6
jmp 0x48f500
mov dx, word [0x4bc510]
mov word [ebp - 8], dx
mov al, byte [0x4bc512]
mov byte [ebp - 6], al
mov ecx, dword [ebp - 4]
push ecx
push 2
push 1
lea edx, [ebp - 8]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 2
je 0x48f500
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffe6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48f5f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x52d0a8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
push eax
push 1
push 1
lea ecx, [ebp - 5]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x48f645
mov edx, dword [ebp + 0x14]
mov dword [edx], 0xffffffe7
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x48f659
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jge 0x48f675
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x48f675
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x48f613
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jne 0x48f6f0
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x48f6f0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffd6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
je 0x48f6ac
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0xa
jmp 0x48f6b5
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x48f6d1
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x48f6eb
cmp dword [ebp - 4], 0
jl 0x48f6eb
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x48f6b5
jmp 0x48f787
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0xffffffe7
je 0x48f701
movsx eax, byte [ebp - 5]
cmp eax, 0xa
jne 0x48f712
cmp dword [ebp - 4], 0
jne 0x48f712
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0xffffffe9
jmp 0x48f787
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x48f73e
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x48f787
cmp dword [ebp - 4], 0
jl 0x48f787
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x48f773
cmp dword [ebp - 0x10], 0
jne 0x48f771
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x48f785
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x48f722
mov esp, ebp
pop ebp
ret
Function at 0x4a3650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4ee1f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffd
mov edx, dword [ebp + 8]
mov dword [edx + 0x320], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [str.WKNC]
mov dword [eax + 0x210], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x214], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x21c], 0xa0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x220], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x224], 0
call fcn.00462e60
push eax
mov eax, dword [ebp + 8]
add eax, 0x228
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2a8], 1
mov edx, dword [ebp + 8]
mov byte [edx + 0x2a9], 1
mov eax, dword [ebp + 8]
mov byte [eax + 0x2aa], 0
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2ac], 0
call fcn.00462db0
neg eax
sbb eax, eax
neg eax
mov edx, dword [ebp + 8]
mov byte [edx + 0x2ab], al
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x2ab]
test ecx, ecx
je 0x4a373c
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x316]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x21c]
lea eax, [eax + edx + 1]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x21c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x21c]
add eax, 0x80
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x218], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
push 0xa0
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x210
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0xa0
je 0x4a3782
mov eax, 0xffffffe6
jmp 0x4a3800
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x2ab]
test eax, eax
je 0x4a37d2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x316]
add ecx, 1
push ecx
push 1
mov edx, dword [ebp + 8]
add edx, 0x2d0
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x316]
add edx, 1
cmp eax, edx
je 0x4a37d2
mov eax, 0xffffffe6
jmp 0x4a3800
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
push 0x80
push 1
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0x80
je 0x4a37fe
mov eax, 0xffffffe6
jmp 0x4a3800
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ca5e
mov esp, ebp
pop ebp
ret
Function at 0x4044da
Capabilities:
Get file version info

Disassembly:
push 0x118
mov eax, 0x47a073
call fcn.00478470
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x114], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 7
mov dword [ebp - 0x11c], ebx
mov word [ebx], ax
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x110], ecx
jb 0x40453b
mov eax, dword [esi]
lea ecx, [ebp - 0x108]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x104], eax
test eax, eax
je 0x40471b
push eax
call fcn.004784de
cmp dword [esi + 0x14], 8
mov edi, eax
pop ecx
mov dword [ebp - 0x120], edi
jb 0x40456d
mov esi, dword [esi]
push edi
push dword [ebp - 0x104]
push dword [ebp - 0x108]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404714
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x480c70
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404714
cmp dword [ebp - 0x10c], 0
je 0x404714
mov eax, dword [ebp - 0x110]
cmp dword [eax], 0xfeef04bd
jne 0x404714
movzx ebx, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx esi, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040df89
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.0040df89
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.0040df89
mov esi, eax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.0040df89
mov edi, 0x480ca8
mov byte [ebp - 4], 4
push edi
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00402ac2
push esi
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
push eax
call fcn.00402a77
push edi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
push eax
call fcn.00402ac2
add esp, 0x44
push dword [ebp - 0x104]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402a77
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
call fcn.00402ac2
push dword [ebp - 0x118]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402a77
mov ebx, dword [ebp - 0x11c]
add esp, 0x24
mov ecx, ebx
push eax
call fcn.004034a9
lea ecx, [ebp - 0x28]
call fcn.00401ef9
lea ecx, [ebp - 0x40]
call fcn.00401ef9
lea ecx, [ebp - 0x58]
call fcn.00401ef9
lea ecx, [ebp - 0x70]
call fcn.00401ef9
lea ecx, [ebp - 0x88]
call fcn.00401ef9
lea ecx, [ebp - 0xa0]
call fcn.00401ef9
lea ecx, [ebp - 0xb8]
call fcn.00401ef9
lea ecx, [ebp - 0xd0]
call fcn.00401ef9
lea ecx, [ebp - 0xe8]
call fcn.00401ef9
lea ecx, [ebp - 0x100]
call fcn.00401ef9
mov edi, dword [ebp - 0x120]
push edi
call fcn.004784e7
pop ecx
mov eax, ebx
call fcn.0047842b
ret
Function at 0x4052cd
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2058
call fcn.00478630
mov eax, dword [0x4dbf24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2058]
push edi
mov edi, dword [ebp + 0x14]
push 0x44
pop ebx
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x2058], ebx
xor ebx, ebx
push 0x10
mov word [ebp - 0x2028], ax
lea eax, [ebp - 0x2014]
push ebx
push eax
mov dword [ebp - 0x202c], 0x101
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x405336
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2058]
push eax
push ebx
push ebx
push 0x80
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jle 0x405394
mov eax, dword [ebp - 0x2014]
test edi, edi
je 0x405382
mov dword [edi], eax
cmp byte [ebp + 0x10], bl
je 0x405390
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
jmp 0x405396
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478405
leave
ret
Function at 0x4085e8
Capabilities:
Create directory

Disassembly:
push 0x90
mov eax, 0x47a7f0
call fcn.00478470
mov esi, dword [ebp + 8]
push esi
call fcn.00408535
pop ecx
test al, al
jne 0x408763
xor ebx, ebx
lea ecx, [ebp - 0x9c]
push ebx
push ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.00407ae1
mov edi, eax
mov dword [ebp - 0x9c], edi
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00405927
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x40868a
lea eax, [ebp - 0x34]
push eax
push dword [edi]
lea ecx, [ebp - 0x9c]
call fcn.0040647e
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405d97
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004059c3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00403e8f
lea ecx, [ebp - 0x58]
call fcn.00401ef9
mov edi, dword [ebp - 0x9c]
jmp 0x40863c
mov esi, dword [edi]
jmp 0x408731
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.00405927
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x94]
call fcn.0040609e
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00405963
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
call fcn.00408535
pop ecx
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00403e8f
lea ecx, [ebp - 0x58]
call fcn.00401ef9
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00401ef9
test bl, bl
jne 0x408718
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040609e
cmp dword [eax + 0x14], 8
jb 0x408707
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x70]
call fcn.00401ef9
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00403e8f
lea ecx, [ebp - 0x94]
call fcn.00401ef9
mov esi, dword [esi]
cmp esi, edi
jne 0x408691
lea ecx, [ebp - 0x1c]
call fcn.00403e8f
lea ecx, [ebp - 0x34]
call fcn.00401ef9
lea ecx, [ebp - 0x9c]
call fcn.00407c98
push 0x2c
push dword [ebp - 0x9c]
call fcn.0040133e
pop ecx
pop ecx
mov al, 1
call fcn.0047842b
ret
Function at 0x40a464
Capabilities:
Initialize winsock library

Disassembly:
push 0x24c
mov eax, 0x47abf2
call fcn.00478470
mov esi, ecx
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x1a8], esi
call fcn.0041e730
xor ebx, ebx
mov dword [esi], vtable.Http.0
mov dword [esi + 0xc], ebx
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov word [esi + 0x18], ax
mov byte [esi + 0x1a], 1
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x5c], ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 3
mov dword [esi + 0x60], ebx
call fcn.0040e9a0
xor eax, eax
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], 7
mov word [esi + 0xc0], ax
mov byte [ebp - 4], 5
mov word [esi + 0xd8], 0x100
cmp byte [0x4dd0b0], al
jne 0x40a5ba
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 1
lea ecx, [ebp - 0x258]
mov edi, eax
push 3
call fcn.00403264
test edi, edi
je 0x40a556
push edi
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 6
push str.WSAStartup_failed:
push eax
call fcn.004028fc
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x258]
push eax
push str.Http::Http
push 0x21
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
jmp 0x40a590
push dword [ebp - 0x1a0]
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 7
push str.WinSock_init_ok__version
push eax
call fcn.004028fc
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int_]
lea eax, [ebp - 0x258]
push eax
push str.Http::Http
push 0x23
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push 1
call fcn.004048e7
mov ecx, eax
call fcn.0040be44
lea ecx, [ebp - 0x1f0]
call fcn.004033bd
lea ecx, [ebp - 0x1f0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov byte [0x4dd0b0], 1
mov eax, esi
call fcn.0047842b
ret
Function at 0x40ab74
Capabilities:
Initialize winhttp library
Reference http user-agent string

Disassembly:
push 0xcc
mov eax, 0x47acf3
call fcn.00478470
mov esi, ecx
call fcn.0040a97b
xor eax, eax
mov word [esi + 0xd8], 0x100
xor ebx, ebx
mov word [esi + 0x18], ax
lea ecx, [esi + 0x28]
mov dword [esi + 0x60], ebx
call fcn.0040a963
push 0x4818a0
lea ecx, [ebp - 0x28]
call fcn.004019d1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40ac20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0xd8]
mov dword [esi + 0x60], eax
call fcn.00403264
push dword [esi + 0x60]
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 1
push str.WinHttpOpen_last_error
push eax
call fcn.00406105
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0xd8]
push eax
push str.Http::init
push 0x24e
jmp 0x40ac7a
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x40ac9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0xd8]
mov dword [esi + 0x60], eax
call fcn.00403264
push dword [esi + 0x60]
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 2
push str.WinHttpSetTimeouts_last_error
push eax
call fcn.00406105
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0xd8]
push eax
push str.Http::init
push 0x255
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
call fcn.004048e7
mov ecx, eax
call fcn.0040be44
lea ecx, [ebp - 0x70]
call fcn.004033bd
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x40aca1
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00401ef9
mov al, bl
call fcn.0047842b
ret
Function at 0x40b5a0
Capabilities:
Resolve dns

Disassembly:
push 0xf8
mov eax, 0x47ae45
call fcn.00478470
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040545a
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push eax
call sub.WS2_32.dll_gethostbyname
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.00401ed3
test ebx, ebx
jne 0x40b65c
push 1
push 3
lea ecx, [ebp - 0x104]
call fcn.00403264
push dword [ebp - 0x44]
lea eax, [ebp - 0xf4]
xor esi, esi
push str.Yow__Bad_host_lookup_for
push eax
mov dword [ebp - 4], esi
call fcn.004028fc
pop ecx
pop ecx
push eax
call fcn.0040556f
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
push str.Http::resolveHost
push 0x215
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push esi
call fcn.004048e7
mov ecx, eax
call fcn.0040be44
lea ecx, [ebp - 0x9c]
call fcn.004033bd
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
jmp 0x40b6d2
xor esi, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], 1
mov eax, dword [eax]
jmp 0x40b6bb
push 4
push eax
lea eax, [ebp - 0x48]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x48]
call sub.WS2_32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040e66b
pop ecx
pop ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.004031c1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401ef9
mov eax, dword [ebx + 0xc]
inc esi
mov eax, dword [eax + esi*4]
test eax, eax
jne 0x40b675
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.0040a434
lea ecx, [ebp - 0x54]
call fcn.00403e8f
mov eax, edi
call fcn.0047842b
ret