joyce8/EMBER2024-capa huggingface dataset:
Function at 0x75a7f6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x30], eax
xor edx, edx
mov dword [esi + 0x4c], edx
xor ecx, ecx
mov dword [esi + 0x20], ecx
push esi
call fcn.0075a7d4
pop ecx
xor ecx, ecx
mov eax, ecx
xor edx, edx
mov ebx, eax
shr ebx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ebx, eax
mov eax, ebx
inc edx
cmp edx, 8
jl 0x75a81a
mov dword [esi + ecx*4 + 0x70], eax
inc ecx
cmp ecx, 0x100
jb 0x75a816
pop esi
pop ebx
pop ebp
ret

Function at 0x75ba56
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [ebx], eax
push dword [ebx]
call fcn.0075b9f7
pop ecx
pop ebx
pop ecx
pop ebp
ret

Function at 0x75d3c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov esi, pe_nt_image_headers32
or ebx, 0x100
add edi, edi
mov eax, ebx
shr eax, 7
and eax, 1
push eax
mov edx, esi
and edx, edi
add edx, esi
mov ecx, ebx
shr ecx, 8
add edx, ecx
shl edx, 2
add edx, dword [ebp + 0xc]
push edx
push dword [ebp + 8]
call fcn.0075d335
add esp, 0xc
add ebx, ebx
mov ecx, ebx
xor ecx, edi
not ecx
and esi, ecx
cmp ebx, 0x10000
jb 0x75d3de
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x75d487
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 0xc]
xor edx, edx
or eax, 0x100
mov ecx, eax
shr ecx, 8
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + ecx*4]
mov ebx, eax
shr ebx, 7
and ebx, 1
neg ebx
and ebx, 0x7ff
xor ecx, ebx
shr ecx, 4
mov ebx, dword [ebp + 0x10]
add edx, dword [ebx + ecx*4]
add eax, eax
cmp eax, 0x10000
jb 0x75d495
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x75d4c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edx, pe_nt_image_headers32
or eax, 0x100
add ecx, ecx
mov esi, edx
and esi, ecx
add esi, edx
mov edi, eax
shr edi, 8
add esi, edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 7
and edi, 1
neg edi
and edi, 0x7ff
xor esi, edi
shr esi, 4
mov edi, dword [ebp + 0x14]
add ebx, dword [edi + esi*4]
add eax, eax
mov esi, eax
xor esi, ecx
not esi
and edx, esi
cmp eax, 0x10000
jb 0x75d4e1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x75d5ab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov edi, 1
shl edi, cl
or eax, edi
cmp eax, 1
je 0x75d5f0
mov ecx, eax
shr ecx, 1
mov ecx, dword [ebx + ecx*4]
mov edi, eax
and edi, 1
neg edi
and edi, 0x7ff
xor ecx, edi
shr ecx, 4
add edx, dword [esi + ecx*4]
shr eax, 1
cmp eax, 1
jne 0x75d5cd
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x75d5f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x75d642
mov edx, ebx
and edx, 1
shr ebx, 1
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
mov edi, edx
neg edi
and edi, 0x7ff
xor esi, edi
shr esi, 4
mov edi, dword [ebp + 0x14]
mov esi, dword [edi + esi*4]
add dword [ebp - 4], esi
add eax, eax
or edx, eax
mov eax, edx
dec ecx
test ecx, ecx
jne 0x75d612
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x10012b50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x10012b75
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x10012b64
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100136a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003401d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1004d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
call fcn.100134f0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov al, byte [ebp + 0xc]
mov dword [edx], vtable.Checkbox.0
mov dword [edx + 0x34], 0x43960000
mov dword [edx + 0x1c], 6
mov byte [edx + 0x30], al
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x20], 4
mov dword [edx + 4], 0x64
mov dword [edx + 8], 0xd
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10013740
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003401d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1004d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
call fcn.100134f0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x30], 0
mov dword [edx + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x34], 0
mov dword [edx + 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x38], 0
mov dword [edx + 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x3c], 0
mov dword [edx], vtable.Slider.0
mov dword [edx + 0x40], 0x43960000
mov dword [edx + 0x1c], 6
mov dword [edx + 0x20], 4
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x3c], eax
mov dword [edx + 8], 0x13
mov dword [edx + 4], 0x64
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10019cd9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebp
mov ebp, ecx
cmp byte [ebp + 0x20], 0
je 0x10019d34
push ebx
mov ebx, dword [ebp]
mov eax, 0xfffff000
push edi
mov edi, dword [ebp + 4]
and ebx, eax
add edi, dword [ebp]
and edi, eax
lea eax, [esp + 0xc]
push eax
sub edi, ebx
push 0x40
add edi, 0xfff
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 4]
push dword [ebp + 0x14]
push dword [ebp]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x10
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov byte [ebp + 0x20], 0
pop ebx
pop ebp
pop ecx
ret

Function at 0x1001e1cb
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
jne 0x1001e1ed
mov ecx, dword [esp + 4]
call fcn.10023dec
xor ecx, ecx
push ecx
push ecx
push ecx
push 0x1001d529
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
ret 0xc

Function at 0x1001e5a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003622d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1004d00c]
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 + 0xc]
call fcn.100134f0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], vtable.ColorPicker.0
mov byte [esi + 0x38], 1
mov dword [esi + 0x1c], 8
mov dword [esi + 0x20], 4
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 8], 0x14
mov dword [esi + 4], 0x64
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10021e86
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ecx + esi]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 2
jb 0x10021e92
mov eax, edx
pop esi
ret 4
Function at 0x10028581
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
push edi
mov edi, ecx
mov ecx, dword [0x1004ef20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1a0]
call eax
mov ecx, dword [0x1004ef28]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 4]
cmp eax, 0xfa0
push edx
mov eax, dword [ecx]
jne 0x100285c1
call dword [eax + 0x184]
jmp 0x100285c7
call dword [eax + 0x180]
mov eax, dword [edi + 4]
xor esi, esi
mov ecx, dword [edi + 8]
inc esi
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 8]
push esi
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x100285fd
cmp dword [edi + 0x14], esi
je 0x100285f9
cmp dword [edi + 0x14], 3
jne 0x1002861e
push 3
jmp 0x10028619
push 2
pop esi
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1002861c
cmp dword [edi + 0x14], esi
je 0x10028617
cmp dword [edi + 0x14], 4
jne 0x1002861e
push 4
pop esi
jmp 0x1002861e
xor esi, esi
mov dword [edi + 0x14], esi
pop edi
pop esi
leave
ret
Function at 0x1002f928
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [0x1004ef28]
lea edx, [ebp - 0xc]
push ebx
push esi
push edi
mov eax, dword [ecx]
push edx
lea edx, [ebp - 8]
push edx
call dword [eax + 0x180]
xor ebx, ebx
inc ebx
push ebx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, dword [0x1004d048]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shr eax, 0xf
and eax, 0xffffff01
mov dword [ebp - 4], eax
cmp edx, edi
jle 0x1002f9b7
mov eax, dword [ebp + 0x10]
add eax, edi
cmp edx, eax
jge 0x1002f9b7
mov esi, dword [0x1004d044]
cmp ecx, esi
jle 0x1002f9b7
mov eax, dword [ebp + 0x14]
add eax, esi
cmp ecx, eax
jge 0x1002f9b7
cmp byte [ebp - 4], 0
je 0x1002f9b7
cmp byte [0x1005567c], 0
mov byte [0x1005567d], bl
jne 0x1002f9c1
mov eax, edx
mov byte [0x1005567c], bl
sub eax, edi
mov dword [0x10055978], eax
mov eax, ecx
sub eax, esi
mov dword [0x1005597c], eax
jmp 0x1002f9bd
mov bl, byte [0x1005567d]
test bl, bl
je 0x1002f9d9
sub edx, dword [0x10055978]
sub ecx, dword [0x1005597c]
mov dword [0x1004d048], edx
mov dword [0x1004d044], ecx
cmp byte [ebp - 4], 0
pop edi
pop esi
pop ebx
jne 0x1002f9f0
mov byte [0x1005567d], 0
mov byte [0x1005567c], 0
leave
ret 0x10

Function at 0x100324bf
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 8
ja case.default.0x100324c8
jmp dword [eax*4 + 0x10032507]
mov al, 1
jmp 0x10032501
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
jmp 0x10032501
push 2
jmp 0x100324d5
push 4
jmp 0x100324d5
push 5
jmp 0x100324d5
push 6
jmp 0x100324d5
push 0x10
jmp 0x100324d5
push 0x12
jmp 0x100324d5
push 0x46
jmp 0x100324d5
xor al, al
ret 4

Function at 0x100324e3
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 8
ja case.default.0x100324c8
jmp dword [eax*4 + 0x10032507]
mov al, 1
jmp 0x10032501
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
jmp 0x10032501
push 2
jmp 0x100324d5
push 4
jmp 0x100324d5
push 5
jmp 0x100324d5
push 6
jmp 0x100324d5
push 0x10
jmp 0x100324d5
push 0x12
jmp 0x100324d5
push 0x46
jmp 0x100324d5
xor al, al
ret 4
Function at 0x407440
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 0x407528
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 0x407517
jg 0x407480
test edx, edx
je 0x407517
nop dword [eax]
call fcn.00406b80
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4074d4
jg 0x407497
test esi, esi
je 0x4074d4
cmp ebx, eax
jg 0x4074a7
jl 0x4074a1
cmp edi, esi
jae 0x4074a7
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.00425250
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 0x4074fb
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 0x407511
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x407480
jl 0x407511
test edi, edi
jne 0x407480
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 0x40754a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40754c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4075ca
jg 0x40755f
test esi, esi
je 0x4075ca
test eax, eax
jl 0x4075a4
jg 0x407569
test ebx, ebx
je 0x4075a4
cmp edi, eax
jg 0x407579
jl 0x407573
cmp esi, ebx
jae 0x407579
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00425250
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x4075a7
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4075ca
jg 0x4075b1
test esi, esi
je 0x4075ca
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4075ca
push eax
push esi
push 1
push edx
call fcn.0042ba87
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 0x4075e0
Capabilities:
Read 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 0x4076cb
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 0x4076ba
jg 0x407620
test edx, edx
je 0x4076ba
nop dword [eax]
call fcn.00406ba0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x407677
jg 0x407637
test esi, esi
je 0x407677
cmp ebx, eax
jg 0x407647
jl 0x407641
cmp edi, esi
jae 0x407647
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.00425250
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x40769c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4076b4
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x407620
jl 0x4076b4
test edi, edi
jne 0x407620
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 + 0x1c]
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 0x4076ed
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x4076ef
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4077a5
jg 0x40770a
test esi, esi
je 0x4077a5
test eax, eax
jl 0x407753
jg 0x407714
test ebx, ebx
je 0x407753
cmp edi, eax
jg 0x407724
jl 0x40771e
cmp esi, ebx
jae 0x407724
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.00425250
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x40775a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x4077a5
jg 0x407764
test esi, esi
je 0x4077a5
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x4077a5
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x407790
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.0042cd12
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 0x407b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x407b30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e124
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407b6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x407b6c
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.0040e124
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x407c55
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x407b94
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 0x407bc7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00428b77
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.0040e124
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 0x407c55
cmp eax, 1
jle 0x407c28
cmp eax, 3
jne 0x407c55
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00428b77
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.0040e124
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x407c45
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0042ba87
add esp, 0x10
cmp edi, eax
jne 0x407c55
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x407b57
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e124
mov esp, ebp
pop ebp
ret 4
Function at 0x4082c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x408363
cmp byte [esi + 0x3d], 0
je 0x408363
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x408319
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 0x40832b
sub eax, 1
je 0x40832f
sub eax, 2
je 0x408363
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e124
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40834c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0042ba87
add esp, 0x10
cmp edi, eax
jne 0x408319
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e124
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040e124
mov esp, ebp
pop ebp
ret
Function at 0x408540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444068
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45c06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00401e20
push 8
call fcn.0040e289
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 1
call fcn.0040c5cc
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.004089a0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40867a
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x40867a
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov al, byte [ebp + 0xb]
mov byte [ebp - 4], 0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x40869a
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.00401e20
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 0xc