joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1436100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x1436118
add esp, 0xfffffff0
call fcn.00f08934
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x1436232
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00f07168
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x143621c
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.01032718
xor eax, eax
push ebp
push 0x1436209
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.01032718
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00f0b1ec
jmp 0x14361da
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00f0b578
mov eax, dword [ebx + 4]
call fcn.00f0a668
dec eax
jle 0x14361ee
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x14361c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1436210
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1436239
lea eax, [ebp - 4]
call fcn.00f0a1e4
ret

Function at 0x1443904
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov ecx, esp
mov word [ecx], 0
test edx, edx
jle 0x144393b
movzx ebx, word [ecx]
and bx, 0x7ff
shl ebx, 5
movzx esi, word [ecx]
shr esi, 0xb
or bx, si
mov word [ecx], bx
movzx ebx, byte [eax]
movzx ebx, byte [ebx + 0x158b4dc]
xor byte [ecx], bl
dec edx
inc eax
test edx, edx
jg 0x1443912
movzx eax, word [ecx]
pop edx
pop esi
pop ebx
ret

Function at 0x14a178c
Capabilities:
Log keystrokes via polling

Disassembly:
push 2
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x14a17ad
push 1
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x14a17ad
xor eax, eax
ret
mov al, 1
ret
Function at 0x14b8ecc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x14b914a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0xc8], 0
jne 0x14b9121
mov eax, dword [edi + 0x40]
test eax, eax
je 0x14b8f25
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x14b8f45
mov eax, dword [edi + 0x44]
test eax, eax
je 0x14b8f35
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x14b8f45
mov eax, edi
call fcn.014b9200
jmp 0x14b9121
cmp dword [edi + 0xcc], 0
jne 0x14b8f94
lea eax, [ebp - 0x108]
mov edx, dword [edi + 0x40]
mov ecx, 0
call fcn.00f0ac18
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00f28c64
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x19cd12c]
call fcn.014b8968
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xcc], eax
cmp dword [edi + 0xd0], 0
jne 0x14b8fe3
lea eax, [ebp - 0x10c]
mov edx, dword [edi + 0x44]
mov ecx, 0
call fcn.00f0ac18
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x101]
call fcn.00f28c64
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x19cd12c]
call fcn.014b8968
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xd0], eax
mov ecx, dword [edi + 0xd0]
mov edx, dword [edi + 0xcc]
mov eax, edi
call fcn.014b9240
mov ebx, eax
test bl, bl
jne 0x14b90d6
mov eax, dword [edi + 0x40]
test eax, eax
je 0x14b900c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x14b9026
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x14b901f
sub eax, 4
mov eax, dword [eax]
test eax, eax
sete al
jmp 0x14b9028
xor eax, eax
test al, al
jne 0x14b90d6
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x14b903f
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x14b906c
lea eax, [ebp - 0x110]
mov edx, dword [edi + 0xc0]
mov ecx, 0
call fcn.00f0ac18
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x101]
call fcn.00f28c64
jmp 0x14b90ae
push dword [edi + 0x40]
push 0x14b9168
push dword [edi + 0x44]
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.00f0b3e8
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
mov ecx, 0
call fcn.00f0ac18
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x101]
call fcn.00f28c64
push 7
lea eax, [ebp - 0x101]
push eax
call sub.KERNEL32.DLL_WinExec
cmp eax, 0x20
jb 0x14b90d6
mov ecx, dword [edi + 0xd0]
mov edx, dword [edi + 0xcc]
mov eax, edi
call fcn.014b9240
mov ebx, eax
test bl, bl
jne 0x14b90e3
mov eax, edi
call fcn.014b9200
jmp 0x14b9121
mov eax, dword [edi + 0x64]
test eax, eax
je 0x14b90f2
mov dword [edi + 0xac], eax
jmp 0x14b90fc
mov dword [edi + 0xac], 1
mov eax, edi
call fcn.014b92c4
test al, al
je 0x14b9121
mov eax, edi
mov si, 0xffee
call fcn.00f08684
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.014b97b4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x14b9151
lea eax, [ebp - 0x118]
call fcn.00f0a19c
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.00f0a22c
ret
Function at 0x14c3ddc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x14c3e2d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x14c3e14
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x14c3e04
jmp 0x14c3e2d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x14c3e15
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x14d8c2c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x14d8c5a
mov eax, ebx
call fcn.014d96e8
cmp dword [ebx + 0x40], 0
je 0x14d8c53
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x14d8ccb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x14d8cbd
cmp dword [ebx + 8], 0
je 0x14d8c7c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x14d8c8e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x14d8cbd
cmp dword [ebx + 8], 0
je 0x14d8c6f
cmp eax, 3
je 0x14d8ca1
dec eax
jne 0x14d8c6f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x14d8c6f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x14d8c6f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x14d8ce9
cmp dword [ebx + 0x14], 0xcc
je 0x14d8ce9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.014d8cf4
pop ebx
ret

Function at 0x14ed48c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x19cd570], 0
jne 0x14ed4a3
call fcn.014ed448
mov eax, edi
dec eax
test eax, eax
jl 0x14ed4cb
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x19cd170]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x14ed4ad
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x14f04f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x14f0525
dec al
je 0x14f0560
dec al
je 0x14f05a4
dec al
je 0x14f0616
jmp 0x14f06b1
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x14f06b1
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x14f0535
jmp 0x14f06b1
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x14f06b1
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x14f0570
jmp 0x14f06b1
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x14f06b1
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x14f05d7
xor edx, edx
mov dword [esp + 4], edx
jmp 0x14f05ec
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x14f0604
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x14f05b4
jmp 0x14f06b1
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x14f06b1
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x14f067d
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.014ed4d4
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x14f0632
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403050
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 0x40307c
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 0x4030a4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4030aa
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 0x403112
jg 0x4030c1
test esi, esi
je 0x403112
test ecx, ecx
jl 0x40310d
jg 0x4030cb
test eax, eax
je 0x40310d
cmp edi, ecx
jg 0x4030df
jl 0x4030d5
cmp esi, eax
jae 0x4030df
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 0x403115
mov ecx, dword [ebp + 8]
jmp 0x40311f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403139
jg 0x40311f
test esi, esi
je 0x403139
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403139
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 0x403150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40317c
jl 0x403170
test ecx, ecx
jne 0x40317c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403195
push eax
push ecx
push esi
mov ecx, ebx
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 esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4031dd
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4031e3
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4031e3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x403256
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40320c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x403244
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403256
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403220
test edi, edi
je 0x403256
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
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 0x4035d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403600
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40363c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40363c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403713
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403664
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 0x403670
movsx eax, bl
jmp 0x4036a8
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 0x4036d2
sub eax, 1
je 0x4036d2
sub eax, 2
jne 0x403713
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
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.0040ef13
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4036f0
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 0x403713
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ef13
mov esp, ebp
pop ebp
ret 4
Function at 0x403b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x403c0c
cmp byte [esi + 0x3d], 0
je 0x403c0c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403bfa
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 0x403bc1
sub eax, 1
je 0x403bc5
sub eax, 2
jne 0x403bfa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403be3
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 0x403bfa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040ef13
mov esp, ebp
pop ebp
ret
Function at 0x407da0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x41800c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x407e09
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x407e02
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
cmp dword [esp + 0x18], edi
je 0x407e20
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x407df0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret

Function at 0x407e40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x41800c]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0
push 2
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f23
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
lea edx, [esp + 0x2c]
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x407e90
sub edx, ecx
lea eax, [esp + 0x2c]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push edx
cmovae ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push eax
call fcn.0040be40
add esp, 8
test eax, eax
jne 0x407ec6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
jmp 0x407f25
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
je 0x407f1c
nop dword [eax + eax]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407ee7
sub eax, edx
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov edx, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040be40
add esp, 8
test eax, eax
je 0x407eb9
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
jne 0x407ee0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x407f5b
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407f51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407f51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040ef13
mov esp, ebp
pop ebp
ret