joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043480
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x1400434b0
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140041560
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140043c70
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, r9
mov r8, r9
mov rsi, rdx
mov rbx, rcx
call fcn.140044cb0
test eax, eax
je 0x140043dc3
cmp dword [rdi], 0
je 0x140043d31
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x140043cd0
call fcn.140047ac0
test eax, eax
je 0x140043dc3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140047640
jmp 0x140043d16
cmp eax, 0x36002
jne 0x140043cf4
call fcn.140048ec0
test eax, eax
je 0x140043dc3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1400489b0
jmp 0x140043d16
cmp eax, 0x36003
jne 0x140043d1e
call fcn.140049d00
test eax, eax
je 0x140043dc3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140049ac0
test eax, eax
je 0x140043dc3
mov rdx, rdi
mov rcx, rbx
call fcn.14003fa20
test eax, eax
je 0x140043dc3
cmp qword [rbx + 0x48], 0
je 0x140043d96
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
call fcn.140044a70
mov rcx, rbx
call fcn.1400453c0
cmp dword [rsi + 0x2c], 0
je 0x140043dbc
mov rcx, rbx
call fcn.140040630
mov eax, 1
jmp 0x140043dc5
cmp dword [rsi + 0x14], 0
je 0x140043dbc
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x140043dbc
mov rcx, rbx
call fcn.140043ea0
mov eax, 1
jmp 0x140043dc5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140044110
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14025c090], 0
jne 0x14003f255
xor edx, edx
mov ecx, 0x10001
jmp fcn.14003e610
jmp 0x140044110
push rbx
sub rsp, 0xa0
mov rax, qword [0x14024f078]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400441aa
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x140044175
mov rbx, qword [0x14025c480]
test rbx, rbx
je 0x14004418b
mov rcx, rbx
call fcn.14003ebb0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140044163
jmp 0x14004418b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140044150
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400442a7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x14004429f
movdqa xmm0, xmmword [0x14023ef30]
xor ebx, ebx
movdqa xmm1, xmmword [0x14023ef40]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x14025db68]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x14004426e
cmp byte [rbp + rdi + 0x88], 1
jne 0x14004426e
call fcn.140045460
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400408b0
inc rbx
cmp rbx, 4
jl 0x140044230
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x14025e508]
test rbx, rbx
je 0x14004432c
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x1400442ee
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14004432c
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14004a3c0
add rsp, 0xa0
pop rbx
ret
Function at 0x1400451b0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x14025e508], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14004520c
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x14025e4f8], xmm0
movsd qword [0x14025e500], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x140045250
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140045231
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x140045258
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x140045258
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140040630
mov rcx, rbx
call fcn.1400455d0
cmp dword [rbx + 0x1f8], 0
je 0x1400452ab
mov rax, qword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400452ab
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140041560
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400452c0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x140045310
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140045310
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140041560
xor ecx, ecx
mov qword [0x14025e508], 0
call fcn.1400455d0
cvttsd2si ecx, qword [0x14025e4f8]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x14025e500]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x388], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [rbx + 0x7c], 0x34001
jne 0x1400453a4
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140045388
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
Function at 0x140045460
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, 0x12
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x140049d00
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14024f078]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14025e738], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x140049d55
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004a3c0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14025e738], rax
test rax, rax
jne 0x140049d98
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140049d60
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14003e610
jmp 0x140049ebd
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14025e738]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x14025e740], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14025e738]
lea rdx, str.OSMesaDestroyContext
mov qword [0x14025e748], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14025e738]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x14025e750], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14025e738]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x14025e758], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14025e738]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x14025e760], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14025e738]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x14025e768], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14025e740], 0
mov qword [0x14025e770], rax
je 0x140049e8f
cmp qword [0x14025e750], 0
je 0x140049e8f
cmp qword [0x14025e758], 0
je 0x140049e8f
cmp qword [0x14025e760], 0
je 0x140049e8f
cmp qword [0x14025e768], 0
je 0x140049e8f
test rax, rax
je 0x140049e8f
mov eax, 1
jmp 0x140049ebf
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14003e610
mov rcx, qword [0x14025e738]
test rcx, rcx
je 0x140049ebd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14025e738], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004a3c0
add rsp, 0x48
ret

Function at 0x14004a894
Capabilities:
Parse pe header

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

Function at 0x140056614
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140056440
Function at 0x14000247c
Capabilities:
Parse pe header

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

Function at 0x1400088f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400086ec
Function at 0x14000dc38
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 0x14000dc68
xor eax, eax
jmp 0x14000dd2b
mov rbp, rbx
cmp word [rax], si
je 0x14000dc8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000dc74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000dc70
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.14000db58
movsxd r14, eax
test eax, eax
jne 0x14000dccb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000dc61
mov rcx, r14
call fcn.14000a3ec
mov rdi, rax
test rax, rax
jne 0x14000dce4
xor ecx, ecx
call fcn.140009774
jmp 0x14000dcc0
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.14000db58
test eax, eax
jne 0x14000dd15
mov rcx, rdi
call fcn.140009774
jmp 0x14000dd1f
xor ecx, ecx
call fcn.140009774
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
Function at 0x14001204c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012062
mov al, 1
jmp 0x1400120c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012073
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400120c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e558
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400120c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400120c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400120c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400120c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013100
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000cc28
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001318a
cmp byte [rbp - 0x21], r15b
je 0x140013185
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400131c0
call fcn.1400099c4
test eax, eax
jne 0x1400131ac
cmp byte [rbp - 0x21], r15b
je 0x1400131a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400131c0
cmp byte [rbp - 0x21], r15b
je 0x1400131bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000c208
test eax, eax
jne 0x140013260
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000cc28
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400131ff
cmp byte [rbp - 0x21], r15b
je 0x140013234
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013234
call fcn.1400099c4
test eax, eax
jne 0x140013220
cmp byte [rbp - 0x21], r15b
je 0x140013219
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013234
cmp byte [rbp - 0x21], r15b
je 0x140013231
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000c208
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013260
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013263
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013271
mov rcx, rdi
call fcn.140009774
cmp byte [rbp + 0x3f], r15b
je 0x140013280
mov rcx, qword [rbp + 0x27]
call fcn.140009774
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400157f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015818
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015818
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003da0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003dd4
cmp word [rcx], 0x5a4d
jne 0x140003dd4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003dd4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003dd4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003ce0
test eax, eax
jne 0x140003df0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003d50
test rax, rax
je 0x140003de5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004599
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400044a0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004440
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400048e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14055f4d8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14055f4d4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004932
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000492a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004a19
inc ebx
add rax, 0x28
jmp 0x14000490a
mov rcx, r12
call fcn.140005111
mov rbp, rax
test rax, rax
jne 0x140004951
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004880
movsxd rbx, ebx
mov rax, qword [0x14055f4d8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400051bf
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14055f4d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400049b3
mov rax, qword [0x14055f4d8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004880
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004a13
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004a13
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14055f4d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004a13
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004880
inc dword [0x14055f4d4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004e40
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14055f540]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14055f520]
test rbx, rbx
je 0x140004e8c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004e86
test eax, eax
jne 0x140004e86
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004e5e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005040
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140005063
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140005063
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140005064
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000509e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005095
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400050a0
inc r8d
add rax, 0x28
jmp 0x14000507c
xor eax, eax
ret

Function at 0x140005111
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14055b5d0]
mov r8, rcx
mov rcx, r9
call fcn.140005040
test eax, eax
je 0x14000513d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005064
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002e0c
Capabilities:
Encode data using xor

Disassembly:
mov dx, word [rsp + 0x52]
sub dx, 0xba11
mov r8w, word [rsp + 0xd6]
mov word [rsp + 0xd8], dx
mov r9, qword [rsp + 0xc0]
xor r8w, 0xa34f
mov eax, dword [rsp + 0x54]
or eax, eax
mov r10, qword [rsp + 0x58]
mov dx, word [r10 + r9*2]
mov dword [rsp + 0xdc], eax
mov r9, qword [rsp + 0x48]
sub rcx, r9
mov qword [rsp + 0xe0], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0xc8], rcx
mov r11w, word [rsp + 0x52]
xor r11w, 0x933e
mov word [rsp + 0xd8], r11w
cmp dx, r8w
je 0x1400030d4

Function at 0x140003470
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
push rdi
sub rsp, 0x80
mov eax, 0x6f46a6c8
mov edx, 0x1be882de
mov r8d, edx
mov r9b, 0xdb
mov r10b, byte [rsp + 0x7f]
mov r11b, r10b
or r11b, r11b
mov byte [rsp + 0x7f], r11b
mov qword [rsp + 0x68], 0xb5ea1e3
mov dword [rsp + 0x5c], 0x6f46a6c8
mov r11b, r10b
add r11b, 0xe9
mov byte [rsp + 0x7f], r11b
sub r9b, r10b
mov rsi, qword [rsp + 0x68]
sub r8, rsi
mov byte [rsp + 0x7f], r9b
mov qword [rsp + 0x50], r8
mov di, word [rsp + 0x62]
or di, di
mov r8, qword [0x1400d9b18]
mov word [rsp + 0x62], di
mov edx, dword [rsp + 0x5c]
mov ebx, edx
add ebx, 0x6ffb992
mov dword [rsp + 0x64], ebx
sub eax, edx
mov dword [rsp + 0x4c], eax
mov word [rsp + 0x62], 0xc01a
cmp r8, 0
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x3c], edx
mov byte [rsp + 0x3b], r10b
mov qword [rsp + 0x30], r8
je 0x140003586
jmp 0x14000355e
mov eax, 0xbf91b247
mov ecx, dword [rsp + 0x5c]
mov byte [rsp + 0x7f], 4
mov rdx, qword [rsp + 0x68]
xor rdx, 0x21298a1b
xor edx, 0x21298a1b
mov eax, 0x6ff8fbf2
mov ecx, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x5c]
xor ecx, 0x3aacafde
mov word [rsp + 0x62], 0x95da
sub eax, edx
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], ecx
je 0x14000355e
jmp 0x140003518