joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c260
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001662d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1001c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.1000d0b0
mov dword [ebp - 4], 0
sub esp, 8
mov ebx, dword [ebp + 0x1c]
mov ecx, edi
fld1
mov dword [edi], vtable.Scroll.0
fstp qword [esp]
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], ebx
call fcn.1000c800
mov eax, dword [edi + 0x4c]
mov ecx, edi
push 0
push 0
push 4
mov dword [edi + 0x54], eax
mov dword [edi + 0x74], 0
mov byte [edi + 0x78], 0
mov dword [edi + 0x68], 1
call fcn.1000d580
push 1
push 0
push 0
push 0
push 0
push edi
push fcn.1000c160
sub esp, 0x18
mov esi, esp
mov dword [ebp + 0x1c], esp
push 2
push 0x10017614
push esi
mov dword [esi], 0
mov dword [esi + 0x10], 2
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 2], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x38]
mov dword [ebp + 8], 4
call fcn.10007910
mov esi, edi
mov eax, dword [eax]
mov ecx, dword [esi + 0x2c]
mov ecx, dword [ecx + eax*4]
mov byte [ebp - 4], 0
call fcn.1000aeb0
push 1
mov dword [esi + 0x7c], eax
push 0
push 0
mov dword [eax + 0x38], 0xa5
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
mov dword [eax + 0x3c], 0
lea eax, [ebx - 0xc]
push eax
push 0
mov ebx, edi
push ebx
push fcn.1000c1e0
sub esp, 0x18
mov esi, esp
mov dword [ebp + 0x1c], esp
push 4
mov dword [esi], 0
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], 0xf
push str.down
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 4], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x38]
mov dword [ebp + 8], 4
call fcn.10007910
mov ecx, dword [ebx + 0x2c]
mov eax, dword [eax]
mov ecx, dword [ecx + eax*4]
mov byte [ebp - 4], 0
call fcn.1000aeb0
mov dword [ebx + 0x80], eax
mov dword [eax + 0x38], 0xa7
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
mov dword [eax + 0x3c], 0
mov eax, dword [ebx + 0x7c]
mov byte [eax + 0x1b], 0
mov eax, dword [ebx + 0x80]
mov byte [eax + 0x1b], 0
mov esi, dword [ebx + 0x58]
lea eax, [esi - 0x18]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul qword [ebx + 0x60]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1000c43b
fstp st(0)
jmp 0x1000c43d
fstp st(1)
call fcn.10016140
mov ecx, dword [ebx + 0x54]
sub esi, eax
sub ecx, dword [ebx + 0x4c]
sub esi, 0x18
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
mov ecx, dword [ebx + 0x50]
sub ecx, dword [ebx + 0x4c]
mov dword [ebp + 8], ecx
mov dword [ebx + 0x6c], eax
fidiv dword [ebp + 8]
mov dword [ebp + 8], esi
fimul dword [ebp + 8]
call fcn.10016140
mov dword [ebx + 0x70], eax
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 0x24
Function at 0x1000d0b0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016668
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1001c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000cd90
mov dword [ebp - 4], 0
mov dword [edi], vtable.GUIParent.0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
lea esi, [edi + 0x38]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp + 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1001517a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10010500
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016934
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1001c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10
call fcn.1001517a
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x3bec
mov dword [esi + 8], 1
mov dword [esi], 0
mov dword [esi + 4], 4
call fcn.100156df
mov dword [esi + 0xc], eax
add esp, 8
mov edx, dword [esi + 4]
lea ecx, [edx + 1]
cmp ecx, 0x3bea
jae 0x10010575
mov byte [eax + edx], 0xa8
inc dword [esi + 4]
mov edx, dword [esi + 4]
inc dword [esi]
lea eax, [edx + 1]
cmp eax, 0x3bea
jae 0x1001058b
mov eax, dword [esi + 0xc]
mov byte [edx + eax], 1
inc dword [esi + 4]
inc dword [esi]
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x1001059f
mov ecx, dword [esi + 0xc]
mov ax, word [esi]
mov word [ecx + 2], ax
jmp 0x100105c3
cmp eax, 2
jne 0x100105ba
mov eax, dword [esi + 0xc]
mov dword [eax + 2], 0x75bcd15
mov ecx, dword [esi + 0xc]
mov ax, word [esi]
mov word [ecx + 6], ax
jmp 0x100105c3
mov ecx, dword [esi + 0xc]
mov ax, word [esi]
mov word [ecx], ax
mov ecx, esi
call fcn.10013140
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x1001c7b4]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.100153c0
push 0x10
push esi
call fcn.100151aa
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10010610
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016974
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1001c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10
call fcn.1001517a
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x3bec
mov dword [esi + 8], 1
mov dword [esi], 0
mov dword [esi + 4], 4
call fcn.100156df
mov ebx, eax
add esp, 8
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
cmp ecx, 0x3bea
jae 0x10010694
mov byte [ebx + eax], 0x32
inc dword [esi + 4]
mov ecx, dword [esi + 4]
inc dword [esi]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
jmp 0x10010696
mov ecx, eax
lea eax, [ecx + 1]
cmp eax, 0x3bea
jae 0x100106b2
mov byte [ecx + ebx], 0xc9
inc dword [esi + 4]
mov ecx, dword [esi + 4]
inc dword [esi]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 0xc]
mov edx, edi
lea eax, [edx + 1]
mov dword [ebp + 0xc], eax
lea ecx, [ecx]
mov al, byte [edx]
inc edx
test al, al
jne 0x100106c0
sub edx, dword [ebp + 0xc]
lea eax, [edx + 2]
add eax, ecx
cmp eax, 0x3bea
jae 0x10010719
cmp edx, 0x2000
ja 0x10010719
lea eax, [ecx + 2]
cmp eax, 0x3bea
jae 0x100106fb
mov eax, dword [esi + 0xc]
mov word [ecx + eax], dx
add dword [esi + 4], 2
mov eax, dword [esi + 4]
add dword [esi], 2
jmp 0x100106fe
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10010703
add dword [esi + 4], edx
add dword [esi], edx
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x1001072a
mov ax, word [esi]
mov word [ebx + 2], ax
jmp 0x10010748
cmp eax, 2
jne 0x10010742
mov dword [ebx + 2], 0x75bcd15
mov ecx, dword [esi + 0xc]
mov ax, word [esi]
mov word [ecx + 6], ax
jmp 0x10010748
mov ax, word [esi]
mov word [ebx], ax
mov ecx, esi
call fcn.10013140
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x1001c7b4]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.100153c0
push 0x10
push esi
call fcn.100151aa
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10013140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1001c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x768c7c]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x768c80]
mov dword [ebp - 0x10], eax
mov eax, dword [0x768c84]
cmp dword [edi + 8], 2
mov esi, dword [edi]
sete dl
mov dword [ebp - 0xc], eax
mov eax, dword [0x768c88]
mov dword [ebp - 0x30], edi
mov dword [ebp - 8], eax
lea edx, [edx*4 + 2]
add esi, edx
mov dword [ebp - 0x34], edx
mov ecx, esi
mov dword [ebp - 0x1c], esi
and ecx, 0x80000007
jns 0x100131a3
dec ecx
or ecx, 0xfffffff8
add ecx, 1
je 0x100131b1
mov eax, 8
sub eax, ecx
add esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0xc]
mov eax, esi
add ecx, edx
xor ebx, ebx
cdq
and edx, 3
mov dword [ebp - 0x2c], ecx
add eax, edx
mov dword [ebp - 0x18], ebx
sar eax, 2
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x10013258
mov esi, dword [ecx + ebx*4]
lea eax, [ecx + ebx*4]
lea ebx, [ebx + 1]
mov dword [ebp - 0x20], eax
mov edi, dword [ecx + ebx*4]
lea eax, [ecx + ebx*4]
mov dword [ebp - 0x24], eax
xor eax, eax
lea ebx, [eax + 0x20]
mov edi, edi
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xd
add edx, esi
and ecx, 3
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
xor edx, ecx
add edi, edx
sub ebx, 1
jne 0x100131f0
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
add ebx, 2
mov dword [ebp - 0x18], ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x24]
mov dword [eax], edi
cmp ebx, dword [ebp - 0x28]
jl 0x100131d4
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edi + 0xc]
add ecx, 0xfffffffe
add ecx, esi
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10014f6f
mov esp, ebp
pop ebp
ret
Function at 0x10013280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x768c7c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x768c80]
mov dword [ebp - 0x10], eax
mov eax, dword [0x768c84]
mov dword [ebp - 0xc], eax
mov eax, dword [0x768c88]
mov dword [ebp - 8], eax
mov eax, edx
cdq
and edx, 3
push ebx
lea ebx, [ecx + 2]
mov dword [ebp - 0x28], ebx
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
test ecx, ecx
jle 0x1001335c
push esi
push edi
mov esi, dword [ebx + eax*4]
lea ecx, [ebx + eax*4]
lea eax, [eax + 1]
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebx + eax*4]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x20], eax
mov ebx, 0x20
mov eax, 0xc6ef3720
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xd
add edx, esi
and ecx, 3
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
xor edx, ecx
sub esi, edx
sub ebx, 1
jne 0x100132f4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov dword [eax], esi
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x24]
jl 0x100132d5
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10014f6f
mov esp, ebp
pop ebp
ret
Function at 0x100144c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x100144ec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10014514
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1001451a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10014582
jg 0x10014531
test esi, esi
je 0x10014582
test ecx, ecx
jl 0x1001457d
jg 0x1001453b
test eax, eax
je 0x1001457d
cmp edi, ecx
jg 0x1001454f
jl 0x10014545
cmp esi, eax
jae 0x1001454f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10014585
mov ecx, dword [ebp + 8]
jmp 0x1001458f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x100145a9
jg 0x1001458f
test esi, esi
je 0x100145a9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100145a9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100145c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x100145e4
jl 0x100145d9
test ecx, ecx
jne 0x100145e4
xor eax, eax
xor edx, edx
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x38], 0
je 0x100145fe
push eax
push ecx
push dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
push esi
mov esi, ecx
mov ebx, dword [eax]
test ebx, ebx
je 0x1001464a
mov eax, dword [edi + 0x2c]
lea edx, [edi + 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10014650
cmp eax, ecx
jb 0x10014626
mov eax, ecx
mov dword [ebp - 4], ecx
push eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 4]
add ebx, ecx
mov esi, dword [ebp + 0xc]
sub esi, ecx
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10014653
lea eax, [edi + 0x2c]
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
cmp dword [edi + 0x4c], 0
je 0x100146c6
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [ecx], eax
jne 0x1001467c
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp esi, 0xfff
jbe 0x100146b4
lea esp, [esp]
push dword [edi + 0x4c]
push 0xfff
push 1
push ebx
call eax
add esp, 0x10
add ebx, eax
sub esi, eax
cmp eax, 0xfff
jne 0x100146c6
cmp esi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10014690
test esi, esi
je 0x100146c6
push dword [edi + 0x4c]
push esi
push 1
push ebx
call eax
add esp, 0x10
sub esi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, esi
pop esi
pop ebx
sbb edx, 0
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10014a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10014a70
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014f6f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10014aa0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10014aa0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014f6f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10014b60
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10014ac9
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 0x10014ad5
movsx eax, bl
jmp 0x10014b0d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
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 [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10014b36
sub eax, 1
je 0x10014b36
sub eax, 2
jne 0x10014b60
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
jne 0x10014b21
or ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014f6f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10014b54
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10014b60
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10014b21
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014f6f
mov esp, ebp
pop ebp
ret 4
Function at 0x10014d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001c008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10014dcc
cmp byte [esi + 0x3d], 0
je 0x10014dcc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10014dba
mov ecx, dword [esi + 0x38]
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 dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10014d81
sub eax, 1
je 0x10014d85
sub eax, 2
jne 0x10014dba
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014f6f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10014da3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10014dba
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014f6f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014f6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10014f6f
mov esp, ebp
pop ebp
ret
Function at 0x4039e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4650f3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4775a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x20], 0x4a2224
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [ebp - 4], eax
lea ebx, [edi + 0x34]
mov dword [edi], vtable.TiXmlDocument.0
mov dword [ebx], 0x4a2224
mov byte [ebp - 4], 1
mov dword [edi + 0x40], ecx
mov dword [edi + 0x3c], ecx
push 0x46e670
xor esi, esi
mov dword [edi + 0x38], 4
mov byte [edi + 0x44], al
mov byte [edi + 0x2c], al
mov dword [edi + 0x30], eax
call fcn.0040a620
xor eax, eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
jne 0x403dcc
cmp byte [edi + 0x2c], bl
jne 0x403dc4
mov byte [edi + 0x2c], 1
mov dword [edi + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403da7
sub eax, esi
push edx
lea ebx, [edi + 0x34]
mov esi, eax
call fcn.0040a620
or eax, 0xffffffff
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], eax
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov esi, dword [edi + 0x18]
test esi, esi
je 0x403de4
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
test esi, esi
jne 0x403dd3
xor ecx, ecx
push 2
or eax, 0xffffffff
push ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
push ebx
mov dword [edi + 8], eax
mov dword [edi + 4], eax
call fcn.0043da72
push ebx
call fcn.0043d983
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.0043da72
add esp, 0x1c
test ebx, ebx
jg 0x403e42
cmp byte [edi + 0x2c], 0
jne 0x403dc4
mov byte [edi + 0x2c], 1
mov dword [edi + 0x30], 0xc
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e36
jmp 0x403dae
lea ecx, [ebx + 1]
push ecx
call fcn.0043c867
mov edx, dword [ebp + 8]
push edx
push 1
mov esi, eax
push ebx
push esi
mov byte [esi], 0
call fcn.0043d7d2
add esp, 0x14
cmp eax, 1
je 0x403e9c
push esi
call fcn.0043c161
add esp, 4
cmp byte [edi + 0x2c], 0
jne 0x403dc4
mov byte [edi + 0x2c], 1
mov dword [edi + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e90
jmp 0x403dae
mov byte [esi + ebx], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x403ecc
lea esp, [esp]
mov dl, byte [eax]
cmp dl, 0xd
jne 0x403ec3
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x403ec7
jmp 0x403ec6
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x403eb0
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 8]
push ecx
push 0
push esi
mov ecx, edi
call edx
push esi
call fcn.0043c161
add esp, 4
xor eax, eax
cmp byte [edi + 0x2c], al
pop esi
sete al
pop ebx
pop ebp
ret 8
Function at 0x40aa60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40aa86
push str.createSnapshot__of_processes_
call fcn.004220d0
add esp, 4
xor eax, eax
pop edi
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40aaa2
push str.process32First
jmp 0x40aacb
push ebx
mov ebx, dword [ebp + 8]
cmp dword [esi + 8], ebx
je 0x40aac3
jmp 0x40aab0
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40aac0
cmp dword [esi + 8], ebx
jne 0x40aab0
cmp dword [esi + 8], ebx
pop ebx
je 0x40aae0
push str.finding_proc_failed.
call fcn.004220d0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
pop ebp
ret