joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00417c90
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00404470
mov ebx, dword [esp + 8]
add esp, 4
call fcn.004042f0
cmp eax, 0xffffffff
jne 0x404832
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041563c
add esp, 0x218
ret
push esi
call fcn.004046e0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0041563c
add esp, 0x218
ret

Function at 0x405bc0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.0041a140
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x431cf8
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.00415a47
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x405c2b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0041563c
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.00415b24
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00415d46
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.00415b24
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.00416054
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x405cd6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00405a30
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.00416054
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x405ca1
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00405ad0
mov edx, dword [esp + 0x10]
push edx
call fcn.004160e8
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x405c04
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041563c
add esp, 0x1068
ret
Function at 0x4064d0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.0041a140
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x406528
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0041563c
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x40656d
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x40656c
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.004162c6
add edi, esi
add esp, 0x10
mov dword [0x43c204], edi
cmp edi, dword [esp + 0xc]
jb 0x406530
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.004160e8
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
inc eax
call fcn.0041563c
add esp, 0x100c
ret

Function at 0x406a10
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00417c90
add esp, 0xc
cmp edi, esi
je 0x406af8
mov eax, 0x4317d4
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406a55
sub eax, edx
sar eax, 1
je 0x406a7f
push 0x4316f4
lea edx, [esp + 8]
push 0x4317d4
push edx
call fcn.00415a47
add esp, 0xc
jmp 0x406aba
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push 0x4316fc
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00415834
push 0x431718
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00415a47
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x406add
push eax
push 1
push 0x200
push edi
call fcn.004162c6
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004160e8
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041563c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041563c
add esp, 0x214
ret
Function at 0x406b10
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00417c90
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x406c15
mov eax, 0x431750
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406b55
sub eax, edx
sar eax, 1
je 0x406c15
cmp dword [0x438f90], 3
jne 0x406b9c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x431720
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00415834
add esp, 0xc
jmp 0x406bac
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push 0x431750
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00415834
push 0x431724
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00415a47
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x406c15
push eax
push 1
push 0x200
push esi
call fcn.00416054
mov edx, dword [esp + 0x14]
push edx
call fcn.004160e8
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041563c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041563c
add esp, 0x214
ret

Function at 0x406c30
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00417c90
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x406cff
mov eax, 0x431734
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406c75
sub eax, edx
sar eax, 1
je 0x406cff
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push 0x431734
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00415834
push 0x43172c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00415a47
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x406cff
push eax
push 1
push 0x200
push esi
call fcn.00416054
mov eax, dword [esp + 0x14]
push eax
call fcn.004160e8
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041563c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041563c
add esp, 0x214
ret
Function at 0x406e60
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x406eb3
push esi
call edi
cmp eax, 0xffffffff
je 0x406eae
test al, 1
je 0x406e7e
xor eax, 1
test al, 4
je 0x406e85
xor eax, 4
test al, 2
je 0x406e8c
xor eax, 2
test al, 0x20
je 0x406e93
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test edi, edi
jne 0x406eb3
or eax, 0xffffffff
pop edi
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
pop edi
ret
Function at 0x408dd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x408dd7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x408eb4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x430a48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x408df0
pop edi
test edx, edx
je 0x408edb
jmp 0x408ec0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x430a48]
inc ecx
sub edx, 1
jne 0x408ec0
not eax
pop esi
ret

Function at 0x408ee0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x430a48]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x430a48]
mov dword [edx + 8], ecx
ret

Function at 0x408f30
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x430a48]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x430a48]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x409640
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x409672
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x409668
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x409685
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0041d1f0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x4096a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4096d3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4096cd
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4096ff
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4096e5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0041d1f0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x409716
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x409710
cmp byte [esi + 8], 0
je 0x409710
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4097b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x4097f5
cmp byte [esi + 1], 0
je 0x4097fd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x409812
cmp byte [esi + 1], 0
je 0x409804
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40981b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4097ce
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40981b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40982f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0041569a
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40984d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x409961
jmp 0x409870
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x409881
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x40989a
mov ebp, 0x404
cmp byte [esi], 0
je 0x4098bf
cmp byte [esi + 1], 0
je 0x409961
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x4098c2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x4098ea
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4098e4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x409910
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x4098fb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0041d1f0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x409961
lea eax, [ebp - 3]
test eax, eax
jl 0x40994c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40993c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40993c
cmp byte [eax + ebx + 2], 5
jne 0x40993c
cmp byte [eax + ebx + 3], 6
je 0x409942
test eax, eax
jge 0x409920
jmp 0x40994c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x409961
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x409864
push ebx
call fcn.00415764
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40a880
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x40a933
cmp dword [esi + 4], 0xffffffff
jne 0x40a933
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x40a8b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a8b0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x40a8e9
cmp ax, 0x2f
je 0x40a8e9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40a8d6
mov eax, dword [0x430ee0]
mov dword [edi], eax
push 0x20
call fcn.0040b1d2
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00409980
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x41563c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437c24]
jne 0x415646
repz ret
jmp fcn.0041a16b

Function at 0x423b9a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041d5c7
and dword [ebp - 4], 0
cmp dword [0x43bfc8], 0
mov ebx, eax
jne 0x423c4b
push 0x42d6ec
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423cfc
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x42d6e0
push edi
call esi
test eax, eax
je 0x423cfc
push eax
call fcn.0041d555
mov dword [esp], 0x42d6d0
push edi
mov dword [0x43bfc8], eax
call esi
push eax
call fcn.0041d555
mov dword [esp], 0x42d6bc
push edi
mov dword [0x43bfcc], eax
call esi
push eax
call fcn.0041d555
mov dword [esp], 0x42d6a0
push edi
mov dword [0x43bfd0], eax
call esi
push eax
call fcn.0041d555
pop ecx
mov dword [0x43bfd8], eax
test eax, eax
je 0x423c4b
push 0x42d688
push edi
call esi
push eax
call fcn.0041d555
pop ecx
mov dword [0x43bfd4], eax
mov eax, dword [0x43bfd4]
cmp eax, ebx
je 0x423ca3
cmp dword [0x43bfd8], ebx
je 0x423ca3
push eax
call fcn.0041d5d0
push dword [0x43bfd8]
mov esi, eax
call fcn.0041d5d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423ca3
test edi, edi
je 0x423ca3
call esi
test eax, eax
je 0x423c9a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423c9a
test byte [ebp - 0xc], 1
jne 0x423ca3
or dword [ebp + 0x10], 0x200000
jmp 0x423cdc
mov eax, dword [0x43bfcc]
cmp eax, ebx
je 0x423cdc
push eax
call fcn.0041d5d0
pop ecx
test eax, eax
je 0x423cdc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423cdc
mov eax, dword [0x43bfd0]
cmp eax, ebx
je 0x423cdc
push eax
call fcn.0041d5d0
pop ecx
test eax, eax
je 0x423cdc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43bfc8]
call fcn.0041d5d0
pop ecx
test eax, eax
je 0x423cfc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423cfe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409240
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47d6bb
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.004725ce
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4092c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004704e0
mov eax, dword [eax]
push 0xbf9c70
push eax
call fcn.004631d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00472859
test bl, bl
je 0x4092c2
push 0xbf9c70
lea ecx, [esp + 0xc]
call fcn.00472be9
push 0xbf9c7c
lea ecx, [esp + 0xc]
call fcn.00472be9
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 0x4092fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00472859
jmp 0x4093c9
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 0x409382
lea edx, [esp + 0x7c]
push 0xbf9c78
push edx
call fcn.004631d4
add esp, 8
test eax, eax
je 0x409382
lea eax, [esp + 0x7c]
push 0xbf9c74
push eax
call fcn.004631d4
add esp, 8
test eax, eax
je 0x409382
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 0x409312
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.00472859
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 0x409bd0
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 0x409c32
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 0x409c40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47d73b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xc05344]
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 0x409d78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409ca6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00472859
xor eax, eax
jmp 0x409def
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00472996
push esi
lea ecx, [esp + 0xc]
call fcn.00472c25
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 0x409dcd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409bd0
test eax, eax
jne 0x409dcd
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.00409bd0
test eax, eax
jne 0x409dcd
lea eax, [esp + 0x14]
push 0xbf9c8c
push eax
call fcn.00464250
mov esi, eax
add esp, 8
test esi, esi
jne 0x409dac
lea ecx, [esp + 0x14]
push 0xbf9c88
push ecx
call fcn.004641d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409dac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409daf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00472946
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409cbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00472859
xor eax, eax
jmp 0x409def
mov byte [esi], 0
push 0xbf9c84
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.00472859
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