joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009cb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rdi
mov r9, rcx
mov r8, rdx
mov al, 0x36
mov ecx, 0x40
lea r10, [r9 + 0x64]
sub rsp, 0x60
lea rdx, [rsp + 0x20]
mov rdi, rdx
rep stosb byte [rdi], al
mov al, 0x5c
mov ecx, 0x40
mov rdi, r10
rep stosb byte [rdi], al
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rdx + rax], cl
xor byte [r9 + rax + 0x64], cl
inc rax
cmp rax, 0x10
jne 0x140009cde
movabs rax, 0xbb67ae856a09e667
mov r8d, 0x40
mov rcx, r9
mov qword [r9], rax
movabs rax, 0xa54ff53a3c6ef372
mov qword [r9 + 8], rax
movabs rax, 0x9b05688c510e527f
mov qword [r9 + 0x10], rax
movabs rax, 0x5be0cd191f83d9ab
mov qword [r9 + 0x18], rax
xor eax, eax
mov dword [r9 + 0x60], eax
call fcn.140009be0
add rsp, 0x60
pop rdi
ret

Function at 0x14000a150
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
mov r9d, edx
push r14
push r13
push r12
mov r12d, r8d
xor r8d, r8d
push rbp
push rdi
mov rdi, rcx
push rsi
mov rdx, rdi
push rbx
or rbx, 0xffffffffffffffff
sub rsp, 0xd8
lea rcx, [rsp + 0x48]
call fcn.14000ac20
test al, al
je 0x14000a2d4
mov rsi, qword [rsp + 0x48]
lea r13, str.Connecting_to__s_...
lea r14, str.Connecting_to__s___s__...
test rsi, rsi
je 0x14000a2c5
lea rbp, [rsp + 0x50]
mov r9d, dword [rsi + 0x10]
mov r8, qword [rsi + 0x20]
mov edx, pe_nt_image_headers64
mov rcx, rbp
call fcn.14000add0
test al, al
je 0x14000a1f5
test r12b, r12b
je 0x14000a1d7
mov r8, rbp
mov rdx, rdi
mov rcx, r14
call fcn.14000bcd0
jmp 0x14000a1e2
mov rdx, rbp
mov rcx, r13
call fcn.14000bcd0
mov ecx, 1
call qword [fcn.140008550]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov ecx, dword [rsi + 4]
mov r8d, 6
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
lea r9, [rsp + 0x44]
mov r8d, 0x1006
mov r15, qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, rax
mov qword [rsp + 0x38], r9
mov edx, 0xffff
mov rcx, rax
mov dword [rsp + 0x44], 0x2710
mov dword [rsp + 0x20], 4
call r15
mov edx, 0xffff
mov rcx, rbx
mov r9, qword [rsp + 0x38]
mov r8d, 0x1005
mov dword [rsp + 0x20], 4
call r15
mov rdx, qword [rsi + 0x20]
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x14000a27f
lea rcx, str.successful_n
call fcn.14000bcd0
jmp 0x14000a2c9
mov r15, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call r15
lea r8, str.Timed_out
cmp eax, 0x2734
je 0x14000a2a4
call r15
mov ecx, eax
call fcn.14000d180
mov r8, rax
mov rdx, rbp
lea rcx, str._s:__s_n
call fcn.14000bb90
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [rsi + 0x28]
jmp 0x14000a19b
or rbx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
add rsp, 0xd8
mov rax, rbx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a910
Capabilities:
Get hostname
Resolve dns

Disassembly:
push r14
xor r8d, r8d
push r13
push r12
mov r12, rcx
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x240
cmp byte [rdx], 0x2d
mov qword [rcx], r8
mov dword [rsp + 0x34], 0xfe
jne 0x14000a993
lea rbx, [rsp + 0x44]
lea r8, [rsp + 0x34]
mov ecx, 6
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x14000a974
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000d180
lea rcx, str.Fatal:_Could_not_determine_computers_DNS_name:__s_n
mov rdx, rax
call fcn.14000a630
jmp 0x14000aa06
lea rcx, [rsp + 0x142]
lea rdx, str._vlmcs._tcp.
call sub.msvcrt.dll_strcpy
mov r8d, 0xf2
mov rcx, rax
jmp 0x14000a9b3
lea rcx, [rsp + 0x142]
mov rbx, rdx
lea rdx, str._vlmcs._tcp
call sub.msvcrt.dll_strcpy
mov r8d, 0xf3
mov rcx, rax
mov rdx, rbx
lea rsi, [rsp + 0x142]
call sub.msvcrt.dll_strncat
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov edx, 0x21
mov rcx, rsi
mov qword [rsp + 0x20], rax
call sub.DNSAPI.dll_DnsQuery_UTF8
mov ebx, eax
test eax, eax
je 0x14000aa0d
mov ecx, eax
call fcn.14000d180
mov rdx, rsi
lea rcx, str.Fatal:_DNS_query_to__s_failed:__s_n
mov r8, rax
call fcn.14000a630
xor ebx, ebx
jmp 0x14000aad5
mov rbp, qword [rsp + 0x38]
xor esi, esi
lea r13, str.Warning:_DNS_server_returned_non_SRV_record_n
test rbp, rbp
je 0x14000aa43
mov al, byte [rbp + 0x14]
and eax, 3
dec al
jne 0x14000aa3d
cmp word [rbp + 0x10], 0x21
je 0x14000aa3b
mov rcx, r13
call fcn.14000a630
jmp 0x14000aa3d
inc esi
mov rbp, qword [rbp]
jmp 0x14000aa1b
movsxd rcx, esi
xor r13d, r13d
lea r14, str._s:_hu
shl rcx, 3
call fcn.14000d030
mov rsi, qword [rsp + 0x38]
mov qword [r12], rax
test rsi, rsi
je 0x14000aac6
cmp word [rsi + 0x10], 0x21
jne 0x14000aac1
mov ecx, 0x10c
call fcn.14000d030
mov ecx, 0x43
mov edx, 0x104
mov r8, r14
mov rbp, rax
mov rdi, rax
mov eax, r13d
rep stosd dword [rdi], eax
lea rcx, [rbp + 8]
movzx eax, word [rsi + 0x2c]
mov r9, qword [rsi + 0x20]
mov dword [rsp + 0x20], eax
call fcn.14000cab0
mov eax, dword [rsi + 0x28]
movsxd rdx, ebx
inc ebx
mov word [rbp + 4], ax
mov ax, word [rsi + 0x2a]
mov word [rbp + 6], ax
mov rax, qword [r12]
mov qword [rax + rdx*8], rbp
mov rsi, qword [rsi]
jmp 0x14000aa62
mov rcx, qword [rsp + 0x38]
mov edx, 1
call sub.DNSAPI.dll_DnsFree
add rsp, 0x240
mov eax, ebx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000ac20
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
push r14
mov r14d, r9d
push r13
mov r13d, r8d
push r12
mov r12, rcx
mov rcx, rdx
push rdi
push rsi
push rbx
mov rbx, rdx
sub rsp, 0x60
call sub.msvcrt.dll_strlen
lea rcx, [rax + 1]
cmp rcx, 0x108
ja 0x14000ace1
add rax, 0x10
shr rax, 4
shl rax, 4
call fcn.140002560
sub rsp, rax
lea rdx, [rbp - 0x70]
lea r8, [rbp - 0x68]
mov rsi, rbx
lea rax, [rsp + 0x20]
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.14000b490
lea rdx, [rbp - 0x50]
xor eax, eax
mov ecx, 8
mov rdi, rdx
mov dword [rbp - 0x5c], r14d
mov rdx, qword [rbp - 0x68]
mov r9, r12
rep stosd dword [rdi], eax
mov dword [rbp - 0x60], r13d
mov rcx, qword [rbp - 0x70]
lea r8, [rbp - 0x60]
movabs rax, 0x600000001
mov qword [rbp - 0x58], rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, eax
mov al, 1
test ecx, ecx
je 0x14000ace3
call fcn.140001450
mov rdx, rbx
lea rcx, str.Warning:__s:__s_n
mov r8, rax
call fcn.14000bb90
xor eax, eax
lea rsp, [rbp - 0x30]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret

Function at 0x14000add0
Capabilities:
Resolve dns

Disassembly:
push r12
push rbp
push rdi
mov rdi, rcx
push rsi
mov rsi, r8
push rbx
mov rcx, rsi
mov rbx, rdx
mov edx, r9d
mov r9d, 0x40
sub rsp, 0x90
lea rbp, [rsp + 0x50]
lea r12, [rsp + 0x48]
mov dword [rsp + 0x30], 0xa
mov dword [rsp + 0x28], 8
mov r8, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x14000ae53
cmp word [rsi], 0x17
mov qword [rsp + 0x20], r12
mov r9, rbp
mov rdx, rbx
lea rax, str.__s_:_s
lea r8, str._s:_s
mov rcx, rdi
cmove r8, rax
call fcn.14000ca90
mov eax, eax
cmp rbx, rax
setae al
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000ae70
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
cmp rcx, 0xffffffffffffffff
je 0x14000aeeb
push rbp
mov edx, 0x8004667e
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0x38
mov rdi, qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rbp, [rsp + 0x2c]
mov dword [rsp + 0x2c], 1
mov r8, rbp
call rdi
test eax, eax
je 0x14000aea7
mov al, 1
jmp 0x14000aee2
lea rdx, [rsp + 0x2b]
mov r9d, 2
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
mov edx, 0x8004667e
mov r8, rbp
mov rcx, rbx
mov esi, eax
xor eax, eax
mov dword [rsp + 0x2c], eax
call rdi
test eax, eax
setne al
test esi, esi
sete dl
or eax, edx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov al, 1
ret
Function at 0x14000af30
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [0x140015120]
mov rdi, qword [0x140015160]
mov qword [rdi], rax
call fcn.14000a890
mov rbp, qword [0x1400153c0]
mov rbx, rax
cmp qword [rbp], 0
jne 0x14000af66
call fcn.14000a830
mov rsi, qword [rbp]
lea rdx, [0x140013d93]
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14000b036
mov rcx, rsi
lea rdx, [0x140013d95]
call sub.msvcrt.dll_fopen
mov rsi, rax
test rax, rax
jne 0x14000afad
mov rax, qword [0x140015130]
cmp byte [rax], 0
je 0x14000b036
call fcn.14000a320
xor edx, edx
mov r8d, 2
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x14000afa8
mov rcx, rsi
call sub.msvcrt.dll_ftell
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000afa8
movsxd r12, eax
mov rcx, r12
call fcn.14000d030
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rdi], rax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x14000afa8
mov rcx, qword [rdi]
mov r9, rsi
mov r8, r12
mov edx, 1
call sub.msvcrt.dll_fread
cmp ebx, eax
jne 0x14000afa8
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rax, qword [0x140015140]
cmp byte [rax], 0
jne 0x14000b036
mov rax, qword [rdi]
mov r9, qword [rbp]
lea rcx, str.Read_KMS_data_file_version__u._u__s_n
movzx edx, word [rax + 6]
movzx r8d, word [rax + 4]
call fcn.14000b450
mov rax, qword [rdi]
movsxd rsi, ebx
xor edx, edx
cmp byte [rax + rsi - 1], 0
lea r8, [rax + rsi]
je 0x14000b04e
call fcn.14000a2f0
mov rcx, qword [rax + rdx + 0x20]
add rcx, rax
mov qword [rax + rdx + 0x20], rcx
cmp r8, rcx
jb 0x14000b049
add rdx, 8
cmp rdx, 0x28
jne 0x14000b04e
movzx r10d, byte [rax + 8]
lea rdx, [rax + 0x48]
xor ecx, ecx
cmp ecx, r10d
jae 0x14000b091
mov r9, qword [rdx]
add rdx, 0x20
add r9, rax
mov qword [rdx - 0x20], r9
cmp r8, r9
jb 0x14000b049
inc ecx
jmp 0x14000b075
xor edx, edx
mov rbx, qword [rdi]
cmp edx, dword [rbx + 0x18]
jae 0x14000b0ba
mov eax, edx
shl rax, 5
add rax, qword [rbx + 0x38]
add rbx, qword [rax]
mov qword [rax], rbx
mov rax, qword [rdi]
add rax, rsi
cmp rax, rbx
jb 0x14000b049
inc edx
jmp 0x14000b093
mov eax, dword [rbx + 0x10]
mov r8d, 4
add eax, dword [rbx + 0xc]
mov rcx, rbx
add eax, dword [rbx + 0x14]
lea rdx, [0x140013dbd]
mov edi, eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14000b049
cmp word [rbx + 6], 2
jne 0x14000b049
mov eax, edi
xor edx, edx
lea r8, [rbx + rsi]
shl rax, 5
add rax, 0x68
cmp rax, rsi
jae 0x14000b049
cmp edx, edi
jae 0x14000b14f
mov rax, rdx
shl rax, 5
add rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0x10]
add rcx, rbx
mov qword [rax + 0x10], rcx
cmp rcx, r8
jae 0x14000b049
mov ecx, dword [rbx + 0xc]
test ecx, ecx
je 0x14000b13e
movzx r9d, byte [rax + 0x18]
cmp ecx, r9d
jle 0x14000b049
movzx eax, byte [rax + 0x19]
inc rdx
cmp eax, dword [rbx + 0x10]
jl 0x14000b106
jmp 0x14000b049
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14000c890
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
mov rdi, rcx
push rsi
mov rsi, rdx
push rbx
mov ebx, r8d
sub rsp, 0x28
mov rbp, qword [sym.imp.WS2_32.dll_recv]
test r9b, r9b
je 0x14000c8b4
mov rbp, qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call rbp
test eax, eax
jns 0x14000c8d5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14000c8e3
jmp 0x14000c8b4
je 0x14000c8e3
movsxd rdx, eax
sub ebx, eax
add rsi, rdx
test ebx, ebx
jg 0x14000c8b4
test ebx, ebx
sete al
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000b850]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000b860]
mov dword [rax], 1
mov rax, qword [0x14000b870]
mov dword [rax], 1
mov rax, qword [0x14000b840]
mov dword [rax], 1
mov rax, qword [0x14000b700]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000b830]
mov dword [0x14000f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000b7f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000b7d0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000b6b0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400015af
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call sym.__main
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x400
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400015ff
lea rax, str.Error_allocating_memory_n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140001684
movabs rax, 0xb848e5894855
movabs rdx, 0xd0ff000000000000
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov word [rbp - 0x20], 0xc35d
lea rax, [sym.hidden_function]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x30]
add rax, 6
mov rdx, qword [rbp - 0x38]
mov qword [rax], rdx
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
movzx eax, word [rbp - 0x20]
mov word [rcx + 0x10], ax
mov rax, qword [rbp - 8]
call rax
mov rax, qword [rbp - 8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x1400019d0
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 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 0x140001a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0c4]
mov rbx, rcx
test esi, esi
jle 0x140001b70
mov rax, qword [0x14000f0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b92
mov rax, qword [0x14000f0c8]
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 [0x14000f0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b20
add dword [0x14000f0c4], 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 [0x14000f0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b0e
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 0x140001a98
mov rax, qword [0x14000f0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002180
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1400022b0
ja 0x1400021c8
test edx, edx
je 0x140002248
mov eax, dword [0x14000f108]
test eax, eax
je 0x140002330
mov dword [0x14000f108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400021b5
mov eax, dword [0x14000f108]
test eax, eax
je 0x1400021b5
lea r12, [0x14000f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x140002234
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 0x140002358
test rsi, rsi
je 0x140002358
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002208
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400021b5
mov eax, dword [0x14000f108]
test eax, eax
jne 0x1400022c8
mov eax, dword [0x14000f108]
cmp eax, 1
jne 0x1400021b5
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x140002281
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sub.msvcrt.dll_free
test rbx, rbx
jne 0x140002270
lea rcx, [0x14000f120]
mov qword [0x14000f100], 0
mov dword [0x14000f108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400021b5
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x14000f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x14000231c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002348
test rsi, rsi
je 0x140002348
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022f8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002252
lea rcx, [0x14000f120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400021ab
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022f8
jmp 0x14000231c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002208
jmp 0x140002234

Function at 0x140002370
Capabilities:
Parse pe header

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

Function at 0x1400023a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400023ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400023e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023ef
add rax, 0x28
cmp rax, r9
jne 0x1400023d0
xor eax, eax
ret
Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002480
mov rdx, qword [0x14000b700]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000246e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000246e
cmp word [rax + 0x18], 0x20b
jne 0x14000246e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002480
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002459
add rbx, 0x28
cmp rbx, rdi
je 0x140002480
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002450
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 0x140002490
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x14000b700]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024b0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002505
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024fc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024b0
add rax, 0x28
cmp rax, r9
jne 0x1400024e8
xor eax, eax
ret

Function at 0x140002510
Capabilities:
Parse pe header

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

Function at 0x140002550
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b700]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002570
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002578
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002570
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400025c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025b7
test rcx, rcx
je 0x140002570
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400025a8
xor eax, eax
ret

Function at 0x1400025d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b700]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400025ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002610
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002630
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002638
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002630
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002630
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]
mov rax, r8
cmp rcx, r8
jb 0x140002684
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002690
add rdx, 0x28
cmp r9, rdx
jne 0x140002670
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000b700]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400026c4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x1400026d0
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x1400026c4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400026c4
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x1400026c4
lea ecx, [r10 - 1]
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000271c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002730
add rdx, 0x28
cmp rdx, r10
jne 0x140002708
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002740
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000274e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002725
test r8d, r8d
jg 0x140002738
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret