joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a5cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6b94f0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46a60f
cmp word [esi], dx
jne 0x46a60f
or byte [edi + eax + 0x28], 4
jmp 0x46a614
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46a74d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46a72d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46a656
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46a68c
cmp eax, edx
jae 0x46a698
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46a62e
jmp 0x46a74d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46a729
cmp dword [ebp - 0x14], 0
je 0x46a729
mov eax, dword [ebx*4 + 0x6b94f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46a701
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x46a747
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6b94f0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x6b94f0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6b94f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x46a74a
pop ebx
cmp word [ebp - 4], bx
jne 0x46a712
cmp esi, dword [ebp + 0xc]
jne 0x46a712
mov word [esi], bx
jmp 0x46a74a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046afe6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46a74d
push 0xd
jmp 0x46a746
mov ecx, dword [ebx*4 + 0x6b94f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46a744
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46a74d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46ee1a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x46eeb7
push ebx
push esi
call fcn.0046ede3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0046d1d7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x46ee64
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46eeb6
push edi
push eax
call fcn.00465de8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x46ee84
call fcn.00465dae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46eeb5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046d1d7
add esp, 0x20
test eax, eax
jne 0x46eea3
push edi
call fcn.00465dae
jmp 0x46eeab
push ebx
call fcn.00465dae
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x46eeba
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x46eecb
pop esi
ret
push ebx
push edi
push esi
call fcn.0046ede3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00465de8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x46eef3
push ebx
push esi
push edi
call fcn.004524c0
add esp, 0xc
push 0
call fcn.00465dae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x46f2b7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046ef08
Function at 0x476837
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004767b3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4769af
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4769af
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x47695e
jg 0x476890
test eax, eax
je 0x476954
push 1
push 0x1000
call fcn.00468bee
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4768b6
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x47694b
push 0x8000
push ebx
call fcn.00464524
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4768e2
jg 0x4768dd
cmp ecx, 0x1000
jb 0x4768e2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00469e8e
add esp, 0x10
cmp eax, 0xffffffff
je 0x476927
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4768dd
jl 0x47690e
test ecx, ecx
jne 0x4768cf
push dword [ebp - 0xc]
push ebx
call fcn.00464524
push esi
call fcn.00465dae
add esp, 0xc
xor edi, edi
jmp 0x4769c0
cmp byte [edi + 0x24], 0
je 0x47693e
cmp dword [edi + 0x20], 5
jne 0x47693e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x476949
mov edi, dword [edi + 0x18]
jmp 0x47694b
xor edi, edi
push esi
call fcn.00465dae
pop ecx
jmp 0x4769c0
test ecx, ecx
jg 0x476920
jl 0x47695e
test eax, eax
jae 0x476920
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046afe6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x476981
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x476920
jmp 0x4769b8
push ebx
call fcn.0046f830
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x476920
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4769c0
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4769bd
mov edi, dword [edi + 0x18]
jmp 0x4769c0
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046afe6
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4771d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4771fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4771fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1003a98
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1003af0
call fcn.01003b0c
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1003ae7
cmp ecx, 0xffffffff
je 0x1003ae7
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1003ae0
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x1003ae0
cmp edx, 0x10000000
jae 0x1003ae0
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1006d0b
mov dword [ebp - 4], 0xfffffffe
call fcn.010023d0
ret 4
Function at 0x4219a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4219b2
pop dword [ebp - 0x38]
mov eax, 0xaa08b04
add eax, 0xf5a18eae
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x43e6d
push 0
mov eax, 0x42c6b19b
add eax, 0xbd7ba07d
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x5f89
mov esi, eax
mov edi, 0xb24b8826
add edi, 0x4df7cbda
add edi, dword [ebp - 0x38]
mov edx, 0xab9596d8
add edx, 0x121e1e13
xor dword [ebp - 0x20], esi
mov ebx, dword [edi]
xor dword [ebp - 0x28], esi
sub ebx, edx
xor dword [ebp - 4], 0xae2214d9
mov dword [esi], ebx
add dword [ebp - 0x30], edx
add esi, 0x9693aad7
sub esi, 0x9693aad3
add edi, 4
loop 0x421a0b
add eax, 0x57c8d5c9
add eax, 0xa8389b2e
xor ebx, ebx
add ebx, eax
add eax, 0x4391e56f
sub eax, 0x4391e56a
mov ecx, 0xc5ab748c
add ecx, 0x3a948b74
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x486396
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046fe46
and dword [ebp - 4], 0
cmp dword [0x4e1544], 0
mov ebx, eax
jne 0x486447
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4864f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4864f8
push eax
call fcn.0046fdd4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4e1544], eax
call esi
push eax
call fcn.0046fdd4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e1548], eax
call esi
push eax
call fcn.0046fdd4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e154c], eax
call esi
push eax
call fcn.0046fdd4
pop ecx
mov dword [0x4e1554], eax
test eax, eax
je 0x486447
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046fdd4
pop ecx
mov dword [0x4e1550], eax
mov eax, dword [0x4e1550]
cmp eax, ebx
je 0x48649f
cmp dword [0x4e1554], ebx
je 0x48649f
push eax
call fcn.0046fe4f
push dword [0x4e1554]
mov esi, eax
call fcn.0046fe4f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48649f
test edi, edi
je 0x48649f
call esi
test eax, eax
je 0x486496
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x486496
test byte [ebp - 0xc], 1
jne 0x48649f
or dword [ebp + 0x10], 0x200000
jmp 0x4864d8
mov eax, dword [0x4e1548]
cmp eax, ebx
je 0x4864d8
push eax
call fcn.0046fe4f
pop ecx
test eax, eax
je 0x4864d8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4864d8
mov eax, dword [0x4e154c]
cmp eax, ebx
je 0x4864d8
push eax
call fcn.0046fe4f
pop ecx
test eax, eax
je 0x4864d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e1544]
call fcn.0046fe4f
pop ecx
test eax, eax
je 0x4864f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4864fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001bf0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x10001c0c
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10001d11
nop dword [eax + eax]
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0x10], ebx
cmp edx, 0x10
jl 0x10001cd4
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x10001c46
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x10001ce5
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x10001cd8
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebx, ebx
jne 0x10001c20
shl esi, 0x10
pop ebx
or esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10001eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
mov esi, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x34]
mov edx, dword [ebx + 0x64]
sub edi, edx
sub edi, ecx
jne 0x10001edf
test edx, edx
jne 0x10001eee
test ecx, ecx
jne 0x10001eee
mov edi, esi
jmp 0x10001f88
cmp edi, 0xffffffff
jne 0x10001eee
mov edi, 0xfffffffe
jmp 0x10001f88
mov eax, dword [ebx + 0x24]
add eax, 0xfffffefa
add eax, esi
cmp edx, eax
jb 0x10001f88
mov ecx, dword [ebx + 0x30]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.1000ab40
mov eax, dword [ebx + 0x44]
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], esi
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x3c]
mov ebx, dword [ebp - 4]
lea edx, [eax + ebx*2]
nop dword [eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub ebx, 1
jne 0x10001f30
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x38]
mov ebx, esi
lea edx, [eax + esi*2]
nop
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub ebx, 1
jne 0x10001f60
mov ebx, dword [ebp - 8]
add edi, esi
mov ecx, dword [ebx]
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x10002039
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x6c]
add ecx, edx
add ecx, dword [ebx + 0x30]
cmp eax, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
cmovbe edi, eax
test edi, edi
jne 0x10001fb6
xor edi, edi
jmp 0x10001ff7
mov edx, dword [ecx]
sub eax, edi
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0xc], edx
cmp dword [eax + 0x18], 0
jne 0x10001fdf
push edi
push edx
push dword [ecx + 0x30]
call fcn.10001bf0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x30], eax
push edi
push edx
push dword [ebp - 0x10]
call fcn.1000ab40
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [eax], edi
add dword [eax + 8], edi
mov edx, dword [ebx + 0x6c]
lea ecx, [edx + edi]
mov dword [ebp - 0x10], ecx
mov dword [ebx + 0x6c], ecx
cmp ecx, 3
jb 0x10002025
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x50]
movzx edx, byte [eax]
mov dword [ebx + 0x40], edx
movzx eax, byte [eax + 1]
shl edx, cl
mov ecx, dword [ebp - 0x10]
xor edx, eax
and edx, dword [ebx + 0x4c]
mov dword [ebx + 0x40], edx
cmp ecx, 0x106
jae 0x10002039
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x10001ec4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004c30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1398
call fcn.1001fff0
mov eax, dword [0x10031004]
xor eax, esp
mov dword [esp + 0x1394], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
push edx
mov dword [esp + 0x10], esi
call fcn.10007960
mov edx, 0x6b
mov dword [esp + 0x1394], 0xffffffff
mov dword [esp + 0x14], 0x6b
lea ecx, [edx - 0x6a]
nop dword [eax + eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [esp + ecx*4 + 0x14], edx
inc ecx
cmp ecx, 0x270
jb 0x10004c80
xor edi, edi
mov dword [esp + 0x10], 0x270
cmp dword [esi + 0x10], edi
jbe 0x10004cd1
nop dword [eax + eax]
lea ecx, [esp + 0x10]
call fcn.10006b20
cmp dword [esi + 0x14], 0x10
mov dl, al
mov eax, esi
jb 0x10004cc5
mov eax, dword [esi]
xor byte [eax + edi], dl
lea ecx, [eax + edi]
inc edi
cmp edi, dword [esi + 0x10]
jb 0x10004cb0
mov ecx, dword [esp + 0x139c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1000822b
mov esp, ebp
pop ebp
ret
Function at 0x10004fa0
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 0x10005088
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 0x10005077
jg 0x10004fe0
test edx, edx
je 0x10005077
nop dword [eax]
call fcn.100062b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10005034
jg 0x10004ff7
test esi, esi
je 0x10005034
cmp ebx, eax
jg 0x10005007
jl 0x10005001
cmp edi, esi
jae 0x10005007
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.1000ab40
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 0x1000505b
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 0x10005071
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10004fe0
jl 0x10005071
test edi, edi
jne 0x10004fe0
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 0x100050aa
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x100050ac
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x1000512a
jg 0x100050bf
test esi, esi
je 0x1000512a
test eax, eax
jl 0x1000510e
jg 0x100050c9
test ebx, ebx
je 0x1000510e
cmp edi, eax
jg 0x100050d9
jl 0x100050d3
cmp esi, ebx
jae 0x100050d9
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1000ab40
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 0x1000512a
jg 0x10005111
test esi, esi
je 0x1000512a
jmp 0x10005111
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1000512a
push eax
push esi
push 1
push edx
call fcn.1000ecfe
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 0x10005140
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 0x10005172
jl 0x10005165
test ecx, ecx
jne 0x10005172
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 0x10005232
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100062d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100051de
jg 0x1000519d
test esi, esi
je 0x100051de
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x100051b5
mov eax, dword [esp + 0x10]
jl 0x100051af
cmp eax, esi
jae 0x100051b5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1000ab40
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 0x100051ff
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000521b
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 0x10005184
jl 0x1000521b
test ecx, ecx
jne 0x10005184
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 0x10005271
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10005271
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1000ab40
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 0x100052e0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x10005297
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 0x100052c9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000efee
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x100052f4
cmp edi, eax
ja 0x100052a5
test ecx, ecx
je 0x100052e0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000efee
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