joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10152920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101c0618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1015296a
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
mov eax, 0x4d42
mov word [ebp - 0x14], ax
xor eax, eax
push esi
push edi
mov dword [ebp - 0xe], eax
call fcn.10152690
movzx ecx, word [edi + 0xe]
add esp, 4
movzx edx, ax
push 0
lea eax, [edx + 0x36]
mov dword [ebp - 0xa], eax
movzx eax, word [edi + 0xc]
imul ecx, eax
lea eax, [edx + 0x36]
imul ecx, dword [edi + 4]
add ecx, 0x1f
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, dword [edi + 8]
add eax, ecx
shr eax, 2
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x18]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10152a35
cmp dword [ebp - 0x18], 0xe
jne 0x10152a35
movzx esi, word [edi + 0xe]
movzx ecx, word [edi + 0xc]
mov eax, dword [edi + 8]
imul esi, ecx
cdq
sub eax, edx
sar eax, 1
push 0
imul esi, dword [edi + 4]
mov dword [edi + 8], eax
add esi, 0x1f
sar esi, 3
and esi, 0xfffffffc
imul esi, eax
lea eax, [ebp - 0x18]
push eax
add esi, dword [ebp - 0xa]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10152a35
cmp dword [ebp - 0x18], esi
jne 0x10152a35
mov eax, dword [edi + 8]
add eax, eax
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b4568
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.100b4568
mov esp, ebp
pop ebp
ret
Function at 0x404140
Capabilities:
Check os version

Disassembly:
mov ecx, dword [0x459a18]
test ecx, ecx
jne 0x404198
push esi
mov esi, dword fs:[0x30]
test esi, esi
jne 0x40415e
cmp ecx, 0x3e
pop esi
setae al
ret
mov edx, dword [esi + 0xa8]
mov ecx, dword [esi + 0xa4]
cmp edx, 0xa
jb 0x40417f
nop
mov eax, 0xcccccccd
mul edx
shr edx, 3
cmp edx, 0xa
jae 0x404170
lea eax, [ecx + ecx*4]
lea ecx, [edx + eax*2]
movzx eax, word [esi + 0xac]
mov dword [0x459a18], ecx
mov dword [0x459a14], eax
pop esi
cmp ecx, 0x3e
setae al
ret

Function at 0x4041a0
Capabilities:
Check os version

Disassembly:
mov ecx, dword [0x459a18]
test ecx, ecx
jne 0x4041f8
push esi
mov esi, dword fs:[0x30]
test esi, esi
jne 0x4041be
cmp ecx, 0x3f
pop esi
setae al
ret
mov edx, dword [esi + 0xa8]
mov ecx, dword [esi + 0xa4]
cmp edx, 0xa
jb 0x4041df
nop
mov eax, 0xcccccccd
mul edx
shr edx, 3
cmp edx, 0xa
jae 0x4041d0
lea eax, [ecx + ecx*4]
lea ecx, [edx + eax*2]
movzx eax, word [esi + 0xac]
mov dword [0x459a18], ecx
mov dword [0x459a14], eax
pop esi
cmp ecx, 0x3f
setae al
ret

Function at 0x404200
Capabilities:
Check os version
Get number of processors

Disassembly:
mov ecx, dword [0x459a18]
test ecx, ecx
jne 0x404258
push esi
mov esi, dword fs:[0x30]
test esi, esi
jne 0x40421e
cmp ecx, 0x64
pop esi
setae al
ret
mov edx, dword [esi + 0xa8]
mov ecx, dword [esi + 0xa4]
cmp edx, 0xa
jb 0x40423f
nop
mov eax, 0xcccccccd
mul edx
shr edx, 3
cmp edx, 0xa
jae 0x404230
lea eax, [ecx + ecx*4]
lea ecx, [edx + eax*2]
movzx eax, word [esi + 0xac]
mov dword [0x459a18], ecx
mov dword [0x459a14], eax
pop esi
cmp ecx, 0x64
setae al
ret

Function at 0x404260
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x459a18]
mov edx, ecx
test eax, eax
jne 0x4042bd
mov ecx, dword fs:[0x30]
test ecx, ecx
jne 0x404283
test edx, edx
je 0x404280
mov dword [edx], 0x2c
xor eax, eax
ret
mov edx, dword [ecx + 0xa8]
push esi
mov esi, dword [ecx + 0xa4]
cmp edx, 0xa
jb 0x4042a4
mov eax, 0xcccccccd
mul edx
shr edx, 3
cmp edx, 0xa
jae 0x404295
movzx ecx, word [ecx + 0xac]
lea eax, [esi + esi*4]
lea eax, [edx + eax*2]
mov dword [0x459a14], ecx
mov dword [0x459a18], eax
pop esi
ret
Function at 0x40b910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
mov esi, ecx
cmp bx, di
jne 0x40b933
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x40b95f
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx]
lea ecx, [edx + ecx*2]
cmp edx, ecx
jae 0x40b95f
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], di
mov ax, di
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40ba2a
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x40b98c
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], 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 0x40b9b7
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
cmp ax, bx
movzx eax, di
jne 0x40ba2d
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x40b9f6
sub eax, 1
je 0x40b9f6
sub eax, 2
jne 0x40ba2a
push dword [esi + 0x4c]
push dword [ebp - 4]
jmp 0x40b997
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 8], eax
je 0x40ba1a
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 8], eax
jne 0x40ba2a
lea ecx, [ebp - 4]
movzx eax, di
cmp dword [ebp - 0xc], ecx
mov byte [esi + 0x3e], 1
cmovne ebx, eax
mov ax, bx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bff0
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 0x40c01c
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 0x40c044
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40c04a
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 0x40c0b2
jg 0x40c061
test esi, esi
je 0x40c0b2
test ecx, ecx
jl 0x40c0ad
jg 0x40c06b
test eax, eax
je 0x40c0ad
cmp edi, ecx
jg 0x40c07f
jl 0x40c075
cmp esi, eax
jae 0x40c07f
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 0x40c0b5
mov ecx, dword [ebp + 8]
jmp 0x40c0bf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40c0d9
jg 0x40c0bf
test esi, esi
je 0x40c0d9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40c0d9
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 0x40c0f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
test eax, eax
jg 0x40c11b
jl 0x40c10e
test ecx, ecx
jne 0x40c11b
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40c137
push eax
push ecx
push dword [ebp + 8]
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40c188
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [esp + 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40c18f
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
sub edi, esi
add eax, esi
add esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x14]
jmp 0x40c192
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x40c206
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40c1bc
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 [esp + 0x10]
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 0x40c1f4
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 0x40c206
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40c1d0
test edi, edi
je 0x40c206
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 0x40c660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40c67c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40c6a4
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx]
add ecx, eax
cmp eax, ecx
jae 0x40c6a4
mov ecx, esi
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 esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x40c768
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40c6cd
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 0x40c6d9
movsx eax, bl
jmp 0x40c711
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
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 0x40c731
sub eax, 1
je 0x40c731
sub eax, 2
jne 0x40c768
movsx eax, byte [ebp - 1]
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 esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x40c74f
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 0x40c768
lea ecx, [ebp - 1]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 8], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40cb60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40cbf8
cmp byte [esi + 0x3e], 0
je 0x40cbf8
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x40cbf0
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40cbc1
sub eax, 1
je 0x40cbc5
sub eax, 2
jne 0x40cbf0
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40cbe3
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 0x40cbf0
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40cc00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x4c], 0
je 0x40ccce
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40cc35
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
cmp dword [esi + 0x38], 0
lea edi, [esi + 0x3e]
je 0x40cc87
cmp byte [edi], 0
je 0x40cc87
mov eax, dword [esi]
mov ecx, esi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
jne 0x40cc5d
xor al, al
jmp 0x40cc89
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40cca5
sub eax, 1
je 0x40cca8
sub eax, 2
jne 0x40cc59
mov byte [edi], al
mov al, 1
push dword [esi + 0x4c]
xor ebx, ebx
test al, al
cmovne ebx, esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
cmovne ebx, ecx
jmp 0x40ccd3
mov byte [edi], 0
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x40ccc6
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x40cc59
cmp byte [edi], 0
sete al
jmp 0x40cc89
xor ebx, ebx
lea edi, [esi + 0x3e]
mov ecx, esi
mov byte [esi + 0x48], 0
mov byte [edi], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void_]
mov ecx, dword [0x459e4c]
mov eax, ebx
mov edx, dword [0x459e50]
pop edi
mov dword [esi + 0x4c], 0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov dword [esi + 0x38], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cd10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40cd9c
cmp byte [esi + 0x3d], 0
je 0x40cd9c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40cd94
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
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 0x40cd65
sub eax, 1
je 0x40cd69
sub eax, 2
jne 0x40cd94
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40cd87
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 0x40cd94
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40cdb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x4c], 0
je 0x40ce74
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40cde3
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
cmp dword [esi + 0x38], 0
lea edi, [esi + 0x3d]
je 0x40ce2d
cmp byte [edi], 0
je 0x40ce2d
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40ce03
xor al, al
jmp 0x40ce2f
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
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 0x40ce4b
sub eax, 1
je 0x40ce4e
sub eax, 2
jne 0x40cdff
mov byte [edi], al
mov al, 1
push dword [esi + 0x4c]
xor ebx, ebx
test al, al
cmovne ebx, esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
cmovne ebx, ecx
jmp 0x40ce79
mov byte [edi], 0
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x40ce6c
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x40cdff
cmp byte [edi], 0
sete al
jmp 0x40ce2f
xor ebx, ebx
lea edi, [esi + 0x3d]
mov ecx, esi
mov byte [esi + 0x48], 0
mov byte [edi], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov ecx, dword [0x459e44]
mov eax, ebx
mov edx, dword [0x459e48]
pop edi
mov dword [esi + 0x4c], 0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov dword [esi + 0x38], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e7d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439cb0
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x40e82a
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x40e83b
push 0x48
push esi
call fcn.00438d0e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f1a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x40f1c2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x49]
inc eax
xor byte [edx], cl
cmp eax, 3
jb 0x40f1b0
mov byte [esi + 4], 0
mov eax, esi
pop esi
ret
Function at 0x410810
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x410832
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x428
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x4108aa
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
je 0x4108aa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push 0x449600
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
je 0x4108a1
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
jne 0x410870
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4108c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a46d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
push 3
push 0x44944c
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00414d70
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0x3c
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], str.cmd.exe
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x41095f
or esi, 0xffffffff
jmp 0x410983
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x4109b9
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4109af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4109af
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00438d0e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4109d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x410a31
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 4]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x410a41
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x410a13
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret