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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x403c1c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
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__]
jmp 0x403d03
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
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 - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x403cb4
jg 0x403c45
cmp dword [ebp + 0xc], 0
jbe 0x403cb4
cmp dword [ebp - 8], 0
jl 0x403cb4
jg 0x403c53
cmp dword [ebp - 0xc], 0
jbe 0x403cb4
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x403c71
jl 0x403c65
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x403c71
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.00405dd0
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
nop
cmp dword [ebp + 0x10], 0
jl 0x403cf7
jg 0x403cc2
cmp dword [ebp + 0xc], 0
jbe 0x403cf7
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x403cf7
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x403d3a
jl 0x403d31
cmp dword [ebp + 0xc], 0
ja 0x403d3a
xor eax, eax
xor edx, edx
jmp 0x403e78
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x403d5d
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
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__]
jmp 0x403e78
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x403dd0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.00403e90
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00405dd0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
nop
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x403e69
mov ecx, dword [ebp - 0x10]
call fcn.00405390
mov dword [ebp - 0x24], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x403e41
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x403e3f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x403e78
jmp 0x403dec
cmp dword [ebp - 8], 0
jbe 0x403e69
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408891
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x405447
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40544e
mov al, 1
jmp 0x40551f
call fcn.00404b80
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
push eax
call fcn.00404b80
push eax
call fcn.00405d60
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40547e
xor al, al
jmp 0x40551f
mov dword [ebp - 0x40], 0x20
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x38]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4054bb
cmp dword [ebp - 0x34], 1
je 0x4054c2
cmp dword [ebp - 0x34], 3
je 0x405512
jmp 0x40551d
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x4054f2
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4054f2
xor al, al
jmp 0x40551f
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x405506
mov dword [ebp - 0x3c], 1
jmp 0x40550d
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x40551f
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x40551f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408891
mov esp, ebp
pop ebp
ret

Function at 0x409374
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4093b3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4093b3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4093b3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4093b3
cmp dword [ecx + 0x74], 0xe
jbe 0x4093b3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40563b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402fd6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4056ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405796
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405796
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4056ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405747
cmp dword [0x40b7e8], ecx
je 0x405747
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405747
test ebx, ebx
je 0x405747
call edi
test eax, eax
je 0x40573e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40573e
test byte [ebp - 8], 1
jne 0x405747
or dword [ebp + 0x10], 0x200000
jmp 0x40577a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x40577a
push eax
call esi
test eax, eax
je 0x40577a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40577a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x40577a
push eax
call esi
test eax, eax
je 0x40577a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405796
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405798
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040239a
leave
ret

Function at 0x1d95c29
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
adc cl, dl
cdq
xor dword [eax - 0x18], esp
pushal
call fcn.0129c35d
lahf
add eax, 0x22291961
mov esi, 0xa03880
pushal
call fcn.0129c35d
lahf
add eax, 0x22291961
mov esi, 0xa03880
push eax
xor byte [eax + 0x3c], dh
push 0x640c6034
cmp al, 0x7c
adc al, 0x30
add byte [eax], cl
or al, 0
or byte [eax], dh
sbb al, 0x34
dec esp
xor al, 0x1a
sub byte [ecx], al
in eax, dx
inc ebx
ja 0x1d95c25
pop eax
int1
invalid
Function at 0x103159f
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
inc ebx
call fcn.01031517
mov esi, eax
test esi, esi
jne 0x10315bb
xor ebx, ebx
jmp 0x1031609
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x10315c7
xor ebx, ebx
jmp 0x1031608
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x1031608
cmp eax, dword [esi + 0xc]
jg 0x1031608
mov eax, dword [esi + 0x10]
dec eax
je 0x1031601
dec eax
je 0x1031601
sub eax, 6
jne 0x1031608
cmp dword [esi + 0x14], 0
je 0x1031608
push 0
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1031608
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
test ebx, ebx
setne al
pop esi
pop ebx
dec eax
pop ebp
ret 0xc

Function at 0x8003b13
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x800438c], 0x30
mov dword [0x8004394], 0x8003424
mov dword [0x8004390], 2
mov dword [0x8004398], 0
mov dword [0x800439c], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b56
mov dword [0x80043a0], eax
mov dword [0x80043b4], 0x80041cc
mov dword [0x80043ac], 0xf
mov dword [0x80040ee], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043a4], eax
mov dword [0x80043b8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040f6], ebp
mov dword [0x80043a8], eax
push 0x800438c
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x800440c], eax
push 0
push dword [0x80040ee]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004404], eax
push 1
push dword [0x8004404]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004404]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c14
xor edi, edi
lea ebx, [0x80043bc]
jmp 0x8003c2c
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c1e
jmp 0x8003c40
mov eax, dword [0x80043c4]
jmp section..htext
Function at 0x10001240
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x354
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001370
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10001369
push dword [esp + 0x18]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10001355
push 0x104
lea eax, [esp + 0x154]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1000134e
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x13c]
call fcn.10001920
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x100012e7
mov ecx, dword [edi]
cmp dword [esp + 0x14c], 7
lea eax, [esp + 0x138]
push ecx
cmova eax, dword [esp + 0x13c]
push eax
call fcn.100052cd
add esp, 8
test eax, eax
je 0x10001387
mov ecx, dword [esp + 0x14c]
cmp ecx, 7
jbe 0x1000134e
mov edx, dword [esp + 0x138]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10001344
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100013e8
push ecx
push edx
call fcn.10001b24
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10001290
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.10001ae1
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov ecx, dword [esp + 0x14c]
cmp ecx, 7
jbe 0x100013d1
mov edx, dword [esp + 0x138]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100013c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100013e8
push ecx
push edx
call fcn.10001b24
add esp, 8
mov ecx, dword [esp + 0x35c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001ae1
mov esp, ebp
pop ebp
ret
call fcn.10005200
int3
Function at 0x100013f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x354
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10001437
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.10001ae1
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
xor esi, esi
push ebx
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10001545
nop dword [eax]
push dword [esp + 0x18]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000152d
push 0x104
lea eax, [esp + 0x154]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x10001526
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x13c]
call fcn.10001920
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x100014b7
mov ecx, dword [edi]
cmp dword [esp + 0x14c], 7
lea eax, [esp + 0x138]
push ecx
cmova eax, dword [esp + 0x13c]
push eax
call fcn.100052cd
mov edx, dword [esp + 0x14]
add esp, 8
test eax, eax
lea ecx, [edx + 1]
cmovne ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14c]
cmp ecx, 7
jbe 0x10001526
mov edx, dword [esp + 0x138]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000151c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001563
push ecx
push edx
call fcn.10001b24
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10001460
mov esi, dword [esp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x35c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001ae1
mov esp, ebp
pop ebp
ret
call fcn.10005200
int3

Function at 0x1000585d
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100083d4
push ebx
push esi
call fcn.10008300
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10008294
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10008381
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100083d3
push edi
push eax
call fcn.10006d67
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100083a1
call fcn.10006db5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100083d2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10008294
add esp, 0x20
test eax, eax
jne 0x100083c0
push edi
call fcn.10006db5
jmp 0x100083c8
push ebx
call fcn.10006db5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10008641
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011238
push 0x10011230
push str.FlsAlloc
push 0x1f
call fcn.1000855d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008675
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f134]
call esi
jmp 0x1000867b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100086bf
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011248
push 0x10011240
push str.FlsGetValue
push 0x21
call fcn.1000855d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100086f6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100086fe
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011250
push 0x10011248
push str.FlsSetValue
push 0x22
call fcn.1000855d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008738
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000f134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000e290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e2bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e2bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x403130
push 0
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 8
xor esi, esi
push esi
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40313c
call fcn.00401120
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, 0x403134
mov ecx, eax
call fcn.00401120
push 0x403150
inc esi
call edi
add esp, 4
jmp 0x401020

Function at 0x401b46
Capabilities:
Parse pe header

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