joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4209e0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, edx
push ebx
sub esp, 0x224
lea ebx, [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ebx
call sym.fennel_bin.exe_luaL_buffinit
lea esi, [esi]
mov dword [esp + 4], 0x200
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_prepbuffsize
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x200
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fread
add dword [esp + 0x18], eax
cmp eax, 0x200
je 0x420a00
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_pushresult
add esp, 0x224
pop ebx
pop esi
ret

Function at 0x421190
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov eax, ebx
call sym._tofile
mov dword [esp], ebx
mov dword [esp + 4], 1
mov esi, eax
call sym.fennel_bin.exe_lua_pushvalue
add esp, 0x14
mov edx, esi
mov eax, ebx
mov ecx, 2
pop ebx
pop esi
jmp sym._g_write

Function at 0x421c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ecx, 0xff
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
xor ebx, ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebp
nop
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
xor eax, dword [esp + 0x28]
xor ebp, ecx
mov ecx, dword [esp + 0x14]
xor edx, dword [esp + 0x24]
xor dword [esp + 0x24], ebp
xor ecx, ebx
mov ebx, dword [esp + 0x10]
xor dword [esp + 0x28], ecx
mov edi, ecx
mov ecx, dword [esp + 0x14]
xor ebx, edx
xor ecx, eax
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
shld ebx, ecx, 0x11
shl ecx, 0x11
xor edx, ecx
xor eax, ebx
mov ecx, ebp
mov ebx, edi
shrd ecx, edi, 0x13
shrd ebx, ebp, 0x13
sub dword [esp + 0x34], 1
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
jne 0x421ce0
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x10], edx
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [edi], esi
mov dword [edi + 4], ebp
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0x1c], edx
mov edi, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], edi
mov dword [esp + 8], eax
call sym.fennel_bin.exe_lua_pushinteger
mov eax, dword [esp + 0x48]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp sym.fennel_bin.exe_lua_pushinteger
Function at 0x424520
Capabilities:
Move file

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_checklstring
mov dword [esp], ebx
mov dword [esp + 8], 0
mov esi, eax
mov dword [esp + 4], 2
call sym.fennel_bin.exe_luaL_checklstring
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._rename
mov dword [esp], ebx
test eax, eax
mov dword [esp + 8], 0
sete al
movzx eax, al
mov dword [esp + 4], eax
call sym.fennel_bin.exe_luaL_fileresult
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x424590
Capabilities:
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_checklstring
mov dword [esp], eax
mov esi, eax
call sym._remove
mov dword [esp + 8], esi
test eax, eax
mov dword [esp], ebx
sete al
movzx eax, al
mov dword [esp + 4], eax
call sym.fennel_bin.exe_luaL_fileresult
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4245e0
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_checklstring
mov dword [esp], eax
call sym._getenv
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.fennel_bin.exe_lua_pushstring
add esp, 0x18
mov eax, 1
pop ebx
ret

Function at 0x4246c0
Capabilities:
Execute command

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_optlstring
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0
mov dword [esp], esi
call sym._system
mov dword [esp], ebx
mov dword [esp + 4], eax
test esi, esi
je 0x424715
call sym.fennel_bin.exe_luaL_execresult
add esp, 0x14
pop ebx
pop esi
ret
call sym.fennel_bin.exe_lua_pushboolean
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret

Function at 0x425720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, ecx
push edi
mov edi, 1
push esi
mov esi, eax
push ebx
sub esp, 0xc
cmp byte [edx + 1], 0x5e
jne 0x42573b
add edx, 1
xor edi, edi
lea ebx, [edx + 1]
cmp ebx, ebp
jae 0x425760
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 2]
cmp al, 0x25
je 0x425770
cmp cl, 0x2d
je 0x425785
cmp esi, eax
je 0x425763
mov edx, ebx
lea ebx, [edx + 1]
cmp ebx, ebp
jb 0x425742
xor edi, 1
add esp, 0xc
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [edx + 2]
mov eax, esi
movzx edx, cl
call sym._match_class
test eax, eax
jne 0x425763
mov edx, ebx
jmp 0x425759
lea ecx, [edx + 3]
cmp ecx, ebp
jae 0x425753
cmp esi, eax
jl 0x425798
movzx eax, byte [edx + 3]
cmp eax, esi
jge 0x425763
mov ebx, ecx
mov edx, ebx
jmp 0x425759
Function at 0x428ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], 2
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_optinteger
mov dword [esp + 4], 3
mov dword [esp], ebx
mov esi, eax
mov edi, edx
call sym.fennel_bin.exe_lua_type
test eax, eax
jle 0x429000
mov dword [esp + 4], 3
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_checkinteger
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebp, 0
cmp eax, esi
mov ecx, edx
sbb ecx, edi
jl 0x428f69
sub eax, esi
sbb edx, edi
mov ecx, edx
mov edx, eax
mov eax, 0x7ffffffe
cmp eax, edx
sbb ebp, ecx
jae 0x428f73
mov dword [esp + 4], str.too_many_results_to_unpack
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_error
mov ebp, eax
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
mov dword [esp], ebx
add eax, 1
mov dword [esp + 4], eax
mov ebp, eax
call sym.fennel_bin.exe_lua_checkstack
test eax, eax
je 0x428f57
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, edi
cmp esi, eax
sbb ecx, edx
jge 0x428fd2
lea esi, [esi]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym.fennel_bin.exe_lua_geti
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, 1
adc edi, 0
mov eax, edx
mov edx, ecx
xor eax, esi
xor edx, edi
or edx, eax
jne 0x428fa0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call sym.fennel_bin.exe_lua_geti
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_len
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x428f2f
Function at 0x4295a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ecx, 7
mov edx, 1
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
mov eax, ebp
call sym._checktab
mov dword [esp + 4], 1
mov dword [esp], ebp
call sym.fennel_bin.exe_luaL_len
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov ebx, eax
mov dword [esp + 0xc], edx
mov dword [esp], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
call sym.fennel_bin.exe_luaL_optinteger
mov ecx, dword [esp + 0x18]
mov esi, eax
mov edi, edx
mov eax, ebx
mov edx, ecx
xor eax, esi
xor edx, edi
or edx, eax
je 0x4296d5
mov eax, esi
mov edx, edi
add eax, 0xffffffff
adc edx, 0xffffffff
cmp ebx, eax
sbb ecx, edx
jb 0x4296f7
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], ebp
call sym.fennel_bin.exe_lua_geti
cmp esi, dword [esp + 0x1c]
mov eax, edi
sbb eax, dword [esp + 0x18]
jge 0x4296ed
mov ecx, esi
mov ebx, edi
mov dword [esp + 4], 1
add ecx, 1
mov dword [esp], ebp
adc ebx, 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
call sym.fennel_bin.exe_lua_geti
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], ebp
call sym.fennel_bin.exe_lua_seti
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, ecx
mov edi, ebx
xor eax, ecx
xor edx, ebx
or edx, eax
jne 0x429642
mov dword [esp], ebp
call sym.fennel_bin.exe_lua_pushnil
mov eax, dword [esp + 0x1c]
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
call sym.fennel_bin.exe_lua_seti
add esp, 0x2c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], ebp
call sym.fennel_bin.exe_lua_geti
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
jmp 0x4296a0
mov dword [esp + 8], 0x4742c0
mov dword [esp + 4], 1
mov dword [esp], ebp
call sym.fennel_bin.exe_luaL_argerror
jmp 0x42961a
Function at 0x4298b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ecx, 5
mov edx, 1
push edi
push esi
push ebx
sub esp, 0x24c
mov eax, dword [esp + 0x260]
call sym._checktab
mov eax, dword [esp + 0x260]
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.fennel_bin.exe_luaL_len
mov dword [esp + 8], 0x4742fe
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x260]
mov dword [esp + 4], 2
mov dword [esp], eax
mov dword [esp + 0x14], edx
call sym.fennel_bin.exe_luaL_optlstring
mov dword [esp + 8], 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x260]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 3
mov dword [esp], eax
call sym.fennel_bin.exe_luaL_optinteger
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 4], 4
mov esi, eax
mov eax, dword [esp + 0x260]
mov edi, edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x30]
mov dword [esp], eax
call sym.fennel_bin.exe_luaL_optinteger
mov ecx, dword [esp + 0x260]
mov dword [esp + 4], ebx
mov ebp, eax
mov dword [esp + 0x10], edx
mov dword [esp], ecx
call sym.fennel_bin.exe_luaL_buffinit
cmp esi, ebp
mov ecx, edi
sbb ecx, dword [esp + 0x10]
jge 0x4299d4
mov dword [esp], esi
mov eax, dword [esp + 0x260]
mov edx, ebx
mov dword [esp + 4], edi
call sym._addfield
mov eax, dword [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
call sym.fennel_bin.exe_luaL_addlstring
add esi, 1
mov edx, dword [esp + 0x10]
mov eax, ebp
adc edi, 0
xor eax, esi
xor edx, edi
or edx, eax
jne 0x429993
mov eax, dword [esp + 0x10]
xor ebp, esi
xor eax, edi
or eax, ebp
je 0x429a00
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_pushresult
add esp, 0x24c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov eax, dword [esp + 0x260]
mov edx, ebx
mov dword [esp + 4], edi
call sym._addfield
jmp 0x4299e0
Function at 0x42b1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4763a0]
test esi, esi
jle 0x42b2b0
mov edi, dword [0x4763a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x42b1d4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x42b255
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x42b1c0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x42b2d7
mov eax, dword [0x4763a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4763a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x42b2b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x42b24e
sub eax, 4
and eax, 0xfffffffb
jne 0x42b260
add dword [0x4763a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4763a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x42b24e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
xor esi, esi
jmp 0x42b1de
mov eax, dword [0x4763a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x42b710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4763b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4763b0]
sub esp, 4
test ebx, ebx
je 0x42b765
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x42b75e
test esi, esi
je 0x42b75e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x42b740
mov dword [esp], 0x4763b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x435e70
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop
Function at 0xcb9370
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 0xcb938e
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 0xce2074
push ecx
mov edi, eax
call fcn.00ccd198
mov esi, eax
add esp, 8
test esi, esi
jne 0xcb93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ccd02e
push esi
call fcn.00cccfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xcbc850
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 0xcbc8ae
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 0xce7720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcbc8ba
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.00ccd1e1
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 0xcbc8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xce7720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcbc92a
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.00cce082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xcbc957
mov word [eax], si
add eax, 2
push eax
call fcn.00cce030
add esp, 4
jmp 0xcbc959
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 0xcbc8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xcbc8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xcbd0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xce2458
push ecx
call fcn.00ccd1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00ccd1e1
add esp, 0x10
jmp 0xcbd0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00ccd20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00cccdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00cbd050
mov eax, dword [0xce7728]
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 0xcbd13b
push esi
call fcn.00cbcfb0
add esp, 4
mov dword [0xce7728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xcbd14c
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.00cbcff0
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 0xcc0440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xcc04b7
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 0xcc048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcc0471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcc047e
add edx, ecx
cmp ebx, edx
jb 0xcc048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcc0467
xor ecx, ecx
jmp 0xcc04a2
test eax, eax
jne 0xcc0492
xor ecx, ecx
jmp 0xcc04a2
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.00cc03c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xcc08f0
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 0xcc0921
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 0xcc0946
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 0xcc096e
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 0xcc0993
push ecx
push esi
call fcn.00cc04c0
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 0xcc1c00
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 0xcc1c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xcc1c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xcc1c38
add edx, eax
cmp ebx, edx
jb 0xcc1c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xcc1c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xcc1c50
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 0xcc1c70
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 0xcc1cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcc1c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcc1ca8
add edx, ecx
cmp ebx, edx
jb 0xcc1cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcc1c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xcc1f60
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.00cce145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xcc1ffb
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 0xcc1fdd
lea eax, [esp + 0x18]
push eax
jmp 0xcc1fe2
push 0xce7720
call fcn.00ccdfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xcc1fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xcc1f40
push 4
push ecx
push eax
call fcn.00cce43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret