joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454730
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x4c8044]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x71b], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x454790
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00452660
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004705e8
add esp, 0x18
ret
push dword [esi + 0x6b8]
mov dword [esp + 0x14], 1
call fcn.004549b0
push dword [esi + 0x6bc]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.004549b0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x454807
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.00452660
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.004705e8
add esp, 0x18
ret

Function at 0x454820
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x4c8044]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x454885
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00444750
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00452660
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004705e8
add esp, 0x108
ret
Function at 0x4549f0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4a16e8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x454a0a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4a1704
push esi
call fcn.0047ed50
add esp, 8
test eax, eax
je 0x454a52
test ebp, ebp
je 0x454a43
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x454a78
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x454a78
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x454b2f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454a95
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x454b25
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x454b25
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454ac7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454ae0
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x454af0
test ebp, ebp
je 0x454b1c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4c8004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4c8004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x45a7e0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x45a7fc
cmp dword [esi + 0x78], 0
je 0x45a7fc
push 2
push 3
push esi
call fcn.00455bc0
add esp, 0xc
push dword [esp + 0xc]
call fcn.0045a2f0
add esp, 4
test esi, esi
je 0x45a81d
cmp dword [esi + 0x78], 0
je 0x45a81d
push 3
push esi
call fcn.00455c00
add esp, 8
pop esi
ret
Function at 0x461640
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x4c8044]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x461832
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [esp + 0x18], xmm0
push 0x7f000001
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x18]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x461820
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x461820
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x461820
cmp dword [esp + 8], 0x10
jl 0x461820
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x461820
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x461820
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x461820
push 1
push esi
call fcn.00468360
add esp, 8
test eax, eax
js 0x461820
push 0
push 0x2710
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push 1
push eax
mov dword [esp + 0x20], 0x300
call fcn.0045fd10
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x461820
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x461820
cmp dword [esp + 8], 0x10
jl 0x461820
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x461820
cmp dword [esp + 8], 0x10
jl 0x461820
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x461820
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x461820
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x461820
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004705e8
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.004705e8
add esp, 0x34
ret
Function at 0x461880
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
mov dword [eax], ebx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x4619fc
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4619e7
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4618de
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4618d0
sub eax, edx
lea ebp, [eax + 1]
jmp 0x4618e0
xor ebp, ebp
cmp dword [esi + 4], 2
jne 0x461989
cmp dword [esi + 0x18], 0
je 0x461989
mov eax, dword [esi + 0x10]
test eax, eax
je 0x461989
cmp eax, 0x10
jb 0x461989
lea eax, [ebp + 0x30]
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x4619d8
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
lea ecx, [edi + 0x20]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0x10
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], ecx
mov eax, dword [esi + 0x18]
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
test ebp, ebp
je 0x461975
mov eax, dword [edi + 0x18]
add eax, 0x10
push ebp
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00471bb0
add esp, 0xc
mov eax, dword [esp + 0x14]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x461985
mov dword [eax + 0x1c], edi
mov dword [esp + 0x14], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4618c2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
test eax, eax
je 0x4619a9
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x4619e3
test ebx, ebx
je 0x4619c8
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x4c8004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x4619b1
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x461998
test ebx, ebx
jne 0x4619f3
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x465b20
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x4c8008]
mov edi, eax
add esp, 8
test edi, edi
je 0x465af7
lea ebx, [ebx]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x465b0f
cmp esi, ebx
je 0x465b0f
cmp esi, 0x8000
ja 0x465b0f
cmp esi, ebx
jb 0x465b08
push esi
push edi
call dword [0x4c8008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x465ac0
push ebp
call dword [0x4c8004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x4c8004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x465aa0

Function at 0x468ab0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00459ea0
push dword [esp + 0x38]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esp + 0x18], xmm0
call fcn.0048761d
push dword [esp + 0x40]
mov edi, eax
call fcn.0048761d
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x468b49
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
lea eax, [esp + 0x20]
push eax
call fcn.00459ea0
movdqu xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.00459f40
add esp, 0x20
test edx, edx
ja 0x468b6d
jb 0x468b3b
cmp eax, 0x3e8
ja 0x468b6d
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x468b00
test edi, edi
je 0x468b56
push edi
call fcn.00474b43
add esp, 4
test esi, esi
je 0x468b63
push esi
call fcn.00474b43
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x468b7a
push edi
call fcn.00474b43
add esp, 4
test esi, esi
je 0x468b87
push esi
call fcn.00474b43
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x46a770
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4c8044]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
call fcn.0048761d
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x46a7e8
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00444840
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.00452590
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x46a927
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x46a83a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00444840
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.00452590
add esp, 0x1c
mov esi, 0x4d
jmp 0x46a927
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x46a87a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00444840
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.00452590
add esp, 0x1c
mov esi, 0x4d
jmp 0x46a91d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x46a8a8
jg 0x46a88e
cmp edi, 0x100000
jbe 0x46a8a8
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.00452590
add esp, 0xc
mov esi, 0x4d
jmp 0x46a91d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x46a8c0
lea esi, [eax + 0x1b]
jmp 0x46a91d
test edi, edi
je 0x46a904
jmp 0x46a8d0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46a965
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46a95d
add esi, eax
cmp esi, edi
jb 0x46a8d0
mov byte [edi + ebx], 0
push ebp
push dword [esp + 0x14]
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0046a570
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x4c8004]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x46a942
push eax
call fcn.00474b43
add esp, 4
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004705e8
add esp, 0x120
ret
mov edi, esi
mov byte [esi + ebx], 0
jmp 0x46a908
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00444840
push eax
push dword [esp + 0x20]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.00452590
add esp, 0x1c
mov esi, 0x4d
jmp 0x46a91d
Function at 0x46f05b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4c8044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x46f080
xor eax, eax
jmp 0x46f0dc
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x46f0ad
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x46f0ad
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x46f163
cmp dword [edi + 0x4c], 0
je 0x46f0d6
mov ecx, edi
call fcn.0046ed5b
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x46f0ec
push dword [edi + 0x4c]
push ebx
call fcn.0046e992
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x46f0db
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004705e8
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x49e5c8]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x46f136
sub eax, 1
je 0x46f136
dec eax
sub eax, 1
jne 0x46f0d6
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x46f0c8
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x46f153
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0047dd05
add esp, 0x10
cmp esi, eax
jne 0x46f0d6
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x46f0d6
mov ax, bx
jmp 0x46f0db

Function at 0x48c092
Capabilities:
Read file on windows

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

Function at 0x48c09d
Capabilities:
Read file on windows

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

Function at 0x490cff
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049097c
Function at 0x4184a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47fe7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00474605
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x418522
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00472450
mov eax, dword [eax]
push 0x543204
push eax
call fcn.004617d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00474890
test bl, bl
je 0x418522
push 0x543204
lea ecx, [esp + 0xc]
call fcn.00474c20
push 0x546d74
lea ecx, [esp + 0xc]
call fcn.00474c20
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41855e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00474890
jmp 0x418629
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4185e2
lea edx, [esp + 0x7c]
push 0x546d70
push edx
call fcn.004617d4
add esp, 8
test eax, eax
je 0x4185e2
lea eax, [esp + 0x7c]
push 0x546d6c
push eax
call fcn.004617d4
add esp, 8
test eax, eax
je 0x4185e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x418572
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00474890
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x418e20
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x418e82
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x418e90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47fefb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x54d96c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x418fc8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x418ef6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474890
xor eax, eax
jmp 0x41903f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004749cd
push esi
lea ecx, [esp + 0xc]
call fcn.00474c5c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41901d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00418e20
test eax, eax
jne 0x41901d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00418e20
test eax, eax
jne 0x41901d
lea eax, [esp + 0x14]
push 0x546d88
push eax
call fcn.00462970
mov esi, eax
add esp, 8
test esi, esi
jne 0x418ffc
lea ecx, [esp + 0x14]
push 0x546d84
push ecx
call fcn.004628f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x418ffc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x418fff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047497d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x418f0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474890
xor eax, eax
jmp 0x41903f
mov byte [esi], 0
push 0x546d80
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00474890
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4