joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40595c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x40597d
mov ecx, dword [0x4236dc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x423f38]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x422ea0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x800
jae 0x405b23
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405b23
mov edx, ebx
sub edx, eax
cmp edx, 0x400
jge 0x405b30
inc edi
cmp cl, 0xfc
jbe 0x405b16
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405ac1
cmp dword [0x423f84], 0
push 2
pop esi
je 0x405a08
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x405a3f
mov ecx, eax
and eax, 0x3f
add eax, dword [0x423f38]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405821
cmp byte [ebx], 0
jne 0x405aa8
push dword [ebp - 0xc]
push ebx
call fcn.0040595c
jmp 0x405aa3
cmp eax, 0x25
jne 0x405a52
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405aa3
cmp eax, 0x24
jne 0x405a9f
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405a9f
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x423f04]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405a9c
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405aa3
and byte [ebx], 0
test esi, esi
jne 0x405a67
cmp byte [ebx], 0
je 0x405ab9
cmp dword [ebp - 0xc], 0x1a
jne 0x405ab9
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call fcn.00405b49
jmp 0x405b07
cmp byte [ebp + 0xf], 0xfd
jne 0x405af5
cmp esi, 0x1d
jne 0x405ada
push dword [0x423f04]
push ebx
call fcn.00405898
jmp 0x405aeb
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push ebx
call fcn.0040593a
add esi, 0xffffffeb
cmp esi, 7
jae 0x405b07
jmp 0x405ab9
cmp byte [ebp + 0xf], 0xff
jne 0x405b07
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.0040595c
push ebx
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
mov eax, 0x422ea0
jmp 0x405b23
jne 0x405b20
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x405b23
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x4059a8
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405b45
push eax
push dword [ebp + 8]
call fcn.0040593a
leave
ret 8
Function at 0x405c8c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422aa4], 0
push esi
jne 0x405cc3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c9d
mov dword [ecx*4 + 0x422aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c98
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cf4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405cd6
pop edi
not eax
pop esi
ret 0xc
Function at 0x405120
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 0x40514c
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 0x405174
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40517a
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 0x405204
jg 0x405191
test esi, esi
je 0x405204
test ecx, ecx
jl 0x4051e7
jg 0x40519b
test eax, eax
je 0x4051e7
cmp edi, ecx
jg 0x4051af
jl 0x4051a5
cmp esi, eax
jae 0x4051af
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 ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x405204
jg 0x4051ea
test esi, esi
je 0x405204
jmp 0x4051ea
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x405204
push eax
push esi
push 1
push edx
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 0x405220
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 0x40524c
jl 0x405240
test ecx, ecx
jne 0x40524c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x405265
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 0x4052b3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4052b9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4052b9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x405326
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4052e2
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 0x405314
nop
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 0x405326
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4052f0
test edi, edi
je 0x405326
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 0x4056b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4056e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40571c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40571c
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.0040fd39
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4057f3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405744
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 0x405750
movsx eax, bl
jmp 0x405788
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 0x4057b2
sub eax, 1
je 0x4057b2
sub eax, 2
jne 0x4057f3
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4057d0
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 0x4057f3
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.0040fd39
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.0040fd39
mov esp, ebp
pop ebp
ret 4
Function at 0x405be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405c9c
cmp byte [esi + 0x3d], 0
je 0x405c9c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405c8a
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 0x405c51
sub eax, 1
je 0x405c55
sub eax, 2
jne 0x405c8a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405c73
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 0x405c8a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040fd39
mov esp, ebp
pop ebp
ret

Function at 0x40a8a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41f510
push 0x40fe96
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x422040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x24c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x40a958
push 0x22c
push ebx
lea eax, [ebp - 0x248]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a958
cmp dword [ebp - 0x240], esi
je 0x40a94c
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a930
jmp 0x40a958
mov ebx, dword [ebp - 0x230]
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040a98e
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
Function at 0x40a9a0
Capabilities:
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 4], eax
lea eax, [esp]
mov dword [esp], 0
push eax
call dword [sym.imp.USER32.dll_GetShellWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call fcn.0040a8a0
cmp eax, dword [esp]
jne 0x40aa1c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.___Pausing_to_allow_for_debugging
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.___Press_enter_to_close
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
Function at 0x40ceb0
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40cf36
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40cf36
test eax, eax
je 0x40cf36
mov eax, dword [eax + 0xd8]
test eax, eax
jne 0x40cef7
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.___Load_config_directory_wasnt_found__probably_StackCookie_not_defined__fix_cookie_skipped
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov al, 1
pop ecx
ret
cmp dword [eax + ecx + 0x3c], 0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
jne 0x40cf1f
mov edx, str.___StackCookie_not_defined__fix_cookie_skipped
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov al, 1
pop ecx
ret
mov edx, str.____StackCookie_already_fixed___this_probably_wrong
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
xor al, al
pop ecx
ret
Function at 0x40dba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x2c], ebx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], edi
mov eax, 0x5a4d
mov dword [ebp - 0x20], edi
cmp word [ebx], ax
jne 0x40dccd
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x40dccd
test eax, eax
je 0x40dccd
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor edx, edx
movq qword [ebp - 0x1c], xmm0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
mov esi, dword [eax + 0xb0]
test esi, esi
je 0x40dccd
mov eax, dword [eax + 0xb4]
add esi, ebx
add eax, esi
mov dword [ebp - 0x20], eax
cmp esi, eax
jae 0x40dcc0
cmp dword [esi + 4], 0
je 0x40dcbd
mov eax, dword [ebp - 0x2c]
mov edi, dword [esi]
cdq
add edi, eax
mov dword [ebp - 0x24], edi
mov edi, 0
mov eax, dword [ebp - 0x24]
adc edi, edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
lea eax, [esi + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 4]
add eax, 0xfffffff8
mov dword [ebp - 0x30], edi
shr eax, 1
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], eax
cmp ecx, edx
je 0x40dc9f
mov edi, dword [ebp - 0x24]
mov dword [ecx], edi
mov edi, dword [ebp - 0x30]
mov dword [ecx + 4], edi
lea edi, [esi + 8]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
add ecx, 0x10
mov dword [ebp - 0x18], ecx
jmp 0x40dcb5
lea eax, [ebp - 0x48]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040e3b0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
add esi, dword [esi + 4]
cmp esi, dword [ebp - 0x20]
jb 0x40dc47
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
jmp 0x40dce1
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
Function at 0x40f170
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
lea eax, [esp + 0x1c]
push eax
xor esi, esi
mov dword [esp + 0x14], ecx
push esi
push esi
push 0xb
mov dword [esp + 0x2c], esi
call edi
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp eax, 0xc0000004
jne 0x40f1ee
nop
test esi, esi
je 0x40f1be
push 0x8000
push 0
push esi
call ecx
push 4
push 0x3000
push dword [esp + 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push esi
push 0xb
call edi
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp eax, 0xc0000004
je 0x40f1b0
test eax, eax
jns 0x40f219
test esi, esi
je 0x40f2fd
push 0x8000
push 0
push esi
call ecx
xor eax, eax
xor edx, edx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40f2fd
xor edi, edi
cmp dword [esi], edi
jbe 0x40f2ee
xor ecx, ecx
mov dword [esp + 0x14], ecx
movzx edx, word [esi + ecx + 0x1e]
xorps xmm0, xmm0
add ecx, 0x20
movaps xmmword [esp + 0x20], xmm0
add edx, ecx
mov dword [esp + 0x30], 0
add edx, esi
mov dword [esp + 0x34], 0
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f260
sub ecx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00408b20
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x40f284
mov ecx, dword [eax]
cmp dword [esp + 0x34], 0xf
lea eax, [esp + 0x20]
push ecx
cmova eax, dword [esp + 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x40f312
mov ecx, dword [esp + 0x34]
cmp ecx, 0xf
jbe 0x40f2d7
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f2cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f35a
push ecx
push edx
call fcn.0040fe5c
add esp, 8
mov ecx, dword [esp + 0x14]
inc edi
add ecx, 0x11c
mov dword [esp + 0x14], ecx
cmp edi, dword [esi]
jb 0x40f231
mov eax, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push esi
call eax
xor eax, eax
xor edx, edx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
imul eax, edi, 0x11c
push 0x8000
push 0
push esi
mov eax, dword [eax + esi + 0xc]
cdq
mov edi, eax
mov dword [esp + 0x1c], edx
mov eax, dword [sym.imp.KERNEL32.dll_VirtualFree]
call eax
mov ecx, dword [esp + 0x34]
cmp ecx, 0xf
jbe 0x40f36a
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f360
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f360
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040fe5c
add esp, 8
mov ecx, dword [esp + 0x4c]
mov eax, edi
mov edx, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
Function at 0x40f7b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40f7df
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40f7e2
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040f794
pop esi
leave
ret 8

Function at 0x410b01
Capabilities:
Parse pe header

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