joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401acdb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x1402d4040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
mov dword [rbp - 0x69], ebx
lea rdi, [rdx + 0x40]
cmp qword [rdx + 0x50], rbx
jne 0x1401acdf9
add rdx, 0x20
mov rcx, rdi
call fcn.140154f60
cmp byte [rsi + 0xb8], bl
je 0x1401acf66
mov r12, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x1401ace13
mov rdi, qword [rdi]
call fcn.140244468
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], r12
lea r8, [rbp - 0x19]
mov edx, eax
lea rcx, [rbp - 0x61]
call fcn.140113950
mov dword [rbp - 0x69], 3
mov qword [rbp - 0x19], rbx
lea rax, str.___r_
mov qword [rbp - 0x11], rax
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.1401162e0
mov dword [rbp - 0x69], 7
cmp dword [rbp - 0x19], 0
jne 0x1401acf86
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x41]
call fcn.140114050
nop
lea rcx, [rbp - 0x41]
call fcn.14000d450
nop
lea rcx, [rbp - 0x61]
call fcn.14000d450
lea rcx, [rbp - 9]
mov r12, qword [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rcx, r12
movabs r9, 0xcbf29ce484222325
mov rdx, qword [rbp + 7]
test rdx, rdx
je 0x1401aced3
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rbx]
xor r9, rax
imul r9, r8
inc rbx
cmp rbx, rdx
jb 0x1401acec0
lea r8, [rbp - 9]
lea rdx, [rbp - 0x19]
lea rcx, [r15 + 8]
call fcn.1400e6770
mov r9, qword [rax + 8]
test r9, r9
jne 0x1401acef1
mov r9, qword [r15 + 0x10]
cmp r9, qword [r15 + 0x10]
jne 0x1401acf19
lea rcx, [r15 + 8]
lea r8, [rbp - 9]
lea rdx, [rbp - 0x19]
call fcn.1401c7b30
mov rcx, qword [rax]
add rcx, 0x30
mov rdx, rsi
call fcn.140154f60
jmp 0x1401acf5d
cmp qword [r14 + 0x18], 0xf
jbe 0x1401acf23
mov r14, qword [r14]
add r9, 0x30
cmp qword [r9 + 0x18], 0xf
jbe 0x1401acf31
mov r9, qword [r9]
lea r8, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova r8, r12
cmp qword [rsi + 0x18], 0xf
jbe 0x1401acf48
mov rsi, qword [rsi]
mov qword [rsp + 0x20], r14
mov rdx, rsi
lea rcx, str.Shader___s__wants_to_write_out___s__which_is_also_written_out_by_shader___s__so_will_be_stomped._nIn__s_n
call fcn.1400db2a0
nop
lea rcx, [rbp - 9]
call fcn.1400050e0
mov al, 1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140244f00
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x19]
lea rcx, str.weakly_canonical
call fcn.140115d70
int3
Function at 0x1401f58e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
lea rax, [r8 - 1]
mov r12, r9
mov r13, rax
mov qword [rsp + 0x20], rax
sar r13, 1
mov r15, r8
mov rbp, rdx
mov rsi, rcx
mov r14, rdx
mov rdi, rdx
cmp rdx, r13
jge 0x1401f5964
nop word [rax + rax]
lea rbx, [rdi + rdi]
lea rcx, [rbx + 2]
shl rcx, 5
add rcx, rsi
lea rdx, [rcx - 0x20]
call fcn.1400065b0
movzx edi, al
xor rdi, 1
shl rbp, 5
inc rdi
add rdi, rbx
mov rdx, rdi
shl rdx, 5
lea rcx, [rsi + rbp]
add rdx, rsi
call fcn.1400079a0
mov rbp, rdi
cmp rdi, r13
jl 0x1401f5920
mov rbx, rdi
cmp rdi, r13
jne 0x1401f598f
test r15b, 1
jne 0x1401f598f
shl rdi, 5
lea rdx, [rsi - 0x20]
shl r15, 5
add rdx, r15
lea rcx, [rsi + rdi]
call fcn.1400079a0
mov rbx, qword [rsp + 0x20]
cmp r14, rbx
jge 0x1401f59d8
nop dword [rax]
nop dword [rax + rax]
lea rdi, [rbx - 1]
mov rdx, r12
sar rdi, 1
mov rbp, rdi
shl rbp, 5
add rbp, rsi
mov rcx, rbp
call fcn.1400065b0
test al, al
je 0x1401f59d8
shl rbx, 5
mov rdx, rbp
lea rcx, [rsi + rbx]
call fcn.1400079a0
mov rbx, rdi
cmp r14, rdi
jl 0x1401f59a0
shl rbx, 5
mov rdx, r12
lea rcx, [rsi + rbx]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.1400079a0
Function at 0x140222c00
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x140222c35
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x20], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.1400dc040
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x140222d76
mov qword [rsp + 0x50], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rbx
xor r9, rdx
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x140222cf0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140222d65
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140222d2d
mov r10, qword [rdx]
cmp r10, rax
je 0x140222d27
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140222d65
cmp r9, rdx
je 0x140222d41
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140222d87
cmp r9, rdx
jne 0x140222d32
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
jne 0x140222ca0
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140222d65
Function at 0x14022cfd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x14022d050
cmp qword [rcx + 0x18], 0xf
mov r8, rcx
jbe 0x14022cff6
mov r8, qword [rcx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x14022d025
movabs r10, 0x100000001b3
movzx eax, byte [r8 + rcx]
inc rcx
xor r9, rax
imul r9, r10
cmp rcx, rdx
jb 0x14022d011
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400e6770
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14022d05d
cmp rdx, qword [rdi + 8]
je 0x14022d05d
add rdx, 0x30
mov rcx, rbx
call fcn.140154f60
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret

Function at 0x140236190
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
cmp qword [rdx + 0x18], 0xf
mov r10, rdx
mov rbx, qword [rdx + 0x10]
mov r11, rdx
jbe 0x1402361ae
mov r11, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
mov r9, rcx
mov edx, r8d
movabs rdi, 0x100000001b3
test rbx, rbx
je 0x1402361e4
movzx eax, byte [r11 + rdx]
inc rdx
xor r9, rax
imul r9, rdi
cmp rdx, rbx
jb 0x1402361d0
cmp qword [r10 + 0x38], 0xf
lea rdx, [r10 + 0x20]
mov r10, qword [r10 + 0x30]
jbe 0x1402361f6
mov rdx, qword [rdx]
test r10, r10
je 0x140236214
nop dword [rax + rax]
movzx eax, byte [rdx + r8]
inc r8
xor rcx, rax
imul rcx, rdi
cmp r8, r10
jb 0x140236200
mov rbx, qword [rsp + 8]
lea rax, [r9 + 0x20f]
mov rdi, qword [rsp + 0x10]
imul rax, rax, 0x1f
add rax, rcx
ret

Function at 0x140244bd4
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 0x140244c0e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140244c13
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 0x140244c5c
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 0x140244c5c
dec r8
sub rdx, 1
jne 0x140244c42
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140245c60
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a990]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a9a0]
mov dword [rax], 1
mov rax, qword [0x14000a9b0]
mov dword [rax], 1
mov rax, qword [0x14000a920]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a980]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000aa60]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000aa40]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000a8d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400014ee
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, [sym.Shutdown]
mov rcx, rax
call sym.atexit
mov dword [0x14000d840], 1
mov dword [0x14000d844], 0
mov qword [0x14000d848], 0xffffffffffffffff
lea rax, [0x14000d040]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [0x14000d1d8], eax
mov eax, dword [0x14000d1d8]
test eax, eax
je 0x14000156d
mov eax, dword [0x14000d1d8]
mov edx, eax
lea rax, str.WSAStartup_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140001736
mov r8d, 0x30
mov edx, 0
lea rax, [0x14000d200]
mov rcx, rax
call sym.memset
mov dword [0x14000d204], 2
mov dword [0x14000d208], 1
mov dword [0x14000d20c], 6
mov dword [0x14000d200], 1
lea r9, [0x14000d1e0]
lea r8, [0x14000d200]
lea rax, str.27015
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.WS2_32.dll_getaddrinfo]
call rax
mov dword [0x14000d1d8], eax
mov eax, dword [0x14000d1d8]
test eax, eax
je 0x14000160f
mov eax, dword [0x14000d1d8]
mov edx, eax
lea rax, str.getaddrinfo_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140001736
mov rax, qword [0x14000d1e0]
mov ecx, dword [rax + 0xc]
mov rax, qword [0x14000d1e0]
mov edx, dword [rax + 8]
mov rax, qword [0x14000d1e0]
mov eax, dword [rax + 4]
mov r8d, ecx
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [section..data], rax
mov rax, qword [section..data]
cmp rax, 0xffffffffffffffff
jne 0x14000168f
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.socket_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov rax, qword [0x14000d1e0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140001736
mov rax, qword [0x14000d1e0]
mov rax, qword [rax + 0x10]
mov ecx, eax
mov rax, qword [0x14000d1e0]
mov rdx, qword [rax + 0x20]
mov rax, qword [section..data]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_bind]
call rax
mov dword [0x14000d1d8], eax
mov eax, dword [0x14000d1d8]
cmp eax, 0xffffffff
jne 0x14000171e
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.bind_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov rax, qword [0x14000d1e0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
mov rax, qword [section..data]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140001736
mov rax, qword [0x14000d1e0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400017ec
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009008]
cdqe
mov r8, rax
mov edx, 0
lea rax, [0x14000d240]
mov rcx, rax
call sym.memset
mov edx, dword [0x140009008]
mov rax, qword [0x14000d848]
mov r9d, 0
mov r8d, edx
lea rdx, [0x14000d240]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [0x14000d1d8], eax
mov eax, dword [0x14000d1d8]
test eax, eax
jle 0x140001911
lea rax, [0x14000d240]
mov qword [rsp + 0x20], rax
lea r9, str.Command_executed:
lea r8, str._s__s
mov edx, 0x200
lea rax, [0x14000d440]
mov rcx, rax
call sym.snprintf
lea rax, [0x14000d440]
mov rdx, rax
lea rax, [0x14000a0d9]
mov rcx, rax
call sym.printf
lea rax, [0x14000d440]
mov rcx, rax
call sym.strlen
mov edx, eax
mov rax, qword [0x14000d848]
mov r9d, 0
mov r8d, edx
lea rdx, [0x14000d440]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [0x14000d230], eax
mov eax, dword [0x14000d230]
cmp eax, 0xffffffff
jne 0x1400018fd
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.send_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140001964
lea rax, [0x14000d240]
mov rcx, rax
call sym.processCmd
jmp 0x1400017f4
mov eax, dword [0x14000d1d8]
test eax, eax
jne 0x140001945
lea rax, str.Connection_closing..._n
mov rcx, rax
call sym.printf
nop
mov rax, qword [0x14000d848]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov eax, 0
jmp 0x140001964
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.recv_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x140001d70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d8c4]
test esi, esi
mov rbx, rcx
jle 0x140001f10
mov rax, qword [0x14000d8c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001e2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001eb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001e10
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001f32
mov rax, qword [0x14000d8c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d8c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001eae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ec0
add dword [0x14000d8c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000d8c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001eae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001e38
mov rax, qword [0x14000d8c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400024a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d920]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d900]
test rbx, rbx
je 0x1400024fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400024f3
test rsi, rsi
je 0x1400024f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002710
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002720
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x140002730
Capabilities:
Parse pe header

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

Function at 0x140002760
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400027ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400027a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400027af
add rax, 0x28
cmp rax, r9
jne 0x140002790
xor eax, eax
ret

Function at 0x1400027b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002840
mov rdx, qword [0x14000a920]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000282e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000282e
cmp word [rax + 0x18], 0x20b
jne 0x14000282e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002840
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002819
add rbx, 0x28
cmp rbx, rdi
je 0x140002840
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002810
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002850
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002870
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002878
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002870
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400028cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400028c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002870
add rax, 0x28
cmp rax, r9
jne 0x1400028b0
xor eax, eax
ret

Function at 0x1400028d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a920]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400028ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400028f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400028ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002910
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a920]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002930
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002938
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002930
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002980
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002977
test rcx, rcx
je 0x140002930
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002968
xor eax, eax
ret

Function at 0x140002990
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a920]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400029af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400029b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400029d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029f0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400029f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002a44
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002a50
add rdx, 0x28
cmp r9, rdx
jne 0x140002a30
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002a60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a920]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002a82
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002a90
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a82
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002a82
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002a82
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002ae5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002af8
add rdx, 0x28
cmp rdx, r10
jne 0x140002ad0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002b07
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002b17
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002aee
test ecx, ecx
jg 0x140002b00
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret