joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408270
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4195b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42b070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x41d35e
push 0
mov dword [ebp - 0x28], 0xffffffff
call dword [sym.imp.MSVCR110.dll_setlocale]
add esp, 8
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x20]
mov ecx, eax
call fcn.00407150
sub esp, 8
mov ecx, ebx
call fcn.00407fb0
add esp, 8
mov ebx, eax
mov dword [ebp - 4], 2
jmp 0x408350
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408370
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40838b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004084a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004171a6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408400
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x408475
mov eax, dword [esi + 8]
test eax, eax
je 0x408421
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x408436
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
push dword [ebp + 8]
push 0x1c18
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x408475
push 0x1c18
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x40847c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
pop ebp
ret 4
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x408bc0
Capabilities:
Create directory

Disassembly:
push 0x208
xor eax, eax
push 0x42d240
push eax
mov dword [0x42d654], 0
mov word [0x42d240], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x42d240
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x408bfd
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x42d240
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408c05
push esi
push edi
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
sub ecx, edx
sar ecx, 1
mov esi, 0x208
mov eax, esi
sub eax, ecx
push 0x41e018
push eax
lea eax, [ecx*2 + 0x42d240]
push eax
call edi
add esp, 0xc
push 0
push 0x42d240
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x42d240
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408c50
sub ecx, edx
sar ecx, 1
mov eax, esi
sub eax, ecx
push 0x41dee8
push eax
lea eax, [ecx*2 + 0x42d240]
push eax
call edi
mov ecx, 0x42d240
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408c80
sub ecx, edx
sar ecx, 1
push str.iSafeBugReport
sub esi, ecx
lea eax, [ecx*2 + 0x42d240]
push esi
push eax
call edi
add esp, 0xc
push 0x4089c0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
pop edi
mov dword [0x42d23c], eax
mov dword [0x42d650], 1
mov al, 1
pop esi
ret

Function at 0x408cd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x40], 0x3c
call sub.MSVCR110.dll_memset
add esp, 0xc
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call fcn.00409ba0
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x34], str.open
jb 0x408d37
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], ebx
jb 0x408d42
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 1
jb 0x408d54
mov edi, dword [edi]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x408d72
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov ecx, dword [ebp - 4]
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.004171a6
mov esp, ebp
pop ebp
ret
Function at 0x4098b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x409956
test edx, edx
je 0x409956
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
je 0x4098db
lea eax, [ebx + 0x78]
test eax, eax
jne 0x4098e3
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
add eax, edi
push esi
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
add ecx, edi
add esi, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x40993a
lea esp, [esp]
movsx eax, word [ecx + esi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edx
mov eax, dword [eax + esi*4]
add eax, edi
push eax
call dword [sym.imp.MSVCR110.dll__stricmp]
add esp, 8
test eax, eax
je 0x409943
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 8]
jb 0x409910
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
pop esi
mov eax, dword [ecx + eax*4]
add eax, dword [ebx + 0x34]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x409fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SoftwareiSafe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 1
xor bl, bl
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a01b
push edi
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.path
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40a029
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004171a6
mov esp, ebp
pop ebp
ret
Function at 0x40d5f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41998c
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x42b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x42cdf0]
mov esi, 0x409
mov dword [ebp - 0x7c], 0
test al, 1
jne 0x40d65a
or eax, 1
mov dword [0x42cdf0], eax
mov dword [ebp - 4], 0
call fcn.0040d310
push 0x41adb0
call fcn.004172f6
add esp, 4
mov dword [ebp - 4], 0xffffffff
push ecx
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x42cdc0
call fcn.0040d580
cmp dword [eax + 0x14], 8
jb 0x40d671
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x64], 8
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x40d695
push dword [ebp - 0x78]
call edi
add esp, 4
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40d742
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push 0
push str.language
push eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x80], 4
mov dword [ebp - 0x84], 4
call edi
test eax, eax
jne 0x40d6ec
mov esi, dword [ebp - 0x88]
jmp 0x40d7f0
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push eax
mov dword [ebp - 0x84], 0x28
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.language
push dword [ebp - 0x7c]
call edi
test eax, eax
jne 0x40d7f0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi]
add esp, 4
mov esi, eax
jmp 0x40d7f0
mov eax, dword [0x42cdf0]
test al, 1
jne 0x40d773
or eax, 1
mov dword [0x42cdf0], eax
mov dword [ebp - 4], 1
call fcn.0040d310
push 0x41adb0
call fcn.004172f6
add esp, 4
mov dword [ebp - 4], 0xffffffff
push ecx
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x42cdc0
call fcn.0040d580
cmp dword [eax + 0x14], 8
jb 0x40d78a
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x64], 8
jb 0x40d7a8
push dword [ebp - 0x78]
call edi
add esp, 4
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40d7f9
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push 0
push str.language
push eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 4
mov dword [ebp - 0x88], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove esi, dword [ebp - 0x80]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004171a6
mov esp, ebp
pop ebp
ret
Function at 0x40d820
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0xffffffff
jne 0x40d835
call fcn.0040d5f0
mov esi, eax
mov edi, 0x41e1fc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx ebx, ax
xor eax, eax
mov ecx, 0x41e1f8
lea ebx, [ebx]
mov edx, dword [ecx]
cmp edx, ebx
jne 0x40d859
lea edi, [ecx + 4]
cmp edx, esi
je 0x40d872
add ecx, 0x54
inc eax
cmp ecx, 0x422638
jl 0x40d850
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
imul eax, eax, 0x54
pop edi
pop esi
add eax, 0x41e1fc
pop ebx
pop ebp
ret 4

Function at 0x40e0b0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x419c28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x42b070]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0xc]
push eax
push 4
push dword [ebp + 8]
mov dword [esp + 0x2c], 0
push 0x40df10
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 8]
lea ecx, [ebx + 0x20]
mov edi, eax
call fcn.0040e630
push edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4104c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4104f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.00418b20
mov dword [esp + 0xc], eax
test esi, esi
jne 0x4104f9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x422adc
lea ecx, [esp + 8]
call fcn.00410360
int3
Function at 0x410680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419f20
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004069b0
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x41070b
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x411320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419f48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004069b0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
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 4
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
mov ebx, 0x408f6c
nop
mov ecx, 0x7ce96008
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata
nop
mov ebx, 0x42e3d0
mov ecx, 0x48ae2c76
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x406460
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4334bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4343ac]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4340d0]
cmp eax, dword [ecx + 4]
jg 0x406627
cmp dword [0x433498], 0
jne 0x40660a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407240
test al, al
jne 0x406519
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x433488
je 0x406601
mov ecx, dword [0x43349c]
cmp ecx, 0x10
jb 0x4065be
mov edx, dword [0x433488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4065b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40665d
jmp 0x4065b4
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040fd30
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406587
cmp dword [ebp - 0x240], esi
je 0x40657b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406560
jmp 0x406587
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x433488
pop edi
jmp 0x4064d6
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov dword [0x433498], 0
mov dword [0x43349c], 0xf
mov byte [0x433488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x433488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x433498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x433488
mov ecx, ebx
call fcn.00402740
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e1f1
mov esp, ebp
pop ebp
ret
push 0x4340d0
call fcn.0040e582
add esp, 4
cmp dword [0x4340d0], 0xffffffff
jne 0x40649d
push 0x4274f0
call fcn.0040e45e
push 0x4340d0
call fcn.0040e538
add esp, 8
jmp 0x40649d
call fcn.0041171f
int3
Function at 0x406670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426726
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4334bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040fd30
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040fa30
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4066f0
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x4067e9
call fcn.00401db0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040b8c0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406c80
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0x10
jb 0x40679a
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406790
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40682e
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x406811
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406807
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40682e
jmp 0x406807
call fcn.00401db0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040b8c0
add esp, 8
jmp 0x4067b5
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e1f1
mov esp, ebp
pop ebp
ret
call fcn.0041171f
int3
Function at 0x40eb91
Capabilities:
Parse pe header

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

Function at 0x419e8b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419e0d

Function at 0x41c6d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x434a88]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c711
cmp byte [ebx], 0xa
jne 0x41c711
or byte [eax + edi + 0x28], 4
jmp 0x41c716
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c814
mov al, byte [edx]
cmp al, 0x1a
je 0x41c7f6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c745
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c76a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c774
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c727
jmp 0x41c814
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c7f1
cmp dword [ebp - 0xc], 0
je 0x41c7f1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x434a88]
test byte [eax + edi + 0x28], 0x48
je 0x41c7cb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c7b6
mov byte [esi], dl
jmp 0x41c7c7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434a88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c814
cmp byte [ebp - 1], 0xa
jne 0x41c7da
cmp esi, ebx
jne 0x41c7da
mov byte [esi], 0xa
jmp 0x41c813
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d11f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c814
mov byte [esi], 0xd
jmp 0x41c813
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x434a88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c810
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c814
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret