joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f70
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x41527c]
xor eax, esp
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ebp
mov ebp, dword [esp + 0x118]
push ebp
mov dword [esp + 0x114], eax
call ebx
test eax, eax
je 0x401fb6
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004052d1
add esp, 0x10c
ret
push 0x5c
push ebp
call fcn.00406334
add esp, 8
test eax, eax
je 0x40205a
push esi
push edi
inc eax
push 0x5c
push eax
call fcn.00406334
mov edi, eax
add esp, 8
test edi, edi
je 0x402025
lea ecx, [ecx]
mov esi, edi
sub esi, ebp
push esi
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004061b3
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + esi + 0x14], 0
call ebx
test eax, eax
jne 0x402013
push eax
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402038
push 0x5c
inc edi
push edi
call fcn.00406334
mov edi, eax
add esp, 8
test edi, edi
jne 0x401fe0
push ebp
call ebx
test eax, eax
jne 0x402053
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402053
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004052d1
add esp, 0x10c
ret
mov eax, 1
jmp 0x40203a
mov ecx, dword [esp + 0x110]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004052d1
add esp, 0x10c
ret

Function at 0x402080
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4020ca
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020a0
sub eax, edx
dec eax
js 0x4020ca
cmp byte [eax + esi], 0x5c
jne 0x4020b6
mov byte [eax + esi], 0
push esi
call fcn.00401f70
add esp, 4
test eax, eax
je 0x4020ca
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x402140
Capabilities:
Extract resource via kernel32 functions
Get file attributes
Set file attributes
Write file on windows

Disassembly:
movzx eax, word [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402203
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [esp + 0x14]
push esi
mov ebx, eax
call fcn.004020d0
add esp, 4
test eax, eax
je 0x4021b0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebp
test al, 1
jne 0x4021a3
push esi
call ebp
test al, 4
je 0x4021af
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
push 0
push 0x80
push 2
call fcn.004010b0
mov ecx, eax
call fcn.00401c30
push eax
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402203
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x405ed4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004052e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405f6f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41654c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405f6f
cmp eax, 1
je 0x405f90
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405f6f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405f3c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405f6b
xor eax, eax
inc eax
jmp 0x405faf
cmp edi, eax
jae 0x405f73
xor eax, eax
jmp 0x405faf
cmp eax, esi
jae 0x405f7a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41654c]
jmp 0x405f93
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ab2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x412b38
call fcn.00406f30
mov edi, 0x94
mov eax, edi
call fcn.004052e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41654c], ecx
mov eax, dword [esi + 4]
mov dword [0x416558], eax
mov edx, dword [esi + 8]
mov dword [0x41655c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x416550], esi
cmp ecx, 2
je 0x406b12
or esi, 0x8000
mov dword [0x416550], esi
shl eax, 8
add eax, edx
mov dword [0x416554], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406b4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406b4d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406b65
cmp eax, 0x20b
je 0x406b52
mov dword [ebp - 0x1c], esi
jmp 0x406b79
cmp dword [ecx + 0x84], 0xe
jbe 0x406b4d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406b73
cmp dword [ecx + 0x74], 0xe
jbe 0x406b4d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004090d0
pop ecx
test eax, eax
jne 0x406b8d
push 0x1c
call fcn.00406a8e
pop ecx
call fcn.00408518
test eax, eax
jne 0x406b9e
push 0x10
call fcn.00406a8e
pop ecx
call fcn.0040bb8f
mov dword [ebp - 4], esi
call fcn.0040b991
test eax, eax
jge 0x406bb7
push 0x1b
call fcn.00406a69
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x417c40], eax
call fcn.0040b86f
mov dword [0x416334], eax
call fcn.0040b7cd
test eax, eax
jge 0x406bdd
push 8
call fcn.00406a69
pop ecx
call fcn.0040b59a
test eax, eax
jge 0x406bee
push 9
call fcn.00406a69
pop ecx
push 1
call fcn.00409c9e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x406c04
push eax
call fcn.00406a69
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040b53d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x406c25
movzx eax, word [ebp - 0x40]
jmp 0x406c28
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004015c0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x406c46
push edi
call fcn.00409dcb
call fcn.00409ded
jmp 0x406c78
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406f6b
ret
Function at 0x409d08
Capabilities:
Terminate process

Disassembly:
push 8
push 0x412ef0
call fcn.00406f30
push 8
call fcn.00408f8d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41658c], esi
jne 0x409d3c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x416588], esi
mov al, byte [ebp + 0x10]
mov byte [0x416584], al
cmp dword [ebp + 0xc], edi
jne 0x409d86
cmp dword [0x4179cc], edi
je 0x409d76
mov eax, dword [0x4179c8]
sub eax, 4
mov dword [0x4179c8], eax
cmp eax, dword [0x4179cc]
jb 0x409d76
mov eax, dword [eax]
cmp eax, edi
je 0x409d57
call eax
jmp 0x409d57
push 0x41503c
mov eax, 0x415034
call fcn.00409c86
pop ecx
push 0x415048
mov eax, 0x415040
call fcn.00409c86
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x409db7
cmp dword [ebp + 0x10], edi
jne 0x409dc5
mov dword [0x41658c], esi
push dword [ebp + 8]
call fcn.00409c44
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x409dc4
push 8
call fcn.00408ed8
pop ecx
ret
call fcn.00406f6b
ret
Function at 0x409e0b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x409e39
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x409e40
cmp ebx, dword [eax + 4]
jae 0x409e40
xor eax, eax
jmp 0x40a030
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x409e51
xor eax, eax
inc eax
jmp 0x40a02f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x409e67
cmp ecx, edx
jae 0x409fac
cmp dword [eax + 4], 0
je 0x409e70
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x409e58
cmp dword [ebp + 8], 0
je 0x409e92
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409fac
cmp eax, esi
jae 0x409fac
mov eax, dword [0x416590]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409eb7
cmp dword [esi*4 + 0x416598], edi
je 0x409fb0
inc esi
cmp esi, eax
jl 0x409ea5
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a02c
cmp dword [ebp - 8], 0x1000000
jne 0x40a02c
test byte [ebp - 0xc], 0xcc
je 0x409f35
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a02c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a02c
cmp word [eax + 0x18], 0x10b
jne 0x40a02c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a02c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x409f35
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x409f35
test byte [ecx + 0x27], 0x80
jne 0x409fac
push 1
push 0x4165d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x409e49
mov ecx, dword [0x416590]
test ecx, ecx
mov edx, ecx
jle 0x409f69
lea eax, [ecx*4 + 0x416594]
cmp dword [eax], edi
je 0x409f69
dec edx
sub eax, 4
test edx, edx
jg 0x409f5d
test edx, edx
jne 0x409f9a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x409f76
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409f8e
lea eax, [edx*4 + 0x416598]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409f7c
cmp ecx, 0x10
jge 0x409f9a
inc ecx
mov dword [0x416590], ecx
push 0
push 0x4165d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x409e49
xor eax, eax
jmp 0x40a02f
test esi, esi
jle 0x409e49
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4165d8
call ebx
test eax, eax
jne 0x409e49
cmp dword [esi*4 + 0x416598], edi
je 0x40a006
mov eax, dword [0x416590]
lea esi, [eax - 1]
test esi, esi
jl 0x409ff4
cmp dword [esi*4 + 0x416598], edi
je 0x409ff0
dec esi
jns 0x409fe4
test esi, esi
jge 0x40a004
cmp eax, 0x10
jge 0x409fff
inc eax
mov dword [0x416590], eax
lea esi, [eax - 1]
jmp 0x40a006
je 0x40a01e
xor ecx, ecx
test esi, esi
jl 0x40a01e
lea eax, [ecx*4 + 0x416598]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a00c
push 0
push 0x4165d8
call ebx
jmp 0x409e49
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b228
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x41527c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x415ad8]
je 0x40b25f
inc eax
cmp eax, 0x13
jb 0x40b250
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x415ad8]
jne 0x40b382
mov eax, dword [0x41633c]
cmp eax, 1
je 0x40b35d
cmp eax, edx
jne 0x40b28f
cmp dword [0x415434], 1
je 0x40b35d
cmp ecx, 0xfc
je 0x40b382
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b2c5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004086c0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004087c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b2f9
mov eax, edi
push eax
call fcn.004087c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f498
push edi
call fcn.00406640
add esp, 0x10
push edi
call fcn.004087c0
push dword [esi + 0x415adc]
mov ebx, eax
call fcn.004087c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004052e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004086c0
push edi
push ebx
call fcn.004086d0
push 0x412c18
push ebx
call fcn.004086d0
push dword [esi + 0x415adc]
push ebx
call fcn.004086d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040c297
add esp, 0x2c
jmp 0x40b382
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x415adc]
push dword [esi]
call fcn.004087c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004052d1
add ebp, 0x90
leave
ret
Function at 0x40bc17
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x41527c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x40bc53
xor eax, eax
jmp 0x40bdbd
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4168a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40bc91
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0040d54d
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40bd2b
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x40bd8e
jmp 0x40bcb5
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x40bcf0
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40bce1
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x40bcc1
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bd4f
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40bd58
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x40bcb3
jmp 0x40bd58
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bd4f
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x40bd58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x40bdb8
cmp dword [ebp - 0x68], eax
je 0x40bd8b
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x40bd80
call fcn.00406971
mov dword [eax], 9
call fcn.0040697a
mov dword [eax], esi
jmp 0x40bdb3
push dword [ebp - 0x68]
call fcn.00406983
pop ecx
jmp 0x40bdb3
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40bda0
cmp byte [edi], 0x1a
jne 0x40bda0
xor eax, eax
jmp 0x40bdbb
call fcn.00406971
mov dword [eax], 0x1c
call fcn.0040697a
and dword [eax], 0
or eax, 0xffffffff
jmp 0x40bdbb
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004052d1
add ebp, 0x3a4
leave
ret
Function at 0x40c297
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x416710], ebx
push esi
push edi
jne 0x40c317
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c352
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413dcc
push edi
call esi
test eax, eax
mov dword [0x416710], eax
je 0x40c352
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x416714], eax
call esi
cmp dword [0x41654c], 2
mov dword [0x416718], eax
jne 0x40c317
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x416720], eax
je 0x40c317
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41671c], eax
mov eax, dword [0x41671c]
test eax, eax
je 0x40c35c
call eax
test eax, eax
je 0x40c343
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x416720]
test eax, eax
je 0x40c343
test byte [ebp - 8], 1
jne 0x40c35c
cmp dword [0x416558], 4
jb 0x40c356
or byte [ebp + 0x12], 0x20
jmp 0x40c37b
xor eax, eax
jmp 0x40c38b
or byte [ebp + 0x12], 4
jmp 0x40c37b
mov eax, dword [0x416714]
test eax, eax
je 0x40c37b
call eax
mov ebx, eax
test ebx, ebx
je 0x40c37b
mov eax, dword [0x416718]
test eax, eax
je 0x40c37b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x416710]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x454bd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c65bb
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.004b8833
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x454c52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004b608a
mov eax, dword [eax]
push 0x504204
push eax
call fcn.004a8294
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b8abe
test bl, bl
je 0x454c52
push 0x504204
lea ecx, [esp + 0xc]
call fcn.004b8e9a
push 0x507d7c
lea ecx, [esp + 0xc]
call fcn.004b8e9a
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 0x454c8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b8abe
jmp 0x454d59
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 0x454d12
lea edx, [esp + 0x7c]
push 0x507d78
push edx
call fcn.004a8294
add esp, 8
test eax, eax
je 0x454d12
lea eax, [esp + 0x7c]
push 0x507d74
push eax
call fcn.004a8294
add esp, 8
test eax, eax
je 0x454d12
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 0x454ca2
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.004b8abe
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 0x455550
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 0x4555b2
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 0x4555c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c663b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x50f3d0]
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 0x4556f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x455626
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b8abe
xor eax, eax
jmp 0x45576f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004b8c47
push esi
lea ecx, [esp + 0xc]
call fcn.004b8ed6
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 0x45574d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00455550
test eax, eax
jne 0x45574d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00455550
test eax, eax
jne 0x45574d
lea eax, [esp + 0x14]
push 0x507d90
push eax
call fcn.004a9440
mov esi, eax
add esp, 8
test esi, esi
jne 0x45572c
lea ecx, [esp + 0x14]
push 0x507d8c
push ecx
call fcn.004a93c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x45572c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x45572f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004b8bf7
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45563e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b8abe
xor eax, eax
jmp 0x45576f
mov byte [esi], 0
push 0x507d88
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.004b8abe
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