joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d8b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x575054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp eax, 2
jne 0x4f3d67
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4f3d3c
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
movzx eax, word [ebp + 0xc]
push eax
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x14], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
jmp 0x4f3d3e
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x1c]
mov dword [edi], esi
mov ecx, edi
call fcn.004f3e50
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
test eax, eax
mov dword [ecx + 8], 0
sete al
jmp 0x4f3e31
push eax
movzx eax, word [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4f3e2f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4f3e2f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4f3e2f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4f3e28
push dword [ebp - 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4f3e28
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4f3e21
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4f3e21
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4f3e21
call fcn.004f3c00
mov edi, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4f3d4a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
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.0050f27d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f4470
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52daa6
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x575054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.RC::ICoolPopupMenu.0
mov dword [ebp - 4], 0
mov dword [edi], vtable.RC::RCCoolPopupMenu.1.0
mov dword [edi + 4], vtable.RC::RCCoolPopupMenu.0
mov dword [edi + 8], vtable.RC::RCCoolPopupMenu.2.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0x16
mov dword [edi + 0x58], 0xffffffff
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0xffffffff
mov dword [edi + 0x74], 0xffffffff
mov dword [edi + 0x78], 0
mov word [edi + 0x7c], 0x100
mov byte [edi + 0x7e], 0
mov dword [edi + 0x80], 0xffffffff
mov dword [edi + 0x84], 0xffffffff
mov dword [edi + 0x88], 0xffffffff
mov dword [edi + 0x8c], 0x1000000
mov byte [edi + 0x90], 0
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x98], 0xffffffff
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov byte [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov dword [edi + 0xfc], 0
mov byte [ebp - 4], 1
cmp word [0x5790f8], 0
movsd xmm0, qword [0x543200]
movsd qword [edi + 0x130], xmm0
jne 0x4f4673
call fcn.004f6980
mov word [0x5790f8], ax
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0xc4]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [edi + 0x120]
mov dword [edi + 0xf0], 0
push eax
mov dword [edi + 0xec], 0
mov word [edi + 0x8c], 0
mov byte [edi + 0x8e], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0
mov dword [edi + 0x108], 0
mov dword [edi + 0x10c], 0
mov dword [edi + 0x110], 0
mov dword [edi + 0x114], 0
mov dword [edi + 0x118], 0
mov dword [edi + 0x11c], 0
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4fc170
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0xa8
mov eax, dword [0x575054]
xor eax, esp
mov dword [esp + 0xa4], eax
push edi
mov edi, edx
mov byte [esp + 7], cl
push 0x10
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x4fc1b0
xor eax, eax
pop edi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0050f27d
add esp, 0xa8
ret
mov cl, byte [esp + 7]
push ebx
push ebp
xor ebp, ebp
lea eax, [ecx - 0x70]
push esi
movzx esi, cl
lea ebx, [ebp + 8]
cmp al, 0xb
ja 0x4fc1de
lea eax, [esi - 0x6f]
push eax
push 0x542ce8
push ebx
push edi
call fcn.00458f40
add esp, 0x10
jmp 0x4fc2de
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x4fc1fb
push esi
push 0x542cd4
push 8
push edi
call fcn.00458f40
add esp, 0x10
jmp 0x4fc2de
lea eax, [ecx - 0x60]
cmp al, 9
ja 0x4fc21b
lea eax, [esi - 0x60]
push eax
push 0x542cc8
push 8
push edi
call fcn.00458f40
add esp, 0x10
jmp 0x4fc2de
sub cl, 0x30
cmp cl, 9
ja 0x4fc23c
lea eax, [esi - 0x30]
push eax
push 0x53c6ec
push 8
push edi
call fcn.00458f40
add esp, 0x10
jmp 0x4fc2de
lea eax, [esi - 0x25]
cmp eax, 0x98
ja case.0x4fc24d.41
movzx eax, byte [eax + 0x4fc358]
jmp dword [eax*4 + 0x4fc330]
push 0x542ce4
jmp 0x4fc2d5
push 0x53d63c
jmp 0x4fc2d5
push 0x53d5bc
jmp 0x4fc2d5
push 0x53c058
jmp 0x4fc2d5
push 0x542cdc
jmp 0x4fc2d5
push 0x542cf4
jmp 0x4fc2d5
push 0x542cf0
jmp 0x4fc2d5
push 0x542cfc
jmp 0x4fc2d5
push 0x542cf8
jmp 0x4fc2d5
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
push 0xa0
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
shl esi, 0x10
lea eax, [esp + 0x14]
push 0x50
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
jle 0x4fc30d
lea eax, [esp + 0x14]
push eax
mov edx, ebx
mov ecx, edi
call fcn.004491b0
test eax, eax
je 0x4fc2e9
cmp eax, 0x8007007a
jne 0x4fc30d
test edi, edi
je 0x4fc30b
mov eax, ebx
nop
cmp word [edi], bp
je 0x4fc2fd
add edi, 2
sub eax, 1
jne 0x4fc2f0
sub ebx, eax
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, ebx
test eax, eax
jne 0x4fc30d
xor ebp, ebp
mov ecx, dword [esp + 0xb4]
xor eax, eax
cmp eax, ebp
pop esi
sbb eax, eax
and eax, ebp
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.0050f27d
add esp, 0xa8
ret
Function at 0x4ff8e0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4ff93c
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindowVisible]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
nop
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x4ff919
push dword [esi + 0x14]
call ebp
test eax, eax
je 0x4ff919
push 0
push dword [esi + 0x14]
call edi
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x4ff932
push dword [esi + 0x10]
call ebp
test eax, eax
je 0x4ff932
push 0
push dword [esi + 0x10]
call edi
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x4ff900
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x507ac0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x507acb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00507ae0
Function at 0x50978c
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov edi, ecx
cmp dword [edi + 0x64], 0
je 0x5097a3
push dword [edi + 0x64]
call esi
cmp dword [edi + 0x70], 0
je 0x5097ae
push dword [edi + 0x70]
call esi
xor ebp, ebp
cmp dword [edi + 0x78], ebp
je 0x5098a0
push 0x579108
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
test al, 1
je 0x5097d7
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [edi + 0x78]
test al, 2
je 0x5097eb
push dword [edi + 0x80]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
mov eax, dword [edi + 0x78]
pop ecx
test al, 4
je 0x5097fc
push dword [edi + 0x84]
call dword [sym.imp.VCRUNTIME140.dll__set_purecall_handler]
pop ecx
mov ebx, dword [0x5790fc]
mov eax, dword [ebx + 4]
add eax, 0xfffffffc
cmp dword [eax], edi
jne 0x509811
mov dword [ebx + 4], eax
jmp 0x509862
push str.warning:_removing_Breakpad_handler_out_of_order_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
call fcn.004eb730
mov ebx, dword [0x5790fc]
pop ecx
pop ecx
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x509862
lea ebp, [esi + 4]
cmp dword [esi], edi
jne 0x509853
mov eax, dword [ebx + 4]
sub eax, ebp
push eax
push ebp
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add dword [ebx + 4], 0xfffffffc
jmp 0x509859
add esi, 4
add ebp, 4
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x509839
xor ebp, ebp
cmp dword [ebx], eax
jne 0x509895
cmp dword [ebx], 0
je 0x509885
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
and eax, 0xfffffffc
push eax
push dword [ebx]
call fcn.00403720
pop ecx
pop ecx
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
push 0xc
push ebx
call fcn.0050f64c
pop ecx
pop ecx
mov dword [0x5790fc], ebp
push 0x579108
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [edi + 0xc], ebp
jne 0x5098e6
push 1
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [edi + 0x90]
mov dword [edi + 0x88], ebp
push eax
call ebx
push dword [edi + 0xa8]
call esi
push dword [edi + 0xac]
call esi
push 0x579104
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x5098fc
push 0x579108
call ebx
lea ecx, [edi + 0xc0]
call fcn.0050a258
lea ecx, [edi + 0x40]
call fcn.004032a0
lea ecx, [edi + 0x28]
call fcn.004032a0
lea ecx, [edi + 0x10]
call fcn.004032a0
mov ecx, dword [edi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
je 0x509930
push ecx
call fcn.0050a292
ret
Function at 0x50a59e
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, dword [ebp + 0x360]
lea ecx, [ebp + 0x348]
call fcn.00405910
mov esi, dword [ebp + 0x24]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x4c], eax
lea ecx, [ebp + 0x38]
lea eax, [ebp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], eax
xor esi, esi
lea eax, [ebp + 0x40]
mov dword [esp + 0x48], 1
mov dword [esp + 0x5c], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x14]
push eax
push 0x34
lea eax, [esp + 0x20]
mov dword [esp + 0x60], ecx
push eax
push 0x34
lea eax, [esp + 0x5c]
mov dword [esp + 0x7c], esi
push eax
push dword [esp + 0xcc]
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x50a713
cmp dword [esp + 0x14], 2
jne 0x50a713
cmp dword [esp + 0x18], esi
je 0x50a713
cmp dword [esp + 0x34], esi
je 0x50a713
cmp dword [esp + 0x38], esi
je 0x50a713
cmp dword [esp + 0x3c], esi
je 0x50a713
push esi
lea eax, [esp + 0x14]
mov dword [esp + 0x84], esi
push eax
push 0x34
lea eax, [esp + 0x88]
mov dword [esp + 0x90], esi
push eax
push dword [esp + 0xc4]
xorps xmm0, xmm0
mov dword [esp + 0x9c], esi
movups xmmword [esp + 0xa0], xmm0
mov dword [esp + 0xc0], esi
movups xmmword [esp + 0xb0], xmm0
mov dword [esp + 0x90], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x50a713
mov ecx, dword [esp + 0x34]
mov al, 1
mov dword [ebp + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x30], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x34], ecx
jmp 0x50a715
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4
Function at 0x50d090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ea47
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x575054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x530fb4
lea ecx, [ebp - 0x28c]
call fcn.004032f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28c]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004b9990
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28c]
call fcn.004032a0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x240]
push edx
call fcn.004b9990
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x240]
push eax
call fcn.004bc390
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x50d155
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.004032a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004032a0
jmp 0x50d315
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.004c4aa0
add esp, 8
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov ecx, dword [ebp + 0x14]
add ecx, 0xf8
call fcn.004032b0
lea ecx, [ebp - 0x2bc]
call fcn.004032a0
push 0x530fc4
lea ecx, [ebp - 0x2a4]
call fcn.004032f0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.004b9990
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2a4]
call fcn.004032a0
push 0x200
push 0
lea edx, [ebp - 0x210]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x258]
call fcn.00405910
push eax
push 0xff
lea eax, [ebp - 0x210]
push eax
push 0x530bc0
push str.Running
push 0x530fdc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 0x14]
add ecx, 0x110
call fcn.00403270
lea ecx, [ebp - 0x268]
call fcn.0050b310
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x268]
push eax
call fcn.0050d530
add esp, 8
mov ecx, dword [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x268]
push edx
lea eax, [ebp - 0x2d4]
push eax
call fcn.004b8a60
add esp, 0xc
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x270]
push ecx
mov ecx, dword [ebp + 0x14]
add ecx, 0x128
call fcn.004032b0
lea ecx, [ebp - 0x2d4]
call fcn.004032a0
mov edx, dword [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2ec]
push ecx
call fcn.004b8a60
add esp, 0xc
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x274]
push edx
mov ecx, dword [ebp + 0x14]
add ecx, 0x140
call fcn.004032b0
lea ecx, [ebp - 0x2ec]
call fcn.004032a0
mov eax, dword [ebp + 0x14]
add eax, 0x158
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0050d330
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x258]
call fcn.004032a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.004032a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004032a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050f27d
mov esp, ebp
pop ebp
ret
Function at 0x50ef30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52edd6
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.0050fbd0
mov eax, dword [0x575054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1030], 0
lea ecx, [ebp - 0x102c]
call fcn.00403340
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x1014]
call fcn.00403fa0
lea ecx, [ebp - 0x1014]
call fcn.004c1ff0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1014]
call fcn.004c2720
push 0x1000
push 0
lea eax, [ebp - 0x1010]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x1c
lea ecx, [ebp - 0x1010]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x50efe1
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x102c]
call fcn.00403270
lea ecx, [ebp - 0x1014]
call fcn.004c2a00
lea eax, [ebp - 0x102c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405950
mov ecx, dword [ebp - 0x1030]
or ecx, 1
mov dword [ebp - 0x1030], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1014]
call fcn.004c2070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x102c]
call fcn.004032a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050f27d
mov esp, ebp
pop ebp
ret
Function at 0x40c1a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079ab
mov dword [ebp - 0x14], eax
cmp dword [0x4ab440], esi
jne 0x40c29b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c37b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c37b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c37b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ab440], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ab444], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ab448], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ab450], eax
test eax, eax
je 0x40c298
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ab44c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push 4
pop eax
jmp 0x40c37d
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push dword [0x4ab440]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ba
mov eax, dword [0x4ab44c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c333
cmp dword [0x4ab450], edi
je 0x40c333
push eax
call ebx
push dword [0x4ab450]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c333
test eax, eax
je 0x40c333
call ecx
test eax, eax
je 0x40c328
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c328
test byte [ebp - 8], 1
jne 0x40c333
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c363
mov eax, dword [0x4ab444]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
call eax
mov esi, eax
test esi, esi
je 0x40c360
mov eax, dword [0x4ab448]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ab440]
call ebx
test eax, eax
je 0x40c37b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c37d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b15
mov esp, ebp
pop ebp
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
sbb ecx, dword [ecx + esi]
out dx, eax
pop edi
psubsb mm3, qword [ebx]
adc byte [ebx], bl
adc dword [edx], edx
adc edi, dword [ebp + 0x14]
push 0x16
pop ss
sbb byte [ecx], bl
sbb dl, byte [eax - 0x6f6ff070]
nop
nop
nop
dec esp
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [0x40c0c80d]
add byte [0x68403d7e], dl
je 0x401735
inc eax
add byte [ecx - 1], dl
adc eax, sym.imp.MSVCRT.dll_fprintf
mov eax, dword [0x41dfac]
add esp, 0xc
pop eax
sal byte [edi + ecx - 0x24], 0x68
push esp
rol byte [eax - 0x57], cl
call dword [sym.imp.MSVCRT.dll_printf]
adc dword [0xff966ad9], 0x15
jo 0x40174e
xchg esi, eax
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
mov ebp, esp
sub esp, 0xa00b8
mov eax, dword [0x4102be]
mov eax, 0x414080a1
add byte [esp + edx + 0x68], dh
inc eax
add byte [eax - 0x7e1374ab], dl
in al, dx
mov eax, 0xa1000a00
mov esi, 0xc7004102
shl byte [ecx + 0x414080], 0x74
adc al, 0x68
inc eax
jo 0x40172d
add byte [eax + 0x6c], dl
inc esi
inc eax
add byte [eax], al
push 0xd
sub al, 2
cmc
add bl, ch
adc al, 0x8b
and eax, dword [eax]
sbb byte [ecx - 0x80], al
push edx
push eax
call 0xb4405850
mov cx, word [0x4117f4]
xor cl, byte [eax]
sbb byte [ecx], al
mov eax, dword [0xd0410288]
mov bh, 0x56
mov esi, dword [0x23402a64]
mov ah, bl
or eax, dword [ecx + 0x4c]
test eax, eax
or dh, byte [ebp + 0x5d]
mov ch, 0xcd
sbb byte [edx], bl
add byte [edx + 0x68], dl
cwde
aam 0x40
add bh, bh
salc
mov eax, dword [0x2e419378]
add esp, 8
test dword [esi], esi
je 0x401788
mov eax, dword [0x410274]
push eax
push 0x413c40
push str._through__s:_d_
call esi
sbb dword [eax], 0xc
mov eax, dword [0xa7d014]
test eax, eax
mov eax, 0xdbd82b80
adc byte [0x40d4b8b8], al
add byte [eax + 0x68], dl
insb byte es:[edi], dx
aam 0x40
add byte [ebp - 0x37f27499], al
rol byte [eax], 0x83
shl dword [eax], 0x51
call dword [esi]
push esp
mov esp, 0xc48300f1
or al, 0x8b
adc eax, 0x40d018
mov esi, dword [0xee69c158]
push 0x860
inc eax
call esi
mov dword [0xa80bb0], eax
mov eax, dword [0x40d03c]
push 0xffffffffffffff97
push eax
call esi
mov ecx, dword [0x41404c]
sahf
adc eax, 0x32d018
sbb dword [ecx], 0x10
mov dword [0x26410ba5], eax
push 0
push ecx
jno 0x401828
clc
pop ss
inc ecx
add al, ch
add dword [edi], 0x74c08500
push cs
add byte [eax], al
test eax, eax
je 0x4018a1
push eax
push str.apr_pollset_create_failed
call 0xa9b5aa
add esp, 0x48
cmp byte [edx + eax + 0x41], bh
add cl, ch
lds esi, [ebp + 0x35]
mov eax, dword [0x1d411830]
mov ecx, dword [0xc3410b9c]
mov edx, dword [0x414048]
or ebp, dword ds:[eax - 0x64]
rcr dword [ebx], 1
add byte [eax - 0x5f], dl
dec esp
sbb al, 0x41
sti
push ecx
push ebp
dec eax
push ebp
inc eax
add byte [edx + 0x50], dl
jae 0x40188d
aas
add byte [eax], al
and al, ah
mov dh, 0xa3
dec eax
inc eax
inc ecx
add byte [edi + 0x4048a105], ch
inc ecx
add byte [ebx + 0x4102803b], cl
add byte [ebp + 0x152675c9], al
hlt