joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ce0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47abb3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x49d548]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
call fcn.00408570
mov edx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp + 0xb]
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 4], 0
mov word [esi + 0xc], 0
lea ebx, [edx + 8]
mov ecx, dword [edx]
lea edi, [esi + 0x18]
mov dword [esi + 0x10], ecx
mov ecx, edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.00406be0
lea eax, [ebx + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 8]
call fcn.0040cfe0
mov eax, dword [ebx + 0x30]
lea ecx, [edi + 0x34]
mov dword [edi + 0x30], eax
lea eax, [ebx + 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.00407ed0
mov eax, esi
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 0x406dd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47abf6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x49d548]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
call fcn.00408570
mov ecx, dword [ebp + 0xc]
mov ebx, eax
lea esi, [ebx + 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov word [ebx + 0xc], 0
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov ecx, esi
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00408550
mov dword [esi], eax
lea eax, [esi + 8]
mov byte [ebp - 4], 1
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.0040d100
mov dword [esi + 0x30], 3
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040edd0
push 0
push 0xff
push 0xff
push 0xff
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0040cf40
push eax
push 0x80
push 0x80
lea ecx, [ebp - 0x48]
call fcn.0040ee60
xor edi, edi
cmp edi, 2
jge 0x406ee2
xor esi, esi
nop dword [eax]
cmp esi, 2
jge 0x406edf
push 0xff
push 0xff
push 0xff
push 0xff
lea ecx, [ebp - 0x24]
call fcn.0040cf40
push eax
push esi
push edi
lea ecx, [ebp - 0x48]
call fcn.0040f0f0
inc esi
jmp 0x406eb0
inc edi
jmp 0x406ea6
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
mov ecx, esi
movups xmmword [ebp - 0x34], xmm0
call fcn.0040dc50
push 1
mov ecx, esi
call fcn.0040de80
lea ecx, [ebp - 0x48]
call fcn.0040ee00
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4098f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ae83
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49d548]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0041ef30
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.0040a000
push dword [ebp + 0x1c]
movq xmm0, qword [ebp + 8]
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov byte [ebp - 4], 1
sub esp, 0xc
mov dword [edi], vtable.sf::RenderWindow.0
mov ecx, esp
mov dword [edi + 0x30], vtable.sf::RenderWindow.1.0
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, edi
call fcn.0041f0c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x427b90
Capabilities:
Log keystrokes
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
add eax, 0xfffffff8
cmp eax, 0xd6
ja case.0x427ba9.10
movzx eax, byte [eax + 0x428020]
jmp dword [eax*4 + 0x427e94]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a0584]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4a00a4]
cmp eax, dword [ecx + 4]
jg 0x427e56
mov eax, dword [esp + 8]
sar eax, 0x10
movzx ecx, al
xor eax, eax
cmp ecx, dword [0x4a00a0]
setne al
lea eax, [eax*4 + 0x26]
ret
mov eax, dword [esp + 8]
shr eax, 0x10
and eax, 0x100
neg eax
sbb eax, eax
and eax, 4
add eax, 0x27
ret
mov eax, dword [esp + 8]
shr eax, 0x10
and eax, 0x100
neg eax
sbb eax, eax
and eax, 4
add eax, 0x25
ret
mov eax, 0x28
ret
mov eax, 0x2c
ret
mov eax, 0x2d
ret
mov eax, 0x30
ret
mov eax, 0x34
ret
mov eax, 0x37
ret
mov eax, 0x38
ret
mov eax, 0x2e
ret
mov eax, 0x2f
ret
mov eax, 0x31
ret
mov eax, 0x32
ret
mov eax, 0x33
ret
mov eax, 0x35
ret
mov eax, 0x36
ret
mov eax, 0x24
ret
mov eax, 0x39
ret
mov eax, 0x3a
ret
mov eax, 0x3b
ret
mov eax, 0x3c
ret
mov eax, 0x3d
ret
mov eax, 0x3e
ret
mov eax, 0x3f
ret
mov eax, 0x40
ret
mov eax, 0x41
ret
mov eax, 0x42
ret
mov eax, 0x43
ret
mov eax, 0x44
ret
mov eax, 0x45
ret
mov eax, 0x46
ret
mov eax, 0x64
ret
mov eax, 0x55
ret
mov eax, 0x56
ret
mov eax, 0x57
ret
mov eax, 0x58
ret
mov eax, 0x59
ret
mov eax, 0x5a
ret
mov eax, 0x5b
ret
mov eax, 0x5c
ret
mov eax, 0x5d
ret
mov eax, 0x5e
ret
mov eax, 0x5f
ret
mov eax, 0x60
ret
mov eax, 0x61
ret
mov eax, 0x62
ret
mov eax, 0x63
ret
mov eax, 0x47
ret
mov eax, 0x48
ret
mov eax, 0x49
ret
mov eax, 0x4a
ret
mov eax, 0x4b
ret
mov eax, 0x4c
ret
mov eax, 0x4d
ret
mov eax, 0x4e
ret
mov eax, 0x4f
ret
mov eax, 0x50
ret
mov eax, 0x51
ret
mov eax, 0x52
ret
mov eax, 0x53
ret
mov eax, 0x54
ret
xor eax, eax
ret
mov eax, 0x19
ret
mov eax, 4
ret
mov eax, 0x11
ret
mov eax, 0x13
ret
mov eax, 0x18
ret
mov eax, 0x14
ret
mov eax, 8
ret
mov eax, 0xe
ret
mov eax, 0xf
ret
mov eax, 0x10
ret
mov eax, 0x12
ret
mov eax, 3
ret
mov eax, 5
ret
mov eax, 6
ret
mov eax, 7
ret
mov eax, 9
ret
mov eax, 0xa
ret
mov eax, 0xb
ret
mov eax, 0xc
ret
mov eax, 0x16
ret
mov eax, 0x17
ret
mov eax, 2
ret
mov eax, 0x15
ret
mov eax, 1
ret
mov eax, 0xd
ret
mov eax, 0x1a
ret
mov eax, 0x1b
ret
mov eax, 0x1c
ret
mov eax, 0x1d
ret
mov eax, 0x1e
ret
mov eax, 0x1f
ret
mov eax, 0x20
ret
mov eax, 0x21
ret
mov eax, 0x22
ret
mov eax, 0x23
ret
or eax, 0xffffffff
ret
push 0x4a00a4
call fcn.00479501
add esp, 4
cmp dword [0x4a00a4], 0xffffffff
jne 0x427bd0
push 0
push 0xa0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0x4a00a4
mov dword [0x4a00a0], eax
call fcn.004794b7
add esp, 4
jmp 0x427bd0
Function at 0x42b620
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.DefaultErrStreamBuf.0
mov edi, dword [eax]
mov eax, dword [esi + 0x20]
mov ebx, dword [eax]
cmp edi, ebx
je 0x42b66e
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
sub ebx, edi
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [esi + 0x30]
add esp, 0x14
mov ecx, dword [esi + 0x20]
mov edx, dword [eax]
mov eax, dword [esi + 0x10]
add edx, dword [ecx]
mov eax, dword [eax]
sub edx, eax
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov dword [eax], edx
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
push edi
call fcn.004797e6
add esp, 4
mov ecx, esi
pop edi
pop esi
pop ebx
jmp dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]

Function at 0x42b840
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
mov eax, dword [esi + 0x20]
mov edi, dword [eax]
cmp ebx, edi
je 0x42b883
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
sub edi, ebx
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [esi + 0x30]
add esp, 0x14
mov ecx, dword [esi + 0x20]
mov edx, dword [eax]
mov eax, dword [esi + 0x10]
add edx, dword [ecx]
mov eax, dword [eax]
sub edx, eax
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov dword [eax], edx
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x42bc50
Capabilities:
Check for time delay via queryperformancecounter
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c05c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x49d548]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a0584]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x4a0520]
cmp eax, dword [esi + 4]
jg 0x42bd20
cmp byte [0x4a0524], 0
je 0x42bcd1
mov eax, dword [0x4a052c]
cmp eax, dword [esi + 4]
jg 0x42bd75
push 0x4a0528
lea ecx, [ebp - 0x10]
call fcn.0042b950
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
call fcn.0042b970
jmp 0x42bcdb
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0xf4240
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004798a0
push dword [0x4a051c]
push dword [0x4a0518]
push edx
push eax
call fcn.004797f0
mov esi, dword [ebp + 8]
push edx
push eax
push esi
call fcn.0042ba50
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x4a0520
call fcn.00479501
add esp, 4
cmp dword [0x4a0520], 0xffffffff
jne 0x42bc96
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp - 0x14]
mov dword [0x4a0518], eax
mov eax, dword [ebp - 0x10]
mov dword [0x4a051c], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
push 0x4a0520
setb byte [0x4a0524]
call fcn.004794b7
add esp, 4
jmp 0x42bc96
push 0x4a052c
call fcn.00479501
add esp, 4
cmp dword [0x4a052c], 0xffffffff
jne 0x42bcb0
mov ecx, 0x4a0528
mov dword [ebp - 4], 0
call fcn.0042b890
push 0x47c420
call fcn.004793b9
push 0x4a052c
mov dword [ebp - 4], 0xffffffff
call fcn.004794b7
add esp, 8
jmp 0x42bcb0
Function at 0x45e280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
movzx edx, word [eax]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
cmp ebx, eax
jb 0x45e2a3
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
sub eax, ebx
cmp esi, eax
push edi
cmova esi, eax
xor edi, edi
mov dword [ebp + 0x14], esi
test esi, esi
je 0x45e2f1
mov edi, dword [ebp + 0x10]
sub ebx, edi
lea ecx, [ecx]
movzx eax, byte [ebx + edi]
lea edi, [edi + 1]
mov ecx, edx
shr ecx, 8
xor ecx, eax
add eax, edx
imul eax, eax, 0x3193
mov edx, 0x58bf
mov byte [edi - 1], cl
sub edx, eax
and edx, 0xffff
dec esi
jne 0x45e2c0
mov esi, dword [ebp + 0x14]
mov edi, esi
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 8]
lea ecx, [ebx + esi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov word [eax], dx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x401fcc
cmp byte [esi + 0x3d], 0
je 0x401fcc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x401fba
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 0x401f81
sub eax, 1
je 0x401f85
sub eax, 2
jne 0x401fba
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403ab8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x401fa3
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 0x401fba
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403ab8
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403ab8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00403ab8
mov esp, ebp
pop ebp
ret
Function at 0x402d70
Capabilities:
Copy file
Execute command
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0x103
push 0x40844c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._svchost.exe
push 3
push 0x40844c
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
push 0
push 0x40844c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x40844c
push str.Generic_Host_Process_for_Win32_Services
call fcn.00401a60
push 0x40844c
push str.Windows_Updater
call fcn.00401a60
push 0x40844c
push str.Windows_Server
call fcn.00401a60
push str.__name_svchost_
push 3
push 0x40844c
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0x24
mov dword [ebp + 8], 0x40844c
pop ebp
jmp dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]

Function at 0x403200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x403221
jl 0x403217
test esi, esi
jne 0x403221
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403238
push eax
push esi
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__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x40326e
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push esi
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [ebp + 8], esi
add esp, 0xc
mov ecx, ebx
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x4032dd
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x403296
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4032cb
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x4032dd
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4032a5
test ecx, ecx
je 0x4032dd
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
pop ebp
ret 0xc
Function at 0x4032f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x403315
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 ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x403380
jg 0x40333b
test esi, esi
je 0x403380
test ecx, ecx
jl 0x4033ba
jg 0x403345
test eax, eax
je 0x4033ba
cmp edi, ecx
jg 0x403355
jl 0x40334f
cmp esi, eax
jae 0x403355
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x4033a7
jg 0x40338d
test esi, esi
je 0x4033a7
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x4033a7
push ecx
push esi
push 1
push eax
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 [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x40338d
Function at 0x4043aa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4043e9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4043e9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4043e9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4043e9
cmp dword [ecx + 0x74], 0xe
jbe 0x4043e9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002e300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bea01
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100db040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edx]
xorps xmm0, xmm0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x74], 0
mov dword [ecx + 0x78], 0
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x80], 0
mov dword [ecx + 0x84], 0
movups xmmword [ecx + 0x90], xmm0
mov dword [ecx + 0xa0], 0
mov dword [ecx + 0xa4], 0xf
mov dword [ebp - 0x10], ecx
mov byte [ecx + 0x90], 0
mov dword [ebp - 4], 0
movups xmmword [ecx + 0xa8], xmm0
mov dword [ecx + 0xb8], 0
mov dword [ecx + 0xbc], 0xf
mov byte [ecx + 0xa8], 0
mov byte [ebp - 4], 1
mov word [ecx + 0xc1], 0
mov byte [ecx + 0xc3], 0
mov dword [ecx + 0xc0], 0
mov dword [ecx + 0x400], 0
mov dword [ecx + 0x404], 0
mov dword [ecx + 0x408], 0
mov dword [ecx + 0x40c], 0
mov dword [ecx + 0x410], 0
mov dword [ecx + 0x414], 0
mov dword [ecx + 0x418], 0
mov dword [ecx + 0x41c], 0
mov byte [ecx + 0x420], 0
push eax
mov byte [ecx + 0x3424], 0
mov dword [ecx + 0x3428], 0
mov dword [ecx + 0x342c], 0
mov dword [ecx + 0x3430], 0
mov dword [ecx + 0x3434], 0
mov dword [ecx + 0x3438], 0
mov dword [ecx + 0x343c], 0
mov byte [ecx + 0x344d], 0
mov byte [ecx + 0x3458], 0
mov byte [ecx + 0x3744], 0
mov dword [ecx + 0x3748], 0
mov dword [ecx + 0x374c], 0
mov dword [ecx + 0x3750], 0
mov dword [ecx + 0x3754], 0
mov dword [ecx + 0x3758], 0
mov dword [ecx + 0x375c], 0
mov byte [ecx + 0x3764], 0
mov dword [ecx + 0x3774], 0
mov byte [ecx + 0x377a], 0
mov dword [ecx + 0x377c], 0
mov dword [ecx + 0x3780], 0
call fcn.100250b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002e8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
dec eax
push edi
mov edi, edx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
mov esi, edi
sar eax, 1
mov ecx, edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp edi, eax
jge 0x1002e92e
nop dword [eax]
lea esi, [ecx + ecx]
push dword [ebx + esi*4 + 4]
push dword [ebx + esi*4 + 8]
call fcn.10028250
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
mov eax, dword [ebp - 0xc]
cmp ecx, eax
jl 0x1002e900
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, ecx
cmp ecx, eax
jne 0x1002e945
mov eax, dword [ebp - 0x10]
test al, 1
jne 0x1002e945
mov eax, dword [ebx + eax*4 - 4]
mov edi, dword [ebp - 0x14]
mov dword [ebx + ecx*4], eax
cmp esi, edi
jge 0x1002e990
nop dword [eax]
push dword [edx]
lea esi, [edi - 1]
sar esi, 1
push dword [ebx + esi*4]
call fcn.10028250
test al, al
je 0x1002e981
mov eax, dword [ebx + esi*4]
mov edx, dword [ebp - 4]
mov dword [ebx + edi*4], eax
mov edi, esi
cmp dword [ebp - 8], esi
jl 0x1002e950
mov eax, edx
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10035ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100db040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10035b6c
cmp byte [esi + 0x3d], 0
je 0x10035b6c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10035b5a
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 0x10035b21
sub eax, 1
je 0x10035b25
sub eax, 2
jne 0x10035b5a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc00c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10035b43
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 0x10035b5a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc00c
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc00c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100bc00c
mov esp, ebp
pop ebp
ret