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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ab899
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.0040aae4
lea ecx, [ebp - 0x108]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00436864
mov eax, dword [ebp - 0x108]
mov edx, 0x4ab8b0
call fcn.004056d0
je 0x4ab869
lea ecx, [ebp - 0x10c]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00436864
mov eax, dword [ebp - 0x10c]
mov edx, 0x4ab8bc
call fcn.004056d0
je 0x4ab869
lea eax, [ebp - 4]
mov edx, 0x4ab8bc
call fcn.00405574
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004052fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab8a0
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.004052cc
lea eax, [ebp - 4]
call fcn.004052a8
ret
Function at 0x40113a
Capabilities:
Accept command line arguments
Get common file path
Get file system object information
Terminate process

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x1800
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
mov dword [0x403200], esi
lea eax, [esi + 0x400]
mov dword [0x4031f8], eax
add eax, 0x400
mov dword [0x4031f4], eax
add eax, 0x400
mov dword [0x4031fc], eax
add eax, 0x400
mov dword [0x4031f0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call main
push dword [0x403200]
push eax
call main
mov cl, byte [eax]
add esp, 0x10
test cl, cl
je 0x4012c6
push 0x20
pop ebx
cmp cl, 0x2d
je 0x4011bc
cmp cl, 0x2f
jne 0x4012c6
movsx ecx, byte [eax + 1]
inc eax
or ecx, ebx
sub ecx, 0x61
je 0x401296
dec ecx
dec ecx
je 0x40127f
sub ecx, 3
je 0x40126c
sub ecx, 7
je 0x401255
sub ecx, 5
je 0x40122a
dec ecx
je 0x401205
dec ecx
jne 0x4012c6
cmp byte [eax + 1], bl
lea ecx, [eax + 1]
jg 0x4012ab
or dword [0x403204], ebx
jmp 0x40127b
mov cl, byte [eax + 1]
cmp cl, 0x30
jl 0x401251
cmp cl, 0x37
jg 0x401251
add eax, 2
cmp byte [eax], bl
jg 0x401251
movsx ecx, cl
sub ecx, 0x30
or dword [0x403204], ecx
jmp 0x4012ab
mov cl, byte [eax + 1]
lea edx, [eax + 1]
cmp cl, bl
jg 0x40123f
or dword [0x403204], 8
mov eax, edx
jmp 0x4012ab
or cl, bl
cmp cl, 0x68
jne 0x401251
or dword [0x403204], 0x10
inc eax
inc eax
jmp 0x4012ab
xor eax, eax
jmp 0x4012ab
push dword [0x4031f8]
push eax
call fcn.00401064
or dword [0x403204], 1
pop ecx
pop ecx
jmp 0x4012ab
cmp byte [eax + 1], bl
lea ecx, [eax + 1]
jg 0x4012ab
or dword [0x403204], 0x40
mov eax, ecx
jmp 0x4012ab
push dword [0x4031f4]
push eax
call fcn.00401064
or dword [0x403204], 2
pop ecx
pop ecx
jmp 0x4012ab
push dword [0x4031fc]
push eax
call fcn.00401064
or dword [0x403204], 4
pop ecx
pop ecx
test eax, eax
je 0x4012c6
mov cl, byte [eax]
test cl, cl
je 0x4012bc
cmp cl, bl
ja 0x4012bc
inc eax
jmp 0x4012af
mov cl, byte [eax]
test cl, cl
jne 0x4011ae
test byte [0x403204], 7
push 6
pop edi
jne 0x4012d8
or dword [0x403204], edi
test byte [0x403204], 1
je 0x4012f3
push 0x403010
push dword [0x4031f8]
call fcn.004010a0
pop ecx
pop ecx
test byte [0x403204], 2
je 0x40130e
push 0x40300c
push dword [0x4031f4]
call fcn.004010a0
pop ecx
pop ecx
test byte [0x403204], 4
je 0x401329
push 0x403008
push dword [0x4031fc]
call fcn.004010a0
pop ecx
pop ecx
test byte [0x403204], 0x38
jne 0x40133c
call fcn.00401814
cmp eax, 1
jne 0x401343
call fcn.00401b21
mov edi, eax
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40135a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x103
lea eax, [ebp - 0x268]
push 0x160
push eax
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x268]
leave
ret
Function at 0x401558
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword [0x403200]
push edi
mov edi, dword [esp + 8]
test eax, eax
je 0x401573
push eax
push 0x3ea
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x403204]
push ebx
push ebp
push esi
push 1
mov esi, dword [sym.imp.USER32.dll_CheckDlgButton]
pop ebp
and eax, ebp
push eax
push 0x3ec
push edi
call esi
mov eax, dword [0x403204]
shr eax, 1
and eax, ebp
push eax
push 0x3ee
push edi
call esi
mov eax, dword [0x403204]
shr eax, 2
and eax, ebp
push eax
push 0x3f2
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x68
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [esp + 0x1c], eax
call ebx
push eax
push 0x31
call ebx
push eax
push ebp
push 0x68
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov ebp, eax
test ebp, ebp
jne 0x4015f5
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x14], 0
je 0x401618
push dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x80
push 1
push ebx
push edi
call esi
push ebp
push 0
push ebx
push edi
call esi
push edi
call fcn.004014fd
pop ecx
call fcn.0040135a
pop esi
pop ebp
test eax, eax
pop ebx
je 0x401640
push eax
push 0x3eb
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.004013a1
pop ecx
pop ecx
pop edi
ret
Function at 0x401240
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405020
push 0x4026d4
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
shr eax, 0x10
mov dword [0x40605c], edx
mov dword [0x406058], ecx
mov dword [0x406050], eax
shl ecx, 8
add ecx, edx
mov dword [0x406054], ecx
call fcn.00402690
test eax, eax
jne 0x4012aa
push 0x1c
call fcn.00401360
add esp, 4
mov dword [ebp - 4], 0
call fcn.004024b0
call fcn.004024a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x406ff0], eax
call fcn.00402050
mov dword [0x406030], eax
test eax, eax
je 0x4012dd
cmp dword [0x406ff0], 0
jne 0x4012e7
push 0xffffffffffffffff
call fcn.004015c0
add esp, 4
call fcn.00401dd0
call fcn.00401ce0
call fcn.00401590
mov eax, dword [0x40606c]
mov dword [0x406070], eax
push eax
mov eax, dword [0x406064]
push eax
mov eax, dword [0x406060]
push eax
call section..text
add esp, 0xc
push eax
call fcn.004015c0
jmp 0x401344
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401600
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40608c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40161e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x406088], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x406084], bl
jne 0x401678
cmp dword [0x406fe8], 0
je 0x401666
mov edi, dword [0x406fe4]
sub edi, 4
cmp edi, dword [0x406fe8]
jb 0x401666
mov eax, dword [edi]
test eax, eax
je 0x40165b
call eax
sub edi, 4
cmp edi, dword [0x406fe8]
jae 0x401653
push 0x406014
push 0x406010
call fcn.004016b0
add esp, 8
push 0x40601c
push 0x406018
call fcn.004016b0
add esp, 8
test ebx, ebx
jne 0x40169f
mov dword [0x40608c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401995
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403270
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x4019ba
test byte [esp + 8], 2
je 0x4019ba
mov dword [0x406044], 0xd
mov dword [0x406048], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x402050
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x406140], ebx
jne 0x40209f
call esi
cmp eax, ebx
mov edi, eax
je 0x40207d
mov dword [0x406140], 1
jmp 0x40209f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x402095
mov dword [0x406140], 2
jmp 0x40209f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406140], 1
jne 0x40214e
test edi, edi
jne 0x4020c2
call esi
mov edi, eax
test edi, edi
jne 0x4020c2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4020dc
add esi, 2
cmp word [esi], 0
jne 0x4020ca
add esi, 2
cmp word [esi], 0
jne 0x4020ca
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x40213d
push ebp
call fcn.00402bd0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40213d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40212c
push ebx
call fcn.004029f0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406140], 2
jne 0x4021d2
test ebx, ebx
jne 0x402171
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x402171
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x402186
inc ebp
cmp byte [ebp], 0
jne 0x402178
inc ebp
cmp byte [ebp], 0
jne 0x402178
sub ebp, ebx
inc ebp
push ebp
call fcn.00402bd0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4021ab
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4027f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x406370
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x402817
add eax, 8
inc ecx
cmp eax, 0x406400
jb 0x402808
cmp dword [ecx*8 + 0x406370], edx
lea ebx, [ecx*8]
jne 0x4029db
cmp dword [0x40603c], 1
je 0x402997
cmp dword [0x40603c], 0
jne 0x40284e
cmp dword [0x406040], 1
je 0x402997
cmp edx, 0xfc
je 0x4029db
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40288b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4028cf
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x405330
push ebp
call fcn.00403c80
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405310
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x406374]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00403be0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x406ee0], 0
je 0x4029ad
mov eax, dword [0x406ee0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4029b7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x406374]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x404270
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x4044ae
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00402a40
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x4044ae
cmp ebp, dword [esp + 0x18]
je 0x4044ae
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x40606c]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x406070], ecx
jne 0x4042cd
push ecx
call fcn.00404520
add esp, 4
mov dword [0x40606c], eax
cmp dword [0x40606c], 0
jne 0x40437d
cmp dword [esp + 0x1c], 0
je 0x404304
cmp dword [0x406074], 0
je 0x404304
call fcn.00403320
test eax, eax
je 0x40437d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x404315
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x40606c], 0
jne 0x404349
push 4
call fcn.00402bd0
add esp, 4
mov dword [0x40606c], eax
test eax, eax
jne 0x40433e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x40606c]
mov dword [eax], 0
cmp dword [0x406074], 0
jne 0x40437d
push 4
call fcn.00402bd0
add esp, 4
mov dword [0x406074], eax
test eax, eax
jne 0x404372
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x406074]
mov dword [eax], 0
mov esi, dword [0x40606c]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.004044c0
add esp, 8
mov edi, eax
test edi, edi
jl 0x4043e5
cmp dword [esi], 0
je 0x4043e5
cmp dword [esp + 0x10], 0
je 0x4043dc
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.004029f0
add esp, 4
cmp dword [ebx], 0
je 0x4043c9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x4043ba
shl edi, 2
push edi
push esi
call fcn.004045a0
add esp, 8
test eax, eax
je 0x40442d
jmp 0x404428
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x40442d
cmp dword [esp + 0x10], 0
jne 0x4044a4
test edi, edi
jge 0x4043f6
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.004045a0
add esp, 8
test eax, eax
jne 0x404418
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x40606c], eax
cmp dword [esp + 0x1c], 0
je 0x40449a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00402bd0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40449a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004029f0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x409780
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4817eb
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.00474175
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409802
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00471bf3
mov eax, dword [eax]
push 0x4a1210
push eax
call fcn.00463d54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00474400
test bl, bl
je 0x409802
push 0x4a1210
lea ecx, [esp + 0xc]
call fcn.004747dc
push 0x4a4d8c
lea ecx, [esp + 0xc]
call fcn.004747dc
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 0x40983e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00474400
jmp 0x409909
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 0x4098c2
lea edx, [esp + 0x7c]
push 0x4a4d88
push edx
call fcn.00463d54
add esp, 8
test eax, eax
je 0x4098c2
lea eax, [esp + 0x7c]
push 0x4a4d84
push eax
call fcn.00463d54
add esp, 8
test eax, eax
je 0x4098c2
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 0x409852
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.00474400
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 0x40a100
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 0x40a162
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 0x40a170
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48186b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ac7d8]
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 0x40a2a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a1d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474400
xor eax, eax
jmp 0x40a31f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00474589
push esi
lea ecx, [esp + 0xc]
call fcn.00474818
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4a4dc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a2fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x4a4dbc
push closesocket
call fcn.0040a100
test eax, eax
jne 0x40a2fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x4a4da8
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040a100
test eax, eax
jne 0x40a2fd
lea eax, [esp + 0x14]
push 0x4a4da0
push eax
call fcn.00464e30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a2dc
lea ecx, [esp + 0x14]
push 0x4a4d9c
push ecx
call fcn.00464db0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a2dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a2df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00474539
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a1ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474400
xor eax, eax
jmp 0x40a31f
mov byte [esi], 0
push 0x4a4d98
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.00474400
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