joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c92d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x1002c958
cmp dword [ebx + 0x80], 0
jne 0x1002c958
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.10015ad7
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.1002cbee
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1002c992
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10015ad7
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1002c9c9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.1002c9e8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1002eb2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x1002eb80
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1002eb59
call fcn.100191c8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1002eb6e
call fcn.100191c8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1002eb80
call fcn.100191c8
call fcn.10015ad7
cmp dword [eax + 0x3c], 0
je 0x1002eb95
push edi
mov ecx, ebx
call fcn.1002e25a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1002ed67
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1002ebbe
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1002ebca
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100514c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x100514e2
call fcn.10015ad7
mov esi, dword [eax + 0xc]
push 0x1018983c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10051538
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10051538
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10051517
xor esi, esi
jmp 0x1005152d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.10051541
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x1005153a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1006922e
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10069269
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10069250
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10069261
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1006926b
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10069246
xor eax, eax
pop edi
pop esi
ret

Function at 0x10069acb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0xfffffccd
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
or esi, eax
test dword [ebp - 4], eax
invalid
inc dword [edx]
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
dec dword [edi]
Function at 0x1006a108
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.100691cc
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.100691fe
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100691b3
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.100691ee
dec ebp
adc eax, 0x4687a28
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x100e6885
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x1017689d
call fcn.101490f7
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.10009110
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x101818c4
call fcn.1001407a
cmp eax, 0xffffffff
jne 0x100e695f
push 0
push 0x101897f8
lea ecx, [ebp - 0x4d0]
call fcn.1001407a
cmp eax, 0xffffffff
jne 0x100e695f
push 0
push 0x1017ee04
lea ecx, [ebp - 0x4d0]
call fcn.1001407a
cmp eax, 0xffffffff
jne 0x100e695f
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.10009110
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x100e692e
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x1017b968]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.100118a8
jmp 0x100e6998
lea eax, [ebp - 0x218]
push eax
call fcn.10159312
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.10007800
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.100118a8
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x100e6985
mov edi, dword [ebp - 0x4cc]
jmp 0x100e6998
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x1017b968]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.100118a8
mov eax, edi
call fcn.101490a1
ret

Function at 0x10100412
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.1015dcb0
pop ecx
test eax, eax
jne 0x10100454
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100162b7
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1010041a
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x101616c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10161369

Function at 0x101616cd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101614f3
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x401183
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
cmp dword [esp + 0xc], edx
jbe 0x4011ba
mov ecx, dword [esp + 4]
push esi
push edi
mov eax, dword [ecx]
mov esi, dword [esp + 0x10]
movzx esi, byte [edx + esi]
mov edi, eax
and edi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x469068]
inc edx
mov dword [ecx], eax
cmp edx, dword [esp + 0x14]
jb 0x401191
pop edi
pop esi
ret

Function at 0x40292c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xac
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x74]
push ebx
push esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x7c]
mov esi, 0x94
push esi
mov dword [ebp - 0x3c], eax
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00429d40
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x402979
xor eax, eax
jmp 0x4029f0
cmp dword [ebp - 0x1c], ebx
je 0x402975
xor esi, esi
inc esi
mov eax, str.SystemCurrentControlSetServicesVxDMSTCP
cmp dword [ebp - 0x1c], esi
je 0x402990
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParameters
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402975
push edi
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
mov edi, str.NameServer
push edi
push dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x30], ebx
call esi
test eax, eax
jne 0x4029e4
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x78], eax
jae 0x402a01
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x68]
pop esi
xor ecx, ebp
pop ebx
call fcn.00429649
add ebp, 0x6c
leave
ret
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
push ebx
push edi
push dword [ebp - 0x34]
call esi
test eax, eax
je 0x402a24
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4029ef
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
jmp 0x402a34
cmp byte [eax], 0x20
jne 0x402a33
mov byte [eax], bl
inc eax
cmp byte [eax], bl
jne 0x402a2c
mov ecx, dword [ebp - 0x30]
mov byte [eax + 1], bl
mov eax, dword [ebp - 0x3c]
xor ebx, ebx
mov dword [eax], ecx
inc ebx
jmp 0x402a17
Function at 0x403079
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x46a470]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
neg eax
sbb al, al
xor ecx, esp
inc al
call fcn.00429649
add esp, 0x194
ret

Function at 0x403337
Capabilities:
Connect socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
push 2
mov esi, ecx
mov byte [ebp - 0x15], bl
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40338a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.socket___failed___d_n
call fcn.0042acff
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429649
leave
ret
push 2
pop eax
push 0x35
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [esi + 6]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x4033c7
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov al, bl
jmp 0x40337b
mov dword [ebp - 0x1c], ebx
push ebx
push dword [esi + 0x1c]
push dword [esi + 0x20]
push edi
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x403439
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
lea eax, [ebp - 0x128]
push eax
push ebx
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x403427
cmp eax, ebx
je 0x403427
push ebx
push dword [esi + 0x28]
push dword [esi + 0x2c]
push edi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x403432
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x4033ca
jmp 0x403439
mov dword [esi + 0x24], eax
mov byte [ebp - 0x15], 1
mov bl, byte [ebp - 0x15]
jmp 0x4033bc
Function at 0x404b05
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x94], eax
push ebx
push edi
mov edi, dword [ebp + 0xa0]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.00429d40
add esp, 0xc
push str.WININET.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x7c], ebx
cmp eax, ebx
jne 0x404b55
xor eax, eax
jmp 0x404ba5
push 0x104
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x404b51
push esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jbe 0x404ba2
push esi
call fcn.00429ad5
pop ecx
push eax
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x404bbc
push dword [ebp - 0x74]
call fcn.0042892c
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop ebx
call fcn.00429649
add ebp, 0x98
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x45d730
push dword [ebp - 0x74]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x404be8
push dword [ebp - 0x74]
call fcn.0042892c
pop ecx
mov eax, ebx
jmp 0x404ba4
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str.MSIE__d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
xor ebx, ebx
add esp, 0x10
inc ebx
jmp 0x404bdb

Function at 0x404c09
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa0
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push esi
push edi
mov edi, dword [ebp + 0x78]
mov esi, 0x9c
push esi
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.00429d40
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x404c5f
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x94
call esi
test eax, eax
jne 0x404c5f
mov byte [edi], al
jmp 0x404cdd
mov eax, dword [ebp - 0x20]
sub eax, 0
je 0x404ccc
dec eax
je 0x404c84
dec eax
jne 0x404cda
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str.Windows_NT__d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x404cda
cmp dword [ebp - 0x2c], 4
jne 0x404cda
cmp dword [ebp - 0x28], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x404ca6
push str.Windows_95
push edi
call esi
cmp dword [ebp - 0x2c], 4
pop ecx
pop ecx
jne 0x404cda
cmp dword [ebp - 0x28], 0xa
jne 0x404cbc
push str.Windows_98
push edi
call esi
cmp dword [ebp - 0x2c], 4
pop ecx
pop ecx
jne 0x404cda
cmp dword [ebp - 0x28], 0x5a
jne 0x404cda
push str.Windows_Me
push edi
call esi
jmp 0x404cd8
push str.Windows
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x6c]
pop edi
xor ecx, ebp
pop esi
call fcn.00429649
add ebp, 0x70
leave
ret
Function at 0x405102
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x9c]
push ebx
push esi
push edi
mov esi, 0x103
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x77]
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x7c], 1
mov byte [ebp - 0x78], 0
call fcn.00429d40
add esp, 0xc
test edi, edi
je 0x40516d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
test eax, eax
jle 0x40516d
push edi
call ebx
cmp eax, 0x104
jbe 0x405187
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429649
add ebp, 0x90
leave
ret
push esi
push edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x98], 0
je 0x4051a6
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call ebx
test eax, eax
jne 0x4051bc
inc eax
jmp 0x40516f
push 0x5c
push esi
call fcn.0042df84
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4051f8
mov byte [esi], 0
call edi
and dword [ebp - 0x7c], eax
jne 0x4051ec
call ebx
cmp eax, 0xb7
jne 0x4051ec
mov dword [ebp - 0x7c], 1
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.0042df84
pop ecx
pop ecx
push dword [ebp - 0x80]
mov esi, eax
lea eax, [ebp - 0x78]
push eax
test esi, esi
jne 0x4051d2
call edi
and dword [ebp - 0x7c], eax
jne 0x40521e
call ebx
cmp eax, 0xb7
jne 0x40521e
mov dword [ebp - 0x7c], 1
mov eax, dword [ebp - 0x7c]
jmp 0x40516f
Function at 0x40544b
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x94], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [ebp - 0x74], 0x7530
cmp dword [esi + 4], ebx
jne 0x40553e
mov eax, dword [esi + 0x10]
push ebx
cmp dword [esi + 0x34], ebx
je 0x40549a
push str._local_
push str.proxy
push 3
jmp 0x40549f
push ebx
push ebx
push dword [esi + 0x58]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x4054bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
xor eax, eax
jmp 0x4055e7
push 0xc
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00429d40
push 0x103
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.00429d40
add esp, 0x18
cmp dword [esi + 0x34], ebx
je 0x40552d
movzx eax, word [esi + 0x30]
push eax
push dword [esi + 0x2c]
lea eax, [ebp - 0x70]
push str._s:_d
push eax
mov dword [ebp - 0x80], 3
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x70]
push 0xc
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0x26
push dword [esi + 4]
call edi
test eax, eax
jne 0x40552d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00404cf3
jmp 0x4054b6
push 4
lea eax, [ebp - 0x74]
push eax
push 2
push dword [esi + 4]
call edi
test eax, eax
je 0x40551b
cmp dword [esi + 8], ebx
jne 0x4055e4
push ebx
push ebx
push 3
cmp dword [esi + 0x1c], ebx
jne 0x40555d
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 0x14]
push ebx
push ebx
push ecx
push eax
jmp 0x40556e
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
push eax
movzx eax, word [esi + 0x18]
push ecx
push eax
push edx
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x40551b
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x40551b
push 4
lea eax, [ebp - 0x74]
push eax
push 5
push dword [esi + 8]
call edi
test eax, eax
je 0x40551b
push 4
lea eax, [ebp - 0x74]
push eax
push 6
push dword [esi + 8]
call edi
test eax, eax
je 0x40551b
cmp dword [esi + 0x38], ebx
je 0x4055e4
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0x2b
push dword [esi + 8]
call edi
test eax, eax
je 0x40551b
mov eax, dword [esi + 0x40]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0x2c
push dword [esi + 8]
call edi
test eax, eax
je 0x40551b
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429649
add ebp, 0x98
leave
ret
Function at 0x4059fc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call fcn.00428940
pop ecx
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.00404ae6
push esi
mov ecx, edi
call fcn.00405759
lea ebx, [edi + 8]
push esi
mov ecx, ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
call fcn.00405759
lea ecx, [edi + 0x10]
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
call fcn.00405759
lea ecx, [edi + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
call fcn.00405759
lea ecx, [edi + 0x18]
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
call fcn.00405759
lea ecx, [edi + 0x1c]
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call fcn.00405759
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
setne byte [ebp + 0xb]
or esi, 0xffffffff
push esi
mov ecx, edi
call fcn.00405350
push esi
mov ecx, ebx
call fcn.00405350
push esi
lea ecx, [edi + 0x10]
call fcn.00405350
push esi
lea ecx, [edi + 0x14]
call fcn.00405350
push esi
lea ecx, [edi + 0x18]
call fcn.00405350
push esi
lea ecx, [edi + 0x1c]
call fcn.00405350
mov eax, dword [ebp - 0x30]
mov dword [edi + 4], eax
mov ax, word [ebp - 0x24]
mov word [edi + 0xc], ax
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 4