joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ac070
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_malloc]
push ebp
push esi
mov esi, dword [0x100d4514]
push edi
xor edi, edi
mov ebp, esi
cmp dword [0x100d4678], edi
jne 0x100ac152
push 0xc
mov dword [0x100d4678], 1
call ebx
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x100ac0b7
push 0xc
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov eax, dword [0x100d4594]
mov ecx, dword [0x100d43b0]
mov dword [esi], 0x100ac240
mov dword [esi + 4], edi
mov dword [esi + 8], eax
push 0x100d44ec
mov dword [0x100d4594], esi
mov dword [0x100d44ec], edi
mov dword [0x100d44f4], edi
mov dword [0x100d44f8], edi
mov dword [0x100d44fc], ecx
mov dword [0x100d4508], edi
mov dword [0x100d450c], edi
mov dword [0x100d4510], 0x100c942c
mov dword [0x100d44f0], 0x100ad740
mov dword [0x100d4500], edi
mov dword [0x100d4504], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x100ac14c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.tcl85.dll_TclWinConvertError
add esp, 4
call fcn.100ac270
pop edi
pop esi
pop ebp
mov dword [0x100d4678], 0xffffffff
pop ebx
pop ecx
ret
mov esi, dword [0x100d4514]
cmp ebp, edi
jne 0x100ac238
cmp esi, edi
jne 0x100ac1a6
push 0x1c
call ebx
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x100ac17a
push 0x1c
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov ebx, 0x100d4514
mov dword [0x100d4514], esi
call fcn.100909f0
mov esi, dword [0x100d4514]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push edi
push edi
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0xc], eax
cmp eax, edi
je 0x100ac210
push edi
push 1
push edi
push edi
call ebx
mov dword [esi + 0x10], eax
cmp eax, edi
je 0x100ac210
lea edx, [esp + 0x10]
push edx
push edi
push esi
push 0x100ad6a0
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, edi
je 0x100ac210
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi], edi
jne 0x100ac225
call fcn.100ac270
pop edi
pop esi
pop ebp
mov dword [0x100d4678], 0xffffffff
pop ebx
pop ecx
ret
push edi
push 0x100ac410
push 0x100ac340
call sym.tcl85.dll_Tcl_CreateEventSource
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100aca80
Capabilities:
Resolve dns

Disassembly:
push ecx
cmp dword [0x100d4678], 1
je 0x100aca9a
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0xe
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 2
push ecx
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
test edi, edi
jne 0x100acace
xor eax, eax
mov dword [esi + 4], eax
mov eax, 1
pop ecx
ret
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x100acac4
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100acb0e
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 8]
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
add esp, 0xc
mov eax, 1
pop ecx
ret
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x94
xor eax, eax
pop ecx
ret

Function at 0x100adb30
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
ret
Function at 0x100ae1b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [0x100d4560]
push ebx
push ebp
push esi
push edi
test eax, eax
jne 0x100ae213
push 0x64
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100ae1f1
push 0x64
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
push 0x64
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ebx, 0x100d4560
mov dword [0x100d4560], esi
call fcn.100909f0
mov eax, dword [0x100d4560]
push 0x100be0a4
mov ebp, eax
mov byte [eax], 0
call dword [sym.imp.MSVCR90.dll_getenv]
mov edi, eax
add esp, 4
test edi, edi
je 0x100ae2d3
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100ae235
sub esi, ecx
cmp esi, 3
jle 0x100ae248
mov esi, 3
cmp dword [esp + 0xd4], 0
je 0x100ae287
lea ebx, [esi + edi]
push str._:0123456789
push ebx
call dword [sym.imp.MSVCR90.dll_strspn]
add ebx, eax
add esp, 8
cmp byte [ebx], 0
je 0x100ae287
mov eax, ebx
mov edi, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ae272
sub eax, edx
mov esi, eax
cmp esi, 3
jle 0x100ae287
mov esi, 3
mov ebx, dword [0x100d3f3c]
mov eax, esi
test edi, edi
jne 0x100ae297
xor eax, eax
jmp 0x100ae2a4
test esi, esi
jge 0x100ae2a4
mov eax, dword [ebx + 0x18]
push edi
call eax
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 4]
push 0x3f
push ebp
lea edx, [esp + 0x2c]
push edx
push 3
push eax
mov eax, dword [ebx + 0x14]
push edi
push eax
call ecx
mov edx, dword [esp + 0x38]
add esp, 0x28
mov byte [edx + ebp], 0
cmp byte [ebp], 0
jne 0x100ae365
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
test eax, eax
jne 0x100ae2f0
xor edi, edi
jmp 0x100ae2f7
mov edi, dword [esp + 0xd4]
push str.unicode
push 0
call sym.tcl85.dll_Tcl_GetEncoding
add esp, 8
mov esi, eax
lea ebx, [esp + 0x78]
test edi, edi
jne 0x100ae314
lea ebx, [esp + 0x24]
mov edi, esi
test esi, esi
jne 0x100ae320
mov edi, dword [0x100d3f3c]
test ebx, ebx
jne 0x100ae328
xor eax, eax
jmp 0x100ae331
mov ecx, dword [edi + 0x18]
push ebx
call ecx
add esp, 4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [edi + 0x14]
push 0x3f
push ebp
lea ecx, [esp + 0x30]
push ecx
push 3
push eax
mov eax, dword [edi + 4]
push ebx
push edx
call eax
mov ecx, dword [esp + 0x38]
add esp, 0x28
mov byte [ecx + ebp], 0
call fcn.10041b90
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.100b30c8
add esp, 0xc0
ret
Function at 0x100b28d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, dword [edi]
jle 0x100b2919
lea ecx, [esp + 0x10]
push ecx
call sym.tcl85.dll_TclBN_mp_init
add esp, 4
test eax, eax
jne 0x100b29d1
lea edx, [esp + 0x10]
push edx
push esi
call sym.tcl85.dll_TclBN_mp_copy
add esp, 8
test eax, eax
jne 0x100b29d1
mov ecx, dword [edi]
mov esi, edi
jmp 0x100b2946
lea eax, [esp + 0x10]
push eax
call sym.tcl85.dll_TclBN_mp_init
add esp, 4
test eax, eax
jne 0x100b29d1
lea ecx, [esp + 0x10]
push ecx
push edi
call sym.tcl85.dll_TclBN_mp_copy
add esp, 8
test eax, eax
jne 0x100b29d1
mov ecx, dword [esi]
mov edx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jle 0x100b295e
mov edi, dword [esi + 0xc]
mov edi, dword [edi + eax*4]
xor dword [edx + eax*4], edi
inc eax
cmp eax, ecx
jl 0x100b2950
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x100b297f
lea eax, [edx + ecx*4 - 4]
lea ebx, [ebx]
cmp dword [eax], 0
jne 0x100b297d
dec ecx
sub eax, 4
test ecx, ecx
jg 0x100b2970
test ecx, ecx
jne 0x100b2989
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 8]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x28], ebx
mov ebx, dword [eax + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
call sym.tcl85.dll_TclBN_mp_clear
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100b30c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100b30d2
repz ret
jmp fcn.100b3504
Function at 0x417e10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x50
test eax, eax
push esi
je 0x417e36
mov eax, dword [0x6377d0]
test eax, eax
je 0x417e2c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x50
ret
push ebx
push edi
lea eax, [esp + 0xc]
push 0x50
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dsound.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [0x6377d0], eax
test eax, eax
pop ebx
je 0x417ed1
dec eax
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401190
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x43d4e0]
test eax, eax
push esi
push edi
je 0x4011eb
mov eax, dword [esp + 0x10]
mov edx, dword [0x43c054]
mov ecx, dword [0x43c058]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x4011b6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40125f
mov esi, dword [0x43c050]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x43c054]
add ecx, eax
pop edi
mov dword [0x43c054], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.004235b8
mov edi, eax
mov eax, dword [0x43d4d0]
add esp, 0x10
test eax, eax
je 0x40125d
test edi, edi
jle 0x40125d
mov edx, dword [0x43d33c]
mov eax, dword [0x43d320]
lea ecx, [eax + edx]
mov edx, dword [0x43d32c]
mov eax, dword [0x43d328]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40125d
mov dl, byte [0x43d334]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
xor bl, cl
sub bl, al
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x401247
pop ebp
mov byte [0x43d334], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x410030
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x2004
call fcn.00424ea0
push ebx
push esi
push edi
call fcn.00403240
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00422ef0
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00422950
mov edx, dword [esp + 0x18]
push edx
lea eax, [ebx + 0x368]
push eax
call fcn.0040cc70
lea ecx, [esp + 0x20]
push ecx
call fcn.00422960
add esp, 0x18
push 0x104
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [esp + 0x1014]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00422cf0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x1020]
push eax
call fcn.00422950
mov ecx, dword [esp + 0x20]
push ecx
lea esi, [ebx + 0x338]
push esi
call fcn.0040cc70
mov edx, dword [esi]
push 0x5c
push edx
call fcn.00422f50
mov eax, dword [esi]
push eax
lea ecx, [ebx + 0x384]
push ecx
call fcn.0040cc70
mov edi, dword [esi]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4100e1
mov edx, dword [str.hsptv_]
mov dword [edi], edx
mov eax, dword [0x433560]
lea ecx, [esp + 0xc]
push ecx
mov dword [edi + 4], eax
call fcn.00422960
mov edx, dword [esi]
push edx
add ebx, 0x388
push ebx
call fcn.0040cc70
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x2004
ret
Function at 0x411bb0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1008
call fcn.00424ea0
mov eax, dword [esp + 0x100c]
cmp eax, 6
push esi
mov byte [esp + 0xc], 0
ja case.default.0x411bd0
jmp dword [eax*4 + 0x411ce8]
lea eax, [esp + 0xc]
push 0x1000
push eax
call fcn.004257e6
add esp, 8
jmp 0x411c7f
mov ecx, dword [0x43e2fc]
mov esi, dword [ecx + 0x384]
mov eax, esi
pop esi
add esp, 0x1008
ret
push 0x1000
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x411c7f
push 0x1000
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x411c7f
mov ecx, dword [0x43e2fc]
mov esi, dword [ecx + 0x368]
mov eax, esi
pop esi
add esp, 0x1008
ret
mov esi, 0x4333b9
mov eax, esi
pop esi
add esp, 0x1008
ret
mov esi, dword [0x43e2fc]
add esi, 0x390
mov eax, esi
pop esi
add esp, 0x1008
ret
test eax, 0x10000
je 0x411cce
push 0
and eax, 0xffff
push eax
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00422950
mov edx, dword [esp + 0xc]
mov eax, dword [0x43e2fc]
push edx
add eax, 0x338
push eax
call fcn.0040cc70
lea ecx, [esp + 0x14]
push ecx
call fcn.00422960
mov edx, dword [0x43e2fc]
mov esi, dword [edx + 0x338]
push 0x5c
push esi
call fcn.00422f50
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0x1008
ret
push 0x439d84
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 3
call fcn.00423dee
lea ecx, [ecx]
xlatb
sbb eax, dword [ecx]
out dx, al
sbb eax, dword [ecx]
add al, 0x1c
inc ecx
add byte [esi], dl
sbb al, 0x41
add byte [eax], ch
sbb al, 0x41
add byte [esi], bh
sbb al, 0x41
add byte [ebp + 0x1c], cl
inc ecx
add ah, cl
int3
Function at 0x411d10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
mov cl, byte [esp + 0x50]
test cl, 2
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, 0xa
je 0x411d35
mov eax, 2
mov edx, dword [esp + 0x4c]
cmp byte [edx], 0
je 0x411de4
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0xc
call fcn.00422950
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x28], eax
call fcn.00422950
mov dword [esp + 0x2c], eax
add esp, 0x10
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
lea ecx, [esp]
push ecx
jne 0x411dce
call fcn.00422960
lea edx, [esp + 8]
push edx
call fcn.00422960
add esp, 8
push 0x439d84
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0xe
call fcn.00423dee
call fcn.00422960
lea edx, [esp + 8]
push edx
call fcn.00422960
add esp, 8
add esp, 0x44
ret
test cl, 0x10
push esi
push eax
lea eax, [esp + 8]
je 0x411e14
mov ecx, dword [esp + 0x50]
push 0x4333b9
push 0x4333b9
push eax
push ecx
call fcn.00422950
add esp, 8
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x411e52
test cl, 0x20
mov ecx, dword [esp + 0x50]
je 0x411e41
push 0x4333b9
push 0x4333b9
push eax
push ecx
call fcn.00422950
add esp, 8
push eax
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x411e52
push eax
push ecx
call fcn.00422950
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea edx, [esp + 4]
push edx
mov esi, eax
call fcn.00422960
add esp, 4
cmp esi, 0x20
pop esi
jge 0x411de0
push 0x439d84
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0xe
call fcn.00423dee
int3
Function at 0x4161e0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x432346
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
mov esi, dword [edi + 8]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov eax, dword [edi + 4]
mov ebx, dword [eax + 0x320]
mov dword [0x43e35c], ecx
mov ecx, dword [str.hspwnd0]
mov dword [0x43e3a4], edx
mov edx, dword [0x4336ac]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
test byte [eax + 0x30c], 2
mov dword [0x43e360], eax
je 0x416245
mov byte [esp + 0x16], 0x70
push 0x164
call fcn.00423a6e
add esp, 4
mov dword [esp + 0x40], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x38], ebp
je 0x416269
mov ecx, eax
call fcn.0041d070
jmp 0x41626b
xor eax, eax
push 0x368
mov dword [esp + 0x3c], 0xffffffff
mov dword [0x43e3a0], eax
call fcn.00423a6e
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebp
mov dword [esp + 0x38], 1
je 0x4162a4
lea ecx, [esp + 0x10]
push ecx
push ebx
mov ecx, eax
call fcn.0041c420
jmp 0x4162a6
xor eax, eax
mov ebx, dword [esp + 0x4c]
mov ecx, dword [0x43e360]
mov edx, ebx
and edx, 0x100
mov dword [esp + 0x38], 0xffffffff
mov dword [0x43e3a8], eax
mov dword [eax + 0x31c], ecx
je 0x4162d9
mov ecx, dword [ecx + 0x358]
mov dword [eax + 0x364], ecx
test bl, 1
je 0x4162e1
or edx, 2
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
push edx
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x68]
push edx
push ecx
push 2
push ebp
mov ecx, eax
call fcn.0041ca70
mov ecx, dword [0x43e3a8]
push 0x415f40
call fcn.00419e40
mov edx, dword [0x43e360]
mov ecx, dword [0x43e3a8]
add edx, 0x310
push edx
call fcn.00419e20
mov eax, dword [0x43e3a8]
mov dword [0x43e3b4], ebp
mov ecx, dword [eax + 0x324]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
mov ecx, dword [0x43e3a0]
push edx
mov dword [0x43e358], ebp
mov dword [0x43e394], ebp
mov dword [0x43e3ac], eax
call fcn.0041d690
call fcn.0040f8b0
mov ecx, dword [esp + 0x30]
mov dword [edi + 0xc], 0x413b20
mov dword [edi + 0x14], 0x416180
pop edi
mov dword [esi + 0x14], 0x43e3b4
mov dword [esi + 0x48], 0x415f50
mov dword [esi + 0x4c], 0x415f70
mov dword [esi + 0x50], 0x415fa0
mov dword [esi + 0x5c], 0x415fd0
mov dword [esi + 0xac], 0x415ff0
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4163b0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x43e3cc]
test byte [eax + 0x30c], 2
je 0x416462
mov edx, dword [esi + 4]
cmp edx, 0x200
jne 0x41643c
mov edi, dword [0x43e3c4]
test edi, edi
movzx eax, word [esi + 0xc]
movzx ecx, word [esi + 0xe]
jne 0x416431
cmp dword [0x43e3bc], eax
jne 0x41641c
cmp dword [0x43e3c0], ecx
je 0x41643c
push 0x439d84
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], 0
call fcn.00423dee
mov dword [0x43e3bc], eax
mov dword [0x43e3c0], ecx
cmp edx, 0x100
jne 0x416462
mov eax, dword [0x43e3c4]
test eax, eax
jne 0x416462
push 0x439d84
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0
call fcn.00423dee
cmp dword [esi + 4], 0x100
jne 0x4164a7
cmp dword [esi + 8], 9
jne 0x416476
call fcn.00416130
push 2
call fcn.00403720
add esp, 4
test eax, eax
je 0x4164a7
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
push eax
push 2
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.00403c00
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret