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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x435100]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x424832
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x424934
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4248e2
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424935
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4248d7
cmp dword [ebp - 0x24], 1
jne 0x4248d7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x42ae94
push eax
call fcn.0040f26f
add esp, 0xc
cmp eax, 1
jne 0x4248d7
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424935
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x424935
lea ecx, [ebp - 0x18]
push ecx
push 0x42477a
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x424935
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x42495b
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.004246fb
cmp eax, ebx
pop ecx
pop ecx
jne 0x42495d
inc edi
cmp edi, esi
jl 0x424944
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040dd5e
leave
ret 4
Function at 0x42496c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4347fc
je 0x424a28
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424a10
mov esi, dword [ebx + 4]
jmp 0x424a0a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4249fa
cmp dword [ebp - 0xc], 4
jne 0x4249fa
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4249f2
or dword [eax + 0x9c], ecx
jmp 0x4249fa
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4249be
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4249a1
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x424de1
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x427da0
call fcn.0040ea60
sub esp, 0x11c
mov eax, dword [0x435100]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x424eda
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x424eae
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004042cd
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00424de1
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401310
test bl, bl
jne 0x424eae
or dword [ebp - 4], 0xffffffff
jmp 0x424e1f
cmp esi, 0x103
je 0x424ebe
cmp esi, 0x3f2
jne 0x424ece
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040dd5e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x425450
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x425485
cmp edi, dword [esi + 0xc]
jge 0x425485
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425485
cmp edi, dword [eax + 8]
jge 0x425485
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x425487
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42558b
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4255bf
jmp fcn.0041a0f5
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x425630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x425729
cmp eax, dword [edi + 0xc]
jge 0x425729
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x425681
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x425712
cmp dword [ebp + 0xc], ebx
je 0x425712
jmp 0x4256ab
push 0x10
call fcn.0042531c
cmp eax, ebx
je 0x425697
mov ecx, eax
call fcn.00425582
mov esi, eax
jmp 0x425699
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4256c2
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4256d2
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4256e4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041a0f5
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040ea00
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x425724
cmp ecx, dword [esi + 8]
jge 0x425724
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42572a
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4257e9
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 0x425817
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425835
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00425753
jmp 0x425835
mov eax, dword [esi + 0x14]
test eax, eax
je 0x425835
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00425753
test edi, edi
mov eax, edi
jne 0x42581f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x437e2c]
test ecx, ecx
je 0x4258e8
jmp 0x4257e8
ret 8
Function at 0x4246e4
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4c090c
mov eax, esi
mov edx, 8
test al, 1
je 0x424700
shr eax, 1
xor eax, 0xedb88320
jmp 0x424702
shr eax, 1
dec edx
jne 0x4246f3
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4246ec
pop esi
ret

Function at 0x424718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4c0908], 0
jne 0x424742
call fcn.004246e4
mov dword [esp], 0x4c0908
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x42476c
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4c090c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x424748
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x44e92c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4c090c
mov eax, esi
mov edx, 8
test al, 1
je 0x44e948
shr eax, 1
xor eax, 0xedb88320
jmp 0x44e94a
shr eax, 1
dec edx
jne 0x44e93b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x44e934
pop esi
ret

Function at 0x44e960
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4c0908], 0
jne 0x44e98a
call fcn.0044e92c
mov dword [esp], 0x4c0908
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x44e9b4
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4c090c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x44e990
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x478b74
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4c090c
mov eax, esi
mov edx, 8
test al, 1
je 0x478b90
shr eax, 1
xor eax, 0xedb88320
jmp 0x478b92
shr eax, 1
dec edx
jne 0x478b83
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x478b7c
pop esi
ret

Function at 0x478ba8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4c0908], 0
jne 0x478bd2
call fcn.00478b74
mov dword [esp], 0x4c0908
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x478bfc
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4c090c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x478bd8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a2dbc
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x4c090c
mov eax, esi
mov edx, 8
test al, 1
je 0x4a2dd8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4a2dda
shr eax, 1
dec edx
jne 0x4a2dcb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4a2dc4
pop esi
ret
Function at 0x4a2df0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x4c0908], 0
jne 0x4a2e1a
call fcn.004a2dbc
mov dword [esp], 0x4c0908
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x4a2e44
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x4c090c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4a2e20
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi
Function at 0x403df2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x403e20
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x403e27
cmp ebx, dword [eax + 4]
jae 0x403e27
xor eax, eax
jmp 0x404017
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403e38
xor eax, eax
inc eax
jmp 0x404016
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x403e4e
cmp ecx, edx
jae 0x403f93
cmp dword [eax + 4], 0
je 0x403e57
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403e3f
cmp dword [ebp + 8], 0
je 0x403e79
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403f93
cmp eax, esi
jae 0x403f93
mov eax, dword [0x407478]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x403e9e
cmp dword [esi*4 + 0x407480], edi
je 0x403f97
inc esi
cmp esi, eax
jl 0x403e8c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4050a8]
test eax, eax
je 0x404013
cmp dword [ebp - 8], 0x1000000
jne 0x404013
test byte [ebp - 0xc], 0xcc
je 0x403f1c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x404013
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404013
cmp word [eax + 0x18], 0x10b
jne 0x404013
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x404013
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403f1c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403f1c
test byte [ecx + 0x27], 0x80
jne 0x403f93
push 1
push 0x4074c0
call dword [0x4050a4]
test eax, eax
jne 0x403e30
mov ecx, dword [0x407478]
test ecx, ecx
mov edx, ecx
jle 0x403f50
lea eax, [ecx*4 + 0x40747c]
cmp dword [eax], edi
je 0x403f50
dec edx
sub eax, 4
test edx, edx
jg 0x403f44
test edx, edx
jne 0x403f81
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403f5d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403f75
lea eax, [edx*4 + 0x407480]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403f63
cmp ecx, 0x10
jge 0x403f81
inc ecx
mov dword [0x407478], ecx
push 0
push 0x4074c0
call dword [0x4050a4]
jmp 0x403e30
xor eax, eax
jmp 0x404016
test esi, esi
jle 0x403e30
mov ebx, dword [0x4050a4]
push 1
push 0x4074c0
call ebx
test eax, eax
jne 0x403e30
cmp dword [esi*4 + 0x407480], edi
je 0x403fed
mov eax, dword [0x407478]
lea esi, [eax - 1]
test esi, esi
jl 0x403fdb
cmp dword [esi*4 + 0x407480], edi
je 0x403fd7
dec esi
jns 0x403fcb
test esi, esi
jge 0x403feb
cmp eax, 0x10
jge 0x403fe6
inc eax
mov dword [0x407478], eax
lea esi, [eax - 1]
jmp 0x403fed
je 0x404005
xor ecx, ecx
test esi, esi
jl 0x404005
lea eax, [ecx*4 + 0x407480]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403ff3
push 0
push 0x4074c0
call ebx
jmp 0x403e30
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c0fe2
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004c1061
jae 0x4c0fee
xor ecx, ecx
call fcn.004c1061
jae 0x4c1018
xor eax, eax
call fcn.004c1061
jae 0x4c1029
mov al, 0x10
call fcn.004c1061
adc al, al
jae 0x4c100a
jne 0x4c1056
stosb byte es:[edi], al
jmp 0x4c0fef
call fcn.004c106d
dec ecx
loop 0x4c1035
mov eax, ebp
call fcn.004c106b
jmp 0x4c1057
lodsb al, byte [esi]
shr eax, 1
je 0x4c107d
adc ecx, 2
mov ebp, eax
jmp 0x4c1057
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004c106b
cmp eax, 0x7d00
jae 0x4c1055
cmp eax, 0x500
jae 0x4c1056
cmp eax, 0x7f
ja 0x4c1057
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4c0fef
pop ebp
ret 8
Function at 0x401080
Capabilities:
Accept command line arguments
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42333c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x179c
call fcn.004140a0
push ebx
push esi
push edi
push 0x90c
push 0
lea eax, [ebp - 0x918]
push eax
call fcn.00413d40
add esp, 0xc
push 0x4242fc
call fcn.00413d17
add esp, 4
push eax
push 0x4242fc
lea ecx, [ebp - 0x898]
push ecx
call fcn.00413cda
add esp, 0xc
push 0x4242fc
call fcn.00413d17
add esp, 4
push eax
push 0x4242fc
lea edx, [ebp - 0x918]
push edx
call fcn.00413cda
add esp, 0xc
mov word [ebp - 0x18], 0
mov word [ebp - 0x16], 0
mov dword [ebp - 0xd1c], 0
push 0x400
push 0
lea eax, [ebp - 0xd18]
push eax
call fcn.00413d40
add esp, 0xc
push 0x1ff
lea ecx, [ebp - 0xd18]
push ecx
push 0
call dword [0x4240c4]
lea edx, [ebp - 0xd18]
push edx
push 0x200
lea eax, [ebp - 0x818]
push eax
call dword [0x428074]
add esp, 0xc
push 0
lea ecx, [ebp - 0xd18]
push ecx
call fcn.00412666
mov dword [ebp - 0xd1c], eax
cmp dword [ebp - 0xd1c], 0
jle 0x401318
mov edx, dword [ebp - 0xd1c]
push edx
call fcn.00413ccc
add esp, 4
mov dword [ebp - 0x1760], eax
mov eax, dword [ebp - 0x1760]
mov dword [ebp - 0xd20], eax
cmp dword [ebp - 0xd20], 0
je 0x401318
mov ecx, dword [ebp - 0xd20]
push ecx
mov edx, dword [ebp - 0xd1c]
push edx
push 0
lea eax, [ebp - 0xd18]
push eax
call fcn.00412660
test eax, eax
je 0x4012fd
mov dword [ebp - 0x1124], 0
mov dword [ebp - 0x1128], 0
lea ecx, [ebp - 0x1128]
push ecx
lea edx, [ebp - 0x1124]
push edx
push 0x4242f8
mov eax, dword [ebp - 0xd20]
push eax
call fcn.0041265a
mov ecx, dword [ebp - 0x1124]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x112c], edx
mov eax, dword [ebp - 0x112c]
shr eax, 0x10
mov word [ebp - 0x1130], ax
mov ecx, dword [ebp - 0x112c]
and ecx, 0xffff
mov word [ebp - 0x1134], cx
mov edx, dword [ebp - 0x1134]
and edx, 0xffff
and edx, 0xff
and edx, 0xff
and edx, 0xff
and edx, 0xff
mov eax, dword [ebp - 0x1130]
and eax, 0xffff
and eax, 0xff
and eax, 0xff
and eax, 0xff
and eax, 0xff
shl eax, 8
or edx, eax
mov word [ebp - 0x18], dx
mov ecx, dword [ebp - 0x1124]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x112c], edx
mov eax, dword [ebp - 0x112c]
shr eax, 0x10
mov word [ebp - 0x1130], ax
mov ecx, dword [ebp - 0x112c]
and ecx, 0xffff
mov word [ebp - 0x1134], cx
mov edx, dword [ebp - 0x1134]
and edx, 0xffff
and edx, 0xff
and edx, 0xff
and edx, 0xff
and edx, 0xff
mov eax, dword [ebp - 0x1130]
and eax, 0xffff
and eax, 0xff
and eax, 0xff
and eax, 0xff
and eax, 0xff
shl eax, 8
or edx, eax
mov word [ebp - 0x16], dx
mov ecx, dword [ebp - 0xd20]
mov dword [ebp - 0x1764], ecx
mov edx, dword [ebp - 0x1764]
push edx
call fcn.0041266c
add esp, 4
lea eax, [ebp - 0x918]
push eax
call fcn.00413b00
add esp, 4
call fcn.00413b70
lea ecx, [ebp - 0x175c]
call fcn.0046b082
mov dword [ebp - 4], 0
call dword [0x4240cc]
push eax
lea ecx, [ebp - 0x175c]
call fcn.0047213d
mov dword [ebp - 0x1768], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x175c]
call fcn.0044f230
mov eax, dword [ebp - 0x1768]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401390
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42335b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004037f0
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [0x4240b8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], 0
jne 0x4013f2
call dword [0x4240bc]
push eax
push str.Could_not_open_file_mapping_object___d_._n
call fcn.004144f5
add esp, 8
jmp 0x401487
push 4
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [0x4240c0]
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x40142f
call dword [0x4240bc]
push eax
push str.Could_not_map_view_of_file___d_._n
call fcn.004144f5
add esp, 8
jmp 0x401487
push 0x1c
call fcn.00413ccc
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x401456
mov ecx, dword [ebp - 0x18]
call fcn.004014a0
mov dword [ebp - 0x1c], eax
jmp 0x40145d
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
push 4
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
call fcn.004141c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405790
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
mov word [ebp - 0x800], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x7fe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x804], 0
lea eax, [ebp + 0x10]
mov dword [ebp - 0x804], eax
mov ecx, dword [ebp - 0x804]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x3ff
push 0x400
lea eax, [ebp - 0x800]
push eax
call dword [0x428060]
add esp, 0x14
mov dword [ebp - 0x804], 0
lea ecx, [ebp - 0x800]
push ecx
call dword [0x424034]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret