joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001fe0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002034
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000202b
test r12, r12
je 0x14000202b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002010
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002260
Capabilities:
Parse pe header

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

Function at 0x140002280
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 0x1400022c5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400022bc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400022c7
add rax, 0x28
cmp rax, r9
jne 0x1400022a8
xor eax, eax
ret

Function at 0x140002370
Capabilities:
Enumerate pe sections

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

Function at 0x1400024d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004360]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000253f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000253f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000253d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002534
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002548
add rax, 0x28
cmp rax, r9
jne 0x140002520
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002560
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140004360]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400025d8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400025d8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400025d8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400025d8
sub ecx, 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 0x1400025cc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400025e0
add rdx, 0x28
cmp rdx, r10
jne 0x1400025b8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1400025f0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400025fe
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025d5
test r8d, r8d
jg 0x1400025e8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1407f581a
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, byte [r9 + riz]
mov r8d, 0x80b00c25
add r9, 1
mov qword [rsp], r8
or word [rsp + 1], 0x77a0
and r8w, r8w
xor cl, bpl
shl qword [rsp], 0xb0
not r8
imul r8d, r8d
ror cl, 1
pop r8
add cl, 0xb4
shl r8b, 0x25
js 0x1407feede
neg cl
add cl, 0x22
or r8b, r8b
jl 0x14081b400
add al, byte [rax]
xor bpl, cl
dec r8w
bt r8d, r8d
jb 0x1407febb3
adc rcx, rsp
sal r8b, 0x44
bt r8d, r8d
mov r8d, dword [rcx + riz]
jae 0x140825a75
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rbx], dh
cdq
add dword [rbp - 0x5b], esi
test eax, 0xf81f0206
setnp byte [rcx + 0x2aec08c8]
pop rbp
insb byte [rdi], dx
jb 0x1407f5869
insd dword [rdi], dx
imul eax, dword [0xdce194bb], 0xffffff90
or al, 0x65
jmp 0x1407f58ba
fidivr dword [rbx - 0x69]
and ebp, ebx
or al, 0x2d
jo 0x1407f5897
xchg ebp, eax
mov ebx, 0x18e2d340
invalid
call fcn.14081587a
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140014090
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]
nop
add rsp, 0x28
ret

Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400153e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015400
xor al, al
jmp 0x140015481
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015413
xor al, al
jmp 0x140015481
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 0x14001543d
xor al, al
jmp 0x140015481
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015451
xor al, al
jmp 0x140015481
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015463
xor al, al
jmp 0x140015481
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001547f
xor al, al
jmp 0x140015481
mov al, 1
add rsp, 0x38
ret
Function at 0x1400132d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113b6
movzx eax, al
test eax, eax
jne 0x1400132f0
mov ecx, 7
call fcn.14001132a
nop
mov byte [rsp + 0x20], 0
call fcn.14001133e
mov byte [rsp + 0x21], al
cmp dword [0x14001f878], 1
jne 0x140013314
mov ecx, 7
call fcn.14001132a
nop
jmp 0x14001336c
cmp dword [0x14001f878], 0
jne 0x140013367
mov dword [0x14001f878], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111a4
test eax, eax
je 0x140013348
mov eax, 0xff
jmp 0x140013471
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.140011334
mov dword [0x14001f878], 2
jmp 0x14001336c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011316
call fcn.1400112ad
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400133c9
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400133c9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.1400112df
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400133fd
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400133fd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011370
nop
call fcn.140013520
mov dword [rsp + 0x28], eax
call fcn.14001128a
movzx eax, al
test eax, eax
jne 0x14001341c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001342b
call fcn.14001137a
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140013471
add rsp, 0x68
ret
Function at 0x401eb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
test rdx, rdx
mov rbx, rcx
mov rcx, rdx
je 0x401edd
cmp byte [rcx], 0
lea rdx, [rdx + 1]
je 0x401edd
nop dword [rax]
lea rax, [rdx + r8]
add r8, 1
cmp byte [rax], 0
jne 0x401ed0
mov r9, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.0041aea8
Function at 0x4047e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rsi, [0x00427a20]
mov r13, rcx
mov rcx, qword [0x0046e900]
mov r12d, edx
mov edx, 0x17f9dcc4
lea rdi, [r13 + 2]
call fcn.00403ad0
mov edx, 0x3a38f464
mov rcx, rax
call fcn.00403d80
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r14, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop
nop word cs:[rax + rax]
movzx eax, word [r13]
mov rdx, r13
test ax, ax
je 0x404870
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x4049f0
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x404850
mov rax, qword [r14 + 0x50]
movzx ebx, word [rax]
test bx, bx
je 0x404a10
mov rdx, rax
nop dword [rax]
nop word cs:[rax + rax]
lea ecx, [rbx - 0x41]
cmp cx, 0x19
ja 0x404a20
add ebx, 0x20
add rdx, 2
mov word [rdx - 2], bx
movzx ebx, word [rdx]
test bx, bx
jne 0x404890
movzx r15d, word [r13]
movzx ebx, word [rax]
test r15w, r15w
je 0x404925
test bx, bx
je 0x404a40
mov r10, rdi
mov edx, r15d
sub r10, rax
jmp 0x4048e6
cmp word [rax], 0
je 0x404925
movzx ecx, word [rax]
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
lea r9d, [rcx - 0x41]
lea r8d, [rcx + 0x20]
cmp r9w, 0x1a
cmovb ecx, r8d
cmp dx, cx
jne 0x404a40
mov rdx, rax
add rax, 2
movzx edx, word [r10 + rdx]
test dx, dx
jne 0x4048e0
mov edx, 0xba8b96c
mov rcx, rsi
call fcn.00403ad0
mov edx, 0x11ec9ce4
mov rcx, rax
call fcn.00403d80
cmp r15w, bx
je 0x404a5f
mov r14, qword [r14]
cmp rbp, r14
jne 0x404840
test r12d, r12d
je 0x404a74
lea rcx, [0x00427980]
mov edx, 0x2b69854c
call fcn.00403ad0
lea rbx, [rsp + 0x30]
mov edx, 0x2e990184
mov rcx, rax
mov rdi, rbx
call fcn.00403d80
xor eax, eax
mov ecx, 4
mov rdx, r13
rep stosd dword [rdi], eax
mov rax, qword [0x0046e770]
mov rcx, rbx
mov qword [rsp + 0x28], 0
call qword [rax]
mov rax, qword [0x0046e720]
mov r8, rbx
xor edx, edx
lea r9, [rsp + 0x28]
xor ecx, ecx
call qword [rax]
lea rcx, [0x00427940]
mov edx, 0x231cd6a4
mov ebx, eax
call fcn.00403ad0
mov edx, 0x5edd62cc
mov rcx, rax
call fcn.00403d80
test ebx, ebx
jne 0x404a92
mov rax, qword [rsp + 0x28]
jmp 0x404a63
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x404850
mov rax, qword [r14 + 0x50]
movzx ebx, word [rax]
test bx, bx
jne 0x404880
movzx r15d, word [r13]
jmp 0x404925
add rdx, 2
movzx ebx, word [rdx]
test bx, bx
jne 0x404890
jmp 0x4048b0
mov rcx, rsi
mov edx, 0xba8b96c
call fcn.00403ad0
mov edx, 0x11ec9ce4
mov rcx, rax
call fcn.00403d80
jmp 0x404949
mov rax, qword [r14 + 0x20]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x00427900]
mov edx, 0x469be504
call fcn.00403ad0
mov edx, 0x1b7afaec
mov rcx, rax
call fcn.00403d80
xor eax, eax
jmp 0x404a63
Function at 0x40aae0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rcx, qword [0x0046e990]
lea rsi, str.OverflowDefect
call fcn.0041b0f0
mov rcx, rax
call fcn.004159f0
lea rcx, [0x00426380]
mov rbx, rax
mov rax, qword [0x0046e7e0]
mov qword [rbx + 0x10], rsi
mov qword [rbx], rax
call fcn.00405690
lea r9, [0x0042610c]
mov rdx, rsi
mov rcx, rbx
mov qword [rbx + 0x18], rax
lea r8, [0x00426116]
mov qword [rsp + 0x20], 0x35
call fcn.00409f20
nop
nop
nop word cs:[rax + rax]
Function at 0x4120f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x3f], 1
movzx eax, byte [rsp + 0x3f]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
test al, al
jne 0x412120
add rsp, 0x48
ret
mov ecx, 2
call qword [fcn.0041af20]
mov r8, qword [rsp + 0x58]
mov edx, 1
mov rcx, qword [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rax
call sub.msvcrt.dll_fwrite
mov rcx, qword [rsp + 0x28]
call fcn.0041aea8
nop
add rsp, 0x48
ret
Function at 0x415eb0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x00471720]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [rbx]
mov ecx, 1
mov rbp, qword [fcn.0041af20]
call rbp
mov rdi, rax
test rsi, rsi
je 0x415fb0
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, [0x00427f60]
lea rdx, [0x00427f7c]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x00427f7c]
mov ebx, eax
movsxd rax, ebx
cmp rax, qword [rsi]
jge 0x415f3a
cmp byte [rsi + rax + 0x10], 0
jne 0x415f90
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x415f3a
add ebx, 1
movsxd rax, ebx
cmp rax, qword [rsi]
jl 0x415f1a
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x00427f7f]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.0041aea8
lea rcx, [0x00471720]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x415f3a
add ebx, eax
jmp 0x415f12
lea r8, [0x00427f60]
mov rcx, rax
lea rdx, [0x00427f7c]
call sub.msvcrt.dll_fprintf
lea rsi, [0x00427f7c]
mov ebx, eax
nop
test ebx, ebx
jns 0x415f3a
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x416009
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x415f3a
add ebx, 1
test ebx, ebx
jns 0x415f3a
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x415fe2
add r8, 0x10
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x415f3a
add ebx, eax
jmp 0x415fd0
Function at 0x419ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00475f84]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x41a048
mov rax, qword [0x00475f88]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x419f0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x419f95
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x419ef0
mov rcx, rbx
call fcn.0041ab60
test rax, rax
mov r12, rax
je 0x41a07d
mov rax, qword [0x00475f88]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0041ac90
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00475f88]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x41a060
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x419f8e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x419ff0
add dword [0x00475f84], 1
cmp edi, 8
jae 0x419fc3
test dil, 4
jne 0x41a034
test edi, edi
je 0x419fb8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41a04f
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 0x419fb8
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 0x419fdc
jmp 0x419fb8
add rsi, qword [0x00475f88]
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 0x419f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00424410
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x419fb8
xor esi, esi
jmp 0x419f17
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x419fb8
mov rax, qword [0x00475f88]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00424410
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00424410
nop
nop dword [rax]

Function at 0x41a7d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00476260]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00476240]
test rbx, rbx
je 0x41a824
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 0x41a81b
test rsi, rsi
je 0x41a81b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x41a800
lea rcx, [0x00476260]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x41ab60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0046e9d0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x41abcd
mov rcx, r8
call fcn.0041aa40
test eax, eax
je 0x41abcd
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 0x41abcd
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 0x41abc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41abcf
add rax, 0x28
cmp rax, r9
jne 0x41abb0
xor eax, eax
add rsp, 0x28
ret

Function at 0x41b9f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x00425278], eax
je 0x41ba0a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x41bf10
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x41bf33
call fcn.0041ec50
cmp eax, 1
je 0x41bf3e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x41bfb5
mov eax, 0x28
jmp 0x41bf9a
add rax, 1
cmp rax, 0x6b
je 0x41bfa7
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x41bf90
cmp eax, 0x6a
jne 0x41bfba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x41bfa7
Function at 0x41c060
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x00476340], 1
je 0x41c076
call fcn.0041bfd0
mov ecx, dword [0x00425278]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x41c0a0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041be50
cmp qword [0x0047c050], 0
mov rsi, rax
je 0x41c08a
test rax, rax
je 0x41c08a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.0041bf10
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41c190
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x00425278]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c190
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x424410
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
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 fcn.0041af20
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.0041af20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140011bf8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011d40
Function at 0x140019da0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140019e27
mov rsi, rbx
cmp word [rax], bp
je 0x140019de6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019dd0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019dcc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400178d8
mov rdi, rax
test rax, rax
je 0x140019e14
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000ecd0
mov rbp, rdi
xor ecx, ecx
call fcn.140016df4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001dcd8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001dcee
mov al, 1
jmp 0x14001dd4e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001dcff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001dd4c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a298
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001dd4c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001dd4c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001dd4c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001dd4e
xor al, al
add rsp, 0x20
pop rbx
ret