joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x100bd09c]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2c40], 0
test eax, eax
je 0x10032288
push edi
lea edi, [esi + 0x2c44]
mov dword [esi + 0x2c40], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x100321e4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10033110
xor ecx, ecx
mov dword [edi], 0
cmp dword [edi + 4], ecx
jne 0x100321fc
push 8
mov ecx, edi
call fcn.10033110
mov ecx, dword [edi]
mov eax, dword [edi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2c50], 0
mov ebx, dword [edi]
jle 0x10032247
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esi + 0x2c58]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2c50]
jl 0x10032220
mov ebx, dword [edi]
mov ecx, dword [ebp - 8]
lea eax, [ebx - 1]
neg ebx
mov edi, 0x100bcf6a
mov edx, 0x1009c18c
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi + 0x2c4c]
test eax, eax
cmovne edi, eax
call fcn.10021eb0
mov esi, eax
test esi, esi
je 0x10032286
push esi
push ebx
push 1
push edi
call fcn.1006f523
push esi
call fcn.1006e98e
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10055f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
sub eax, 0
je 0x10055f4d
sub eax, 1
jne 0x10056060
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push esi
push 0x10055d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop esi
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
jne 0x10056060
push ebx
mov ecx, 0x100c2b24
call fcn.10019830
mov ecx, 0x100c2bb0
call fcn.10019830
mov ecx, 0x100c2b88
call fcn.10019830
mov ecx, 0x100c2bc4
call fcn.10019830
mov ecx, 0x100c2b60
call fcn.10019830
mov ecx, 0x100c2b74
call fcn.10019830
mov ecx, 0x100c2bf0
call fcn.10019830
mov ecx, 0x100c2bd8
call fcn.10019830
mov eax, dword [0x100bced0]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
jle 0x10055fed
push edi
xor edi, edi
mov esi, dword [eax]
cmp dword [esi + edi], 0xfffffffe
jne 0x10055fe3
mov ecx, dword [esi + edi + 4]
test ecx, ecx
je 0x10055fe3
mov eax, dword [ecx + 8]
add ecx, 8
mov eax, dword [eax + 0x24]
call eax
test al, al
mov eax, dword [0x100bced0]
jne 0x10055fe3
mov dword [esi + edi + 0x14], 0
inc ebx
add edi, 0x38
cmp ebx, dword [eax + 0xc]
jl 0x10055fb7
pop edi
mov eax, dword [0x100c4658]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ecx + 0x20], eax
call fcn.10017e80
call fcn.100554e0
mov esi, dword [0x100bd09c]
mov ecx, esi
mov dword [0x100c2034], 0
mov dword [0x100c2040], 0
call fcn.10025f30
mov eax, dword [0x100bd09c]
xor ecx, ecx
cmp eax, esi
pop ebx
cmove eax, ecx
mov dword [0x100bd09c], eax
test esi, esi
je 0x10056060
mov ecx, esi
call fcn.10033320
mov eax, dword [0x100bd09c]
test eax, eax
je 0x10056051
dec dword [eax + 0x36c]
push dword [0x100bd098]
push esi
call fcn.10021670
add esp, 8
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x10061d60
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087bbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
lea eax, [ebp - 0x140]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0xb
push str.loyaltech_
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.100051e0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x3c]
call fcn.10016e60
add esp, 4
mov ecx, 0x100c2adc
push eax
call fcn.1000c6a0
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x10061e0f
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10061e05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061eb7
push edx
push ecx
call fcn.10067e7a
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp edx, 0x10
jb 0x10061e58
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10061e4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061eb7
push edx
push ecx
call fcn.10067e7a
add esp, 8
cmp dword [0x100c2af0], 0x10
mov eax, 0x100c2adc
push 0
cmovae eax, dword [0x100c2adc]
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x100c2598
call fcn.1005d560
mov ecx, 0x100c2598
call fcn.1005e9f0
mov ecx, 0x100c2598
call fcn.10060260
call fcn.1005e5e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.1006b54b
int3
Function at 0x100623d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10087c15
push eax
mov dword fs:[0], esp
mov eax, Ordinal_2
mov edx, dword [ecx + 0x554]
sub esp, 0x30
sub eax, edx
push ebx
push esi
lea esi, [ecx + 0x544]
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ecx + 0x10]
cmp eax, edi
jb 0x10062500
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10062419
mov eax, dword [esi]
cmp dword [ecx + 0x14], 0x10
jb 0x10062421
mov ecx, dword [ecx]
push edi
push ecx
push edx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.10017600
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
jb 0x10062440
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp + 8], 0
lea edx, [ebp - 0x24]
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
call fcn.100628d0
add esp, 4
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.1005c9d0
mov edx, dword [ebp - 0x28]
test al, al
sete bl
cmp edx, 8
jb 0x100624a5
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006249b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10062505
push edx
push ecx
call fcn.10067e7a
add esp, 8
pop edi
pop esi
test bl, bl
pop ebx
jne 0x100624c0
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.10074bcd
add esp, 4
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x100624f0
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100624e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006250a
push edx
push ecx
call fcn.10067e7a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.100027b0
call fcn.1006b54b
call fcn.1006b54b
int3
Function at 0x1007ac1e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007aa94
Function at 0x4016ff
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
sub esp, 0x50
mov eax, esp
mov edx, eax
add edx, 0x50
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x40170b
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00402020
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00402020
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00402020
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov eax, dword [esp + 0x68]
mov dword [ebp + 0x1c], eax
mov eax, str.open
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.dll_ShellExecuteExA
mov dword [esp + 0x48], eax
push 0x64
call sub.KERNEL32.dll_Sleep
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x4017b2
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x4017b2
jmp 0x4017b4
jmp 0x401785
xor eax, eax
push dword [esp + 8]
call fcn.00402420
push dword [esp + 4]
call fcn.00402420
push dword [esp]
call fcn.00402420
add esp, 0x50
pop ebx
pop ebp
ret 0x10
Function at 0x4017d8
Capabilities:
Check if file exists
Create process on windows
Self delete
Write and execute a file
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov eax, esp
mov edx, eax
add edx, 0x28
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x4017e3
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00402020
mov edx, dword [esp + 0x34]
lea ecx, [esp + 4]
call fcn.00402020
push dword [0x4034d8]
push 0xa
call fcn.004020c0
sub esp, 4
lea ecx, [esp + 0xc]
pop edx
call fcn.00402000
push 0xa
push dword [esp + 0xc]
push dword [esp + 0x14]
call sub.CRTDLL.dll__ltoa
add esp, 0xc
push dword [0x4034d8]
mov edx, dword [esp + 4]
push dword [0x4034d8]
call fcn.004023c0
mov edx, str.selfdel
call fcn.004023c0
mov edx, dword [esp + 0x10]
call fcn.004023c0
mov edx, str..bat
call fcn.004023c0
inc dword [0x4034d8]
mov edx, dword [0x403048]
add dword [esp], edx
call sub.SHLWAPI.dll_PathFileExistsA
pop dword [0x4034d8]
mov ebx, eax
cmp ebx, 1
je 0x4019f5
mov edx, dword [esp]
push dword [0x4034d8]
call fcn.004023c0
mov edx, str.selfdel
call fcn.004023c0
mov edx, dword [esp + 0xc]
call fcn.004023c0
mov edx, str..bat
call fcn.004023c0
lea ecx, [esp + 0x14]
pop edx
call fcn.00402000
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x28]
call sub.KERNEL32.dll_CreateFileA
mov dword [esp + 0x14], eax
mov edx, dword [esp + 4]
push dword [0x4034d8]
call fcn.004023c0
lea ecx, [esp + 0x1c]
pop edx
call fcn.00402000
push dword [esp + 0x18]
call sub.SHLWAPI.dll_PathRemoveFileSpecA
push dword [esp + 0x10]
call sub.SHLWAPI.dll_PathQuoteSpacesA
push dword [esp + 4]
call sub.SHLWAPI.dll_PathQuoteSpacesA
push dword [esp + 0x18]
call sub.SHLWAPI.dll_PathQuoteSpacesA
push dword [0x4034d8]
mov edx, str.del
call fcn.004023c0
mov edx, dword [esp + 8]
call fcn.004023c0
mov edx, 0x403023
call fcn.004023c0
lea ecx, [esp + 0x20]
pop edx
call fcn.00402000
mov edx, dword [esp + 0x1c]
push dword [0x4034d8]
call fcn.004023c0
mov edx, str.rmdir
call fcn.004023c0
mov edx, dword [esp + 0x1c]
call fcn.004023c0
mov edx, 0x403023
call fcn.004023c0
lea ecx, [esp + 0x20]
pop edx
call fcn.00402000
mov edx, dword [esp + 0x1c]
push dword [0x4034d8]
call fcn.004023c0
mov edx, str.del
call fcn.004023c0
mov edx, dword [esp + 0x14]
call fcn.004023c0
mov edx, 0x403023
call fcn.004023c0
lea ecx, [esp + 0x20]
pop edx
call fcn.00402000
push 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
call sub.KERNEL32.dll_lstrlenA
push eax
mov eax, dword [esp + 0x28]
push eax
push dword [esp + 0x24]
call sub.KERNEL32.dll_WriteFile
push dword [esp + 0x14]
call sub.KERNEL32.dll_CloseHandle
jmp 0x4019fe
inc dword [esp + 0xc]
jmp 0x401826
push 0
push 0x40302d
push 0x40302d
push dword [esp + 0x1c]
push str.open
push dword [esp + 0x38]
call sub.SHELL32.dll_ShellExecuteA
xor eax, eax
push dword [esp + 8]
call fcn.00402420
push dword [esp + 0x10]
call fcn.00402420
push dword [esp + 0x1c]
call fcn.00402420
push dword [esp + 0x18]
call fcn.00402420
push dword [esp]
call fcn.00402420
push dword [esp + 4]
call fcn.00402420
add esp, 0x28
pop ebx
ret 8
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x88f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x88f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x8b8074
push ecx
mov edi, eax
call fcn.008a3198
mov esi, eax
add esp, 8
test esi, esi
jne 0x88f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.008a302e
push esi
call fcn.008a2fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x892850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8928ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x8bd720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8928ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008a31e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8928ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8bd720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x89292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.008a4082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x892957
mov word [eax], si
add eax, 2
push eax
call fcn.008a4030
add esp, 4
jmp 0x892959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8928ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8928b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x892ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x893080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8930c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x8b8458
push ecx
call fcn.008a31e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008a31e1
add esp, 0x10
jmp 0x8930d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008a320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008a2dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00893050
mov eax, dword [0x8bd728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x89313b
push esi
call fcn.00892fb0
add esp, 4
mov dword [0x8bd728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x89314c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00892ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x896440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8964b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x89648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x896471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x89647e
add edx, ecx
cmp ebx, edx
jb 0x89648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x896467
xor ecx, ecx
jmp 0x8964a2
test eax, eax
jne 0x896492
xor ecx, ecx
jmp 0x8964a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008963c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8968f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x896921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x896946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x89696e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x896993
push ecx
push esi
call fcn.008964c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x897c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x897c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x897c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x897c38
add edx, eax
cmp ebx, edx
jb 0x897c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x897c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x897c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x897c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x897cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x897c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x897ca8
add edx, ecx
cmp ebx, edx
jb 0x897cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x897c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x897f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.008a4145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x897ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x897fdd
lea eax, [esp + 0x18]
push eax
jmp 0x897fe2
push 0x8bd720
call fcn.008a3fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x897fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x897f40
push 4
push ecx
push eax
call fcn.008a443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x898310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.008a4145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8983ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x89838d
lea eax, [esp + 0x18]
push eax
jmp 0x898392
push 0x8bd720
call fcn.008a3fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x898360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x897f40
push 4
push ecx
push eax
call fcn.008a443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret