joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031d0
Capabilities:
Get file size

Disassembly:
mov eax, 0xa008
call fcn.0041be10
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0xa004], eax
push esi
mov esi, ecx
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
push 0
push 0x80
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40322b
xor eax, eax
pop esi
mov ecx, dword [esp + 0xa004]
xor ecx, esp
call fcn.00413588
add esp, 0xa008
ret
push ebx
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::reserve_unsigned_int_]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, 1
lea ebx, [ebx]
push 0
lea eax, [esp + 0x10]
push eax
push 0xa000
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x20], 0xa000
call ebx
test eax, eax
je 0x40328f
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x403291
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call dword [sym.imp.MSVCP80.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__::append_char_const___unsigned_int_]
cmp dword [esp + 0xc], 0
ja 0x403250
jmp 0x403291
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xa010]
mov eax, ebp
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.00413588
add esp, 0xa008
ret
Function at 0x4032c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41c891
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x427020]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov esi, ecx
call fcn.00403710
lea ebx, [esp + 0x10]
mov dword [esp + 0x5c], 0
call fcn.00403500
mov ebx, eax
call fcn.00403590
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
or edi, 0xffffffff
add eax, 0xfffffff0
cmp ecx, 3
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
jg 0x403348
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x403341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4033eb
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40335d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::push_back_wchar_t_]
xor eax, eax
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], ax
mov word [esp + 0x24], 0x414
jb 0x4033b7
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
jmp 0x4033bf
lea edx, [esp + 0x38]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x5c], edi
mov esi, ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00413588
add esp, 0x50
ret

Function at 0x403410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0x414], eax
xor eax, eax
push 0x40e
push eax
mov dword [esp + 8], eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [esp + 8]
call fcn.00403710
mov ecx, dword [esp + 0x414]
xor ecx, esp
mov eax, esi
call fcn.00413588
add esp, 0x418
ret
Function at 0x403850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403867
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403898
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403894
cmp esi, eax
jae 0x403898
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403884
cmp esi, eax
jb 0x40389e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x404510
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x40]
test eax, eax
mov dword [esi], vtable.CHMainDlg.0
je 0x40452d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x2c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40454c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x28]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40456b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x24]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40458a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x20]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x1c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi], vtable.CHDialog.0
je 0x4045f2
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4045f2
cmp dword [esi + 0x10], 0
je 0x4045f2
mov ecx, dword [esi + 4]
push 2
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, esi
jmp fcn.0040e070
Function at 0x4047a0
Capabilities:
Create process on windows
Create thread
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4047ba
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x40], 0
cmp dword [esi + 0x38], 0
je 0x4047fc
mov eax, dword [esi + 0x28]
cmp dword [eax - 0xc], 0
je 0x4047dd
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi + 4]
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
mov ecx, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ecx
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esi + 4]
push 0
push 0
push 0x402
push 0x3ea
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
mov eax, dword [esi + 4]
push 0x640000
push 0
push 0x401
push 0x3ea
push eax
call edi
push eax
call ebx
push esi
push 0
push 0x4049c0
call dword [sym.imp.MSVCR80.dll__beginthread]
add esp, 0xc
pop edi
pop ebx
mov dword [esi + 0x40], eax
pop esi
ret
Function at 0x408bb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea esi, [esp + 4]
call fcn.00403480
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x48]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0x421f44
mov dword [esp + 0x28], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x408c3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x40
ret 4

Function at 0x408cb0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x54
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0x50], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x1a
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
lea edx, [esp + 4]
push edx
push 4
lea eax, [esp + 0x10]
push eax
push 0x13
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x408d2a
mov eax, dword [esp + 8]
lea ecx, [esp]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x408d2a
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00413588
add esp, 0x54
ret
mov ecx, dword [esp + 0x50]
mov eax, dword [esp]
xor ecx, esp
call fcn.00413588
add esp, 0x54
ret

Function at 0x408db0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, eax
push 0x40
push 0
push esi
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x80], 0x67452301
mov dword [esi + 0x84], 0xefcdab89
mov dword [esi + 0x88], 0x98badcfe
mov dword [esi + 0x8c], 0x10325476
call sub.MSVCR80.dll_memset
push 0x40
add esi, 0x40
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0x18
mov byte [esi], 0x80
pop esi
ret
Function at 0x409b30
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x114
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
lea edx, [esp]
push edx
push 0
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x409ba4
mov edx, dword [esi + 8]
lea ecx, [esp + 8]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x409ba4
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
mov edx, dword [esi + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
add esp, 0x114
ret 8
or eax, 0xffffffff
add esp, 0x114
ret 8

Function at 0x409bb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x114
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
lea edx, [esp]
push edx
push 0
mov dword [esp + 8], eax
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x409c24
mov edx, dword [esi + 8]
lea ecx, [esp + 8]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x409c24
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
mov edx, dword [esi + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
add esp, 0x114
ret 8
or eax, 0xffffffff
add esp, 0x114
ret 8

Function at 0x409ea0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41ca50
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x427020]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
push edi
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x50], 1
call fcn.00403150
push edi
lea ecx, [esp + 0x20]
mov ebx, eax
mov eax, dword [ebp + 0x14]
push ecx
call fcn.00403150
push edi
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
push edx
call fcn.00403150
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 8]
call fcn.00403150
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov ecx, esi
call edx
lea esi, [esp + 0x1c]
mov edi, eax
call fcn.00402f30
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40a2e0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [esi + 8], 0xffffffff
push edi
je 0x40a39f
cmp dword [esi + 0x14], 0
je 0x40a30f
cmp dword [esi + 0x34], 0x10
jb 0x40a30a
mov edi, dword [esi + 0x20]
jmp 0x40a326
lea edi, [esi + 0x20]
jmp 0x40a326
cmp dword [esi + 0xa4], 0x10
jb 0x40a320
mov edi, dword [esi + 0x90]
jmp 0x40a326
lea edi, [esi + 0x90]
movsx eax, byte [edi]
push eax
call dword [sym.imp.MSVCR80.dll_isalpha]
add esp, 4
test eax, eax
je 0x40a352
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40a39f
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
push edi
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [esi + 0x14], 0
mov dword [esp + 0x10], eax
je 0x40a370
movzx eax, word [esi + 0x18]
jmp 0x40a374
movzx eax, word [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 8]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40a3b1
mov eax, dword [esi]
mov edx, dword [eax + 0x54]
mov ecx, esi
call edx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00413588
add esp, 0x20
ret
mov ecx, dword [esi + 8]
lea eax, [esp + 8]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x40a3ed
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
xor eax, eax
pop edi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00413588
add esp, 0x20
ret
mov ecx, dword [esp + 0x1c]
pop edi
xor ecx, esp
mov eax, 1
call fcn.00413588
add esp, 0x20
ret
Function at 0x40abe0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41c550
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x427020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], 1
call fcn.00403150
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 4]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov ecx, esi
call edx
lea esi, [esp + 0xc]
mov edi, eax
call fcn.00402f30
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41c550
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x427020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 8]
mov ax, word [ebp + 0xc]
mov dword [esp + 0x38], 1
push ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x14], 1
mov word [esi + 0x18], ax
call dword [0x41e154]
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [esi + 0x38]
call dword [0x41e154]
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [esi + 0x54]
call dword [0x41e154]
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [esi + 0x70]
call dword [0x41e154]
lea esi, [esp + 0xc]
call fcn.00402f30
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40f510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41c943
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [0x427020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
push 0x421cc9
lea ecx, [esp + 0x14]
call dword [0x41e154]
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00410660
add esp, 8
push str._n___
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.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__]
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x40f5a1
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x10]
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00413588
add esp, 0x38
ret
Function at 0x4131ed
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x427020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041312c
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41323c
cmp dword [ebp - 0x1c], 5
jb 0x413254
jmp 0x413250
cmp dword [ebp - 0x10], 1
jne 0x413254
cmp dword [ebp - 0x1c], 4
ja 0x413250
jne 0x413254
cmp dword [ebp - 0x18], 0
jbe 0x413254
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41e430
call fcn.00412fc2
test eax, eax
jge 0x413275
mov byte [0x427630], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413588
add ebp, 0x78
leave
ret

Function at 0x413588
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427020]
jne 0x413592
repz ret
jmp fcn.00413b10
Function at 0x417e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x417f0e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCR80.dll_memcpy
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x417ee1
sub eax, ebx
jmp 0x417ee3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x417ed2
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x417f02
sub eax, ebx
jmp 0x417f04
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x417ef3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x417fe2
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.00417c10
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x417f59
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x417f6d
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x417e96
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x417fe2
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x417fb1
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x417f94
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x417fe2
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x417fcb
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x401a88
Capabilities:
Write file on windows

Disassembly:
add esp, 0xffffffb8
mov dword [esp], eax
mov eax, dword [sym.imp.rtl140.bpl__System_IsConsole]
cmp byte [eax], 0
je 0x401ae7
mov eax, dword [sym.imp.rtl140.bpl__System_Output]
call sub.rtl140.bpl__System_Flush_qqrr15System_Textfile
call sub.rtl140.bpl__System___IOTest_qqrv
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
call sub.rtl140.bpl__Sysutils_StrLen_qqrpxc
push eax
lea eax, [esp + 0xc]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 8]
push eax
push 2
push 0x401b30
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x401b1d
push 0x40
lea eax, [esp + 0xc]
push eax
mov eax, dword [sym.imp.rtl140.bpl__Sysconst__SExceptTitle]
mov eax, dword [eax + 4]
push eax
mov eax, dword [section..bss]
call sub.rtl140.bpl__System_FindResourceHInstance_qqrui
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x48
ret