joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10078810
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x10140690]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10078873
mov eax, dword [ebp - 0x18]
sub eax, 5
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov esi, esp
lea edx, [ebp - 0xc]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1007b6e8
test eax, eax
jne 0x1007889e
mov eax, 0xa
jmp 0x100789a0
cmp dword [ebp + 0xc], 0
je 0x100788ea
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x100788e8
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x20]
mov byte [edx + 1], 0xf9
jmp 0x10078926
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10078911
push 7
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1007d0d0
add esp, 0xc
jmp 0x10078926
push 5
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1007d0d0
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1007b6e8
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.1007b6e8
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.1007b6e8
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], cl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x100789c4]
call fcn.1007b694
pop eax
pop edx
pop edi
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.1007b6e8
mov esp, ebp
pop ebp
ret
Function at 0x10079070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x10140680]
mov dword [ebp - 4], eax
jmp 0x10079097
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100790b0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100790ae
mov eax, dword [ebp - 4]
jmp 0x10079134
jmp 0x1007908f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.1007b6e8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10079131
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x100790f3
mov edx, dword [ebp - 4]
mov eax, dword [0x10140680]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10140680], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.1007b6e8
mov esp, ebp
pop ebp
ret

Function at 0x10079620
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10079669
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x10079669
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x10079669
xor eax, eax
jmp 0x100796aa
mov dword [ebp - 4], 1
jmp 0x1007967b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100796a5
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x100796a3
xor eax, eax
jmp 0x100796aa
jmp 0x10079672
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x100898f2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1007be50
mov eax, dword [0x100d1400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1009201f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10089934
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10089a90
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100a1720
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100d33c0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10092e3a
mov ecx, dword [esi*4 + 0x100d33c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10089a89
cmp eax, dword [edi + ecx + 0x24]
jne 0x10089a89
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10089a89
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10092e3a
add esp, 0x14
test edx, edx
jl 0x10089a89
jg 0x100899ff
test eax, eax
jb 0x10089a89
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10089a89
jl 0x10089a19
cmp dword [ebp - 0x1008], eax
ja 0x10089a89
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10089a37
test ebx, ebx
je 0x10089a70
cmp ecx, edi
jae 0x10089a70
mov al, byte [ecx]
cmp al, 0xd
jne 0x10089a51
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10089a5d
cmp byte [ecx + 1], 0xa
jne 0x10089a5d
inc ecx
jmp 0x10089a5d
movzx eax, al
movsx eax, byte [eax + 0x100d16c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10089a37
cmp edx, ebx
jne 0x10089a37
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10089a8e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1007a635
leave
ret

Function at 0x10092803
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100aea90
push 0x100aea88
push str.FlsAlloc
push 0x1e
call fcn.10092670
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10092837
push dword [ebp + 8]
mov ecx, esi
call dword [0x100aa2d0]
call esi
jmp 0x1009283d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10092881
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100aeaa0
push 0x100aea98
push str.FlsGetValue
push 0x20
call fcn.10092670
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100928b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x100aa2d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10092eb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100d33c0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10092ef6
cmp byte [ebx], 0xa
jne 0x10092ef6
or byte [eax + edi + 0x28], 4
jmp 0x10092efb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10092ff9
mov al, byte [edx]
cmp al, 0x1a
je 0x10092fdb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10092f2a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10092f4f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10092f59
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10092f0c
jmp 0x10092ff9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10092fd6
cmp dword [ebp - 0xc], 0
je 0x10092fd6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100d33c0]
test byte [eax + edi + 0x28], 0x48
je 0x10092fb0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10092f9b
mov byte [esi], dl
jmp 0x10092fac
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100d33c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10092ff9
cmp byte [ebp - 1], 0xa
jne 0x10092fbf
cmp esi, ebx
jne 0x10092fbf
mov byte [esi], 0xa
jmp 0x10092ff8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10092e58
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10092ff9
mov byte [esi], 0xd
jmp 0x10092ff8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100d33c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10092ff5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10092ff9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10093002
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 + 0x100d33c0]
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 0x10093045
cmp word [esi], dx
jne 0x10093045
or byte [edi + eax + 0x28], 4
jmp 0x1009304a
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 0x10093183
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 0x10093163
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1009308c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100930c2
cmp eax, edx
jae 0x100930ce
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 0x10093064
jmp 0x10093183
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 0x1009315f
cmp dword [ebp - 0x14], 0
je 0x1009315f
mov eax, dword [ebx*4 + 0x100d33c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10093137
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1009317d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100d33c0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100d33c0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100d33c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10093180
pop ebx
cmp word [ebp - 4], bx
jne 0x10093148
cmp esi, dword [ebp + 0xc]
jne 0x10093148
mov word [esi], bx
jmp 0x10093180
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10092e58
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10093183
push 0xd
jmp 0x1009317c
mov ecx, dword [ebx*4 + 0x100d33c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009317a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10093183
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 0x1009546e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100952df
Function at 0x100990c3
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 0x10099160
push ebx
push esi
call fcn.1009908c
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.10098045
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009910d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009915f
push edi
push eax
call fcn.100911b2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1009912d
call fcn.10090ef6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009915e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10098045
add esp, 0x20
test eax, eax
jne 0x1009914c
push edi
call fcn.10090ef6
jmp 0x10099154
push ebx
call fcn.10090ef6
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 0x10099163
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10099174
pop esi
ret
push ebx
push edi
push esi
call fcn.1009908c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100911b2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1009919c
push ebx
push esi
push edi
call fcn.1007d0d0
add esp, 0xc
push 0
call fcn.10090ef6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100998e8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009940f
Function at 0x1009fe91
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.1009fe0d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100a0009
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100a0009
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1009ffb8
jg 0x1009feea
test eax, eax
je 0x1009ffae
push 1
push 0x1000
call fcn.10092372
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1009ff10
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1009ffa5
push 0x8000
push ebx
call fcn.1009fd3e
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 0x1009ff3c
jg 0x1009ff37
cmp ecx, 0x1000
jb 0x1009ff3c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10094458
add esp, 0x10
cmp eax, 0xffffffff
je 0x1009ff81
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 0x1009ff37
jl 0x1009ff68
test ecx, ecx
jne 0x1009ff29
push dword [ebp - 0xc]
push ebx
call fcn.1009fd3e
push esi
call fcn.10090ef6
add esp, 0xc
xor edi, edi
jmp 0x100a001a
cmp byte [edi + 0x24], 0
je 0x1009ff98
cmp dword [edi + 0x20], 5
jne 0x1009ff98
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1009ffa3
mov edi, dword [edi + 0x18]
jmp 0x1009ffa5
xor edi, edi
push esi
call fcn.10090ef6
pop ecx
jmp 0x100a001a
test ecx, ecx
jg 0x1009ff7a
jl 0x1009ffb8
test eax, eax
jae 0x1009ff7a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10092e58
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009ffdb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009ff7a
jmp 0x100a0012
push ebx
call fcn.1009e055
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009ff7a
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 0x100a001a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100a0017
mov edi, dword [edi + 0x18]
jmp 0x100a001a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10092e58
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100a1640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100a166d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a166d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401935
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00410330
mov eax, dword [0x245c26c]
mov ecx, dword [0x245bcf8]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4019ed
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x245c26c], 0x959
jne 0x4019dc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Mokigehate_xolega_viricuh_mazu_fiboy
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push str.Yimu_givexohipalipen
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push str.Hipejes_joh_jagibavicedok_lozofowegad_dinomebaxedidox
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push str.pajebipew
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call fcn.00401544
add ebx, 8
dec edi
jne 0x401961
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401cc6
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x245c26c], 0x400
push edi
jne 0x401d19
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.00404241
push esi
call fcn.004049c8
push esi
push esi
call fcn.00404813
push esi
call fcn.00404a7e
push esi
push esi
call fcn.0040427b
add esp, 0x1c
xor edi, edi
cmp edi, 0x16c76
jge 0x401d2b
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401d51
inc edi
cmp edi, 0x3003f
jl 0x401d1b
mov eax, dword [0x43eb7c]
mov dword [0x245c26c], eax
call fcn.004019f0
mov edi, 0x3078f
cmp dword [0x245c26c], 0x51f
jne 0x401d7d
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401d65
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x402850
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x436cfd
call fcn.00436b80
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00403526
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404a8d
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x402898
call fcn.004032da
mov dword [ebx], eax
call fcn.00403099
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x40289a
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405115
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d99c]
jne 0x40511f
repz ret
jmp fcn.0040ba6c