joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407423
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x4010a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407423
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x401120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407423
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x408328]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401f80
Capabilities:
Get common file path

Disassembly:
push 0x40ec68
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, 0x40ec68
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f98
sub eax, edx
push edi
lea edi, [eax + 0x40ec68]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401fb0
mov ax, word [0x408a08]
push 0x40ee70
push 0x104
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x408a00
push 0x40ee70
call dword [sym.imp.MSVCR71.dll_wcslen]
lea ecx, [eax*2 + 0x40ee70]
add esp, 4
push ecx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
pop edi
ret

Function at 0x4020b0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4073b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x408a38
mov dword [esp + 0x10], 1
mov eax, dword [esi + 0x60]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [esi + 0x44]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402120
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x40c060]
push ebx
push edi
mov edi, dword [sym.imp.MSVCR71.dll_strstr]
mov ebx, ecx
push 0x408a58
push ebx
mov dword [esp + 0x42c], eax
call edi
add esp, 8
test eax, eax
je 0x402163
push 0x408a58
push ebx
mov byte [eax], 0x2f
call edi
add esp, 8
test eax, eax
jne 0x402151
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x103
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
push 0x207
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
push ebx
lea ecx, [esi + 0x28]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov edx, dword [ebp + 8]
push edx
lea ecx, [esi + 0x44]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
xor edi, edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call ebx
mov dword [esi + 0x74], eax
call ebx
mov dword [esi + 0x78], eax
mov eax, 1
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x60]
push edi
push eax
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push 0x402260
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x40e1b0
mov dword [esi + 0x60], eax
call ebx
mov edi, dword [esi + 0x64]
push 0x40e1b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x402243
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40e1b0
call ebx
mov edi, dword [esi + 0x64]
push 0x40e1b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x402222
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x424]
test eax, eax
setne al
call fcn.00406f8e
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402950
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
mov eax, dword [0x40c060]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll__mkdir]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x110], eax
mov al, byte [edi]
xor ebx, ebx
xor esi, esi
cmp al, bl
je 0x4029a7
mov al, byte [edi]
cmp al, 0x5c
mov byte [esp + esi + 0x10], al
je 0x40298a
cmp al, 0x2f
je 0x40298a
inc edi
inc esi
jmp 0x4029a3
lea eax, [esp + 0x10]
push eax
mov byte [esp + esi + 0x14], bl
call ebp
add esp, 4
mov byte [esp + esi + 0x10], 0x5c
inc esi
mov byte [esp + esi + 0x10], bl
inc edi
cmp byte [edi], bl
jne 0x402978
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + esi + 0x14], bl
call ebp
mov ecx, dword [esp + 0x114]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
call fcn.00406f8e
add esp, 0x104
ret

Function at 0x402b10
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4074ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
mov dword [edi], 0x408a80
mov dword [esp + 0x14], 7
mov eax, dword [edi + 0x458]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, 0x408a7c
lea ecx, [edi + 0x438]
mov dword [edi + 0x3f4], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x14], 6
lea ecx, [edi + 0x3d4]
mov dword [edi + 0x390], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [edi + 0x10c]
mov byte [esp + 0x14], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea esi, [edi + 0x100]
call fcn.00404a10
lea esi, [edi + 0xf4]
call fcn.00404a10
lea ecx, [edi + 0xd4]
mov byte [esp + 0x14], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [edi + 0xb8]
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [edi + 0x9c]
mov byte [esp + 0x14], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, edi
mov dword [esp + 0x14], 0xffffffff
call fcn.004020b0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4037d0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
push eax
lea ecx, [esi + 0xd4]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov edx, dword [esi + 0x458]
mov cx, word [esp + 8]
push 0
push edx
mov word [esi + 0xf0], cx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp]
push eax
push 0
push esi
push 0x403820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x458], eax
mov al, 1
pop ecx
ret 4

Function at 0x4038a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 0x408c10
push eax
mov edi, ecx
or ebx, 0xffffffff
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x403919
cmp edi, 0xffffffff
jne 0x4038e2
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
add esp, 0x1c
push edi
call sub.MFC71.DLL_operator_new_1
push esi
push edi
mov ebx, eax
push 1
push ebx
call dword [sym.imp.MSVCR71.dll_fread]
mov edx, edi
mov ecx, ebx
or eax, 0xffffffff
call fcn.004065c0
push esi
mov edi, eax
call dword [sym.imp.MSVCR71.dll_fclose]
push ebx
call sub.MFC71.DLL_operator_delete
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4054f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40552d
push edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_GetParent]
push esi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
push str.CWINBUTTON
push eax
call dword [sym.imp.USER32.dll_SetPropA]
test eax, eax
jne 0x405534
push str.SetProp_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
add esp, 0x10
ret
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebx
je 0x405590
push 0xfffffffffffffff0
push eax
call edi
test eax, 0xc00000
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x40555e
push 4
call ebx
mov dword [esi + 0x2e0], eax
mov ecx, dword [esi + 0xc]
push 0xfffffffffffffff0
push ecx
call edi
test eax, 0x800000
je 0x405577
push 5
call ebx
mov dword [esi + 0x2e4], eax
mov edx, dword [esi + 0xc]
push 0xfffffffffffffff0
push edx
call edi
test eax, 0x40000
je 0x405590
push 0x2d
call ebx
mov dword [esi + 0x2e8], eax
mov eax, dword [esi + 8]
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push ecx
call ebx
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 5
push 5
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov edx, dword [esi + 8]
push 1
mov edi, eax
push edi
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 8]
push 0x405c70
push 0xfffffffffffffffc
push eax
call ebx
pop ebx
mov dword [esi + 0x10], eax
mov eax, 1
pop edi
add esp, 0x10
ret
Function at 0x406ccd
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x408570
call fcn.00406ecc
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d0d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d25
cmp eax, 0x20b
je 0x406d12
mov dword [ebp - 0x1c], ebx
jmp 0x406d39
cmp dword [ecx + 0x84], 0xe
jbe 0x406d0d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406d33
cmp dword [ecx + 0x74], 0xe
jbe 0x406d0d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x419450], 0xffffffff
or dword [0x419454], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40e164]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40e160]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41944c], eax
call fcn.004070a8
call fcn.00407148
cmp dword [0x40c070], ebx
jne 0x406d99
push fcn.00407148
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00407136
push 0x40c038
push 0x40c034
call sub.MSVCR71.dll__initterm
push 0x4070ec
call fcn.00406c6a
mov eax, dword [0x40e15c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40e158]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x406ded
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c030
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406e6b
cmp al, bl
je 0x406e17
cmp dword [ebp - 0x20], ebx
jne 0x406e6b
mov al, byte [esi]
cmp al, bl
je 0x406e27
cmp al, 0x20
ja 0x406e27
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406e17
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406e43
movzx eax, word [ebp - 0x54]
jmp 0x406e46
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004072c2
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406e63
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406ec0
cmp al, 0x22
jne 0x406e7a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x406e8d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406e05
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00406f07
ret
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x7a4e9c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7a4ea6
pushal
call 0x7a4eac
pop ebp
sub ebp, 0x10
sub ebp, 0x3a4e9c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x7a4ed0
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x7a4ed9
mov eax, 0x3a4e9c
add eax, ebp
add eax, 0x63
mov ecx, 0x601
mov edx, 0xfe60de8f
xor byte [eax], dl
inc eax
dec ecx
jne 0x7a4ef0
jmp 0x7a4f03
add al, 0x42
add al, 6
mov bl, 0x8f
invalid
Function at 0x417f2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x417f3d
pop dword [ebp - 0x2c]
mov eax, 0x382e6af8
sub eax, 0x37ecebbb
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3d428
push 0
mov eax, 0x6701b986
sub eax, 0x66bf295a
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xfd7e31ec
add ecx, 0x28226ec
xor edx, edx
add edx, eax
mov edi, 0xbe79cacd
add edi, 0x41c9a333
add edi, dword [ebp - 0x2c]
mov esi, 0x1774d968
mov dword [ebp - 0xc], 0xfdf9460b
mov ebx, dword [edi]
xor dword [ebp - 0x20], edi
sub ebx, esi
xor dword [ebp - 0x18], 0xd7ac47d5
mov dword [edx], ebx
mov dword [ebp - 0x1c], 0xef97df2f
add edx, 0xfbf0549f
sub edx, 0xfbf0549b
add edi, 0x79d40b0a
sub edi, 0x79d40b06
loop 0x417f98
add eax, 0x253a1b4a
add eax, 0xdac73ae9
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xd3cca8fb
add ecx, 0x2c735705
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x41e7e0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp ax, 6
je 0x41e81d
push str.SetDefaultDllDirectories
push 0x429a14
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x41e81d
push 0xc00
call eax
test eax, eax
jne 0x41e8b6
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41e8b6
cmp eax, 0x104
ja 0x41e8b6
cmp word [esp + eax*2 + 6], 0x5c
je 0x41e84c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x41e8b6
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x41e88b
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x41e877
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x41e86c
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret