joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eca00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x577870]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x4eca20
sub edi, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4eca4b
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4eca6c
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x4eca8d
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x4eca8d
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x4eca87
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x4eca8d
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ecae0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x577878]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x4ecbd1
mov eax, dword [0x577870]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x4ecb25
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x4ecb08
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x4ecbd1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.004ec860
mov ecx, dword [0x577878]
add esp, 4
cmp esi, ecx
jae 0x4ecb85
imul edi, esi, 0x2c
mov eax, dword [0x577870]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x4ecb7a
mov edx, ebx
mov ecx, esi
call fcn.004eca00
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ecb82
mov ecx, dword [0x577878]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x4ecb51
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ecbd1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x4ecbc2
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x4ecbb6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x4ecb95
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x5770f4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4eee90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cc30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x573054]
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 0x4eef47
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 0x4eef1c
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 0x4eef1e
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x1c]
mov dword [edi], esi
mov ecx, edi
call fcn.004ef030
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
test eax, eax
mov dword [ecx + 8], 0
sete al
jmp 0x4ef011
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 0x4ef00f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4ef00f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4ef00f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4ef008
push dword [ebp - 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4ef008
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4ef001
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 0x4ef001
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4ef001
call fcn.004eede0
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 0x4eef2a
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.0050f48d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ef650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ce26
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x573054]
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 [0x5770f8], 0
movsd xmm0, qword [0x541290]
movsd qword [edi + 0x130], xmm0
jne 0x4ef853
call fcn.004f1b60
mov word [0x5770f8], 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 0x4f7370
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0xa8
mov eax, dword [0x573054]
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 0x4f73b0
xor eax, eax
pop edi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0050f48d
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 0x4f73de
lea eax, [esi - 0x6f]
push eax
push 0x540d7c
push ebx
push edi
call fcn.00458fd0
add esp, 0x10
jmp 0x4f74de
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x4f73fb
push esi
push 0x540d74
push 8
push edi
call fcn.00458fd0
add esp, 0x10
jmp 0x4f74de
lea eax, [ecx - 0x60]
cmp al, 9
ja 0x4f741b
lea eax, [esi - 0x60]
push eax
push 0x540d5c
push 8
push edi
call fcn.00458fd0
add esp, 0x10
jmp 0x4f74de
sub cl, 0x30
cmp cl, 9
ja 0x4f743c
lea eax, [esi - 0x30]
push eax
push 0x53b774
push 8
push edi
call fcn.00458fd0
add esp, 0x10
jmp 0x4f74de
lea eax, [esi - 0x25]
cmp eax, 0x98
ja case.0x4f744d.41
movzx eax, byte [eax + 0x4f7558]
jmp dword [eax*4 + 0x4f7530]
push 0x540d58
jmp 0x4f74d5
push 0x53c570
jmp 0x4f74d5
push 0x53c4f0
jmp 0x4f74d5
push 0x53b0f0
jmp 0x4f74d5
push 0x540d6c
jmp 0x4f74d5
push 0x540d68
jmp 0x4f74d5
push 0x540d88
jmp 0x4f74d5
push 0x540d84
jmp 0x4f74d5
push 0x540d8c
jmp 0x4f74d5
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 0x4f750d
lea eax, [esp + 0x14]
push eax
mov edx, ebx
mov ecx, edi
call fcn.00449240
test eax, eax
je 0x4f74e9
cmp eax, 0x8007007a
jne 0x4f750d
test edi, edi
je 0x4f750b
mov eax, ebx
nop
cmp word [edi], bp
je 0x4f74fd
add edi, 2
sub eax, 1
jne 0x4f74f0
sub ebx, eax
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, ebx
test eax, eax
jne 0x4f750d
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.0050f48d
add esp, 0xa8
ret
Function at 0x4faae0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4fab3c
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 0x4fab19
push dword [esi + 0x14]
call ebp
test eax, eax
je 0x4fab19
push 0
push dword [esi + 0x14]
call edi
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x4fab32
push dword [esi + 0x10]
call ebp
test eax, eax
je 0x4fab32
push 0
push dword [esi + 0x10]
call edi
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x4fab00
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x502cc0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x502ccb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00502ce0
Function at 0x50498c
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 0x5049a3
push dword [edi + 0x64]
call esi
cmp dword [edi + 0x70], 0
je 0x5049ae
push dword [edi + 0x70]
call esi
xor ebp, ebp
cmp dword [edi + 0x78], ebp
je 0x504aa0
push 0x577100
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
test al, 1
je 0x5049d7
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [edi + 0x78]
test al, 2
je 0x5049eb
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 0x5049fc
push dword [edi + 0x84]
call dword [sym.imp.VCRUNTIME140.dll__set_purecall_handler]
pop ecx
mov ebx, dword [0x577118]
mov eax, dword [ebx + 4]
add eax, 0xfffffffc
cmp dword [eax], edi
jne 0x504a11
mov dword [ebx + 4], eax
jmp 0x504a62
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.004e6910
mov ebx, dword [0x577118]
pop ecx
pop ecx
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x504a62
lea ebp, [esi + 4]
cmp dword [esi], edi
jne 0x504a53
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 0x504a59
add esi, 4
add ebp, 4
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x504a39
xor ebp, ebp
cmp dword [ebx], eax
jne 0x504a95
cmp dword [ebx], 0
je 0x504a85
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.0050f85c
pop ecx
pop ecx
mov dword [0x577118], ebp
push 0x577100
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [edi + 0xc], ebp
jne 0x504ae6
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 0x5770fc
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x504afc
push 0x577100
call ebx
lea ecx, [edi + 0xc0]
call fcn.00505458
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 0x504b30
push ecx
call fcn.00505492
ret
Function at 0x50579e
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 0x505913
cmp dword [esp + 0x14], 2
jne 0x505913
cmp dword [esp + 0x18], esi
je 0x505913
cmp dword [esp + 0x34], esi
je 0x505913
cmp dword [esp + 0x38], esi
je 0x505913
cmp dword [esp + 0x3c], esi
je 0x505913
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 0x505913
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 0x505915
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4
Function at 0x508290
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ddd7
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x573054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x52ffb4
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.004b4b00
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.004b4b00
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x240]
push eax
call fcn.004b7500
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x508355
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 0x508515
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.004bfc80
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 0x52ffc4
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.004b4b00
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 0x52fbc0
push str.Running
push 0x52ffdc
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.00506510
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x268]
push eax
call fcn.00508730
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.004b3be0
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.004b3be0
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.00508530
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.0050f48d
mov esp, ebp
pop ebp
ret
Function at 0x50f140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e286
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.0050fde0
mov eax, dword [0x573054]
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.004bd1d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1014]
call fcn.004bd900
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 0x50f1f1
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x102c]
call fcn.00403270
lea ecx, [ebp - 0x1014]
call fcn.004bdbe0
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.004bd250
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.0050f48d
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edx, 0x56
neg esi
inc edi
inc edi
neg esi
rcr edx, 0x82
imul edi
inc eax
or edi, 0xe3
or esi, 0x31
bswap eax
sub esi, 0x25
imul eax
ror edi, 0xf9
neg ebx
add eax, 0xeb
not edi
mov edx, 0xdf
rcl esi, 0x31
sub edi, 0x5b
not eax
sbb eax, 0x90
bswap edi
add edx, 0x66
ror ebx, 0xc0
bswap edx
add edi, 0x62
imul esi
imul esi
sub edx, 0xc8
not edx
inc eax
rol esi, 0x36
or edx, 0xee
or ebx, 0x72
rcr edx, 0x2c
rol esi, 0x15
ror edi, 0xbc
mov esi, 0xc4
imul edx
mov edi, 0x32
not ebx
imul edi
neg esi
dec ebx
inc esi
not eax
dec edx
not edx
sbb esi, 0xe7
xor ecx, ecx
xor edi, edi
rol edi, 0xda
rol edx, 0xc5
and ebx, 1
not eax
not eax
rcr edi, 0x6f
add edx, 0x27
add eax, 0xa9
add edx, 0xdd
ror edi, 0x88
mov eax, 0xcf
not edi
neg esi
rol edx, 0xb9
dec edi
add eax, 4
rol eax, 0x3f
bswap ebx
ror eax, 0x95
not edx
dec eax
not edi
add edi, 0x74
imul ebx
not esi
imul esi
sbb ebx, 0xaf
sbb ebx, 0xa8
rol eax, 0x88
and esi, 0xab
imul edi
sbb edi, 0x5a
imul eax
and edx, 0x41
imul edi
ror eax, 0xc3
rcr ebx, 0x1e
or edi, 0xe7
not ebx
dec eax
sub esi, 0x16
not esi
sbb edi, 0xa1
inc eax
bswap esi
or edi, 0x66
bswap esi
imul edi
inc ebx
rcr eax, 0x5a
mov ecx, dword [ebp + 0xc]
imul ebx
dec edi
rcl esi, 0x95
rol ebx, 0x83
rcl eax, 0xef
rcl edx, 0x99
rol edx, 0xec
sub esi, 0xd4
dec edx
neg edx
bswap edi
ror eax, 9
mov eax, 0x43
not edx
bswap esi
neg ebx
rcr eax, 0x79
add eax, 0x9d
imul esi
neg ebx
not edx
sbb eax, 0x93
inc eax
mov esi, 0x31
not edi
not eax
inc edx
not esi
rcl eax, 0x48
dec edx
rcl ebx, 0x5e
imul eax
and ebx, 0
dec esi
bswap eax
neg edx
not esi
sub ebx, 0x23
ror ebx, 0x89
imul edi
imul edi
ror eax, 0xd5
imul ebx
dec ebx
bswap eax
sbb eax, 0xda
or esi, 0x87
mov edx, 0x4c
dec esi
and eax, 0xcb
mov edi, dword [ebp + 8]
mov esi, ebx
mov esi, ebx
mov esi, eax
xor eax, ebx
xor eax, ebx
xor ebx, esi
mov esi, ebx
xor esi, ebx
mov eax, esi
xor eax, eax
mov eax, eax
mov eax, eax
not byte [edi]
mov eax, eax
xor ebx, eax
mov eax, eax
mov ebx, esi
xor eax, esi
xor ebx, ebx
mov esi, esi
xor ebx, eax
xor eax, eax
sub byte [edi], 0x89
mov esi, esi
mov esi, eax
xor esi, ebx
xor ebx, esi
mov eax, esi
mov eax, eax
xor eax, esi
xor eax, esi
xor esi, esi
add byte [edi], 0x43
mov esi, eax
mov esi, esi
mov eax, esi
xor ebx, ebx
xor eax, eax
mov ebx, eax
mov esi, eax
xor eax, esi
mov eax, ebx
imul byte [edi]
inc edi
loop 0x4011b9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404c34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45aaf0]
jne 0x404c3e
repz ret
jmp fcn.00409135