joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009dc80
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x200], rdi
mov qword [rbp + 0x208], rsi
mov qword [rbp + 0x230], rcx
mov qword [rbp + 0x1f8], 0xfffffffffffffffe
lea rdx, [0x1401a7168]
mov eax, 1
lock xadd dword [rdx], eax
inc eax
cmp eax, 1
je 0x14009de9a
lea rdx, [0x1401a716c]
xor eax, eax
lock xadd dword [rdx], eax
mov esi, eax
test esi, esi
jne 0x14009de33
mov ecx, 0x38
mov dword [rbp + 0x218], 0
call fcn.14010fbf8
mov rsi, rax
mov qword [rbp + 0x210], rsi
test rsi, rsi
je 0x14009ddfe
mov rcx, rsi
mov dword [rbp + 0x218], 1
mov qword [rbp], rsi
call fcn.1400c4690
mov edi, eax
call fcn.1400cc560
test edi, edi
jne 0x14009dd9c
mov rax, qword [rbp + 0x230]
mov ecx, 0xa0
mov qword [rsi + 0x28], rax
mov dword [rbp + 0x10], 0
call fcn.14010fbf8
mov rdi, rax
mov qword [rbp + 8], rdi
test rdi, rdi
je 0x14009de2a
mov rcx, rdi
mov r8, 0xffffffffffffffff
mov rdx, qword [rbp + 0x230]
mov dword [rbp + 0x10], 1
call fcn.140010720
mov dword [rbp + 0x10], 0
xor edx, edx
lea rax, vtable.type_info.0
mov qword [rsi + 0x30], rdi
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x20], rdx
mov dword [rbp + 0x218], 0
jmp 0x14009de00
mov qword [rbp + 0x1e8], rax
lea rcx, [rbp]
lea rax, str.mutex
lea rdx, [rbp + 0x1f0]
mov dword [rbp + 0x1e0], edi
mov qword [rbp + 0x1f0], rax
call fcn.140114a10
nop
lea rcx, [rbp]
vmovups xmm0, xmmword [rbp + 0x1e0]
vmovups xmmword [rbp + 0x18], xmm0
lea rax, [0x1401e34d0]
mov qword [rbp], rax
mov qword [rbp + 0x40], setsockopt
mov qword [rbp + 0x38], 0
mov byte [rbp + 0x28], 0
call fcn.1400c2a60
nop
xor esi, esi
mov rax, qword [rbp + 0x230]
mov rdi, qword [rbp + 0x200]
mov qword [rax + 8], rsi
mov rsi, qword [rsi + 0x30]
mov qword [rax + 0x10], rsi
mov rsi, qword [rbp + 0x208]
lea rsp, [rbp + 0x220]
pop rbp
ret
xor edi, edi
xor edx, edx
jmp 0x14009dd79
call fcn.1400cc560
mov qword [rbp + 0x1e8], rax
lea rcx, [rbp]
lea rax, str.winsock
lea rdx, [rbp + 0x1f0]
mov dword [rbp + 0x1e0], esi
mov qword [rbp + 0x1f0], rax
call fcn.140114a10
nop
lea rcx, [rbp]
vmovups xmm0, xmmword [rbp + 0x1e0]
vmovups xmmword [rbp + 0x18], xmm0
lea rax, [0x1401e34d0]
mov qword [rbp], rax
mov qword [rbp + 0x40], setsockopt
mov qword [rbp + 0x38], 0
mov byte [rbp + 0x28], 0
call fcn.1400c2a60
nop
mov ecx, 2
lea rdx, [rbp + 0x48]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rdx, [0x1401a716c]
xchg dword [rdx], eax
jmp 0x14009dcc8

Function at 0x14009e890
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov ecx, dword [0x1401a7164]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14009e8de
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14009e8de
mov rcx, qword [rdx]
test rcx, rcx
je 0x14009e8de
mov qword [rdx], 0
movzx edx, byte [rcx]
cmp edx, 0x58
jb 0x14009e8d9
mov byte [rcx + 0x58], dl
jmp 0x14009e8ef
call fcn.1401100d8
mov ecx, 0x59
call fcn.14010fbf8
mov rcx, rax
mov byte [rcx + 0x58], 0x58
mov rax, rcx
add rsp, 0x28
ret
Function at 0x1400b3e70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov ecx, dword [0x1401a7164]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b3ec4
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400b3ec4
mov rcx, qword [rdx]
test rcx, rcx
je 0x1400b3ec4
mov qword [rdx], 0
movzx edx, byte [rcx]
cmp edx, 0xa0
jb 0x1400b3ebf
mov byte [rcx + 0xa0], dl
jmp 0x1400b3ed8
call fcn.1401100d8
mov ecx, 0xa1
call fcn.14010fbf8
mov rcx, rax
mov byte [rcx + 0xa0], 0xa0
mov rax, rcx
add rsp, 0x28
ret
Function at 0x1400b4e30
Capabilities:
Get thread local storage value

Disassembly:
push r13
sub rsp, 0x20
mov r13, rcx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov ecx, dword [0x1401a7164]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b4e78
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400b4e78
cmp qword [rdx], 0
jne 0x1400b4e78
mov al, byte [r13 + 0xa0]
mov byte [r13], al
mov qword [rdx], r13
add rsp, 0x20
pop r13
ret
mov rcx, r13
call fcn.1401100d8
add rsp, 0x20
pop r13
ret

Function at 0x1400b4f90
Capabilities:
Get thread local storage value

Disassembly:
push r13
sub rsp, 0x20
mov r13, rcx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov ecx, dword [0x1401a7164]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b4fd5
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400b4fd5
cmp qword [rdx], 0
jne 0x1400b4fd5
mov al, byte [r13 + 0x58]
mov byte [r13], al
mov qword [rdx], r13
add rsp, 0x20
pop r13
ret
mov rcx, r13
call fcn.1401100d8
add rsp, 0x20
pop r13
ret
Function at 0x1400b9920
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [0x1401a7164]
mov qword [rsp + 0x30], rax
mov rdx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x28
ret

Function at 0x1400ba080
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r14
sub rsp, 0x28
mov r14, rcx
mov qword [rsp + 0x50], r8
mov r13, rdx
mov qword [rsp + 0x58], r9
mov ecx, dword [0x1401a7164]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ba0af
mov rdx, qword [rax + 8]
jmp 0x1400ba0b1
xor edx, edx
cmp r13, 0xff
ja 0x1400ba0d9
test rdx, rdx
je 0x1400ba0d9
cmp qword [rdx], 0
jne 0x1400ba0d9
mov al, byte [r13 + r14]
mov byte [r14], al
mov qword [rdx], r14
add rsp, 0x28
pop r14
pop r13
ret
mov rcx, r14
call fcn.1401100d8
add rsp, 0x28
pop r14
pop r13
ret

Function at 0x1400ba0f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov ecx, dword [0x1401a7164]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ba149
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400ba149
mov rax, qword [rdx]
test rax, rax
je 0x1400ba149
mov qword [rdx], 0
movzx edx, byte [rax]
cmp rdx, rsi
jb 0x1400ba141
mov byte [rax + rsi], dl
add rsp, 0x20
pop rsi
ret
mov rcx, rax
call fcn.1401100d8
lea rcx, [rsi + 1]
call fcn.14010fbf8
xor edx, edx
cmp rsi, 0xff
movzx ecx, sil
cmovbe edx, ecx
mov byte [rax + rsi], dl
add rsp, 0x20
pop rsi
ret

Function at 0x1400ba7c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
add rsp, 0x28
jmp fcn.140117000
Function at 0x1400bad80
Capabilities:
Set socket configuration

Disassembly:
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x40
mov r13, rcx
mov r15, r9
mov r14, rdx
cmp r13, 0xffffffffffffffff
jne 0x1400badc7
mov dword [rsp + 0x20], 0
call fcn.1400cc560
mov qword [rsp + 0x28], rax
vmovups xmm0, xmmword [rsp + 0x20]
vmovups xmmword [r15], xmm0
add rsp, 0x40
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
mov r12d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
call fcn.1400cc560
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], rax
vmovups xmm0, xmmword [rsp + 0x20]
vmovups xmmword [r15], xmm0
test r12d, r12d
je 0x1400bad9c
call fcn.1400cc560
cmp rax, qword [r15 + 8]
je 0x1400bae82
call fcn.1400cc560
cmp rax, qword [r15 + 8]
jne 0x1400badb9
cmp dword [r15], 0x4d5
jne 0x1400badb9
mov rcx, r13
mov edx, 0x8004667e
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
and byte [r14], 0xfc
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
mov r12d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
call fcn.1400cc560
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], rax
vmovups xmm0, xmmword [rsp + 0x20]
vmovups xmmword [r15], xmm0
test r12d, r12d
je 0x1400bad9c
jmp 0x1400badb9
cmp dword [r15], 0x2733
je 0x1400bae20
jmp 0x1400bae0c
Function at 0x1400bae90
Capabilities:
Set socket configuration

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rdi, rcx
mov r13, r9
mov r12, rdx
cmp rdi, 0xffffffffffffffff
jne 0x1400baed8
mov dword [rsp + 0x30], 0
call fcn.1400cc560
mov qword [rsp + 0x38], rax
vmovups xmm0, xmmword [rsp + 0x30]
vmovups xmmword [r13], xmm0
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test byte [r12], 8
jne 0x1400bafb3
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov r15d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
call fcn.1400cc560
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x38], rax
vmovups xmm0, xmmword [rsp + 0x30]
vmovups xmmword [r13], xmm0
test r15d, r15d
je 0x1400baeac
call fcn.1400cc560
cmp rax, qword [r13 + 8]
je 0x1400bafa4
call fcn.1400cc560
cmp rax, qword [r13 + 8]
jne 0x1400baeca
cmp dword [r13], 0x4d5
jne 0x1400baeca
mov rcx, rdi
mov edx, 0x8004667e
mov dword [rsp + 0x44], 0
lea r8, [rsp + 0x44]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
and byte [r12], 0xfc
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov r12d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call fcn.1400cc560
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x38], rax
vmovups xmm0, xmmword [rsp + 0x30]
vmovups xmmword [r13], xmm0
test r12d, r12d
je 0x1400baeac
jmp 0x1400baeca
cmp dword [r13], 0x2733
je 0x1400baf40
jmp 0x1400baf2b
xor eax, eax
mov word [rsp + 0x40], ax
mov word [rsp + 0x42], ax
call fcn.1400cc560
xor ecx, ecx
or byte [r12], 8
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, rsp
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x80
lea r9, [rsp + 0x40]
mov dword [rax + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r15d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
call fcn.1400cc560
test r15d, r15d
jne 0x1400baee3
call fcn.1400cc560
jmp 0x1400baee3
Function at 0x1400cedb0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call fcn.140004870
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401a1a4c], eax
add rsp, 0x28
ret
Function at 0x1400f4182
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov r10, rdx
mov rdx, rcx
xor ecx, ecx
cmp rdx, r10
je 0x1400f4227
sub r10, rdx
mov eax, 1
mov r9, r10
xor r8d, r8d
shr r9, 0x3f
add r9, r10
sar r9, 1
test r9, r9
jbe 0x1400f41f4
mov qword [rsp + 0x20], rbp
movabs rax, 0x9e3779b9
nop dword [rax + rax]
nop dword [rax]
mov r11, rcx
mov rbp, rcx
shl r11, 6
shr rbp, 2
add r11, rbp
movsx rbp, byte [rdx + r8*2]
add r11, rbp
add r11, rax
xor rcx, r11
mov rbp, rcx
mov r11, rcx
shl rbp, 6
shr r11, 2
add rbp, r11
movsx r11, byte [rdx + r8*2 + 1]
add rbp, r11
add rbp, rax
inc r8
xor rcx, rbp
cmp r8, r9
jb 0x1400f41a0
mov rbp, qword [rsp + 0x20]
lea rax, [r8*2 + 1]
lea r8, [rax - 1]
cmp r10, r8
jbe 0x1400f4227
mov r9, rcx
mov r8, rcx
shl r9, 6
shr r8, 2
add r9, r8
movsx rax, byte [rdx + rax - 1]
add r9, rax
movabs rdx, 0x9e3779b9
add r9, rdx
xor rcx, r9
movabs r8, 0x200009c482fb3f8b
mov rax, rcx
mul r8
shr rdx, 0x1c
imul r9, rdx, 0xffffffff80002712
lea rax, [rcx + r9 + 0x2710]
add rsp, 0x28
ret
Function at 0x1401148d0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1401148e3
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14011aad4
lea rdx, [0x14019c4e0]
lea rcx, [rsp + 0x20]
call fcn.140114c7c
int3

Function at 0x140119668
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1401abdd4]
xor edx, edx
jmp fcn.1401148d0

Function at 0x14011a140
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1401abdd4]
jmp fcn.1401148d0

Function at 0x14011a298
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 0x40]
jmp 0x140130e30
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r13, r9
mov r12, r8
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov qword [rax + 8], rcx
call fcn.140110b20
nop
mov edi, dword [rbx + 4]
mov esi, dword [rbx + 4]
dec esi
mov eax, dword [rbx]
cmp esi, eax
jl 0x140130e0a
lea ebp, [rsi + 1]
movsxd r15, esi
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
mov r14, qword [rax + rcx*8]
test r14, r14
je 0x140130e00
mov rdx, r12
mov rcx, r14
call qword [rsp + 0x78]
test al, al
je 0x140130e00
mov rdx, r12
mov rcx, r14
call r13
test al, al
je 0x140130e00
cmp ebp, edi
jne 0x140130df0
dec edi
jmp 0x140130e00
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
and qword [rax + rcx*8], 0
dec esi
dec ebp
mov eax, dword [rbx]
cmp esi, eax
jge 0x140130db6
xchg dword [rbx + 4], edi
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.140110bb0
add rcx, 0xb0
jmp 0x140130d6c

Function at 0x14011a84c
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
test dword [reloc.WS2_32.dll_accept], 0x80000000
je 0x14011a86f
mov ecx, dword [0x1401abdd4]
call fcn.1401148c8
mov rcx, rax
test rax, rax
jne 0x14011a877
call fcn.140120d70
mov rcx, rax
mov rax, qword [rcx]
add rsp, 0x28
jmp qword [rax + 0x38]

Function at 0x14012a158
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140129fc0

Function at 0x140130c34
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x140130cf0]
add rcx, 0x40
jmp fcn.1401226a8

Function at 0x140130cc8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x140130d00]
add rcx, 0x40
jmp fcn.1401226a8
Function at 0x6d857170
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8785e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8572f8
mov rax, qword [0x6d8785e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8571bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d857245
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8571a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d85732d
mov rax, qword [0x6d8785e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8785e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d857310
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d85723e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8572a0
add dword [0x6d8785e4], 1
cmp edi, 8
jae 0x6d857273
test dil, 4
jne 0x6d8572e4
test edi, edi
je 0x6d857268
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8572ff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d857268
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d85728c
jmp 0x6d857268
add rsi, qword [0x6d8785e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d85723e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d857268
xor esi, esi
jmp 0x6d8571c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d857268
mov rax, qword [0x6d8785e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d857a80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8788c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8788a0]
test rbx, rbx
je 0x6d857ad4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d857acb
test rsi, rsi
je 0x6d857acb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d857ab0
lea rcx, [0x6d8788c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d857d10
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d857d20
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d857d30
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d857d71
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d857d68
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d857d73
add rax, 0x28
cmp rax, r9
jne 0x6d857d54
xor eax, eax
ret

Function at 0x6d857e10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8751f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d857e7d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d857e7d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d857e7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d857e74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d857e7f
add rax, 0x28
cmp rax, r9
jne 0x6d857e60
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d857f80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8751f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d857fa0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d857f98
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d857ffd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d857ff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d858004
add rax, 0x28
cmp rax, r9
jne 0x6d857fe0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d858020
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8751f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d85808e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d85808e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d85808e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d85808e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d858085
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d858095
add rcx, 0x28
cmp rcx, rax
jne 0x6d858070
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8580a8
jmp 0x6d85808e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8580b6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d85808e
test r9d, r9d
jg 0x6d8580a0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d858420
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
nop
nop
nop
nop
nop
nop
Function at 0x10009b7b7
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x150
mov rax, qword [0x1000bd157]
xor rax, rsp
mov qword [rsp + 0x140], rax
movsxd rbp, ecx
lea rcx, [0x1000b479f]
mov r12, rdx
mov word [rsp + 0x20], 0x3b
call fcn.1000a3d9f
mov esi, 0x28
test rax, rax
je 0x10009b83c
mov rcx, rax
call fcn.1000a016b
mov rcx, rax
mov rdi, rax
call fcn.1000a3fd7
lea rcx, [rsi + rax]
call fcn.10009dffb
lea rdx, [0x1000b4787]
mov r8, rdi
mov rcx, rax
mov rbx, rax
call fcn.1000a44ab
xor edx, edx
mov rcx, rbx
call fcn.10009b2b3
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.10009e1c7
test al, al
jne 0x10009b862
lea rcx, [0x1000b4757]
call fcn.10009e36b
xor al, al
jmp 0x10009b92a
lea rcx, [rsp + 0x30]
call fcn.1000a3fd7
lea rcx, [rsi + rax]
call fcn.10009dffb
lea r8, [rsp + 0x30]
lea rdx, [0x1000b473f]
mov rcx, rax
mov rbx, rax
call fcn.1000a44ab
xor edx, edx
mov rcx, rbx
call fcn.10009b2b3
xor edi, edi
test rbp, rbp
jle 0x10009b8bf
mov rcx, qword [r12 + rdi*8]
call fcn.1000a3fd7
lea rcx, [rsp + 0x30]
lea ebx, [rsi + rax]
call fcn.1000a3fd7
inc rdi
lea esi, [rbx + rax + 1]
cmp rdi, rbp
jl 0x10009b89d
lea eax, [rsi + 1]
movsxd rcx, eax
call fcn.10009dffb
lea rdx, [0x1000b4727]
mov rcx, rax
mov rbx, rax
call fcn.1000a4787
xor edi, edi
test rbp, rbp
jle 0x10009b911
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1000a46e7
mov rdx, qword [r12 + rdi*8]
mov rcx, rbx
call fcn.1000a46e7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1000a46e7
inc rdi
cmp rdi, rbp
jl 0x10009b8e3
mov rcx, rbx
call fcn.1000a3fd7
xor edx, edx
mov rcx, rbx
mov byte [rax + rbx - 1], 0
call fcn.10009b2b3
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1000a4857
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x10009bec3
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rcx, [0x1000b495f]
call fcn.1000a3d9f
lea rcx, [0x1000b4947]
mov rsi, rax
call fcn.1000a3d9f
mov rbx, rax
test rsi, rsi
je 0x10009bf28
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rsi
call fcn.1000a0bcb
mov rdi, rax
test rax, rax
je 0x10009bf3a
call fcn.1000a027b
mov edx, dword [rsp + 0x30]
mov rcx, rdi
call fcn.1000a01f3
mov rcx, rdi
call fcn.10009e07f
jmp 0x10009bf3a
test rax, rax
je 0x10009bf81
call fcn.1000a027b
mov rcx, rbx
call fcn.1000a023b
mov rdx, rsi
mov rcx, rbx
call fcn.1000a02ab
lea rcx, [0x1000b492f]
call fcn.10009ed2f
lea rcx, [0x1000b4947]
call fcn.10009ed2f
lea rcx, [0x1000b495f]
call fcn.10009ed2f
mov rcx, qword [str.R6016_r_n__not_enough_space_for_thread_data_r_n]
call fcn.10009e07f
mov rcx, qword [0x1000be80f]
call fcn.10009e07f
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret