joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c29ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x4c29f2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x4c2a2c
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c2a46
push 0xc9
push str.dlgprop.cpp
call fcn.004d5a20
test eax, eax
je 0x4c2a46
int3
xor eax, eax
test eax, eax
jne 0x4c2a2c
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x4c2b21
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x4c2af1
push 0x5da55c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c2a9e
push 0xe1
push str.dlgprop.cpp
call fcn.004d5a20
test eax, eax
je 0x4c2a9e
int3
xor ecx, ecx
test ecx, ecx
jne 0x4c2a84
cmp dword [ebp - 0x18], 0
je 0x4c2aef
push 0x5da56c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4c2ae5
mov eax, 1
test eax, eax
je 0x4c2adf
push 0xe6
push str.dlgprop.cpp
call fcn.004d5a20
test eax, eax
je 0x4c2adf
int3
xor ecx, ecx
test ecx, ecx
jne 0x4c2ac2
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4c2b21
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x4c2b21
mov ecx, 1
test ecx, ecx
je 0x4c2b1b
push 0xed
push str.dlgprop.cpp
call fcn.004d5a20
test eax, eax
je 0x4c2b1b
int3
xor edx, edx
test edx, edx
jne 0x4c2afe
call fcn.004ec8d3
cmp dword [eax + 0x1038], 0
je 0x4c2b3e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004c2983
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004c2845
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x4c2b6e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x4c2b83
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ebb9c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x4ebbc2
push 0x146
push str.afxtls.cpp
call fcn.004d5a20
test eax, eax
je 0x4ebbc2
int3
xor eax, eax
test eax, eax
jne 0x4ebba8
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x4ebbe1
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x4ebc64
cmp dword [ebp + 0xc], 0
je 0x4ebc04
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4ebc49
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ebc30
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x4ebc37
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x4ebc5f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x4ebc5f
mov dword [ebp - 4], 0
jmp 0x4ebbd8
cmp dword [ebp - 4], 0
je 0x4ebcd8
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004ec260
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4ebcc3
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x4ebcca
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ebce1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4ebd24
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ebd22
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004ebb9c
jmp 0x4ebd59
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004ec280
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ebd59
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004ebb9c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4ebd32
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x4f95c8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f966b
cmp dword [ebp + 8], 0
je 0x4f966b
lea edx, [ebp - 0xc]
push edx
push 0x5df794
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [ebp - 0x10]
push edx
call fcn.004f220e
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51da2f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x55
push str.oledrop1.cpp
mov eax, dword [ebp - 0x24]
push eax
call fcn.00485ce0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x51da93
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
or al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
or al, 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
jmp 0x51dac0
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x51dac0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
or ecx, 2
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
or ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.004d97e4
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
jne 0x51db9a
call fcn.004d97d3
cmp eax, dword [ebp + 8]
je 0x51daed
jmp 0x51db9a
push 1
push 0x209
push 0x200
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x51db25
push 1
push 0x108
push 0x100
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x51db7a
cmp dword [ebp - 0x1c], 0x202
je 0x51db49
cmp dword [ebp - 0x1c], 0x205
je 0x51db49
cmp dword [ebp - 0x1c], 0x201
je 0x51db49
cmp dword [ebp - 0x1c], 0x204
jne 0x51db4b
jmp 0x51db9a
cmp dword [ebp - 0x1c], 0x100
jne 0x51db5c
cmp dword [ebp - 0x18], 0x1b
jne 0x51db5c
jmp 0x51db9a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.004df6d6
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x5eb7dc]
jbe 0x51db95
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
jmp 0x51dad1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x4016e0
Capabilities:
Get file attributes
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403268
push 0x402cea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], 0xc0000001
mov dword [ebp - 0x60], 0x18
mov dword [ebp - 0x5c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0x40
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], edi
push 0x20
push 1
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0x80000000
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jl 0x40185a
push 5
push 0x18
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x70]
mov esi, eax
push 0x30304550
push eax
push edi
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
call ebx
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x40179c
mov dword [ebp - 0x1c], 0xc0000001
jmp 0x40185a
push 0
push 0
push esi
push edi
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x40185a
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x401790
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x401790
mov esi, dword [edi + 0x3c]
add esi, edi
movzx ecx, word [esi + 6]
mov dword [ebp - 0x30], ecx
lea eax, [esi + 0xf8]
mov dword [ebp + 8], eax
mov dword [ebp - 0x2c], eax
push 0x30304550
mov edx, dword [esi + 0x50]
push edx
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x401790
mov eax, dword [esi + 0x50]
push eax
push 0
push ebx
call sub.ntoskrnl.exe_memset
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
push edi
push ebx
call sub.ntoskrnl.exe_memcpy
add esp, 0x18
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x30]
jae 0x401855
mov esi, dword [ebp - 0x2c]
mov ecx, dword [esi + 0x10]
push ecx
mov edx, dword [esi + 0x14]
add edx, edi
push edx
mov eax, dword [esi + 0xc]
add eax, ebx
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
add esi, 0x28
mov dword [ebp - 0x2c], esi
inc dword [ebp - 0x24]
jmp 0x401827
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0040187f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403218
push 0x402cea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov byte [ebp - 0x19], 0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax + 0x78], ebx
je 0x401ad9
cmp dword [eax + 0x7c], ebx
je 0x401ad9
mov edi, dword [eax + 0x78]
add edi, esi
mov ecx, dword [edi + 0x20]
add ecx, esi
mov dword [ebp - 0x34], ecx
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x24]
add eax, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
cmp byte [ebp - 0x19], 0
jne 0x401ad9
cmp ebx, dword [edi + 0x18]
jae 0x401ad9
movzx eax, word [eax + ebx*2]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x401ac4
add eax, esi
push eax
mov eax, str.KeServiceDescriptorTable
push eax
call sub.ntoskrnl.exe__stricmp
add esp, 8
test eax, eax
jne 0x401ac4
mov byte [ebp - 0x19], 1
movzx ecx, word [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ecx*4]
add eax, esi
mov dword [ebp - 0x20], eax
inc ebx
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
jmp 0x401a83
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4023d0
Capabilities:
Find process by pid

Disassembly:
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
jmp 0x4023e9
push ebx
push eax
call dword [0x40437c]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp esi, eax
je 0x402452
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x402452
mov ecx, dword [esp + 8]
mov al, 0x65
mov byte [esp + 0x10], al
mov byte [esp + 0x12], al
mov eax, dword [0x404388]
lea edx, [esp + 0xc]
push edx
add eax, ecx
push eax
mov byte [esp + 0x14], 0x64
mov byte [esp + 0x15], 0x6e
mov byte [esp + 0x16], 0x66
mov byte [esp + 0x17], 0x2e
mov byte [esp + 0x19], 0x78
mov byte [esp + 0x1b], bl
call sub.ntoskrnl.exe__stricmp
add esp, 8
test eax, eax
sete bl
jmp 0x402462
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x402b30
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.DeviceKrnlSrv
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call esi
push str.DosDevicesKrnlSrv
lea ecx, [esp + 0x14]
push ecx
call esi
mov eax, dword [ebp + 8]
mov ecx, 0x4025e0
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ecx
mov dword [eax + 0x88], ecx
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], ecx
mov dword [eax + 0x98], ecx
mov dword [eax + 0x9c], ecx
mov dword [eax + 0xa0], ecx
mov dword [eax + 0xa4], ecx
lea edx, [esp + 4]
push edx
push 0
push 0
mov ecx, 0x4025c0
push 0x22
mov dword [eax + 0x38], ecx
mov dword [eax + 0x40], ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
mov dword [eax + 0x70], 0x402ab0
mov dword [eax + 0x34], 0x402ca0
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jl 0x402c95
mov eax, dword [esp + 4]
test eax, eax
jne 0x402c1f
mov eax, 0xc00000e9
pop esi
mov esp, ebp
pop ebp
ret 8
or dword [eax + 0x1c], 0x10
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [edx + 0x5c], 1
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov eax, dword [esp + 4]
and dword [eax + 0x1c], 0xffffff7f
jmp 0x402c5b
call fcn.00402230
call fcn.00401220
call fcn.00401360
call fcn.00401b00
call fcn.004012a0
mov dword [0x404234], eax
call fcn.00402060
call fcn.00402170
jmp 0x402c93
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40bcd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e9eb
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.00463490
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bd52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00460f4d
mov eax, dword [eax]
push 0x4921c0
push eax
call fcn.00453d44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046371b
test bl, bl
je 0x40bd52
push 0x4921c0
lea ecx, [esp + 0xc]
call fcn.00463aab
push 0x495d44
lea ecx, [esp + 0xc]
call fcn.00463aab
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 0x40bd8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046371b
jmp 0x40be59
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 0x40be12
lea edx, [esp + 0x7c]
push 0x495d40
push edx
call fcn.00453d44
add esp, 8
test eax, eax
je 0x40be12
lea eax, [esp + 0x7c]
push 0x495d3c
push eax
call fcn.00453d44
add esp, 8
test eax, eax
je 0x40be12
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 0x40bda2
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.0046371b
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 0x40c650
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 0x40c6b2
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 0x40c6c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ea6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49c294]
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 0x40c7f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c726
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046371b
xor eax, eax
jmp 0x40c86f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00463858
push esi
lea ecx, [esp + 0xc]
call fcn.00463ae7
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 0x40c84d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.0040c650
test eax, eax
jne 0x40c84d
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 bind
mov ecx, edi
call fcn.0040c650
test eax, eax
jne 0x40c84d
lea eax, [esp + 0x14]
push 0x495d58
push eax
call fcn.00454d80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c82c
lea ecx, [esp + 0x14]
push 0x495d54
push ecx
call fcn.00454d00
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c82c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c82f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00463808
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c73e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046371b
xor eax, eax
jmp 0x40c86f
mov byte [esi], 0
push 0x495d50
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.0046371b
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