joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027f80
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 8
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x20000013
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10027ff0
cmp dword [ebp - 0x20], 0xc8
jne 0x10027fe1
cmp dword [ebp - 0x1c], 0
je 0x10027ff8
cmp dword [ebp - 0x20], 0x12e
jne 0x10027ff0
cmp dword [ebp - 0x1c], 0
je 0x10027ff8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x1002804d
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 8
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x20000005
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1002803b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x1002804d
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x100282a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031219
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1003d3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.100037f1
mov dword [ebp - 4], 0
mov ecx, dword [0x100372a8]
push ecx
push 0x100362bc
lea ecx, [ebp - 0x48]
call fcn.10017e40
mov dword [ebp - 0x54], eax
push 0x100362c0
lea ecx, [ebp - 0x4c]
call fcn.10017e70
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], 0xffffffff
mov edx, dword [ebp - 0x54]
cmp edx, dword [0x100372a8]
je 0x100283d3
mov eax, dword [ebp - 0x54]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.10012690
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
call fcn.10003879
push eax
lea ecx, [ebp - 0x4c]
call fcn.10012df0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.1000385c
lea ecx, [ebp - 0x4c]
call fcn.10017a40
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100283b7
push 0x100362c4
lea ecx, [ebp - 0x58]
call fcn.10017ef0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.10017f70
add esp, 0xc
mov dword [ebp - 0x6c], eax
push 0
mov ecx, dword [ebp - 0x6c]
call fcn.10017a40
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x5c]
call fcn.10012dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10012dd0
push 0
push 0x80
push 2
push 0
push 5
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.10012dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.1000385c
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019b28
mov esp, ebp
pop ebp
ret
Function at 0x10028410
Capabilities:
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x212c
call fcn.10026a40
mov eax, dword [0x1003d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x212c], ecx
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.1001a810
add esp, 0xc
mov ecx, dword [ebp - 0x212c]
add ecx, 0x1c
call fcn.10003879
push eax
call fcn.100282a0
add esp, 4
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x115], 1
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x1002847e
xor al, al
jmp 0x10028631
mov ecx, dword [ebp - 0x212c]
cmp dword [ecx + 0x50], 0
je 0x100284ad
mov edx, dword [ebp - 0x212c]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x212c]
call fcn.10027f80
mov ecx, dword [ebp - 0x212c]
mov ecx, dword [ecx + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x114]
call fcn.100124f0
mov dword [ebp - 0x2124], 0x2000
mov byte [ebp - 0x2120], 0
push 0x1fff
push 0
lea eax, [ebp - 0x211f]
push eax
call fcn.1001a810
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
push 0x2000
lea edx, [ebp - 0x2120]
push edx
mov eax, dword [ebp - 0x212c]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x10028584
cmp dword [ebp - 0x120], 0
je 0x10028584
mov edx, dword [ebp - 0x212c]
cmp dword [edx + 0x54], 0
je 0x10028551
mov eax, dword [ebp - 0x212c]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x120]
xor eax, eax
add edx, dword [ecx]
adc eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x212c]
mov ecx, dword [ecx + 0x54]
mov dword [ecx], edx
mov dword [ecx + 4], eax
push 0
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x2120]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10028582
mov byte [ebp - 0x115], 0
jmp 0x100285b2
jmp 0x100285a5
cmp dword [ebp - 0x11c], 0
jne 0x100285a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x212c]
mov dword [ecx + 0x4c], eax
mov byte [ebp - 0x115], 0
jmp 0x100285b2
mov edx, 1
test edx, edx
jne 0x100284bf
movzx eax, byte [ebp - 0x115]
test eax, eax
je 0x100285cc
mov ecx, dword [ebp - 0x212c]
call fcn.10028170
test eax, eax
jne 0x10028619
mov ecx, dword [ebp - 0x212c]
cmp dword [ecx + 0x4c], 0xffffffff
jne 0x100285ea
mov edx, dword [ebp - 0x212c]
mov eax, dword [ebp - 0x212c]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x4c], ecx
mov ecx, dword [ebp - 0x212c]
add ecx, 0x1c
call fcn.10003879
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x2125], 0
lea ecx, [ebp - 0x114]
call fcn.10012510
mov al, byte [ebp - 0x2125]
jmp 0x10028631
mov byte [ebp - 0x2126], 1
lea ecx, [ebp - 0x114]
call fcn.10012510
mov al, byte [ebp - 0x2126]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019b28
mov esp, ebp
pop ebp
ret
Function at 0x10028640
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003143c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1003d3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100037f1
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.1002c760
add esp, 8
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x35], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1000385c
movzx ecx, byte [ebp - 0x35]
test ecx, ecx
je 0x100286bd
xor al, al
jmp 0x10028723
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
push 0
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, dword [ebp - 0x34]
and edx, 4
sub edx, 4
neg edx
sbb edx, edx
and edx, 4
mov dword [ebp - 0x30], edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x30]
push eax
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x38], 0
jne 0x10028719
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x4c], eax
xor al, al
jmp 0x10028723
mov ecx, dword [ebp - 0x3c]
call fcn.10028060
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019b28
mov esp, ebp
pop ebp
ret 8

Function at 0x10028c52
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1003d3d4]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
and dword [ebp - 0x4c], 0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x10028caa
mov eax, dword [ebp - 0x4c]
movsx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call fcn.10019b40
add esp, 0xc
mov eax, dword [ebp - 0x4c]
movsx eax, word [eax + 0xa]
mov byte [ebp + eax - 0x48], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10019b28
leave
ret
Function at 0x10029067
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
jne 0x1002907e
or eax, 0xffffffff
jmp 0x100290ce
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
mov ecx, dword [ebp - 0xc]
call fcn.10028f6b
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xfffffffe
jne 0x1002909a
push 0xfffffffffffffffe
pop eax
jmp 0x100290ce
cmp dword [ebp - 8], 0xffffffff
jne 0x100290a5
or eax, 0xffffffff
jmp 0x100290ce
or dword [ebp - 4], 0xffffffff
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100290cb
or eax, 0xffffffff
jmp 0x100290ce
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x100290d2
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
jne 0x100290e9
or eax, 0xffffffff
jmp 0x10029139
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
mov ecx, dword [ebp - 0xc]
call fcn.10028e6f
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xfffffffe
jne 0x10029105
push 0xfffffffffffffffe
pop eax
jmp 0x10029139
cmp dword [ebp - 4], 0xffffffff
jne 0x10029110
or eax, 0xffffffff
jmp 0x10029139
or dword [ebp - 8], 0xffffffff
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10029136
or eax, 0xffffffff
jmp 0x10029139
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x1002913d
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0xffffffff
je 0x10029165
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0xffffffff
jne 0x10029185
or eax, 0xffffffff
jmp 0x100291de
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x100291ab
or eax, 0xffffffff
jmp 0x100291de
push 2
pop eax
mov word [ebp - 0x14], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100291dc
or eax, 0xffffffff
jmp 0x100291de
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019b28
leave
ret 8
Function at 0x1002aea5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x1002aeb9
xor eax, eax
jmp 0x1002aee7
push 0
push 0
push dword [ebp - 4]
push 0x1002ae39
push 0
push 0
call fcn.1001a9cb
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x1002aee5
or eax, 0xffffffff
jmp 0x1002aee7
xor eax, eax
leave
ret

Function at 0x1002b8bc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1003d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x28
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.1001a810
add esp, 0xc
push 0x28
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp + 8]
mov eax, dword [ebp - 0x40]
shr eax, 0xa
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x24]
shr eax, 0xa
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x60]
shr eax, 0xa
shr eax, 0xa
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1002cb20
pop ecx
mov ecx, eax
call fcn.1000120f
push eax
call sym.quality.dll_report_system_info
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.100011c6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019b28
leave
ret

Function at 0x1002c6e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1003d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x1002c725
mov byte [ebp - 0x110], 0
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000321d
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019b28
mov esp, ebp
pop ebp
ret

Function at 0x1002c8c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1003d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
call fcn.1002c6e0
add esp, 4
mov dword [ebp - 0x28], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.100125d0
movzx ecx, al
test ecx, ecx
je 0x1002c905
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x20]
call fcn.100011c6
mov eax, dword [ebp - 0x2c]
jmp 0x1002c94e
lea ecx, [ebp - 0x20]
call fcn.1000120f
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1002c930
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x20]
call fcn.100011c6
mov eax, dword [ebp - 0x30]
jmp 0x1002c94e
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x20]
call fcn.100011c6
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019b28
mov esp, ebp
pop ebp
ret
Function at 0x401960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40197b
pop edi
pop ebx
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401991
pop esi
pop edi
xor eax, eax
pop ebx
ret 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4019b2
cmp esi, eax
jae 0x401989
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019a4
cmp esi, eax
jae 0x401989
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x401b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x436028
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.00432b8a
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x4389f0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401b7e
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.00432b8a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.00432b8a
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push 0x1001
push edx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0042e54a
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x401bf9
mov dword [esp + 0x20], 0xffffffff
call fcn.0042e15e
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push edi
call fcn.0042de72
lea ecx, [esp + 8]
call fcn.0042e0bd
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042e15e
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4034d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x436193
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
xor edi, edi
mov dword [esp + 0x1c], edi
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x1c], 1
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov bl, 4
push 0x3c
mov byte [esp + 0x20], bl
call fcn.0042dda2
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x1c], 5
je 0x40356a
mov ecx, eax
call fcn.0040f980
jmp 0x40356c
xor eax, eax
push 0x3c
mov byte [esp + 0x20], bl
mov dword [esi + 0x1c], eax
call fcn.0042dda2
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x1c], 6
je 0x403593
mov ecx, eax
call fcn.0040f980
jmp 0x403595
xor eax, eax
push 0x3c
mov byte [esp + 0x20], bl
mov dword [esi + 0x20], eax
call fcn.0042dda2
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x1c], 7
je 0x4035bc
mov ecx, eax
call fcn.0040f980
jmp 0x4035be
xor eax, eax
push 0x3c
mov byte [esp + 0x20], bl
mov dword [esi + 0x24], eax
call fcn.0042dda2
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x1c], 8
je 0x4035e5
mov ecx, eax
call fcn.0040f980
jmp 0x4035e7
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x18], edi
mov dword [esi], edi
mov dword [esi + 0x28], eax
pop edi
mov dword [esi + 0x3c], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404070
Capabilities:
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4481e0]
push ebx
push esi
push edi
mov dword [esp + 0x224], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x26
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4040de
push eax
push 0x438b78
push 0x438b5c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x224]
call fcn.0041b28e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4040e5
sub eax, edx
push eax
lea ecx, [esp + 0x14]
lea esi, [ebx + 4]
push ecx
mov ecx, esi
call fcn.00402230
lea edx, [esp + 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x118]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404120
mov eax, dword [str.Setup.ini]
mov ecx, dword [0x438b54]
mov dx, word [0x438b58]
mov dword [edi], eax
mov dword [edi + 4], ecx
push 0x8e
lea eax, [esp + 0x11c]
push eax
mov ecx, ebx
mov word [edi + 8], dx
call fcn.00401b30
test eax, eax
je 0x4040c9
lea ecx, [esp + 0x118]
push ecx
mov ecx, ebx
call fcn.00403690
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00402320
mov eax, dword [eax]
push 0x438b4c
push eax
call fcn.0041b9dd
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4041cd
push 0x438b4c
mov ecx, esi
call fcn.00402850
mov ecx, dword [esp + 0x224]
mov eax, 1
call fcn.0041b28e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404220
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404246
xor eax, eax
pop ecx
ret 4
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404250
mov ecx, dword [esp + 4]
sub eax, esi
push eax
push edx
push 1
push 0
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x404290
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x160
mov eax, dword [0x4481e0]
push ebx
mov ebx, dword [esp + 0x168]
mov dword [esp + 0x160], eax
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042b0
sub eax, edx
mov dword [esp + 0x14], eax
je 0x40438e
push esi
push edi
push 0x104
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xb
mov esi, str.Program_FilesInternet_Exploreriexplore.exe
lea edi, [esp + 0x67]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebx
movsb byte es:[edi], byte [esi]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042f0
lea edi, [esp + 0x64]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404300
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
push 0
push 0
push ebx
mov ecx, eax
push str.open
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40438c
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x84]
push ecx
push 0
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x160]
pop ebx
call fcn.0041b28e
add esp, 0x160
ret 4