joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e86b0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x200], 0
mov rbx, rcx
je 0x1400e8700
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 0x1400e8700
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400ebb10
xor ecx, ecx
mov qword [0x140217898], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x140217888]
mov qword [0x1402178a0], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x140217890]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x394], ecx
mov rcx, qword [rbx + 0x358]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x398], 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]
mov eax, dword [rbx + 0x84]
cmp eax, 0x34001
je 0x1400e8789
cmp eax, 0x34004
je 0x1400e8789
mov rcx, qword [0x1402178c0]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400e87a2
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]

Function at 0x1400e87c0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x358]
mov edx, 1
lea rcx, [rsp + 0x20]
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 0x1400e8802
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400ebb10
add rsp, 0x38
ret

Function at 0x1400e88b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, reloc.WS2_32.dll_recvfrom
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, reloc.WS2_32.dll_select
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns 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, reloc.WS2_32.dll_sendto
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 0x1400eacb0
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 0x1400eace0
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1400e4ed0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1400ebec0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1402171b2]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x140216f38]
xor r12d, r12d
lea r15, [0x140217252]
mov ebx, reloc.WLDAP32.dll_Ordinal_32
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x1400ec078
cmp ebx, 0x140
jb 0x1400ebfdf
cmp ebx, 0x14e
ja 0x1400ebfdf
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], WSAGetLastError
mov dword [rsp + 0x64], WSAGetLastError
mov dword [rsp + 0x68], WSAGetLastError
mov dword [rsp + 0x6c], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0x74], WSAGetLastError
mov dword [rsp + 0x78], WSAGetLastError
mov edi, dword [r14]
jmp 0x1400ebfee
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1400ec041
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1400ec078
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x1400ebf41
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1400f3cc0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400f0290
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140216a30], 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 0x1400f02e5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f3cc0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140216a30], rax
mov rcx, rax
test rax, rax
jne 0x1400f0314
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1400f02f0
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1400f0343
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400e4ed0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f3cc0
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216a30]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140216a38], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216a30]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140216a40], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216a30]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140216a48], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216a30]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140216a50], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216a30]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140216a58], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216a30]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140216a60], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140216a38], 0
mov qword [0x140216a68], rax
je 0x1400f042d
cmp qword [0x140216a48], 0
je 0x1400f042d
cmp qword [0x140216a50], 0
je 0x1400f042d
cmp qword [0x140216a58], 0
je 0x1400f042d
cmp qword [0x140216a60], 0
je 0x1400f042d
test rax, rax
jne 0x1400f02ce
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400e4ed0
mov rcx, qword [0x140216a30]
test rcx, rcx
je 0x1400f045a
call fcn.1400f0ce0
mov qword [0x140216a30], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f3cc0
add rsp, 0x48
ret

Function at 0x1400f31a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400f31da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400f31df
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400f3228
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400f3228
dec r8
sub rdx, 1
jne 0x1400f320e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400f3974
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400f32b8
mov ebx, eax
test eax, eax
jne 0x1400f39a4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400f3a07
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f39fe
test al, 0x10
je 0x1400f39fe
bt eax, 0xa
jae 0x1400f39f7
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400f3a18
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400f39f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400f39f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400f39fe
and dword [rsp + 0x3c], 0
jmp 0x1400f3a03
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f4b48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400f4b92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400f4b92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400f4b92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f4b92
cmp dword [rcx + 0x84], 0xe
jbe 0x1400f4b92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400f4b94
xor al, al
add rsp, 0x28
ret
Function at 0x140013b10
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x14003bab8]
test rcx, rcx
je 0x140013b7a
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140013b6d
mov rcx, qword [0x14003bab8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14003bab8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003e2d0], 1
jne 0x140013c24
mov r14, qword [0x14002bbe0]
mov qword [rsp + 0x50], r14
movups xmm8, xmmword [0x14002bbd0]
movaps xmmword [rsp + 0x40], xmm8
movups xmm7, xmmword [0x14002bbc0]
movaps xmmword [rsp + 0x30], xmm7
movups xmm6, xmmword [0x14002bbb0]
movaps xmmword [rsp + 0x20], xmm6
lea r15, [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea r12, [0x14003bad0]
mov rbx, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax + rax]
mov rcx, r12
call rbx
cmp eax, 0xffffffff
je 0x140013c24
and eax, 0x10
je 0x140013c24
mov ecx, 0x64
call rsi
mov qword [rsp + 0x50], r14
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm6
mov rcx, r15
call rdi
dec ebp
jne 0x140013bf0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400153b0
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400151f0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.140015350
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003bac0]
test eax, eax
je 0x140015225
test eax, eax
jg 0x14001526d
jmp 0x1400152a2
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140013190
test al, al
je 0x14001532a
lea rcx, [rsp + 0x20]
call fcn.14001bea0
movsxd rcx, dword [0x14003bac0]
lea rdx, [0x140048b30]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003bac0], eax
test eax, eax
jle 0x1400152a2
lea rdi, [0x140048b30]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001cae0
test eax, eax
je 0x14001530b
inc rbx
movsxd rax, dword [0x14003bac0]
add rdi, 8
cmp rbx, rax
jl 0x140015280
mov rcx, rsi
call fcn.14001cb18
cmp rax, 2
jne 0x1400152b9
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x14001530d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1400152d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x14001530d
cmp dword [0x14003bac0], 0x3ff
jg 0x14001530d
mov rcx, rsi
call fcn.14001bea0
movsxd rcx, dword [0x14003bac0]
lea rdx, [0x140048b30]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003bac0], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.1400153b0
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.140014350
int3

Function at 0x140015b30
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001adb4
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001ae23
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ae23
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ae23
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ae23
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ae23
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ae23
cmp dword [rcx + 0xf8], 0
je 0x14001ae23
mov ecx, ebx
call fcn.14001ace0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001af48
nop
cmp dword [rbp + 0x20], 0
je 0x14001ae71
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001ad80
int3

Function at 0x14001cfa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001cfc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001cfc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400228a8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002292f
mov rsi, rbx
cmp word [rax], bp
je 0x1400228ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400228d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400228d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001fd48
mov rdi, rax
test rax, rax
je 0x14002291c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016380
mov rbp, rdi
xor ecx, ecx
call fcn.14001ee08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140173f70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140173f7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140173f8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140173f75
lea eax, [rcx + 1]
jmp 0x140173f9b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140173fae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140173f94
sub eax, 3
jb 0x140173fce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14017401d
sar eax, 1
movsxd rbp, eax
jb 0x140174004
jmp 0x140173fdc
add ebx, ebx
jne 0x140173fda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140174004
inc ecx
add ebx, ebx
jne 0x140173fea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140174004
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140173ffd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140173fec
add ecx, 2
jmp 0x140174009
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140173f32
jmp 0x140173f7d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe4800
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14017406d
cmp rsi, rcx
jae 0x140174075
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140174054
cmp al, 0x8f
ja 0x140174054
cmp byte [rsi - 2], 0xf
je 0x14017405a
sub al, 0xe8
cmp al, 1
ja 0x14017403e
cmp rsi, rcx
jae 0x140174075
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140174044
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140174075
lodsb al, byte [rsi]
jmp 0x140174054
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x16e000]
mov eax, dword [rdi]
or eax, eax
je 0x1401740de
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1741dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140174082
jns 0x1401740b7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401740c1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401740d8
mov qword [rbx], rax
add rbx, 8
jmp 0x1401740a2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140174118
cmp al, 0xef
ja 0x14017410a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401740ea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1401740f9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14017416c
sub rsp, 0xffffffffffffff80
jmp 0x1400e279c
Function at 0x14001745b
Capabilities:
Create thread

Disassembly:
jmp 0x1400254a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x14005c040]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x140066109]
call fcn.1400184d7
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140017645
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140017a9b
nop
lea rax, [0x140017dfc]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140017e56
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14002557a
lea rcx, [rbp + 8]
call fcn.1400178fc
jmp 0x140025593
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400174d3
nop
lea rcx, [rbp + 8]
call fcn.140017889
lea rcx, [rbp - 0x30]
lea rdx, [0x1400510c0]
call fcn.14001813a
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140017a28
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140017bf9
Capabilities:
Terminate process

Disassembly:
jmp 0x14003f430
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140017dc0
Capabilities:
Get geographical location

Disassembly:
jmp 0x140041a90
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140041acd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400184be
add rsp, 0x58
ret
Function at 0x140017ea6
Capabilities:
Parse pe header

Disassembly:
jmp 0x140040780
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400407a0
xor al, al
jmp 0x140040821
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400407b3
xor al, al
jmp 0x140040821
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400407dd
xor al, al
jmp 0x140040821
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400407f1
xor al, al
jmp 0x140040821
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140040803
xor al, al
jmp 0x140040821
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004081f
xor al, al
jmp 0x140040821
mov al, 1
add rsp, 0x38
ret
Function at 0x180015070
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
jmp 0x1800150b2
mov rax, qword [rsp]
add rax, 0x28
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
cmp qword [rsp], rax
jae 0x180015120
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x20], rax
jb 0x18001511e
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x20], rax
jae 0x18001511e
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x20]
sub rdx, rcx
mov rcx, rdx
add rax, rcx
jmp 0x180015122
jmp 0x1800150a6
xor eax, eax
add rsp, 0x18
ret