joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46798c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x467994
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x467b86
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x467b9c
mov eax, esi
call fcn.00465818
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404748
lea ecx, [ebp - 0x10]
mov edx, 0x467bb0
mov eax, esi
call fcn.00465818
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404748
lea ecx, [ebp - 0x14]
mov edx, 0x467bc8
mov eax, esi
call fcn.00465818
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404748
lea ecx, [ebp - 0x18]
mov edx, 0x467be4
mov eax, esi
call fcn.00465818
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404748
lea ecx, [ebp - 0x1c]
mov edx, 0x467c00
mov eax, esi
call fcn.00465818
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404748
lea ecx, [ebp - 0x24]
mov edx, 0x467c18
mov eax, esi
call fcn.00465818
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408c2c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004090a8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x467c30
mov eax, esi
call fcn.00465818
mov eax, dword [ebp - 0x28]
call fcn.0045f2f0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x467c40
mov eax, esi
call fcn.00465818
mov eax, dword [ebp - 0x2c]
call fcn.0045f2f0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x467c58
mov eax, esi
call fcn.00465818
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004090a8
inc eax
je 0x467b29
lea ecx, [ebp - 0x34]
mov edx, 0x467c58
mov eax, esi
call fcn.00465818
mov eax, dword [ebp - 0x34]
call fcn.0040906c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a6ac
fstp qword [ebp - 0x3c]
wait
call fcn.0040aa1c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x467b44
lea ecx, [ebp - 0x40]
mov edx, 0x467c58
mov eax, esi
call fcn.00465818
mov eax, dword [ebp - 0x40]
call fcn.0045f2f0
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x467c68
mov eax, esi
call fcn.00465818
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467b8d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404718
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404718
ret
Function at 0x46e890
Capabilities:
Access peb ldr_data

Disassembly:
push 0x700041a1
mov eax, dword [0xa0840041]
inc ecx
add byte [eax + 0x600041a4], al
pushal
movsd dword es:[edi], dword [esi]
inc ecx
add byte [eax - 0x77ffbe5b], dl
movsd dword es:[edi], dword [esi]
inc ecx
add byte [eax + 0x150046e9], al
push esp
dec ecx
inc ecx
jne 0x46e92b
push 0x69746e65
arpl word [ecx + 0x74], sp
imul ebp, dword [edi + 0x6e], 0x6d657449
mov eax, eax
int3
add byte [edi + edi*8 + 0x32], ah
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046e908
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0045de60
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0045da60
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e979
lea eax, [ebp - 4]
call fcn.004046f4
ret

Function at 0x46e918
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46e972
push dword fs:[edx]

Function at 0x484350
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffca0
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x484456
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x48446c
mov edx, dword [0x488f78]
call fcn.00404a00
xor eax, eax
push ebp
push 0x484434
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x209]
mov edx, dword [ebp - 8]
call fcn.0040974c
lea edx, [ebp - 4]
xor eax, eax
call fcn.00402cd4
lea eax, [ebp - 0x309]
mov edx, dword [ebp - 4]
call fcn.0040974c
lea eax, [ebp - 0x350]
xor ecx, ecx
mov edx, 0x44
call fcn.00403208
mov dword [ebp - 0x350], 0x44
mov dword [ebp - 0x324], 1
mov word [ebp - 0x320], 5
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x350]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x209]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x484418
call fcn.00404114
jmp 0x48443b
push 0xffffffffffffffff
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48443b
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48445d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404718
ret
Function at 0x484484
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov esi, 0x488f78
xor eax, eax
push ebp
push 0x48460e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
mov ecx, 0x484624
mov edx, dword [esi]
call fcn.00404a00
mov eax, dword [ebp - 0x10c]
call fcn.0040946c
test al, al
jne 0x48453c
lea eax, [ebp - 0x110]
mov ecx, 0x48463c
mov edx, dword [esi]
call fcn.00404a00
mov eax, dword [ebp - 0x110]
call fcn.0040946c
test al, al
jne 0x48453c
mov eax, 0x48465c
call fcn.0042e7d8
mov eax, dword [0x487d40]
mov eax, dword [eax]
call fcn.00458728
jmp 0x4845f0
lea eax, [ebp - 0x114]
mov ecx, 0x48463c
mov edx, dword [esi]
call fcn.00404a00
mov eax, dword [ebp - 0x114]
call fcn.0040946c
test al, al
jne 0x4845a0
push 0
lea eax, [ebp - 0x118]
mov ecx, 0x48463c
mov edx, dword [esi]
call fcn.00404a00
mov eax, dword [ebp - 0x118]
call fcn.00404bb4
push eax
lea eax, [ebp - 0x11c]
mov ecx, 0x484624
mov edx, dword [esi]
call fcn.00404a00
mov eax, dword [ebp - 0x11c]
call fcn.00404bb4
push eax
call sub.kernel32.dll_CopyFileA
mov ebx, 6
lea eax, [ebp - 0x120]
mov ecx, 0x48463c
mov edx, dword [esi]
call fcn.00404a00
mov eax, dword [ebp - 0x120]
mov edx, ebx
call fcn.0040947c
call fcn.00484350
push 0x7d0
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x124]
mov ecx, 0x48463c
mov edx, dword [esi]
call fcn.00404a00
mov eax, dword [ebp - 0x124]
call fcn.004094a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484615
lea eax, [ebp - 0x124]
mov edx, 7
call fcn.00404718
ret
Function at 0x4015d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4031a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x408bdc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x408bd8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x408bd4], ecx
shr eax, 0x10
mov dword [0x408bd0], eax
call fcn.00403070
test eax, eax
jne 0x40163a
push 0x1c
call fcn.004016f0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402e70
call fcn.00402e60
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409fc4], eax
call fcn.00402a30
mov dword [0x408ba8], eax
test eax, eax
je 0x40166d
mov eax, dword [0x409fc4]
test eax, eax
jne 0x401677
push 0xffffffffffffffff
call fcn.004023f0
add esp, 4
call fcn.00402780
call fcn.00402690
call fcn.004023c0
mov eax, dword [0x408bec]
mov dword [0x408bf0], eax
push eax
mov eax, dword [0x408be4]
push eax
mov ecx, dword [0x408be0]
push ecx
call section..text
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.004023f0
jmp 0x4016d2
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402430
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x408c0c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40244f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x408c08], 1
mov byte [0x408c04], bl
jne 0x4024a9
mov ecx, dword [0x408fa8]
test ecx, ecx
je 0x402497
mov esi, dword [0x408fa4]
sub esi, 4
cmp esi, ecx
jb 0x402497
mov eax, dword [esi]
test eax, eax
je 0x402490
call eax
mov ecx, dword [0x408fa8]
sub esi, 4
cmp esi, ecx
jae 0x402482
push 0x40601c
push 0x406014
call fcn.004024e0
add esp, 8
push 0x406024
push 0x406020
call fcn.004024e0
add esp, 8
test ebx, ebx
jne 0x4024d0
push ebp
mov dword [0x408c0c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x402a30
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x408d20]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402a72
call edi
mov esi, eax
test esi, esi
je 0x402a5c
mov eax, 1
jmp 0x402a6d
call ebp
mov ebx, eax
test ebx, ebx
je 0x402b7f
mov eax, 2
mov dword [0x408d20], eax
cmp eax, 1
jne 0x402b12
test esi, esi
jne 0x402a8b
call edi
mov esi, eax
test esi, esi
je 0x402b7f
cmp word [esi], 0
mov eax, esi
je 0x402aa5
add eax, 2
cmp word [eax], 0
jne 0x402a93
add eax, 2
cmp word [eax], 0
jne 0x402a93
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402b04
push edi
call fcn.004034a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402b04
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402af6
push ebx
call fcn.00403a80
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x402b7f
test ebx, ebx
jne 0x402b23
call ebp
mov ebx, eax
test ebx, ebx
je 0x402b7f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402b3b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402b2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402b2b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004034a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402b5d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4032c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x406740
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4032e4
add eax, 8
inc ebp
cmp eax, 0x4067d0
jb 0x4032d5
cmp ecx, dword [ebp*8 + 0x406740]
jne 0x40348b
mov eax, dword [0x408bb0]
cmp eax, 1
je 0x40344d
test eax, eax
jne 0x403310
cmp dword [0x406314], 1
je 0x40344d
cmp ecx, 0xfc
je 0x40348b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40334b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403394
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x405358
add ebx, ecx
push ebx
call fcn.00404280
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405338
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x406744]
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 + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004041f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x408ea0]
test eax, eax
je 0x40345e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403468
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x406744]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor 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 edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x404400
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x408fa0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4045ad
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x408ea0]
lea edi, [ecx*4 + 0x408ea0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4045ad
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40446e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40447f
push 2
push ebp
push eax
call fcn.00404630
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4045de
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404529
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4044da
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4044c7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4044aa
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4045cf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404525
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4044a6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40459e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404572
cmp eax, 5
jne 0x40455b
mov dword [0x408bc8], eax
mov dword [0x408bc4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004048c0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x404592
cmp byte [ebp], 0x1a
jne 0x404592
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x408bc4], 0x1c
jmp 0x4045b7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x408bc4], 9
pop edi
pop esi
pop ebp
mov dword [0x408bc8], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404525
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40460f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404529
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404529
Function at 0x409550
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x462e6b
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.00457e54
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4095d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00455da3
mov eax, dword [eax]
push 0x4771c0
push eax
call fcn.00448974
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004580df
test bl, bl
je 0x4095d2
push 0x4771c0
lea ecx, [esp + 0xc]
call fcn.0045846f
push 0x47ad08
lea ecx, [esp + 0xc]
call fcn.0045846f
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 0x40960e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004580df
jmp 0x4096d9
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 0x409692
lea edx, [esp + 0x7c]
push 0x47ad04
push edx
call fcn.00448974
add esp, 8
test eax, eax
je 0x409692
lea eax, [esp + 0x7c]
push 0x47ad00
push eax
call fcn.00448974
add esp, 8
test eax, eax
je 0x409692
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 0x409622
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.004580df
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 0x409ed0
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 0x409f32
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 0x409f40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x462eeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x481198]
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 0x40a078
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409fa6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004580df
xor eax, eax
jmp 0x40a0ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045821c
push esi
lea ecx, [esp + 0xc]
call fcn.004584ab
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 0x40a0cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409ed0
test eax, eax
jne 0x40a0cd
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.00409ed0
test eax, eax
jne 0x40a0cd
lea eax, [esp + 0x14]
push 0x47ad1c
push eax
call fcn.00449a50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a0ac
lea ecx, [esp + 0x14]
push 0x47ad18
push ecx
call fcn.004499d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a0ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a0af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004581cc
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409fbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004580df
xor eax, eax
jmp 0x40a0ef
mov byte [esi], 0
push 0x47ad14
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.004580df
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