joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a6d00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100a6e91
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100a6e91
mov eax, dword [0x100f3478]
cmp dword [eax + 0x174], 0xffffffff
je 0x100a6e91
mov eax, dword [0x100f3700]
add eax, 0xffffff91
xor eax, 0x8563df8
cmp dword [eax + ebx], 0
mov eax, dword [0x100f36c8]
setle cl
add eax, 0xffffff9f
xor eax, 0x8563dea
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x100f36bc]
add eax, 0xffffffa2
xor eax, 0x8563de7
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x100f36c0]
add eax, 0xffffffa1
xor eax, 0x8563de8
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x100f36c4]
lea eax, [ecx - 0x60]
xor eax, 0x8563de9
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100a6dee
lea eax, [ecx - 0x60]
xor eax, 0x8563de9
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100a6de6
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100a6dda
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100a6dd7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x100f36c4]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100a6da3
lea eax, [ecx - 0x60]
xor eax, 0x8563de9
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x100f348c]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100a6e82
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x100a6e46
xor edx, edx
test ecx, ecx
je 0x100a6e6c
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100a6e53
cmp edi, 0x79705c5e
je 0x100a6e77
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100a6e82
mov ecx, dword [ebp - 4]
jmp 0x100a6e30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x100a6e84
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x100f355c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100ac930
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c11ed
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100d0040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x100f3478]
mov edi, dword [esi + 0x174]
test edi, edi
setg byte [ebp - 0x14]
cmp dword [0x100d0148], 4
jne 0x100ac999
mov edx, dword [esi + 0x4cb0]
add edx, dword [esi + 0x4cac]
mov ecx, dword [0x100f3420]
push edx
push dword [esi + 0x4cb4]
mov eax, dword [ecx]
push dword [ebp - 0x14]
push edi
mov eax, dword [eax + 0xc]
call eax
cmp byte [0x100f86ec], 0
jne 0x100acacf
movaps xmm0, xmmword [0x100c65e0]
xor eax, eax
movaps xmm2, xmmword [0x100c6a30]
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x1c], 0xbabf
movaps xmm0, xmmword [0x100c67c0]
movups xmmword [ebp - 0x2c], xmm0
mov byte [ebp - 0x1a], 0xf9
nop
movups xmm0, xmmword [ebp + eax - 0x3c]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0x3c], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x100ac9d0
cmp eax, 0x23
jae 0x100ac9fb
nop dword [eax]
xor byte [ebp + eax - 0x3c], 0xf9
inc eax
cmp eax, 0x23
jb 0x100ac9f0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x54], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100aca16
sub ecx, edx
lea eax, [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10026800
mov dword [ebp - 4], 0
mov edx, dword [0x100f33d8]
test edx, edx
je 0x100aca42
mov edx, dword [edx + 0x50]
jmp 0x100aca44
xor edx, edx
mov eax, dword [0x100f33d0]
test eax, eax
je 0x100aca52
mov eax, dword [eax + 0x18]
jmp 0x100aca54
xor eax, eax
lea ecx, [ebp - 0x54]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.10045b70
mov edi, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x40]
inc edi
cmp ecx, 0xf
jbe 0x100aca9e
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100aca94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100aca94
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100b8a97
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 0x14], 0
call esi
lea eax, [ebp - 0x14]
mov dword [edi], 0x3e
push eax
push dword [ebp - 0x14]
push 4
push edi
call esi
mov byte [0x100f86ec], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b861c
mov esp, ebp
pop ebp
ret
Function at 0x10015190
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10015354
pushal
mov esi, 0x4bee000
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x100151ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100151c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100151b0
mov eax, 1
add ebx, ebx
jne 0x100151d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100151c8
jne 0x100151e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100151c8
xor ecx, ecx
sub eax, 3
jb 0x100151f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001526a
mov ebp, eax
add ebx, ebx
jne 0x10015203
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10015210
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10015234
inc ecx
add ebx, ebx
jne 0x10015220
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10015215
jne 0x10015231
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10015215
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10015254
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10015245
jmp 0x100151b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10015254
add edi, ecx
jmp 0x100151b6
pop esi
mov edi, esi
mov ecx, 0x312
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10015272
cmp byte [edi], 5
jne 0x10015272
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 0x10015277
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x100152e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x151b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x151e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100152a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x151e4]
or eax, eax
je 0x100152e0
mov dword [ebx], eax
add ebx, 4
jmp 0x100152c1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10015317
cmp al, 0xef
ja 0x1001530a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100152ec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100152f9
mov ebp, dword [esi + 0x151e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x1001534b
sub esp, 0xffffff80
jmp 0x10004c25
Function at 0x1001ad7a
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
jne 0x1001ad9d
mov eax, 0x8876086c
jmp 0x1001aeb2
cmp dword [ebp + 0xc], esi
push ebx
je 0x1001ae35
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x1001ae15
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.10159ea0
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x1001adf9
mov eax, 0x8007000e
jmp 0x1001aeb1
push esi
push esi
push dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x1001ae35
push esi
push 0x10000000
push 3
push esi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1001ae4e
push esi
push 0x10000000
push 3
push esi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 4]
mov dword [edi], eax
call fcn.10159b50
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x1001ae9f
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x1001ae9f
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x1001ae9f
cmp eax, esi
je 0x1001aeac
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x1001aeaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x1001aeb1
mov dword [edi + 8], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x1001b6a0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x1001b710
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x101c4a0c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001b707
cmp dword [ebp - 0xc], 4
jne 0x1001b707
cmp dword [ebp - 0x10], edi
je 0x1001b707
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1023ec90], edi
xor eax, eax
jmp 0x1001b74f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1023ec90], edi
jge 0x1001b74a
lea eax, [ebp - 0x34]
push eax
mov dword [0x1023ec90], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x1001b74a
cmp word [ebp - 0x14], 5
jb 0x1001b74a
call fcn.1001b678
test eax, eax
je 0x1001b74a
emms
mov dword [0x1023ec90], 1
mov eax, dword [0x1023ec90]
pop edi
leave
ret

Function at 0x1001b900
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x1001b923
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x1001b949
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x1001b930
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x1001ba00
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1001ba37
push esi
call fcn.10022f60
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1001ba30
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x1001bab6
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001baa0
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x1001ba5a
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x1001ba99
cmp eax, 2
je 0x1001baa0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001ba50
cmp eax, 3
je 0x1001ba7d
cmp eax, 1
jne 0x1001ba50
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
cmp eax, dword [ecx + 8]
jl 0x1001ba50
mov eax, dword [ecx + 8]
mov edx, dword [esi + 0x144]
add eax, edx
mov dword [ecx + 8], eax
jmp 0x1001ba50
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.1001b900
pop esi
pop ebp
ret 4
cmp ecx, 0xcc
je 0x1001bacd
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.1001b900
pop esi
pop ebp
ret 4
Function at 0x100243e6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x100243f5
xor eax, eax
jmp 0x100244d8
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x100244b8
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101c6980]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101c6980]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101c6980]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101c6980]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101c6980]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101c6980]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101c6980]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101c6980]
inc edx
dec edi
jne 0x10024415
pop edi
test eax, eax
je 0x100244d2
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x101c6980]
inc edx
dec eax
jne 0x100244bc
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x10043ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x10043b00
jl 0x10043af7
cmp dword [ebp + 0xc], 0
ja 0x10043b00
xor eax, eax
xor edx, edx
jmp 0x10043c37
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10043b22
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 - 8]
call fcn.10044510
jmp 0x10043c37
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 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 - 8]
call fcn.10045d50
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10043b91
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.10043c40
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10045eb0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10046b60
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.10045e30
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10043c28
mov ecx, dword [ebp - 8]
call fcn.10045870
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10043c01
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.10174af0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x10043bff
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x10043c37
jmp 0x10043bad
cmp dword [ebp - 4], 0
jbe 0x10043c28
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.10174af0
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100440c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10247db0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.10046a70
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.10046ad0
add esp, 8
movzx edx, al
test edx, edx
je 0x10044105
lea eax, [ebp + 8]
push eax
call fcn.10046a80
add esp, 4
jmp 0x10044282
mov ecx, dword [ebp - 0x2c]
call fcn.10045e90
test eax, eax
je 0x10044147
mov ecx, dword [ebp - 0x2c]
call fcn.10045e90
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.10045e10
cmp esi, eax
jae 0x10044147
lea ecx, [ebp + 8]
push ecx
call fcn.100442a0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.10045cc0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x10044282
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x1004415a
call fcn.10046a70
jmp 0x10044282
mov ecx, dword [ebp - 0x2c]
call fcn.10045870
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x100441a9
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.100442a0
add esp, 4
movzx ecx, al
push ecx
call fcn.10042480
add esp, 8
movzx edx, al
test edx, edx
je 0x10044199
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x100441a1
call fcn.10046a70
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x10044282
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.100442a0
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.10045790
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10044200
cmp dword [ebp - 0x34], 1
je 0x10044200
cmp dword [ebp - 0x34], 3
je 0x1004424d
jmp 0x1004427d
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x10044232
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.10171540
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10044232
call fcn.10046a70
jmp 0x10044282
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x10044246
mov eax, dword [ebp + 8]
jmp 0x10044282
call fcn.10046a70
jmp 0x10044282
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.10042480
add esp, 8
movzx eax, al
test eax, eax
je 0x10044270
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x10044278
call fcn.10046a70
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x10044282
call fcn.10046a70
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10159b70
mov esp, ebp
pop ebp
ret 4
Function at 0x10045900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10247db0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x10045927
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1004592e
mov al, 1
jmp 0x10045a09
call fcn.10046a70
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10046a70
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10046ad0
add esp, 8
movzx eax, al
test eax, eax
je 0x1004596a
xor al, al
jmp 0x10045a09
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.10046c30
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x100459a6
cmp dword [ebp - 0x30], 1
je 0x100459ad
cmp dword [ebp - 0x30], 3
je 0x100459fc
jmp 0x10045a07
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x34], ecx
je 0x100459dc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.10171540
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x100459dc
xor al, al
jmp 0x10045a09
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100459f0
mov dword [ebp - 0x38], 1
jmp 0x100459f7
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x10045a09
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x10045a09
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10159b70
mov esp, ebp
pop ebp
ret