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

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jle 0x421bec
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ebx
sub edx, eax
push esi
mov ecx, dword [edx + eax]
movzx esi, ch
mov ebx, esi
shl ebx, 0x10
or ebx, esi
mov esi, ecx
and esi, 0xffff00ff
add ebx, esi
xor ebx, ecx
and ebx, 0xff00ff
xor ebx, ecx
mov dword [eax], ebx
add eax, 4
dec edi
jne 0x421bc1
pop esi
pop ebx
pop edi
ret

Function at 0x42209a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 8]
lea ecx, [edi + eax*4]
cmp edi, ecx
jae 0x4220e3
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, eax
shr edx, 0x10
mov ebx, eax
shr ebx, 0xc
xor dl, bl
and dl, 0xf
mov ebx, eax
shr ebx, 0x10
xor dl, bl
mov byte [esi], dl
mov edx, eax
shr edx, 0x1c
xor dl, al
and dl, 0xf
add edi, 4
inc esi
xor dl, al
mov byte [esi], dl
inc esi
cmp edi, ecx
jb 0x4220b0
pop esi
pop ebx
pop edi
ret

Function at 0x4220e5
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 8]
lea ecx, [edi + eax*4]
cmp edi, ecx
jae 0x422136
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, eax
shr edx, 0x10
mov ebx, eax
shr ebx, 0xd
xor dl, bl
and dl, 7
mov ebx, eax
shr ebx, 0x10
xor dl, bl
mov byte [esi], dl
mov edx, eax
shr edx, 5
mov ebx, eax
shr ebx, 3
xor dl, bl
and dl, 0x1f
shr eax, 5
add edi, 4
inc esi
xor dl, al
mov byte [esi], dl
inc esi
cmp edi, ecx
jb 0x4220fb
pop esi
pop ebx
pop edi
ret

Function at 0x436298
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
je 0x4362a2
or eax, 0xffffffff
ret
cmp dword [esi + 4], 0
jne 0x4362eb
call fcn.0043f358
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call fcn.0043ef7e
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x4362e6
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call fcn.0043f0e8
test eax, eax
pop ecx
je 0x43629e
or dword [esi + 0x38], 0xffffffff
jmp 0x43629e
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret
Function at 0x4362f9
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
inc ebx
cmp edi, 2
jae 0x436369
test edi, edi
je 0x436316
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call fcn.0043f358
and dword [eax], 0
push dword [esi + 0x40]
mov ecx, edi
mov eax, 0x4000
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call fcn.0043ef7e
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x436351
push dword [esi + 0x40]
call fcn.0043f0e8
test eax, eax
pop ecx
je 0x436351
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, 2
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
jae 0x436369
mov dword [esi + 0x58], eax
jmp 0x436422
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x43641f
cmp byte [eax + 1], 0x8b
jne 0x43641f
add dword [esi + 4], 0xfffffffe
add eax, 2
mov dword [esi], eax
call fcn.00436298
mov edi, eax
call fcn.00436298
cmp edi, 8
mov ebx, eax
jne 0x436416
test bl, 0xe0
jne 0x436416
push 6
pop edi
call fcn.00436298
dec edi
jne 0x4363a2
test bl, 4
je 0x4363d1
call fcn.00436298
mov edi, eax
call fcn.00436298
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x4363d1
call fcn.00436298
cmp eax, 0xffffffff
jne 0x4363c0
test bl, 8
je 0x4363e4
call fcn.00436298
test eax, eax
je 0x4363e4
cmp eax, 0xffffffff
jne 0x4363d6
test bl, 0x10
je 0x4363f7
call fcn.00436298
test eax, eax
je 0x4363f7
cmp eax, 0xffffffff
jne 0x4363e9
test bl, 2
je 0x436407
push 2
pop edi
call fcn.00436298
dec edi
jne 0x4363ff
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [esi + 0x38], eax
jmp 0x436422
mov dword [esi + 0x38], 0xfffffffd
jmp 0x436422
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x437d73
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x437e00
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0043aeb0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x437dc0
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x437de2
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x437ebf
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x437e28
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x437e33
xor eax, eax
jmp 0x437e80
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x437e51
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.00438dcc
pop ecx
jmp 0x437e64
cmp ecx, 2
jne 0x437e6a
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.004387ad
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0043aeb0
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x437eab
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x437ebf
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x437d7e
pop edi
pop ebx
leave
ret
Function at 0x4386a2
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x4575e0]
test eax, eax
je 0x4387a2
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x4575e0], 0
xor eax, eax
movzx edx, byte [eax + 0x4512c0]
push 0x1f
pop ecx
sub ecx, edx
xor edx, edx
inc edx
shl edx, cl
or esi, edx
inc eax
cmp eax, 0xe
jb 0x4386c2
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x4386ec
shr eax, 1
xor eax, esi
jmp 0x4386ee
shr eax, 1
dec edx
jne 0x4386e2
mov dword [ecx*4 + 0x4591c8], eax
inc ecx
cmp ecx, 0x100
jl 0x4386dd
mov edi, 0x45a1c8
mov ecx, 0xff00
mov eax, dword [edi - 0x1000]
mov esi, eax
and esi, ecx
mov ebx, eax
shl ebx, 0x10
add esi, ebx
mov edx, eax
shr edx, 8
shl esi, 8
mov ebx, edx
and ebx, ecx
add esi, ebx
mov ebx, eax
shr ebx, 0x18
add esi, ebx
mov dword [edi], esi
lea esi, [edi + 0x400]
mov dword [esp + 0x10], 3
and eax, 0xff
mov eax, dword [eax*4 + 0x4591c8]
xor eax, edx
mov ebx, eax
and ebx, ecx
mov ebp, eax
shl ebp, 0x10
add ebx, ebp
mov edx, eax
shr edx, 8
shl ebx, 8
mov ebp, edx
and ebp, ecx
add ebx, ebp
mov ebp, eax
shr ebp, 0x18
add ebx, ebp
mov dword [esi - 0x1000], eax
mov dword [esi], ebx
add esi, 0x400
dec dword [esp + 0x10]
jne 0x438741
add edi, 4
cmp edi, 0x45a5c8
jl 0x43870b
pop edi
pop esi
pop ebp
mov dword [0x4575dc], 0
pop ebx
pop ecx
ret
mov eax, dword [0x4575dc]
test eax, eax
jne 0x4387a2
pop ecx
ret
Function at 0x43ece2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43ed1f
cmp dword [ebp + 0x14], edi
je 0x43ed1f
cmp ecx, edi
jne 0x43ed26
call fcn.0043f358
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00440037
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43ed3a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43ed5b
cmp ebx, 0xffffffff
je 0x43ed4a
push ebx
push edi
push ecx
call fcn.0043acc0
add esp, 0xc
cmp esi, edi
je 0x43ed07
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43ed07
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43ed77
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43ed7e
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43ee6f
test word [esi + 0xc], 0x10c
je 0x43edd2
mov eax, dword [esi + 4]
test eax, eax
je 0x43edd2
jl 0x43eed0
cmp ebx, eax
mov edi, ebx
jb 0x43eda3
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43ee77
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00446172
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43ee67
cmp ebx, dword [ebp - 0xc]
jb 0x43ee3f
cmp dword [ebp - 0xc], 0
je 0x43edfc
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x43edf1
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43edf8
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43ee07
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x43ee07
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43eea3
push eax
push dword [ebp - 8]
push esi
call fcn.00442c07
pop ecx
push eax
call fcn.00446075
add esp, 0xc
test eax, eax
je 0x43eee2
cmp eax, 0xffffffff
je 0x43eed0
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43ee67
push esi
call fcn.00445994
cmp eax, 0xffffffff
pop ecx
je 0x43eed4
cmp dword [ebp - 4], 0
je 0x43eea3
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43ed86
mov eax, dword [ebp + 0x14]
jmp 0x43ed21
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43ee8e
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043acc0
add esp, 0xc
call fcn.0043f358
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43ed17
cmp dword [ebp + 0xc], 0xffffffff
je 0x43eeb9
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043acc0
add esp, 0xc
call fcn.0043f358
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43ed17
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43ed21
or dword [esi + 0xc], 0x10
jmp 0x43eed4
Function at 0x4447f9
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 + 0x456bc8]
je 0x444814
inc edi
cmp edi, 0x17
jb 0x444805
cmp edi, 0x17
jae 0x444994
push ebp
push 3
call fcn.0044a4c5
cmp eax, 1
pop ecx
je 0x444960
push 3
call fcn.0044a4c5
test eax, eax
pop ecx
jne 0x444848
cmp dword [0x456040], 1
je 0x444960
cmp ebx, 0xfc
je 0x444993
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x457b10
push ebp
call fcn.00446400
add esp, 0xc
test eax, eax
je 0x44487e
push esi
push esi
push esi
push esi
push esi
call fcn.0043ff3b
add esp, 0x14
push 0x104
mov esi, 0x457b29
push esi
push 0
mov byte [0x457c2d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4448c2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00446400
add esp, 0xc
test eax, eax
je 0x4448c2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043ff3b
add esp, 0x14
push esi
call fcn.0043ae20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x444907
push esi
call fcn.0043ae20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x457e24
push 0x44dc6c
sub ecx, eax
push ecx
push eax
call fcn.00446465
add esp, 0x14
test eax, eax
je 0x444907
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043ff3b
add esp, 0x14
jmp 0x444909
xor esi, esi
push 0x44dc68
push ebx
push ebp
call fcn.00446db1
add esp, 0xc
test eax, eax
je 0x444929
push esi
push esi
push esi
push esi
push esi
call fcn.0043ff3b
add esp, 0x14
push dword [edi*8 + 0x456bcc]
push ebx
push ebp
call fcn.00446db1
add esp, 0xc
test eax, eax
je 0x44494b
push esi
push esi
push esi
push esi
push esi
call fcn.0043ff3b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044a308
add esp, 0xc
jmp 0x444993
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x444993
cmp ebp, 0xffffffff
je 0x444993
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x456bcc]
push dword [esi]
call fcn.0043ae20
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 0x446949
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x456a70]
jne 0x446953
repz ret
jmp fcn.0044af1f
Function at 0x44a308
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00440af8
xor ebx, ebx
cmp dword [0x457f84], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44a3de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44a4be
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x44eaa0
push edi
call esi
cmp eax, ebx
je 0x44a4be
push eax
call fcn.00440a8a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x457f84], eax
call esi
push eax
call fcn.00440a8a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x457f88], eax
call esi
push eax
call fcn.00440a8a
mov dword [0x457f8c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00441bc9
test eax, eax
pop ecx
pop ecx
je 0x44a3ac
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043ff3b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44a3de
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00440a8a
cmp eax, ebx
pop ecx
mov dword [0x457f94], eax
je 0x44a3de
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440a8a
pop ecx
mov dword [0x457f90], eax
mov eax, dword [0x457f90]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44a463
cmp dword [0x457f94], ecx
je 0x44a463
push eax
call fcn.00440b01
push dword [0x457f94]
mov esi, eax
call fcn.00440b01
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44a463
cmp edi, ebx
je 0x44a463
call esi
cmp eax, ebx
je 0x44a430
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44a430
test byte [ebp - 0x18], 1
jne 0x44a463
lea eax, [ebp - 0x10]
push eax
call fcn.00441c00
test eax, eax
pop ecx
je 0x44a44b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043ff3b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44a45a
or dword [ebp + 0x10], 0x200000
jmp 0x44a49e
or dword [ebp + 0x10], 0x40000
jmp 0x44a49e
mov eax, dword [0x457f88]
cmp eax, dword [ebp - 8]
je 0x44a49e
push eax
call fcn.00440b01
cmp eax, ebx
pop ecx
je 0x44a49e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44a49e
mov eax, dword [0x457f8c]
cmp eax, dword [ebp - 8]
je 0x44a49e
push eax
call fcn.00440b01
cmp eax, ebx
pop ecx
je 0x44a49e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457f84]
call fcn.00440b01
cmp eax, ebx
pop ecx
je 0x44a4be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44a4c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100080b0
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 0x10008196
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 0x10008185
jg 0x100080f0
test edx, edx
je 0x10008185
nop dword [eax]
call fcn.100095d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10008144
jg 0x10008107
test esi, esi
je 0x10008144
cmp ebx, eax
jg 0x10008117
jl 0x10008111
cmp edi, esi
jae 0x10008117
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.1001e980
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 0x10008169
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 0x1000817f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x100080f0
jl 0x1000817f
test edi, edi
jne 0x100080f0
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 0x100081b8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x100081ba
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10008238
jg 0x100081cd
test esi, esi
je 0x10008238
test eax, eax
jl 0x1000821c
jg 0x100081d7
test ebx, ebx
je 0x1000821c
cmp edi, eax
jg 0x100081e7
jl 0x100081e1
cmp esi, ebx
jae 0x100081e7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1001e980
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 0x10008238
jg 0x1000821f
test esi, esi
je 0x10008238
jmp 0x1000821f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10008238
push eax
push esi
push 1
push edx
call fcn.100274e8
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 0x10008250
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 0x10008282
jl 0x10008275
test ecx, ecx
jne 0x10008282
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 0x10008342
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100095f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100082ee
jg 0x100082ad
test esi, esi
je 0x100082ee
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x100082c5
mov eax, dword [esp + 0x10]
jl 0x100082bf
cmp eax, esi
jae 0x100082c5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1001e980
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 0x1000830f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000832b
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 0x10008294
jl 0x1000832b
test ecx, ecx
jne 0x10008294
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 0x10008381
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10008381
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1001e980
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 0x100083f0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x100083a7
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 0x100083d9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10027ec7
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10008404
cmp edi, eax
ja 0x100083b5
test ecx, ecx
je 0x100083f0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10027ec7
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 0x10008770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10055050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100087a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d0df
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100087dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100087dc
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.1001d0df
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100088c4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10008804
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 0x10008837
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100254a7
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.1001d0df
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 0x10008897
sub eax, 1
je 0x10008897
sub eax, 2
jne 0x100088c4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.100254a7
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.1001d0df
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100088b4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100274e8
add esp, 0x10
cmp edi, eax
jne 0x100088c4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100087c7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d0df
mov esp, ebp
pop ebp
ret 4