joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f542
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f538
mov eax, 1
add ebx, ebx
jne 0x40f55b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f550
jne 0x40f56c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f550
xor ecx, ecx
sub eax, 3
jb 0x40f580
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f5f2
mov ebp, eax
add ebx, ebx
jne 0x40f58b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f5bc
inc ecx
add ebx, ebx
jne 0x40f5a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f59d
jne 0x40f5b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f59d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f5dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f5cd
jmp 0x40f53e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f5dc
add edi, ecx
jmp 0x40f53e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f5fa
cmp byte [edi], 5
jne 0x40f5fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40f5ff
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f66e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1040c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x104c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f62c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x104c4]
or eax, eax
je 0x40f668
mov dword [ebx], eax
add ebx, 4
jmp 0x40f649
call dword [esi + 0x104d4]
mov ebp, dword [esi + 0x104c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f6a2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4013b2
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a318]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a31c]
mov dword [ebp - 0x2c], eax
call fcn.004013ab
mov esi, dword [ebp - 0x10]
mov ecx, dword [0x41a320]
add esi, 0x23f
mov eax, dword [0x41a324]
push 0x20
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x484de8], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x484de4]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x484de8], 0x3eb
mov dword [0x484de4], eax
mov eax, dword [0x484870]
cmove eax, dword [ebp - 0x1c]
mov dword [0x484870], eax
lea eax, [esi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [0x484de0], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0x484de8], 0xb03
mov dword [ebp - 4], eax
jne 0x4014df
push str.Poh_pabatosipixalilasexamupopajohija_xopitotazucepewifodufalejilemi_karemabuzaniyuzavegusaribufate
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
add esi, 0x61c88647
mov dword [ebp - 0x10], esi
dec edi
jne 0x401404
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d337
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407aeb
mov dword [ebp - 0x14], eax
cmp dword [0x43f57c], esi
jne 0x40d42a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d50a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d50a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d50a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43f57c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43f580], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43f584], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f58c], eax
test eax, eax
je 0x40d427
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f588], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d44f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d442
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d464
push 4
pop eax
jmp 0x40d50c
cmp dword [ebp - 0x14], esi
je 0x40d464
push dword [0x43f57c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d449
mov eax, dword [0x43f588]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4c2
cmp dword [0x43f58c], edi
je 0x40d4c2
push eax
call ebx
push dword [0x43f58c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4c2
test eax, eax
je 0x40d4c2
call ecx
test eax, eax
je 0x40d4b7
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 0x40d4b7
test byte [ebp - 8], 1
jne 0x40d4c2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4f2
mov eax, dword [0x43f580]
cmp eax, edi
je 0x40d4ef
push eax
call ebx
test eax, eax
je 0x40d4ef
call eax
mov esi, eax
test esi, esi
je 0x40d4ef
mov eax, dword [0x43f584]
cmp eax, edi
je 0x40d4ef
push eax
call ebx
test eax, eax
je 0x40d4ef
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43f57c]
call ebx
test eax, eax
je 0x40d50a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d50c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404010
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00404502
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00404502
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00404502
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00404502
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00404502
mov dword [0x41203c], eax
call fcn.00404502
test eax, eax
jge 0x402550
push 8
call fcn.00404502
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00404502
pop ecx
push 1
call fcn.00404502
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00404502
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00404502
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00404502
jmp 0x402495

Function at 0x404502
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x404511
pop dword [ebp - 0x28]
mov eax, 0x7963ee86
sub eax, 0x7923a975
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x36b06
push 0
mov eax, 0x63b30086
add eax, 0x9c8de052
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x5aa5a6e8
add ecx, 0xa55a970c
mov ebx, eax
mov edx, 0x1c9ba54d
add edx, 0xe3a59677
add edx, dword [ebp - 0x28]
mov edi, 0xbe035e60
sub edi, 0x63366aaa
xor dword [ebp - 4], 0xad7db368
mov esi, dword [edx]
mov dword [ebp - 0x1c], 0x8616206b
sub esi, edi
mov dword [ebp - 0x18], 0x193185bd
mov dword [ebx], esi
sub dword [ebp - 0x14], edx
add ebx, 0x131c55a
sub ebx, 0x131c556
add edx, 0xc3cb000c
add edx, 0x3c34fff8
loop 0x404570
add eax, 0x507ef10
add eax, 0xfaf8fb93
mov ebx, eax
add eax, 0x63862da9
add eax, 0x9c79d25c
mov ecx, 0x8f44e3f1
add ecx, 0x70fb1c0f
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x448035
Capabilities:
Delete file
Terminate process

Disassembly:
mov eax, dword [0x479000]
test eax, eax
jne 0x448046
mov eax, 0x478f10
sub eax, 0xc
add eax, 0xc
mov dword [0x479000], eax
cmp eax, 0x479000
jb 0x448064
mov ecx, 0x3ef
call fcn.0043ef84
jmp fcn.0043938c
push 0x20
pop ecx
call fcn.004524a1
mov ecx, dword [0x479000]
mov dword [ecx], eax
mov dword [ecx + 4], eax
add eax, 0x20
mov dword [ecx + 8], eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, 0x811c9dc5
xor ecx, ecx
movsx eax, byte [ebp + ecx + 8]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x45b79f
mov eax, edx
xor edx, edx
div dword [0x465648]
mov eax, edx
pop ebp
ret 4

Function at 0x45cab7
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x45da00
call fcn.0045d480
push 1
call fcn.0045cf64
pop ecx
test al, al
je 0x45caa1
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0045cf32
mov byte [ebp - 0x24], al
mov eax, dword [0x465a74]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x45caa1
test eax, eax
jne 0x45c9bf
mov dword [0x465a74], ecx
push 0x401028
push 0x401014
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x45c9a2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x45ca91
push 0x401010
push section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x465a74], 2
jmp 0x45c9c4
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0045d0b8
pop ecx
call fcn.0045d246
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x45c9f5
push esi
call fcn.0045d024
pop ecx
test al, al
je 0x45c9f5
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x47c258]
call esi
call fcn.0045d24c
mov esi, eax
cmp dword [esi], edi
je 0x45ca13
push esi
call fcn.0045d024
pop ecx
test al, al
je 0x45ca13
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_wide_environment
mov edi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv
mov esi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
push edi
push esi
push dword [eax]
call main
add esp, 0xc
mov esi, eax
call fcn.0045d372
test al, al
je 0x45caa8
test bl, bl
jne 0x45ca46
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.0045d0d5
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x45ca91
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0045d252
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.0051b000
jmp 0x45c935
Function at 0x10023020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10070054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x38], ecx
call fcn.1001e4f0
mov word [ebp - 0x3e], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x3e]
push ecx
call fcn.1001e500
add esp, 8
movzx edx, al
test edx, edx
je 0x10023065
lea eax, [ebp + 8]
push eax
call fcn.10024c90
add esp, 4
jmp 0x10023208
mov ecx, dword [ebp - 0x38]
call fcn.10008570
test eax, eax
je 0x100230af
mov ecx, dword [ebp - 0x38]
call fcn.10008570
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.10024490
cmp esi, eax
jae 0x100230af
lea ecx, [ebp + 8]
push ecx
call fcn.1001e530
add esp, 4
mov word [ebp - 0x40], ax
mov ecx, dword [ebp - 0x38]
call fcn.1001e540
mov dx, word [ebp - 0x40]
mov word [eax], dx
mov ax, word [ebp + 8]
jmp 0x10023208
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x4c], 0
jne 0x100230c2
call fcn.1001e4f0
jmp 0x10023208
mov ecx, dword [ebp - 0x38]
call fcn.10024010
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x38], 0
jne 0x10023120
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x50], eax
lea ecx, [ebp + 8]
push ecx
call fcn.1001e530
add esp, 4
mov word [ebp - 0x42], ax
mov edx, dword [ebp - 0x50]
push edx
movzx eax, word [ebp - 0x42]
push eax
call fcn.10020920
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1002310e
mov dx, word [ebp + 8]
mov word [ebp - 0x3a], dx
jmp 0x10023117
call fcn.1001e4f0
mov word [ebp - 0x3a], ax
mov ax, word [ebp - 0x3a]
jmp 0x10023208
mov dword [ebp - 0x58], 0x20
lea eax, [ebp + 8]
push eax
call fcn.1001e530
add esp, 4
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2a]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x38]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x54]
call fcn.1001ffe0
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x10023181
cmp dword [ebp - 0x48], 1
je 0x10023181
cmp dword [ebp - 0x48], 3
je 0x100231cf
jmp 0x10023203
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x4c], ecx
je 0x100231b3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1003f3ab
add esp, 0x10
cmp dword [ebp - 0x4c], eax
je 0x100231b3
call fcn.1001e4f0
jmp 0x10023208
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3e], 1
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x34], edx
je 0x100231c8
mov ax, word [ebp + 8]
jmp 0x10023208
call fcn.1001e4f0
jmp 0x10023208
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, word [ebp - 0x2c]
push edx
call fcn.10020920
add esp, 8
movzx eax, al
test eax, eax
je 0x100231f4
mov cx, word [ebp + 8]
mov word [ebp - 0x3c], cx
jmp 0x100231fd
call fcn.1001e4f0
mov word [ebp - 0x3c], ax
mov ax, word [ebp - 0x3c]
jmp 0x10023208
call fcn.1001e4f0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003477d
mov esp, ebp
pop ebp
ret 4
Function at 0x100240a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10070054]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x100240c7
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x100240ce
mov al, 1
jmp 0x100241bd
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x48], edx
call fcn.1001e4f0
mov word [ebp - 0x32], ax
movzx eax, word [ebp - 0x32]
push eax
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x48]
mov word [ebp - 0x34], ax
call fcn.1001e4f0
mov word [ebp - 0x36], ax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x36]
push edx
call fcn.1001e500
add esp, 8
movzx eax, al
test eax, eax
je 0x10024118
xor al, al
jmp 0x100241bd
mov dword [ebp - 0x50], 0x20
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.10020020
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x1002415a
cmp dword [ebp - 0x3c], 1
je 0x10024161
cmp dword [ebp - 0x3c], 3
je 0x100241b0
jmp 0x100241bb
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3e], 0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x40], edx
je 0x10024190
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x40]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.1003f3ab
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x10024190
xor al, al
jmp 0x100241bd
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3e]
test eax, eax
jne 0x100241a4
mov dword [ebp - 0x44], 1
jmp 0x100241ab
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
jmp 0x100241bd
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3e], 0
mov al, 1
jmp 0x100241bd
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003477d
mov esp, ebp
pop ebp
ret
Function at 0x10026880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10070054]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x100268aa
jl 0x100268a1
cmp dword [ebp + 0xc], 0
ja 0x100268aa
xor eax, eax
xor edx, edx
jmp 0x100269eb
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x100268cc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10006b90
jmp 0x100269eb
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.10008430
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x1002693b
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.1000bcb0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.10008590
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10009ac0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10008510
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x100269dc
mov ecx, dword [ebp - 0x10]
call fcn.100273d0
mov dword [ebp - 0x2c], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x100269ab
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1003fdc9
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x100269a9
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x100269eb
jmp 0x10026957
cmp dword [ebp - 8], 0
jbe 0x100269dc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1003fdc9
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003477d
mov esp, ebp
pop ebp
ret 0xc