joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100016c0
Capabilities:
Allocate or change rwx memory
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, ecx
test edx, edx
je 0x100017d9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x100017d9
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100017c9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, ecx
or eax, edx
je 0x100017c9
test edx, edx
ja 0x100017c9
jb 0x10001731
cmp ecx, 0xffffffff
ja 0x100017c9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000173a
mov dword [eax], ecx
test edi, edi
je 0x1000174c
push edx
push ecx
mov ecx, edi
call fcn.10001ac0
add esp, 8
jmp 0x1000175c
push 0x40
push 0x3000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [ebp + 8]
mov dword [esi], eax
test eax, eax
je 0x100017c9
push dword [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.10001660
add esp, 0xc
test eax, eax
je 0x100017a9
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x10001792
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffffff
je 0x1000179e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x100017ba
push dword [esi]
push edi
call fcn.10001d80
add esp, 8
jmp 0x100017c9
push 0x8000
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x100017d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003070
Capabilities:
Hash data using fnv

Disassembly:
mov edx, ecx
test edx, edx
jne 0x10003079
xor eax, eax
ret
mov cl, byte [edx]
push esi
mov esi, 0x811c9dc5
test cl, cl
je 0x100030a5
lea eax, [ecx - 0x41]
cmp al, 0x19
movsx eax, cl
ja 0x10003092
add eax, 0x20
mov cl, byte [edx + 1]
movzx eax, al
inc edx
xor esi, eax
imul esi, esi, 0x1000193
test cl, cl
jne 0x10003085
mov eax, esi
pop esi
ret
Function at 0x10004190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [esi]
mov ebx, edx
lea eax, [ecx + 1]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
test eax, eax
je 0x100041cc
push dword [ebp + 0x10]
push 0
push 0
push 0
push ecx
push dword [ebx + 0x1c]
push 1
push edi
call eax
add esp, 0x20
test eax, eax
je 0x100042bf
cmp edi, 0xffffffff
je 0x100042bf
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x10038290
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100042bf
cmp dword [ebp - 4], 1
jne 0x100042bf
mov eax, dword [ebx + 0x1c]
xor esi, esi
test eax, eax
je 0x10004217
cmp byte [eax], 0
je 0x10004217
lea esp, [esp]
inc esi
cmp byte [eax + esi], 0
jne 0x10004210
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100042bf
cmp esi, dword [ebp - 4]
jne 0x100042bf
push 0
lea eax, [ebp - 4]
push eax
push 3
push 0x10038294
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100042bf
cmp dword [ebp - 4], 3
jne 0x100042bf
mov eax, dword [ebx + 0x20]
mov dword [ebp - 4], 0
mov esi, dword [eax + 8]
test esi, esi
je 0x1000428e
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push dword [ebp + 0xc]
mov edx, ebx
push eax
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.100042d0
add esp, 0x14
test eax, eax
je 0x100042bf
mov eax, dword [esi + 0xc]
mov esi, dword [eax + 8]
test esi, esi
jne 0x10004266
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100042a1
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebx + 0x1c]
push 4
push edi
call eax
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100042d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebx + 0x20]
push edi
mov dword [ebp - 4], edx
mov edi, ecx
test esi, esi
je 0x100042fb
xor eax, eax
cmp byte [esi], al
je 0x100042fb
mov edi, edi
inc eax
cmp byte [esi + eax], 0
jne 0x100042f0
test eax, eax
jne 0x10004313
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x18]
test byte [eax + 8], 0x20
je 0x10004313
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test esi, esi
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov ecx, 0x10038298
cmovne ecx, esi
mov dword [ebp - 8], ecx
test eax, eax
je 0x10004355
push dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp - 4]
push edx
push dword [ebx + 0x1c]
push dword [ebp + 8]
push dword [ecx + 0x1c]
push 2
push edi
call eax
add esp, 0x20
test eax, eax
je 0x100043f5
mov eax, dword [ebx + 0x1c]
xor esi, esi
test eax, eax
je 0x1000436a
cmp byte [eax], 0
je 0x1000436a
inc esi
cmp byte [eax + esi], 0
jne 0x10004363
cmp edi, 0xffffffff
je 0x100043f5
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp + 0xc]
push ecx
push esi
push eax
push edi
call ebx
test eax, eax
je 0x100043f5
cmp esi, dword [ebp + 0xc]
jne 0x100043f5
push 0
lea eax, [ebp + 0xc]
push eax
push 3
push 0x1003829c
push edi
call ebx
test eax, eax
je 0x100043f5
cmp dword [ebp + 0xc], 3
jne 0x100043f5
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.10004400
test eax, eax
je 0x100043f5
push 2
push 0x100382a0
push edi
call fcn.10001930
add esp, 0xc
test eax, eax
je 0x100043f5
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10004307
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push dword [ebp - 0xc]
push dword [ecx + 0x1c]
push 4
push edi
call eax
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
push esi
mov al, byte [ebx]
xor edx, edx
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov esi, 1
mov edi, ebx
test al, al
je 0x10004543
jmp 0x10004430
movzx eax, al
mov al, byte [eax + 0x1003c4d8]
cmp al, 8
jne 0x10004446
test esi, esi
jne 0x10004465
lea edx, [esi + 1]
jmp 0x10004454
cmp al, 5
je 0x10004465
cmp al, 1
jne 0x10004452
test esi, esi
jne 0x10004465
xor edx, edx
mov al, byte [edi + 1]
inc dword [ebp - 8]
inc edi
xor esi, esi
test al, al
jne 0x10004430
xor eax, eax
jmp 0x1000446a
mov eax, 1
test edx, edx
jne 0x10004476
test eax, eax
je 0x10004543
cmp ecx, 0xffffffff
je 0x1000456f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 1
push 0x100382a4
push ecx
call edi
test eax, eax
je 0x1000456f
cmp dword [ebp - 8], 1
jne 0x1000456f
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x10004527
nop
cmp al, 0x22
jne 0x10004503
cmp ebx, esi
je 0x100044e4
push 0
lea eax, [ebp - 8]
push eax
mov edi, esi
sub edi, ebx
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000456f
cmp edi, dword [ebp - 8]
jne 0x1000456f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x100382a8
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000456f
cmp dword [ebp - 0xc], 2
jne 0x1000456f
lea ebx, [esi + 1]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100044b0
cmp esi, ebx
jbe 0x10004527
push 0
lea eax, [ebp - 0xc]
push eax
sub esi, ebx
push esi
push ebx
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000456f
cmp esi, dword [ebp - 0xc]
jne 0x1000456f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0x100382a4
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000456f
cmp dword [ebp - 0xc], 1
jmp 0x10004561
cmp ecx, 0xffffffff
je 0x1000456f
mov esi, dword [ebp - 8]
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000456f
cmp esi, dword [ebp - 0xc]
jne 0x1000456f
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004d50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0x10], esi
test esi, esi
je 0x10004e3f
test edx, edx
je 0x10004e3f
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
je 0x10004e3f
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
test ebx, ebx
je 0x10004db8
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
call ebx
add esp, 0x20
test eax, eax
je 0x10004e0e
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], edi
mov esi, dword [eax + 8]
test esi, esi
je 0x10004dee
push edx
lea eax, [esp + 0x18]
push ebx
push eax
mov edx, esi
call fcn.10004190
add esp, 0xc
test eax, eax
je 0x10004e0e
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0xc]
mov esi, dword [eax + 8]
test esi, esi
je 0x10004dee
mov edx, dword [ebp + 0xc]
jmp 0x10004dc6
test ebx, ebx
jne 0x10004df7
lea edi, [ebx + 1]
jmp 0x10004e12
push dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 5
push ecx
call ebx
add esp, 0x20
mov edi, eax
mov ecx, dword [esp + 0xc]
cmp ecx, 0xffffffff
je 0x10004e1e
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x10004e38
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 4], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e400
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f344
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1003b150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.100116f0
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.100116f0
mov dword [edi + 8], eax
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.100117b0
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.100116c0
mov dword [edi + 0x18], eax
lea esi, [edi + 0x20]
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10011720
mov dword [esi], eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 4
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.10011720
mov dword [esi + 8], eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call fcn.10011750
mov dword [edi + 0x30], eax
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 6
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.10011780
mov dword [edi + 0x38], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001f800
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
mov eax, dword [0x1003b150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x100330a0
push edi
mov esi, ecx
call fcn.100011c0
add esp, 0xc
cmp eax, 0x208
jae 0x1001f9e7
lea eax, [ebp - 0x414]
push eax
push 0x100330a0
push edi
call fcn.100011c0
add esp, 0xc
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, eax
mov dword [ebp - 0x558], ecx
cmp ecx, 0xffffffff
je 0x1001f9e7
jmp 0x1001f880
mov ecx, dword [ebp - 0x554]
test cl, 0x10
je 0x1001f912
lea eax, [ebp - 0x528]
push 0x100330a4
push eax
call fcn.10002eb0
add esp, 8
test eax, eax
je 0x1001f9c0
lea eax, [ebp - 0x528]
push 0x100330a8
push eax
call fcn.10002eb0
add esp, 8
test eax, eax
je 0x1001f9c0
push 0
lea eax, [ebp - 0x528]
push eax
push edi
call fcn.100011c0
add esp, 0xc
cmp eax, 0x208
jae 0x1001f9c0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x528]
push eax
push edi
call fcn.100011c0
add esp, 0xc
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.1001f800
jmp 0x1001f9c0
test cl, 0x40
jne 0x1001f9c0
mov eax, dword [esi]
cmp eax, 0x3e7
jae 0x1001f9db
cmp dword [ebp - 0x538], 0
jne 0x1001f9c0
cmp dword [ebp - 0x534], 0
jl 0x1001f9c0
imul eax, eax, 0x210
push 0
mov dword [eax + esi + 0x20], ebx
mov ecx, dword [esi]
mov eax, dword [ebp - 0x534]
imul ecx, ecx, 0x210
mov dword [ecx + esi + 0x24], eax
lea eax, [ebp - 0x528]
push eax
push edi
call fcn.100011c0
mov ecx, dword [esi + 0x80c90]
sub eax, ecx
add esp, 0xc
cmp eax, 0x208
jae 0x1001f9be
mov eax, dword [esi]
imul eax, eax, 0x210
add eax, 0x28
add eax, esi
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebx - 1]
neg eax
sbb eax, eax
neg eax
dec eax
add eax, ecx
add eax, edi
push eax
call fcn.100011c0
mov eax, dword [esi]
imul eax, eax, 0x210
add eax, 0x28
add eax, esi
push eax
call fcn.10002e00
add esp, 0x10
inc dword [esi]
lea eax, [ebp - 0x554]
push eax
push dword [ebp - 0x558]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001f880
push dword [ebp - 0x558]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10024154
mov esp, ebp
pop ebp
ret 8
Function at 0x10028e82
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003b150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.100286c7
mov dword [ebp - 0x14], eax
cmp dword [0x1003d260], edi
jne 0x10028f73
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10028f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10029053
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10029053
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10029053
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1003d260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1003d264], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1003d268], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1003d270], eax
test eax, eax
je 0x10028f70
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1003d26c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10028f98
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10028f8b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10028fad
push 4
pop eax
jmp 0x10029055
cmp dword [ebp - 0x14], edi
je 0x10028fad
push dword [0x1003d260]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10028f92
mov eax, dword [0x1003d26c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1002900b
cmp dword [0x1003d270], esi
je 0x1002900b
push eax
call ebx
push dword [0x1003d270]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1002900b
test eax, eax
je 0x1002900b
call ecx
test eax, eax
je 0x10029000
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10029000
test byte [ebp - 8], 1
jne 0x1002900b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1002903b
mov eax, dword [0x1003d264]
cmp eax, esi
je 0x10029038
push eax
call ebx
test eax, eax
je 0x10029038
call eax
mov edi, eax
test edi, edi
je 0x10029038
mov eax, dword [0x1003d268]
cmp eax, esi
je 0x10029038
push eax
call ebx
test eax, eax
je 0x10029038
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1003d260]
call ebx
test eax, eax
je 0x10029053
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10029055
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10024154
leave
ret
Function at 0x10b6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10b61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10b607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b606a
add dl, dl
jne 0x10b6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b60dc
xor eax, eax
add dl, dl
jne 0x10b6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b617d
add dl, dl
jne 0x10b60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10b60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10b6075
mov eax, 1
add dl, dl
jne 0x10b60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b60e1
sub eax, ebx
mov ebx, 1
jne 0x10b6128
mov ecx, 1
add dl, dl
jne 0x10b610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10b613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b6136
cmp eax, 0x7d00
jae 0x10b616d
cmp eax, 0x500
jb 0x10b6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b6075
cmp eax, 0x7f
ja 0x10b6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10b619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10b6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000eaa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push esi
mov dword [ebp - 8], esi
call fcn.101fe1f8
pop ecx
test eax, eax
jne 0x1000eb43
push 2
push eax
push esi
call fcn.101fef2f
push esi
call fcn.101fa89a
push 0
push 0
push esi
mov edi, eax
call fcn.101fef2f
mov eax, dword [ebx + 4]
add esp, 0x1c
mov edx, dword [ebx]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 4], eax
cmp edi, ecx
jae 0x1000eaf2
lea eax, [edx + edi]
jmp 0x1000eb22
jbe 0x1000eb25
mov eax, dword [ebx + 8]
sub eax, edx
cmp edi, eax
jbe 0x1000eb08
push ecx
push edi
mov ecx, ebx
call fcn.10021fad
jmp 0x1000eb25
mov esi, edi
sub esi, ecx
push esi
push 0
push dword [ebp - 4]
call fcn.101f69f0
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 8]
mov dword [ebx + 4], eax
push esi
push edi
push 1
push dword [ebx]
call fcn.1020725a
add esp, 0x10
cmp eax, edi
jne 0x1000eb43
push esi
call fcn.101fe9e4
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push str.error_reading_from_file
lea ecx, [ebp - 0x14]
call fcn.100017f1
push 0x102cf844
lea eax, [ebp - 0x14]
push eax
call fcn.101f704b
int3

Function at 0x1000ef17
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp dword [ecx + 0x14], 0xf
mov eax, ecx
push esi
push edi
mov esi, 0x811c9dc5
jbe 0x1000ef2c
mov eax, dword [ecx]
mov edi, eax
jmp 0x1000ef2e
mov edi, ecx
mov ecx, dword [ecx + 0x10]
mov edx, eax
add ecx, edi
cmp eax, ecx
je 0x1000ef49
movsx eax, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, ecx
jne 0x1000ef39
pop edi
mov eax, esi
pop esi
ret
Function at 0x10012b16
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10012b3a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x1001357a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x10012b41
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x102d94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 8], ebx
xor eax, eax
push 0x260e
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.1001da82
mov esi, eax
mov dword [esp], 0x260e
push edi
mov dword [ebx], esi
push esi
lea eax, [esi + 0x260e]
mov dword [ebx + 8], eax
call fcn.101f69f0
lea eax, [esi + 0x260e]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 7
jbe 0x10012bac
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
mov esi, eax
push 0xcf459
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x260e
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f469d
leave
ret
Function at 0x100142d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x100142fd
jl 0x100142f4
test ebx, ebx
jne 0x100142fd
xor eax, eax
xor edx, edx
jmp 0x100143b5
cmp dword [ecx + 0x38], 0
je 0x10014310
push esi
push ebx
push edx
call fcn.10015a86
jmp 0x100143b5
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10014350
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x10014350
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.101f6470
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x100143ab
call fcn.100173b4
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x10014393
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.1020725a
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x100143ab
jmp 0x10014360
test edx, edx
je 0x100143ab
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.1020725a
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc