joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b68ec
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [0x5a28e8], 0
jne 0x4b690d
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
mov dword [0x5a28e8], eax
push ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x2c
push 0
push edi
call fcn.004f42d0
push 0x1c
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.004b676a
mov ebx, eax
sub ebx, 0x1c
add esp, 0x18
neg ebx
sbb ebx, ebx
inc ebx
jne 0x4b693d
xor eax, eax
jmp 0x4b69b9
mov ecx, 0x1000
push esi
mov edx, 0x2000
mov eax, 0x10000
cmp dword [ebp - 0x20], ecx
je 0x4b69bd
cmp dword [ebp - 0x20], edx
je 0x4b696c
cmp dword [ebp - 0x20], eax
jne 0x4b69d5
xor ecx, ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x28], eax
jmp 0x4b69e6
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], edx
mov eax, dword [ebp - 0x2c]
push dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp - 0x28]
lea esi, [ebp - 0x14]
mov dword [edi + 4], eax
call fcn.004b67d8
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x18], eax
pop ecx
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
mov esi, dword [ebp - 0x30]
mov dword [edi + 0x1c], esi
mov esi, dword [ebp - 0x24]
mov dword [edi + 0x24], esi
mov esi, dword [ebp - 0x1c]
mov dword [edi + 0x20], esi
mov esi, dword [ebp - 0x18]
mov dword [edi + 0x28], esi
cmp dword [ebp - 0x20], ecx
je 0x4b6981
cmp dword [ebp - 0x20], edx
je 0x4b6981
cmp dword [ebp - 0x20], eax
jne 0x4b69b6
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov dword [edi], edx
mov edx, dword [ebp - 0x28]
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ecx
jmp 0x4b69b6

Function at 0x4bf87b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4bf89f
cmp dword [edi + 0x54], 0
jne 0x4bf89f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004b9be2
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004bf83c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4c6199
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4c61e0
call fcn.004b9be2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c61e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4c61fc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004c5d13
mov esi, eax
test edi, edi
je 0x4c61fa
test ebx, ebx
je 0x4c61fa
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4c748a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53bf77
call fcn.004f41c4
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4c74af
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4c74f5
lea ecx, [ebp - 0x10]
call fcn.00401334
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b74e9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040104c
mov eax, esi
call fcn.004f429c
ret 8
Function at 0x4d090f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x4d09ad
push 0x55c8c4
push 4
push eax
call fcn.004fec07
push eax
call fcn.004023f3
add esp, 0x10
push ebx
push edi
call fcn.004fd5b0
mov edi, dword [eax]
call fcn.004fd5b0
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00500c4a
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.004fd5b0
cmp dword [eax], ebx
je 0x4d09c4
call fcn.004fd5b0
push dword [eax]
call fcn.004b7aa3
pop ecx
jmp 0x4d09cb
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4d0955
jmp 0x4d0a52
call fcn.004fd5b0
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x4d0a4e
cmp dword [ebp - 0x11c], esi
jae 0x4d0a4e
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.004f42d0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4d0a3d
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4d0a3d
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4d0a3d
push ebx
push ebx
push esi
jmp 0x4d0a46
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4d0a50
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f41b5
leave
ret

Function at 0x4d59d2
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4d59fd
call fcn.004b9be2
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4d5a20
push eax
push dword [esi + 4]
call fcn.004d5958
push esi
push eax
mov ecx, 0x5a4454
call fcn.004d53b5
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4d89f6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x53d703
call fcn.004f41c4
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004093a2
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4d8a58
call fcn.004b8fe1
cmp eax, 1
jne 0x4d8a58
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00459cc6
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040dab3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040104c
mov dword [ebp + 8], reloc.ast.dll_Ordinal_1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040104c
mov eax, esi
call fcn.004f429c
ret 0x10

Function at 0x4d8a81
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x53d72e
call fcn.004f41c4
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004093a2
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4d8ae3
call fcn.004b8fe1
cmp eax, 1
jne 0x4d8ae3
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00459cc6
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040dab3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040104c
mov dword [ebp + 8], reloc.ast.dll_Ordinal_1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040104c
mov eax, esi
call fcn.004f429c
ret 0x14

Function at 0x4d8b0f
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x53d759
call fcn.004f41c4
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004093a2
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4d8b71
call fcn.004b8fe1
cmp eax, 1
jne 0x4d8b71
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00459cc6
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040dab3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040104c
mov dword [ebp + 8], reloc.ast.dll_Ordinal_1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040104c
mov eax, esi
call fcn.004f429c
ret 8
Function at 0x4ef977
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4ef9ac
xor eax, eax
jmp 0x4ef9ff
lea eax, [ebp - 0x210]
push eax
call fcn.004f9b59
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4ef9dd
push 0x5600d0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00501f33
add esp, 0xc
test eax, eax
jne 0x4ef9a8
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00501f33
add esp, 0xc
test eax, eax
jne 0x4ef9a8
lea eax, [ebp - 0x210]
push eax
call fcn.004ef8e9
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f41b5
leave
ret

Function at 0x4f41b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x590cec]
jne 0x4f41bf
repz ret
jmp fcn.0050891c

Function at 0x51d373
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.00503a06
and dword [ebp - 4], 0
cmp dword [0x5a5260], 0
mov ebx, eax
jne 0x51d424
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51d4d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x565a44
push edi
call esi
test eax, eax
je 0x51d4d5
push eax
call fcn.00503994
mov dword [esp], 0x565a34
push edi
mov dword [0x5a5260], eax
call esi
push eax
call fcn.00503994
mov dword [esp], 0x565a20
push edi
mov dword [0x5a5264], eax
call esi
push eax
call fcn.00503994
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5a5268], eax
call esi
push eax
call fcn.00503994
pop ecx
mov dword [0x5a5270], eax
test eax, eax
je 0x51d424
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00503994
pop ecx
mov dword [0x5a526c], eax
mov eax, dword [0x5a526c]
cmp eax, ebx
je 0x51d47c
cmp dword [0x5a5270], ebx
je 0x51d47c
push eax
call fcn.00503a0f
push dword [0x5a5270]
mov esi, eax
call fcn.00503a0f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51d47c
test edi, edi
je 0x51d47c
call esi
test eax, eax
je 0x51d473
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51d473
test byte [ebp - 0xc], 1
jne 0x51d47c
or dword [ebp + 0x10], 0x200000
jmp 0x51d4b5
mov eax, dword [0x5a5264]
cmp eax, ebx
je 0x51d4b5
push eax
call fcn.00503a0f
pop ecx
test eax, eax
je 0x51d4b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51d4b5
mov eax, dword [0x5a5268]
cmp eax, ebx
je 0x51d4b5
push eax
call fcn.00503a0f
pop ecx
test eax, eax
je 0x51d4b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a5260]
call fcn.00503a0f
pop ecx
test eax, eax
je 0x51d4d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51d4d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x529874
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 2
test eax, eax
jle 0x5298b3
push esi
movzx esi, byte [ecx]
xor ebx, ebx
dec eax
inc ecx
mov bh, byte [ecx]
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or esi, ebx
inc ecx
xor edx, esi
test eax, eax
jg 0x52988e
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x5298cf
dec edi
je 0x5298c8
dec edi
jne 0x5298d4
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
xor eax, edx
pop ebx
pop ebp
ret 0xc
Function at 0x401070
Capabilities:
Get hostname
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x40c4fc]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xb4], 0x40
xor eax, eax
mov word [ebp - 0xb0], ax
push 0x7e
push 0
lea ecx, [ebp - 0xae]
push ecx
call fcn.00401480
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x178
push 0x178
call fcn.004013f1
add esp, 4
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x10], eax
push str.GetAdaptersAddresses
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x4011c3
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0x10
push 2
call dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0x6f
jne 0x401166
mov eax, dword [ebp - 0x14]
push eax
call fcn.004013f1
add esp, 4
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x10
push 2
call dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jne 0x4011c3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc0], edx
cmp dword [ebp - 0xc0], 0
je 0x4011c3
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xc4], 0
je 0x4011c3
mov edx, dword [ebp - 0xc4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
push ecx
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push 0x40d2e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401225
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push 0x40d2e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401225
jmp 0x40124b
push 0
lea edx, [ebp - 8]
push edx
push 0x94
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00401471
mov esp, ebp
pop ebp
ret

Function at 0x401471
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c4fc]
jne 0x40147b
repz ret
jmp fcn.00402f81
Function at 0x405de8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c4fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403e9c
and dword [ebp - 0x14], 0
cmp dword [0x40e050], 0
mov dword [ebp - 0x18], eax
jne 0x405e9b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405f43
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405f43
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e050], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e054], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e058], eax
call edi
push eax
call esi
mov dword [0x40e060], eax
test eax, eax
je 0x405e9b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e05c], eax
mov eax, dword [0x40e05c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405ef4
cmp dword [0x40e060], ecx
je 0x405ef4
push eax
call esi
push dword [0x40e060]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405ef4
test ebx, ebx
je 0x405ef4
call edi
test eax, eax
je 0x405eeb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405eeb
test byte [ebp - 8], 1
jne 0x405ef4
or dword [ebp + 0x10], 0x200000
jmp 0x405f27
mov eax, dword [0x40e054]
cmp eax, dword [ebp - 0x18]
je 0x405f27
push eax
call esi
test eax, eax
je 0x405f27
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405f27
mov eax, dword [0x40e058]
cmp eax, dword [ebp - 0x18]
je 0x405f27
push eax
call esi
test eax, eax
je 0x405f27
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e050]
call esi
test eax, eax
je 0x405f43
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405f45
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401471
leave
ret
Function at 0x40c090
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4820eb
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.00476ab8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c112
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047482e
mov eax, dword [eax]
push 0x49f1f4
push eax
call fcn.00454f54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00476d43
test bl, bl
je 0x40c112
push 0x49f1f4
lea ecx, [esp + 0xc]
call fcn.004770d3
push 0x4a2d64
lea ecx, [esp + 0xc]
call fcn.004770d3
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 0x40c14e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00476d43
jmp 0x40c219
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 0x40c1d2
lea edx, [esp + 0x7c]
push 0x4a2d60
push edx
call fcn.00454f54
add esp, 8
test eax, eax
je 0x40c1d2
lea eax, [esp + 0x7c]
push 0x4a2d5c
push eax
call fcn.00454f54
add esp, 8
test eax, eax
je 0x40c1d2
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 0x40c162
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.00476d43
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 0x40ca10
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 0x40ca72
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 0x40ca80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48216b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a9324]
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 0x40cbb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cae6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00476d43
xor eax, eax
jmp 0x40cc2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00476e80
push esi
lea ecx, [esp + 0xc]
call fcn.0047710f
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 0x40cc0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040ca10
test eax, eax
jne 0x40cc0d
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.0040ca10
test eax, eax
jne 0x40cc0d
lea eax, [esp + 0x14]
push 0x4a2d78
push eax
call fcn.00455fa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cbec
lea ecx, [esp + 0x14]
push 0x4a2d74
push ecx
call fcn.00455f20
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cbec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cbef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00476e30
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cafe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00476d43
xor eax, eax
jmp 0x40cc2f
mov byte [esi], 0
push 0x4a2d70
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.00476d43
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