joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4031d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403214
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403210
lea ebx, [ebx]
cmp esi, eax
jae 0x403214
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403200
cmp esi, eax
jb 0x40321a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4037d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42acb8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x40380d
push 0x422830
push 4
push eax
call fcn.0040f02a
push eax
call fcn.00402b20
add esp, 0x10
jmp 0x40381f
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40388a
push edi
call fcn.0040f42e
mov edi, dword [eax]
call fcn.0040f42e
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0040f3d4
add esp, 0x18
mov ebx, eax
call fcn.0040f42e
cmp dword [eax], 0
je 0x40386a
call fcn.0040f42e
push dword [eax]
call fcn.00403767
pop ecx
jmp 0x403871
call fcn.0040f42e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40388a
cmp ebx, esi
jae 0x40388a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40388c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e6c3
leave
ret
Function at 0x40733c
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 0x40736a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x407388
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004072a6
jmp 0x407388
mov eax, dword [esi + 0x14]
test eax, eax
je 0x407388
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004072a6
test edi, edi
mov eax, edi
jne 0x407372
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x42c248]
test ecx, ecx
je 0x40744b
jmp 0x40733b
ret 8

Function at 0x40e6c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42acb8]
jne 0x40e6cd
repz ret
jmp fcn.00413df8

Function at 0x41176d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42acd0]
je 0x411788
inc edi
cmp edi, 0x17
jb 0x411779
cmp edi, 0x17
jae 0x411908
push ebp
push 3
call fcn.0041a350
cmp eax, 1
pop ecx
je 0x4118d4
push 3
call fcn.0041a350
test eax, eax
pop ecx
jne 0x4117bc
cmp dword [0x42ab24], 1
je 0x4118d4
cmp ebx, 0xfc
je 0x411907
push 0x4241e0
mov ebx, 0x314
push ebx
mov ebp, 0x42def8
push ebp
call fcn.0041a2eb
add esp, 0xc
test eax, eax
je 0x4117f2
push esi
push esi
push esi
push esi
push esi
call fcn.004135d2
add esp, 0x14
push 0x104
mov esi, 0x42df11
push esi
push 0
mov byte [0x42e015], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411836
push 0x4241c8
push 0x2fb
push esi
call fcn.0041a2eb
add esp, 0xc
test eax, eax
je 0x411836
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004135d2
add esp, 0x14
push esi
call fcn.0041a260
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41187b
push esi
call fcn.0041a260
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42e20c
push 0x4241c4
sub ecx, eax
push ecx
push eax
call fcn.0041a1a0
add esp, 0x14
test eax, eax
je 0x41187b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004135d2
add esp, 0x14
jmp 0x41187d
xor esi, esi
push 0x4241c0
push ebx
push ebp
call fcn.0041a12f
add esp, 0xc
test eax, eax
je 0x41189d
push esi
push esi
push esi
push esi
push esi
call fcn.004135d2
add esp, 0x14
push dword [edi*8 + 0x42acd4]
push ebx
push ebp
call fcn.0041a12f
add esp, 0xc
test eax, eax
je 0x4118bf
push esi
push esi
push esi
push esi
push esi
call fcn.004135d2
add esp, 0x14
push 0x12010
push 0x424198
push ebp
call fcn.00419f72
add esp, 0xc
jmp 0x411907
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x411907
cmp ebp, 0xffffffff
je 0x411907
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42acd4]
push dword [esi]
call fcn.0041a260
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x419f72
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041231d
xor ebx, ebx
cmp dword [0x42ea00], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41a048
push 0x4244a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41a128
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x424498
push edi
call esi
cmp eax, ebx
je 0x41a128
push eax
call fcn.004122af
mov dword [esp], 0x424488
push edi
mov dword [0x42ea00], eax
call esi
push eax
call fcn.004122af
mov dword [esp], 0x424474
push edi
mov dword [0x42ea04], eax
call esi
push eax
call fcn.004122af
mov dword [0x42ea08], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040e450
test eax, eax
pop ecx
pop ecx
je 0x41a016
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004135d2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41a048
push 0x424458
push edi
call esi
push eax
call fcn.004122af
cmp eax, ebx
pop ecx
mov dword [0x42ea10], eax
je 0x41a048
push 0x424440
push edi
call esi
push eax
call fcn.004122af
pop ecx
mov dword [0x42ea0c], eax
mov eax, dword [0x42ea0c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41a0cd
cmp dword [0x42ea10], ecx
je 0x41a0cd
push eax
call fcn.00412326
push dword [0x42ea10]
mov esi, eax
call fcn.00412326
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41a0cd
cmp edi, ebx
je 0x41a0cd
call esi
cmp eax, ebx
je 0x41a09a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a09a
test byte [ebp - 0x18], 1
jne 0x41a0cd
lea eax, [ebp - 0x10]
push eax
call fcn.0040e487
test eax, eax
pop ecx
je 0x41a0b5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004135d2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41a0c4
or dword [ebp + 0x10], 0x200000
jmp 0x41a108
or dword [ebp + 0x10], 0x40000
jmp 0x41a108
mov eax, dword [0x42ea04]
cmp eax, dword [ebp - 8]
je 0x41a108
push eax
call fcn.00412326
cmp eax, ebx
pop ecx
je 0x41a108
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41a108
mov eax, dword [0x42ea08]
cmp eax, dword [ebp - 8]
je 0x41a108
push eax
call fcn.00412326
cmp eax, ebx
pop ecx
je 0x41a108
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ea00]
call fcn.00412326
cmp eax, ebx
pop ecx
je 0x41a128
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a12a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420dbe
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42acb8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00420d53
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040f480
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x420e0d
cmp dword [ebp - 0x1c], 5
jb 0x420e25
jmp 0x420e21
cmp dword [ebp - 0x10], 1
jne 0x420e25
cmp dword [ebp - 0x1c], 4
ja 0x420e21
jne 0x420e25
cmp dword [ebp - 0x18], 0
jbe 0x420e25
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4255d4
call fcn.00420c44
test eax, eax
jge 0x420e46
mov byte [0x42eb98], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e6c3
add ebp, 0x78
leave
ret
Function at 0x411ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
jmp 0x411eea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411ee0
mov eax, 1
add ebx, ebx
jne 0x411f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411ef8
jne 0x411f14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411ef8
xor ecx, ecx
sub eax, 3
jb 0x411f28
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411f9a
mov ebp, eax
add ebx, ebx
jne 0x411f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411f40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411f64
inc ecx
add ebx, ebx
jne 0x411f50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411f45
jne 0x411f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411f45
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411f84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411f75
jmp 0x411ee6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411f84
add edi, ecx
jmp 0x411ee6
pop esi
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411fec
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14330]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x143ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411fa1
mov ecx, edi
jns 0x411fd0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x143f4]
or eax, eax
je 0x411fe6
mov dword [ebx], eax
add ebx, 4
jmp 0x411fbe
call dword [esi + 0x143f0]
mov ebp, dword [esi + 0x143f8]
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 0x412020
sub esp, 0xffffff80
jmp 0x403956

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x2f9a3fdd
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section._RDATA
nop
mov ebx, 0x42cd70
mov ecx, 0x7ef17d17
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10002da0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10051060]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.cabalmain.exe
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor cl, cl
mov edi, dword [eax + 0xc7bf5c]
mov eax, dword [edi + 0x41a8]
add edi, 0x41a8
mov dword [ebp - 0xc], eax
shr eax, 0x18
cmp al, 4
je 0x10002de6
cmp al, 0x24
je 0x10002de6
cmp al, 0x34
je 0x10002de6
cmp al, 0x44
jne 0x10002de8
mov cl, 1
movups xmm0, xmmword [0x10055670]
shl cl, 2
mov byte [ebp - 9], cl
mov ecx, 0x107c868
movups xmmword [ecx], xmm0
mov eax, dword [0x10055680]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x10051ab8
mov byte [0x10051ac4], 1
call dword [0x100555e8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1001bcac
mov esp, ebp
pop ebp
ret
Function at 0x10005090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100050ae
push 0
push 0
push 0
push 0x10004c10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x100056d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x100057b6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x100057a5
jg 0x10005710
test edx, edx
je 0x100057a5
nop dword [eax]
call fcn.10009310
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10005764
jg 0x10005727
test esi, esi
je 0x10005764
cmp ebx, eax
jg 0x10005737
jl 0x10005731
cmp edi, esi
jae 0x10005737
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1001d5b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x10005789
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x1000579f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10005710
jl 0x1000579f
test edi, edi
jne 0x10005710
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x100057de
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x100057e4
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x1000584c
jg 0x100057f9
test esi, esi
je 0x1000584c
test edx, edx
jl 0x10005847
jg 0x10005803
test eax, eax
je 0x10005847
cmp edi, edx
jg 0x10005817
jl 0x1000580d
cmp esi, eax
jae 0x10005817
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.1001d5b0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x1000584f
mov ebx, dword [ebp + 8]
jmp 0x10005859
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x10005872
jg 0x10005859
test esi, esi
je 0x10005872
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10005872
push eax
push esi
push 1
push ebx
call fcn.10026aac
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100058c2
jl 0x100058b5
test ecx, ecx
jne 0x100058c2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10005982
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10009330
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000592e
jg 0x100058ed
test esi, esi
je 0x1000592e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10005905
mov eax, dword [esp + 0x10]
jl 0x100058ff
cmp eax, esi
jae 0x10005905
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1001d5b0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000594f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000596b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x100058d4
jl 0x1000596b
test ecx, ecx
jne 0x100058d4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100059c6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100059c6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1001d5b0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10005a37
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100059ec
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10005a22
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1002714c
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10005a37
cmp edi, eax
ja 0x10005a00
test edi, edi
je 0x10005a37
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1002714c
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10051060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10005dd0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bcac
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10005e0c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10005e0c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bcac
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10005ef4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10005e34
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10005e67
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10020c57
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bcac
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x10005ec7
sub eax, 1
je 0x10005ec7
sub eax, 2
jne 0x10005ef4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10020c57
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bcac
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10005ee4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10026aac
add esp, 0x10
cmp edi, eax
jne 0x10005ef4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10005df7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001bcac
mov esp, ebp
pop ebp
ret 4
Function at 0x100086c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10051060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000877a
cmp byte [esi + 0x3d], 0
je 0x1000877a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10008768
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10008730
sub eax, 1
je 0x10008734
sub eax, 2
jne 0x10008768
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bcac
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10008751
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10026aac
add esp, 0x10
cmp edi, eax
jne 0x10008768
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bcac
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bcac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1001bcac
mov esp, ebp
pop ebp
ret