joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x3dca5a23
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x118748c1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x402701
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
push esi
push edi
xor edi, edi
xor esi, esi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, 0x9f60fc3
jg 0x402727
inc esi
cmp esi, 0x1e70dee2
jl 0x40270d
cmp dword [0x4436fc], 0x400
jne 0x40274f
push edi
call fcn.004028a1
push edi
push edi
call fcn.00402d03
push edi
call fcn.00402b62
push edi
call fcn.00402de1
add esp, 0x14
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x58bc6e
jg 0x40276e
inc esi
cmp esi, 0xe52f
jl 0x402751
mov eax, dword [0x43b6bc]
mov dword [0x4436fc], eax
call fcn.0040247d
mov esi, 0x3078f
cmp dword [0x4436fc], 0x51f
jne 0x40279a
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec esi
jne 0x402782
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x405954
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c5b0]
jne 0x40595e
repz ret
jmp fcn.00407275
Function at 0x4064c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040525f
and dword [ebp - 0x14], 0
cmp dword [0x43d2f4], 0
mov dword [ebp - 0x18], eax
jne 0x406577
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40661f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40661f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43d2f4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43d2f8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43d2fc], eax
call edi
push eax
call esi
mov dword [0x43d304], eax
test eax, eax
je 0x406577
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43d300], eax
mov eax, dword [0x43d300]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4065d0
cmp dword [0x43d304], ecx
je 0x4065d0
push eax
call esi
push dword [0x43d304]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4065d0
test ebx, ebx
je 0x4065d0
call edi
test eax, eax
je 0x4065c7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4065c7
test byte [ebp - 8], 1
jne 0x4065d0
or dword [ebp + 0x10], 0x200000
jmp 0x406603
mov eax, dword [0x43d2f8]
cmp eax, dword [ebp - 0x18]
je 0x406603
push eax
call esi
test eax, eax
je 0x406603
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406603
mov eax, dword [0x43d2fc]
cmp eax, dword [ebp - 0x18]
je 0x406603
push eax
call esi
test eax, eax
je 0x406603
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43d2f4]
call esi
test eax, eax
je 0x40661f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406621
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405954
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001dc0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
or ebx, 0xffffffff
sub esp, 0xc
mov esi, dword [ebp + 8]
lock xadd dword [esi + 4], ebx
dec ebx
je 0x10001de0
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 8]
mov dword [esp], eax
call sym._UnMapLS_4
push eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x10002140
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x100021c0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
push esi
or esi, 0xffffffff
lock xadd dword [ebx + 4], esi
dec esi
jne 0x100021b2
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x10002250
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._UnMapLS_4
push eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebx + 0x9c]
mov dword [esp], eax
mov dword [ebp - 0x10], eax
call sym._MapSL_4
push edx
mov eax, dword [eax]
mov dword [esp], eax
call sym._MapSL_4
lea edx, [ebp - 0xc]
push ecx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._K32WOWCallback16Ex_20
sub esp, 0x14
test eax, eax
jne 0x1000215f
test byte [0x100088a0], 2
je 0x1000215f
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], str.CallTo16_ILockBytes16::Flush___failed__hres__lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._ilockbytes16_flush
mov dword [esp + 4], 0x100088a0
mov dword [esp], 1
call dbg.wine_dbg_log
jmp 0x1000215f
mov eax, dword [ebx + 0x9c]
mov dword [esp], eax
mov dword [ebp - 0x10], eax
call sym._MapSL_4
push edx
mov eax, dword [eax]
mov dword [esp], eax
call sym._MapSL_4
lea edx, [ebp - 0xc]
push ecx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._K32WOWCallback16Ex_20
sub esp, 0x14
test eax, eax
jne 0x10002182
test byte [0x100088a0], 2
je 0x10002182
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], str.CallTo16_ILockBytes16::Release___failed__hres__lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._ilockbytes16_release
mov dword [esp + 4], 0x100088a0
mov dword [esp], 1
call dbg.wine_dbg_log
jmp 0x10002182
Function at 0x10003af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x18
cmp edx, 0xffffffff
jl 0x10003c0c
inc edx
mov ebx, eax
mov eax, dword [eax]
mov esi, ecx
shl edx, 9
test eax, eax
je 0x10003bf8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
inc eax
jne 0x10003b47
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
test edx, edx
jne 0x10003bd8
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x10003b7d
cmp dword [ebp - 0xc], 0x200
je 0x10003bc8
test byte [0x100088a0], 4
jne 0x10003b90
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str._write_failed___ld__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.20
mov dword [esp + 4], 0x100088a0
mov dword [esp], 2
call dbg.wine_dbg_log
jmp 0x10003b86
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret
test byte [0x100088a0], 4
je 0x10003b86
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.seek_failed___ld__n
mov dword [esp + 0x10], eax
jmp 0x10003ba5
mov eax, dword [ebx + 4]
call sym.__ilockbytes16_writeat.constprop.0
lea esp, [ebp - 8]
pop ebx
mov eax, 1
pop esi
pop ebp
ret
mov dword [esp + 8], 0x1a6
mov dword [esp + 4], str..._wine_9.10_dlls_storage.dll16_storage.c
mov dword [esp], str.n__1
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
Function at 0x100064b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], 0
mov dword [esp + 8], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov ebx, dword [ebp + 0xc]
call edx
sub esp, 0x20
mov edi, eax
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x14]
sub esp, 0xc
mov dword [ebp - 0x10], eax
test byte [0x100088a0], 8
mov ecx, dword [ebp - 0x18]
jne 0x10006608
mov dword [esp + 0x14], edi
mov edi, dword [ebp - 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 8], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x20
mov dword [esp], edi
call sym._MapLS_4
push edx
mov dword [ebx], eax
xor eax, eax
mov al, byte [esi + 0x4e]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x84]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x7c]
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x7c]
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x44], 0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p_____p_0x_08lx__n
mov dword [esp + 8], global___func__.8
mov dword [esp + 4], 0x100088a0
mov dword [esp], 3
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
call dbg.wine_dbg_log
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
jmp 0x1000654a
Function at 0x10006f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x10006ff8
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x10006ff0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10016144], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x10006fba
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x10007570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10016154]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x10007758
mov dword [esp], esi
call dword [0x10016154]
mov cl, byte [ebp + 8]
and eax, 0xff
sar eax, cl
test al, 1
je 0x100077b8
mov edi, dword [0x10016144]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edi
je 0x10007748
test byte [0x100088b8], 8
jne 0x100076d0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100088c8], 8
jne 0x10007688
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
mov dword [esp], edi
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10007609
cmp dword [ebp + 8], 3
jbe 0x10007648
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
add eax, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
inc esi
mov dword [esp + 8], str._s:_s:_s
mov edx, dword [ecx*4 + 0x10011700]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
mov dword [esp], eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10007609
mov ecx, dword [0x10016154]
test ecx, ecx
je 0x10007798
mov dword [esp], 0x100088c8
call dword [0x10016154]
test al, 8
je 0x100075df
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str._04x:
call dbg.sprintf
add edi, eax
jmp 0x100075df
mov ebx, dword [0x10016154]
test ebx, ebx
je 0x10007778
mov dword [esp], 0x100088b8
call dword [0x10016154]
test al, 8
je 0x100075ca
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, 0x10624dd3
mov ecx, eax
mov dword [esp + 4], str._3u._03u:
mul ebx
mov eax, edx
mov edx, ecx
shr eax, 6
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub edx, eax
mov eax, ecx
mov dword [esp + 0xc], edx
mul ebx
shr edx, 6
lea ebx, [ebp - 0xd4]
mov dword [esp + 8], edx
mov dword [esp], ebx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x100075d2
add esp, 0xe0
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10016154
call sym._load_func.part.0
jmp 0x1000758d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10016154
call sym._load_func.part.0
jmp 0x100076de
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10016154
call sym._load_func.part.0
jmp 0x10007696
or eax, 0xffffffff
jmp 0x1000763a
Function at 0x40177f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017be
cmp dword [ecx + 0x74], 0xe
jbe 0x4017be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41219d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41219d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4097c8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
jmp 0x409871
cmp dword [esi + 0x10], 0x1000
jne 0x40985d
test byte [esi + 0x15], 1
jne 0x40985d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40981c
cmp eax, 2
je 0x40981c
cmp eax, 0x10
je 0x40981c
cmp eax, 0x20
jne 0x409831
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409831
mov bl, 1
xor ebp, ebp
jmp 0x409842
mov eax, dword [esi]
add eax, ebp
call fcn.004097c0
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409835
test bl, bl
je 0x40985d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4097f4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10004510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10085580
push 0x1006cc4c
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10088400]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, edx
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub ebx, esi
sub ebx, 5
mov byte [esi], 0xe9
mov dword [esi + 1], ebx
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x10004580
mov byte [esi + eax], 0x90
inc eax
jmp 0x10004572
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000459a
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret

Function at 0x10005570
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10088400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov edi, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
push 1
call esi
push dword [ebp + 8]
push edi
mov edi, dword [ebp - 0xc]
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push 1
call esi
push 1
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret
Function at 0x10007470
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x10088400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007502
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10007502
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
push dword [ebp - 0x138]
lea eax, [ebp - 0x10c]
push eax
call edi
add esp, 8
test eax, eax
je 0x100074f6
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x100074d0
jmp 0x10007502
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x134], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret