joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001114f
Capabilities:
Write file on windows

Disassembly:
jmp 0x140023a50
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14004d100]
call fcn.140011ca3
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140023aa7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140023bb3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140023b4c
cmp qword [rbp + 0x28], 0
jle 0x140023b4c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140023aec
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011bea
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140023ba2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140023ba2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011294
Capabilities:
Create thread
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x140027090
mov word [rsp + 8], cx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, word [rsp + 0x1a8]
mov rax, qword [0x140044018]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x14004d1e6]
call fcn.140011ca3
cmp qword [0x1400447b0], 0
ja 0x1400270ed
mov eax, 0xffffdcd8
jmp 0x140027228
mov eax, dword [0x1400447c8]
inc eax
mov dword [0x1400447c8], eax
mov dword [0x1400447cc], 0x27388020
movsx eax, word [rbp + 0x170]
test eax, eax
je 0x140027132
movzx eax, word [rbp + 0x170]
mov word [0x140045054], ax
movsx eax, word [rbp + 0x170]
or eax, 0xaa550000
mov dword [0x1400447c4], eax
jmp 0x14002713c
mov dword [0x1400447c4], 0
mov dword [rbp + 0x24], recvfrom
mov dword [rsp + 0x28], recvfrom
lea rax, [0x140044fe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rbp + 0x24]
lea rdx, [0x1400447c0]
mov rcx, qword [0x1400447b0]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rbp + 0x74], recvfrom
lea rax, [rbp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x400
lea rdx, [0x140044bd0]
mov rcx, qword [0x1400447b0]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 4], eax
cmp qword [0x1400447b8], 0
jbe 0x1400271cd
mov rcx, qword [0x1400447b8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [0x1400447b8], 0
movsx eax, word [rbp + 0x170]
test eax, eax
je 0x1400271fd
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140011d2a]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbp + 4], 0
jge 0x140027215
mov eax, 0xffffdcdb
jmp 0x140027228
lea rdx, [0x1400447c0]
lea rcx, [0x140044bd0]
call fcn.140011064
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140011a5f
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.1400115fa
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x14001131b
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x140024ed0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x8a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3f8]
mov rax, qword [0x140044018]
xor rax, rbp
mov qword [rbp + 0x398], rax
lea rcx, [0x14004d1e6]
call fcn.140011ca3
mov eax, 0x101
mov word [rbp + 4], ax
lea rdx, [rbp + 0x30]
movzx ecx, word [rbp + 4]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1e4], eax
cmp dword [rbp + 0x1e4], 0
je 0x140024f53
mov eax, 0xffffdcd8
jmp 0x140025104
movzx eax, word [rbp + 0x30]
and rax, 0xff
movzx eax, al
cmp eax, 1
jne 0x140024f7b
movzx eax, word [rbp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 1
je 0x140024f96
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [0x1400447b0], 0xffffffffffffffff
mov eax, 0xffffdcd9
jmp 0x140025104
xor ecx, ecx
call fcn.1400291f0
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x1400447b0], rax
mov rcx, qword [rbp + 0x3c0]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x140044fe4], eax
mov eax, 2
mov word [0x140044fe0], ax
mov rcx, qword [rbp + 0x3c8]
call qword [sym.imp.ucrtbased.dll_atoi]
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x140044fe2], ax
mov edx, 4
mov rcx, qword [rbp + 0x3d0]
call fcn.140011acd
mov dword [0x1400447c0], eax
call qword [sym.imp.ucrtbased.dll_rand]
mov dword [0x1400447c4], eax
mov dword [0x1400447c8], 0
mov dword [0x1400447cc], 0xaf3c2828
mov r8d, 0x38
xor edx, edx
lea rcx, [0x140044ff0]
call fcn.140011974
mov r8d, recvfrom
xor edx, edx
lea rcx, [0x140045028]
call fcn.140011974
mov dword [rsp + 0x28], recvfrom
lea rax, [0x140044fe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, recvfrom
lea rdx, [0x1400447c0]
mov rcx, qword [0x1400447b0]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rbp + 0x1e4], eax
mov ecx, reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp + 0x204], recvfrom
lea rax, [rbp + 0x204]
mov qword [rsp + 0x28], rax
lea rax, [0x140044fe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x400
lea rdx, [0x140044bd0]
mov rcx, qword [0x1400447b0]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 0x1e4], eax
cmp dword [rbp + 0x1e4], 0
jge 0x1400250f1
mov eax, 0xffffdcdb
jmp 0x140025104
lea rdx, [0x1400447c0]
lea rcx, [0x140044bd0]
call fcn.140011064
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140011a5f
mov rax, rdi
mov rcx, qword [rbp + 0x398]
xor rcx, rbp
call fcn.1400115fa
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret
Function at 0x1400116f4
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x140027e70
mov word [rsp + 0x10], dx
mov word [rsp + 8], cx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, word [rsp + 0x1a8]
mov rax, qword [0x140044018]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x14004d1e6]
call fcn.140011ca3
cmp qword [0x1400447b0], 0
ja 0x140027ed2
mov eax, 0xffffdcd8
jmp 0x140027fcc
mov eax, dword [0x1400447c8]
inc eax
mov dword [0x1400447c8], eax
mov dword [0x1400447cc], 0xaede7345
call qword [sym.imp.ucrtbased.dll_rand]
mov dword [0x1400447c4], eax
movsx eax, word [rbp + 0x170]
mov dword [0x140044ff4], eax
movsx eax, word [rbp + 0x178]
mov dword [0x140044ff8], eax
mov r8d, 0x38
lea rdx, [0x140044ff0]
lea rcx, [0x1400447d0]
call fcn.1400115ff
mov dword [rbp + 0x24], 0x48
mov dword [rsp + 0x28], recvfrom
lea rax, [0x140044fe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rbp + 0x24]
lea rdx, [0x1400447c0]
mov rcx, qword [0x1400447b0]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [0x140044ff4], 0
mov dword [0x140044ff8], 0
mov dword [rbp + 0x74], recvfrom
lea rax, [rbp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x400
lea rdx, [0x140044bd0]
mov rcx, qword [0x1400447b0]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140027fb9
mov eax, 0xffffdcdb
jmp 0x140027fcc
lea rdx, [0x1400447c0]
lea rcx, [0x140044bd0]
call fcn.140011064
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140011a5f
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.1400115fa
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x140011708
Capabilities:
Terminate process

Disassembly:
jmp 0x14002bb10
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 0x1400118c5
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002c640
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002c660
xor al, al
jmp 0x14002c6e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002c673
xor al, al
jmp 0x14002c6e1
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 0x14002c69d
xor al, al
jmp 0x14002c6e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002c6b1
xor al, al
jmp 0x14002c6e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002c6c3
xor al, al
jmp 0x14002c6e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002c6df
xor al, al
jmp 0x14002c6e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011acd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400248e0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140044018]
xor rax, rbp
mov qword [rbp + 0x1b8], rax
lea rcx, [0x14004d1e6]
call fcn.140011ca3
lea rax, [rbp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov dword [rbp + 0x84], 0
jmp 0x14002495a
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x1e8]
cmp dword [rbp + 0x84], eax
jge 0x140024a08
mov eax, dword [rbp + 0x84]
add eax, eax
cdqe
mov rcx, qword [rbp + 0x1e0]
movzx eax, byte [rcx + rax]
mov byte [rbp + 4], al
mov eax, dword [rbp + 0x84]
lea eax, [rax + rax + 1]
cdqe
mov rcx, qword [rbp + 0x1e0]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x24], al
movsx eax, byte [rbp + 4]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_toupper]
sub eax, 0x30
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
cmp eax, 9
jle 0x1400249c3
movzx eax, byte [rbp + 0x44]
sub eax, 7
mov byte [rbp + 0x44], al
movsx eax, byte [rbp + 0x24]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_toupper]
sub eax, 0x30
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 9
jle 0x1400249e8
movzx eax, byte [rbp + 0x64]
sub eax, 7
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x44]
imul eax, eax, 0x10
movzx ecx, byte [rbp + 0x64]
add eax, ecx
movsxd rcx, dword [rbp + 0x84]
mov dword [rbp + rcx*4 + 0xb0], eax
jmp 0x14002494c
mov eax, 4
imul rax, rax, 0
mov eax, dword [rbp + rax + 0xb0]
shl eax, 0x18
mov ecx, 4
imul rcx, rcx, 1
mov ecx, dword [rbp + rcx + 0xb0]
shl ecx, 0x10
or eax, ecx
mov ecx, 4
imul rcx, rcx, 2
mov ecx, dword [rbp + rcx + 0xb0]
shl ecx, 8
or eax, ecx
mov ecx, 4
imul rcx, rcx, 3
or eax, dword [rbp + rcx + 0xb0]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140037a50]
call fcn.140011a5f
mov eax, edi
mov rcx, qword [rbp + 0x1b8]
xor rcx, rbp
call fcn.1400115fa
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140011c80
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001d470
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140044018]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x14004d100]
call fcn.140011ca3
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14001d4d6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001d4dd
mov al, 1
jmp 0x14001d64f
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.14001137f
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.14001137f
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140011a82
movzx eax, al
test eax, eax
je 0x14001d542
xor al, al
jmp 0x14001d64f
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x14001d5b5
cmp dword [rbp + 0x1a0], 1
je 0x14001d5c0
cmp dword [rbp + 0x1a0], 3
je 0x14001d63e
jmp 0x14001d64d
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001d610
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001d610
xor al, al
jmp 0x14001d64f
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001d62b
mov dword [rbp + 0x194], 1
jmp 0x14001d635
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14001d64f
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001d64f
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140011a5f
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400115fa
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140002970
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x14000298f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000fe90
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140009860
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000f8a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000f8a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400098d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001f1f4]
mov rbx, rcx
test esi, esi
jle 0x140009a00
mov rax, qword [0x14001f1f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000991b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400099a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140009900
mov rcx, rbx
call fcn.14000a320
mov rdi, rax
test rax, rax
je 0x140009a22
mov rax, qword [0x14001f1f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000a460
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001f1f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140009a07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000999e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400099b0
add dword [0x14001f1f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x14001f1f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000999e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140009860
nop dword [rax]
xor esi, esi
jmp 0x140009928
mov rax, qword [0x14001f1f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140009860
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140009860
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140009f90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001f260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001f240]
test rbx, rbx
je 0x140009fec
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 0x140009fe3
test rsi, rsi
je 0x140009fe3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140009fc8
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 0x14000a320
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140019080]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000a340
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000a348
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000a340
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000a39d
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]
mov rdx, r8
cmp rcx, r8
jb 0x14000a394
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000a340
add rax, 0x28
cmp rax, r9
jne 0x14000a380
xor eax, eax
ret

Function at 0x14000a3a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140019080]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000a3bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000a3c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000a3bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000a460
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140019080]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000a47f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000a488
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140010920
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140010a22
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400109fa
add rax, 1
cmp rax, 0x6b
je 0x140010a17
cmp byte [rcx + rax], 0
jne 0x1400109f0
movsxd rdx, eax
cmp eax, 0x6a
je 0x140010a17
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140010a0b

Function at 0x140010dc0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14001fd60], 1
je 0x140010e38
lea rdi, [0x14001fd60]
mov rcx, rdi
call fcn.1400106a0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140010020
mov esi, dword [0x14001fd60]
test esi, esi
jne 0x140010e48
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140016438], eax
cmp eax, 0xffffffff
je 0x140015806
mov dword [0x14001fd60], 1
mov rcx, rbp
call fcn.140010310
test rbx, rbx
je 0x140010e38
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140010a40
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140010e18
mov ecx, 2
call qword [fcn.14000f8a0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140010e18
call sub.msvcrt.dll_abort
nop
Function at 0x140010e70
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140010b50
cmp qword [0x140021048], 0
mov rbx, rax
je 0x140010f88
test rax, rax
je 0x140010f88
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400140f0
cmp eax, 1
je 0x140010f96
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14001580c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140016438]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140010f9c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140010920
nop
jmp fcn.14001580c

Function at 0x140010fb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010dc0
mov ecx, dword [0x140016438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010fd0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140010e70