joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003260
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b701e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10128014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov dword [ebx], vtable.cocos2d::CCObject.0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x28]
mov esi, dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCPoint::constructor_class_cocos2d::CCPoint_const__]
mov dword [ebx], vtable.cocos2d::CCTouch.0
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov al, byte [edi + 0x24]
mov byte [ebx + 0x24], al
lea eax, [edi + 0x28]
push eax
call esi
lea eax, [edi + 0x30]
push eax
lea ecx, [ebx + 0x30]
call esi
lea eax, [edi + 0x38]
push eax
lea ecx, [ebx + 0x38]
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10003690
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6fee
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10128014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov dword [edi], vtable.cocos2d::CCObject.0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
mov dword [edi], vtable.cocos2d::CCTexture2D.0
movzx eax, byte [esi + 0x20]
mov byte [edi + 0x20], al
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCSize::constructor_class_cocos2d::CCSize_const__]
movzx eax, byte [esi + 0x44]
mov byte [edi + 0x44], al
movzx eax, byte [esi + 0x45]
mov byte [edi + 0x45], al
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], 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 4
Function at 0x10004190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b701e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10128014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov dword [edi], vtable.cocos2d::CCObject.0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
lea eax, [esi + 0x20]
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCPoint::constructor_class_cocos2d::CCPoint_const__]
lea ecx, [edi + 0x20]
push eax
mov dword [edi], vtable.cocos2d::CCSpriteFrame.0
call ebx
lea eax, [esi + 0x28]
lea ecx, [edi + 0x28]
mov edi, dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCSize::constructor_class_cocos2d::CCSize_const__]
push eax
call edi
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 0x30]
mov esi, dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCRect::constructor_class_cocos2d::CCRect_const__]
add ecx, 0x30
push eax
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov al, byte [ecx + 0x40]
mov byte [edx + 0x40], al
lea eax, [ecx + 0x44]
push eax
lea ecx, [edx + 0x44]
call esi
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
lea eax, [esi + 0x54]
push eax
call ebx
mov ebx, dword [ebp - 0x10]
lea eax, [esi + 0x5c]
push eax
lea ecx, [ebx + 0x5c]
call edi
mov eax, dword [esi + 0x64]
lea ecx, [ebx + 0x68]
mov dword [ebx + 0x64], eax
lea eax, [esi + 0x68]
push eax
call fcn.1001a910
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, esi
push edi
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10007e00
sub edx, ecx
xor edi, edi
lea ebx, [edx + esi]
cmp esi, ebx
jae 0x10007e2e
movsx eax, byte [esi]
push eax
call fcn.10073800
imul edi, edi, 0x1000193
inc esi
movzx ecx, al
add esp, 4
xor edi, ecx
cmp esi, ebx
jb 0x10007e12
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x100083a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b715d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10128014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
mov dword [esi], vtable.cocos2d::CCObject.0
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edx + 0x1c]
mov dword [esi], vtable.cocos2d::CCAction.0
mov dword [esi + 0x1c], eax
mov eax, dword [edx + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edx + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x28], eax
mov dword [esi], vtable.cocos2d::CCFiniteTimeAction.0
mov eax, dword [edx + 0x2c]
mov dword [esi + 0x2c], eax
lea eax, [edx + 0x30]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x30]
mov dword [esi], vtable.cocos2d::CCPlace.0
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCPoint::constructor_class_cocos2d::CCPoint_const__]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d1e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6fee
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10128014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov dword [edi], vtable.cocos2d::CCObject.0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 0x28]
mov dword [edi], vtable.cocos2d::CCGridBase.0
movzx eax, byte [esi + 0x20]
mov byte [edi + 0x20], al
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCSize::constructor_class_cocos2d::CCSize_const__]
mov eax, dword [esi + 0x30]
lea ecx, [edi + 0x34]
mov dword [edi + 0x30], eax
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCPoint::constructor_class_cocos2d::CCPoint_const__]
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
movzx eax, byte [esi + 0x40]
mov byte [edi + 0x40], al
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], 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 4

Function at 0x10017bf0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6fee
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10128014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov dword [edi], vtable.cocos2d::CCObject.0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
lea eax, [esi + 0x20]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x20]
mov dword [edi], vtable.cocos2d::CCTMXObjectGroup.0
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCPoint::constructor_class_cocos2d::CCPoint_const__]
mov eax, dword [esi + 0x28]
lea ecx, [edi + 0x30]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
lea eax, [esi + 0x30]
push eax
call fcn.1001a910
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 4
Function at 0x10018320
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b76d4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x10128014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov dword [ebx], vtable.cocos2d::CCObject.0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x20], vtable.cocos2d::CCSAXDelegator.0
mov dword [ebx], vtable.cocos2d::CCTMXMapInfo.0
mov dword [ebx + 0x20], vtable.cocos2d::CCTMXMapInfo.1.0
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
lea eax, [edi + 0x28]
push eax
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCSize::constructor_class_cocos2d::CCSize_const__]
lea eax, [edi + 0x30]
lea ecx, [ebx + 0x30]
push eax
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCSize::constructor_class_cocos2d::CCSize_const__]
mov eax, dword [edi + 0x38]
lea ecx, [ebx + 0x58]
mov dword [ebx + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [ebx + 0x4c], eax
mov al, byte [edi + 0x50]
mov byte [ebx + 0x50], al
mov eax, dword [edi + 0x54]
mov dword [ebx + 0x54], eax
lea eax, [edi + 0x58]
push eax
call fcn.1001a910
lea eax, [edi + 0x74]
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x74]
push eax
call fcn.1001a910
lea eax, [edi + 0x90]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0x90]
call fcn.1001a910
mov eax, dword [edi + 0xac]
mov dword [ebx + 0xac], eax
mov eax, dword [edi + 0xb0]
mov dword [ebx + 0xb0], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100229b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x100229db
sub eax, 1
jne 0x10022a0f
push eax
push eax
push dword [ebp + 8]
push 0x10022060
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
cmp dword [0x1012d350], 0
je 0x10022a0f
xor edx, edx
xor ecx, ecx
call fcn.10056f90
push dword [0x1012d33c]
call fcn.10073ba0
add esp, 4
mov dword [0x1012d33c], 0
mov dword [0x1012d350], 0
mov eax, 1
pop ebp
ret 0xc
Function at 0x10022df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x10022ed8
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 0x10022ec7
jg 0x10022e30
test edx, edx
je 0x10022ec7
nop dword [eax]
call fcn.10024490
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10022e84
jg 0x10022e47
test esi, esi
je 0x10022e84
cmp ebx, eax
jg 0x10022e57
jl 0x10022e51
cmp edi, esi
jae 0x10022e57
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.10062a50
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 0x10022eab
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x10022ec1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10022e30
jl 0x10022ec1
test edi, edi
jne 0x10022e30
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x10022efa
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x10022efc
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10022f7a
jg 0x10022f0f
test esi, esi
je 0x10022f7a
test eax, eax
jl 0x10022f5e
jg 0x10022f19
test ebx, ebx
je 0x10022f5e
cmp edi, eax
jg 0x10022f29
jl 0x10022f23
cmp esi, ebx
jae 0x10022f29
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.10062a50
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x10022f7a
jg 0x10022f61
test esi, esi
je 0x10022f7a
jmp 0x10022f61
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10022f7a
push eax
push esi
push 1
push edx
call fcn.100759c0
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10022f90
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 0x10022fc2
jl 0x10022fb5
test ecx, ecx
jne 0x10022fc2
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 0x10023082
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100244b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1002302e
jg 0x10022fed
test esi, esi
je 0x1002302e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10023005
mov eax, dword [esp + 0x10]
jl 0x10022fff
cmp eax, esi
jae 0x10023005
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10062a50
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 0x1002304f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1002306b
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 0x10022fd4
jl 0x1002306b
test ecx, ecx
jne 0x10022fd4
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]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100230c1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x100230c1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10062a50
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
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x10023130
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x100230e7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10023119
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10078ea0
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10023144
cmp edi, eax
ja 0x100230f5
test ecx, ecx
je 0x10023130
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10078ea0
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x10023510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10128014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10023540
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d6c0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1002357c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1002357c
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.1005d6c0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10023665
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100235a4
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 0x100235d7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10073d40
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.1005d6c0
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
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 edx
test eax, eax
js 0x10023665
cmp eax, 1
jle 0x10023638
cmp eax, 3
jne 0x10023665
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10073d40
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.1005d6c0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10023655
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100759c0
add esp, 0x10
cmp edi, eax
jne 0x10023665
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10023567
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005d6c0
mov esp, ebp
pop ebp
ret 4
Function at 0x10023ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10128014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100240ac
cmp byte [esi + 0x3d], 0
je 0x100240ac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002409a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10024062
sub eax, 1
je 0x10024066
sub eax, 2
jne 0x1002409a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d6c0
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10024083
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100759c0
add esp, 0x10
cmp edi, eax
jne 0x1002409a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d6c0
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d6c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1005d6c0
mov esp, ebp
pop ebp
ret