joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437e2e
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x4079a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x402190
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x1c], ebx
push dword [edi]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x50], ebx
call sub.MSVBVM60.DLL___vbaObjIs
test ax, ax
jne 0x437fc1
mov esi, 0x412b00
push ebx
push esi
lea eax, [ebp - 0x30]
push dword [edi]
push eax
call sub.MSVBVM60.DLL___vbaLateMemCallLd
add esp, 0x10
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
call sub.MSVBVM60.DLL_rtcTrimBstr
mov edx, eax
lea ecx, [ebp - 0x1c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x20]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeVar
push dword [ebp - 0x1c]
push 0x41132c
call sub.MSVBVM60.DLL___vbaStrCmp
test eax, eax
je 0x437fc1
or dword [ebp - 0x14], 0xffffffff
push ebx
push esi
lea eax, [ebp - 0x30]
push dword [edi]
push eax
call sub.MSVBVM60.DLL___vbaLateMemCallLd
add esp, 0x10
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x1c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeVar
mov ecx, dword [0x49a0a4]
call sub.MSVBVM60.DLL___vbaI2I4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp ax, word [ebp - 0x5c]
jg 0x437f75
mov ecx, dword [ebp - 0x1c]
push ebx
movsx eax, ax
push esi
push eax
push dword [0x49a168]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x50], 0x8008
call sub.MSVBVM60.DLL___vbaDerefAry1
push dword [eax]
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL___vbaLateMemCallLd
add esp, 0x10
push eax
lea eax, [ebp - 0x50]
push eax
call sub.MSVBVM60.DLL___vbaVarTstEq
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x54], eax
call sub.MSVBVM60.DLL___vbaFreeVar
cmp word [ebp - 0x54], bx
jne 0x437f72
push 1
pop eax
add ax, word [ebp - 0x18]
jo 0x437ffd
mov dword [ebp - 0x18], eax
jmp 0x437f10
mov dword [ebp - 0x14], ebx
cmp word [ebp - 0x14], bx
je 0x437fc1
mov eax, dword [0x49a0a4]
push 1
add eax, 1
jo 0x437ffd
push eax
push 1
push 0x412b0c
push 0x49a168
push 4
push 0x440
mov dword [0x49a0a4], eax
call sub.MSVBVM60.DLL___vbaRedimPreserve
add esp, 0x1c
push dword [edi]
push dword [0x49a0a4]
push dword [0x49a168]
call sub.MSVBVM60.DLL___vbaDerefAry1
push eax
call sub.MSVBVM60.DLL___vbaObjSetAddref
push 0x437fec
jmp 0x437fe3
lea ecx, [ebp - 0x1c]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x4014e0
Capabilities:
Get common file path

Disassembly:
push edi
push esi
mov edi, eax
push ebx
sub esp, 0x220
lea esi, [esp + 0x18]
mov dword [esp], 0x104
mov dword [esp + 4], esi
call sub.KERNEL32.dll_GetCurrentDirectoryW
lea eax, [edi + 8]
sub esp, 8
mov dword [esp], esi
mov dword [edi], eax
call sub.msvcrt.dll_wcslen
lea ebx, [eax + eax]
sar ebx, 1
cmp ebx, 7
mov dword [esp + 0x14], ebx
ja 0x401540
cmp ebx, 1
mov edx, ebx
mov eax, dword [edi]
je 0x401580
test ebx, ebx
jne 0x401562
xor ecx, ecx
mov dword [edi + 4], edx
mov word [eax + edx*2], cx
add esp, 0x220
mov eax, edi
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x14]
mov dword [esp + 4], 0
mov ecx, edi
mov dword [esp], eax
call fcn.0048c3a0
sub esp, 8
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov dword [edi + 8], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00415080
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
jmp 0x40152a
movzx ecx, word [esp + 0x18]
mov word [eax], cx
jmp 0x40152a

Function at 0x401590
Capabilities:
Enumerate processes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24c
mov dword [esp + 4], 0
mov dword [esp], 2
mov ebp, dword [esp + 0x260]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
sub esp, 8
xor eax, eax
cmp ebx, 0xffffffff
je 0x401624
lea edi, [esp + 0x14]
mov ecx, 0x8b
lea esi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
sub esp, 8
test eax, eax
lea edi, [esp + 0x38]
jne 0x401604
jmp 0x401630
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_Process32NextW
sub esp, 8
test eax, eax
je 0x401630
mov dword [esp], edi
mov ecx, ebp
call fcn.0042a460
sub esp, 4
test eax, eax
jne 0x4015f1
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x1c]
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
xor eax, eax
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b140
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e8058
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4e8050]
sub esp, 4
test ebx, ebx
je 0x40b18b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40b184
test esi, esi
je 0x40b184
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b160
mov dword [esp], 0x4e8058
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b370
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40b3c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40b498
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b3fe
cmp eax, 4
jne 0x40b420
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b40e
cmp edx, 4
je 0x40b40e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b370

Function at 0x40ba10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x40ba40
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x40ba64
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sub.KERNEL32.dll_GetLastError
Function at 0x41c110
Capabilities:
Start service

Disassembly:
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ecx + 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_StartServiceW
sub esp, 0xc
test eax, eax
je 0x41c150
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x420
je 0x41c13a
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0x22
mov esi, eax
mov dword [esp + 4], str.____Failed_to_start_driver_error:
mov dword [esp], 0x4a3660
call fcn.00494590
mov dword [esp], esi
mov ecx, 0x4a3660
call fcn.00461680
mov edi, eax
mov eax, dword [eax]
sub esp, 4
mov eax, dword [eax - 0xc]
mov esi, dword [edi + eax + 0x7c]
test esi, esi
je 0x41c20c
cmp byte [esi + 0x1c], 0
je 0x41c1e0
movsx eax, byte [esi + 0x27]
mov ecx, edi
mov dword [esp], eax
call fcn.00460430
sub esp, 4
mov ecx, eax
call fcn.004605e0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, dword [ebx]
sub esp, 4
mov dword [esp], eax
call sub.ADVAPI32.DLL_CloseServiceHandle
sub esp, 4
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov ecx, esi
call fcn.00425480
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov eax, 0xa
cmp edx, 0x425750
je 0x41c1a8
mov dword [esp], 0xa
mov ecx, esi
call edx
sub esp, 4
movsx eax, al
jmp 0x41c1a8
call fcn.00494c90
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x41d840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1b
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x84]
mov esi, str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_http:__gcc.gnu.org_bugs.html_:_n
sub esp, 0x9c
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
lea eax, [edx + 1]
mov dword [ebp - 0x8c], eax
lea eax, [edx + 0x8a]
and eax, 0xfffffff0
call fcn.0040b680
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x84]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
movzx eax, word [esi]
mov word [edi], ax
movzx eax, byte [esi + 2]
mov byte [edi + 2], al
lea eax, [ebx + 0x6b]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x8c]
mov byte [ebx + eax + 0x6a], 0
mov dword [esp], ebx
call fcn.00494ea0
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3adc], 0
jne 0x41d914
mov byte [0x4a3adc], 1
call fcn.0049b1d0
test eax, eax
je 0x41d9ae
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.0040a980
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d90a
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a4651
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
je 0x41d941
call fcn.0049b5d0
mov dword [esp], ebp
call sub.msvcrt.dll_fputs
jmp 0x41d8db
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
mov dword [esp], ebp
call fcn.0041a660
jmp 0x41d905
call sub.msvcrt.dll_abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x41d9a9
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x68ab73c4
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x30942273
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407411
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc8c], 0
jne 0x40744f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407425
mov dword [ecx*4 + 0x46bc88], eax
inc ecx
cmp ecx, 0x100
jl 0x407420
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40747c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc88]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40745d
not eax
pop ebp
ret 0xc

Function at 0x4010a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x10], 1
pushal
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x10]
push 0
push 0x44
push esi
call fcn.0040103a
push 0
push 0x10
push edi
call fcn.0040103a
mov dword [ebp - 0x54], 0x44
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x401123
push dword [ebp + 8]
lea edx, [ebp - 0x25c]
push edx
call fcn.0040108e
lea edx, [ebp - 0x25c]
push edx
call fcn.0040104f
lea ecx, [ebp - 0x25c]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x25c]
push edx
call fcn.0040106f
lea eax, [ebp - 0x25c]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
popal
leave
ret 8
Function at 0x4727e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004723c7

Function at 0x4727eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00472556

Function at 0x472d0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042f620
mov eax, dword [0x49f100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004701bf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x472d50
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x472eac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00485160
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4ec910]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004742a1
mov ecx, dword [esi*4 + 0x4ec910]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x472ea5
cmp eax, dword [edi + ecx + 0x24]
jne 0x472ea5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x472ea5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004742a1
add esp, 0x14
test edx, edx
jl 0x472ea5
jg 0x472e1b
test eax, eax
jb 0x472ea5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x472ea5
jl 0x472e35
cmp dword [ebp - 0x1008], eax
ja 0x472ea5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x472e53
test ebx, ebx
je 0x472e8c
cmp ecx, edi
jae 0x472e8c
mov al, byte [ecx]
cmp al, 0xd
jne 0x472e6d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x472e79
cmp byte [ecx + 1], 0xa
jne 0x472e79
inc ecx
jmp 0x472e79
movzx eax, al
movsx eax, byte [eax + 0x49f3f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x472e53
cmp edx, ebx
jne 0x472e53
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x472eaa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042e0ad
leave
ret
Function at 0x47342a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4ec910]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47346a
cmp byte [ebx], 0xa
jne 0x47346a
or byte [eax + edi + 0x28], 4
jmp 0x47346f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x47356d
mov al, byte [edx]
cmp al, 0x1a
je 0x47354f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x47349e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4734c3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4734cd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x473480
jmp 0x47356d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47354a
cmp dword [ebp - 0xc], 0
je 0x47354a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ec910]
test byte [eax + edi + 0x28], 0x48
je 0x473524
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47350f
mov byte [esi], dl
jmp 0x473520
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ec910]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47356d
cmp byte [ebp - 1], 0xa
jne 0x473533
cmp esi, ebx
jne 0x473533
mov byte [esi], 0xa
jmp 0x47356c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004742bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47356d
mov byte [esi], 0xd
jmp 0x47356c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ec910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x473569
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47356d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x473576
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4ec910]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4735b9
cmp word [esi], dx
jne 0x4735b9
or byte [edi + eax + 0x28], 4
jmp 0x4735be
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x473711
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4736f1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x473600
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x473636
cmp eax, edx
jae 0x473642
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4735d8
jmp 0x473711
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4736ed
cmp dword [ebp - 0x14], 0
je 0x4736ed
mov eax, dword [ebx*4 + 0x4ec910]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4736c5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x47368e
mov word [esi], cx
jmp 0x4736c1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ec910]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ec910]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ec910]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x473711
pop ebx
cmp word [ebp - 4], bx
jne 0x4736d6
cmp esi, dword [ebp + 0xc]
jne 0x4736d6
mov word [esi], bx
jmp 0x47370e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004742bf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x473711
push 0xd
jmp 0x47370a
mov ecx, dword [ebx*4 + 0x4ec910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x473708
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x473711
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c56bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4c5715
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4c56ee
call fcn.00432666
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4c5703
call fcn.00432666
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4c5715
call fcn.00432666
call fcn.00453d93
cmp dword [eax + 0x3c], 0
je 0x4c572a
push edi
mov ecx, ebx
call fcn.004c4def
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004c58fc
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c5753
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c575f
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8