joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400014e2
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp - 0x1c], 0
mov eax, dword [0x140003200]
mov eax, eax
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
mov eax, dword [0x140003200]
mov eax, eax
mov r9d, 8
lea r8, str.bonjour
mov rdx, rax
lea rax, section..data
mov rcx, rax
call sym.XOR_char__unsigned_long_long__char__unsigned_long_long_
mov eax, dword [0x140003200]
mov edx, eax
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, section..data
mov rcx, rax
call sym.memmove
mov eax, dword [0x140003200]
mov ecx, eax
lea rdx, [rbp - 0x1c]
mov rax, qword [rbp - 8]
mov r9, rdx
mov r8d, 0x20
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
je 0x1400015da
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
nop
add rsp, 0x50
pop rbp
ret

Function at 0x1400018c0
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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001930
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001a60
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000197b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001960
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a82
mov rax, qword [0x140007098]
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 [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a10
add dword [0x140007094], 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 [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019fe
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 0x140001988
mov rax, qword [0x140007098]
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 0x140001ff0
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 0x14000204c
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 0x140002043
test rsi, rsi
je 0x140002043
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002028
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 0x140002260
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002278
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002280
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002290
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 0x1400022dd
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 0x1400022d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022df
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

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

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

Function at 0x140002400
Capabilities:
Parse pe header

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

Function at 0x140002440
Capabilities:
Parse pe header

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

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

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

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

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

Disassembly:
mov r11, qword [0x1400043b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025b2
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 0x140002615
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002628
add rdx, 0x28
cmp rdx, r10
jne 0x140002600
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002637
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002647
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000261e
test ecx, ecx
jg 0x140002630
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400cb510]
mov dword [rax], 1
mov rax, qword [0x1400cb520]
mov dword [rax], 1
mov rax, qword [0x1400cb530]
mov dword [rax], 1
mov rax, qword [0x1400cb4d0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400014fc
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001cb0
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0xe8
mov dword [rsp + 0xa8], 0
mov rcx, qword [0x1400f70d8]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400f70d8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1400f70d8]
xor edx, edx
mov r8d, 0xff
mov r9d, 2
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
cmp dword [rsp + 0xa8], 0x12
je 0x140001f5d
mov rdx, qword [0x1400f70d8]
lea rcx, [rsp + 0xa0]
xor r9d, r9d
mov r8d, r9d
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, 0
je 0x140001d52
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov rcx, qword [0x1400f70d8]
call qword [sym.imp.USER32.dll_UpdateWindow]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x3c
call sym.memset
mov dword [rsp + 0x60], 0x3c
mov rcx, qword [0x1400f70e8]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetWindowInfo]
mov eax, dword [rsp + 0x80]
sub eax, dword [rsp + 0x78]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x7c]
sub eax, dword [rsp + 0x74]
mov dword [rsp + 0x58], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1400f70e8]
sete al
and al, 1
mov byte [rsp + 0x57], al
mov rcx, qword [0x1400f70d8]
call qword [sym.imp.USER32.dll_IsIconic]
cmp eax, 0
jne 0x140001e9d
mov al, byte [rsp + 0x57]
and al, 1
movzx eax, al
cmp eax, 1
jne 0x140001e53
mov rcx, qword [0x1400f70d8]
mov r8d, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x78]
mov r10d, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x20], r10d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 4
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400f70d8]
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8d, r9d
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x43
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x140001e88
mov rcx, qword [0x1400f70d8]
mov edx, 1
mov r9d, 1
xor eax, eax
mov r8d, r9d
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400f70b0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x1d0]
mov rcx, qword [0x1400f70b0]
mov rax, qword [rcx]
call qword [rax + 0x180]
mov rcx, qword [0x1400f70b0]
lea rax, [rsp + 0x40]
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
movss dword [rsp + 0xdc], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0xd8], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0xd4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0xd0], xmm0
mov rax, qword [rsp + 0xe0]
movss xmm0, dword [rsp + 0xdc]
movss dword [rax], xmm0
movss xmm0, dword [rsp + 0xd8]
movss dword [rax + 4], xmm0
movss xmm0, dword [rsp + 0xd4]
movss dword [rax + 8], xmm0
movss xmm0, dword [rsp + 0xd0]
movss dword [rax + 0xc], xmm0
lea rdx, [rsp + 0x40]
call method.ID2D1RenderTarget.Clear__D3DCOLORVALUE_const_
mov rcx, qword [0x1400f70b0]
mov rax, qword [rcx]
xor edx, edx
mov r8d, edx
mov rdx, r8
call qword [rax + 0x188]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
add rsp, 0xe8
ret
Function at 0x140001fe0
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], rcx
cmp qword [rsp + 0x20], 0
jne 0x14000200b
lea rcx, [sym.EnumWindowsProc_HWND____long_long_]
xor eax, eax
mov edx, eax
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x140002017
mov rax, qword [rsp + 0x20]
mov qword [0x1400f70f0], rax
mov rcx, qword [0x1400f70f0]
call sym.d2oSetup_HWND___
call sym.mainLoop__
jmp 0x140002023

Function at 0x140002030
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1400f7130], rax
xor eax, eax
mov r9d, eax
lea r8, [sym.OverlayThread_void_]
xor eax, eax
mov rcx, r9
mov rdx, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x38
ret

Function at 0x140002080
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdx
mov rax, qword [rsp + 0x40]
mov qword [0x1400f7130], rax
mov r9, qword [rsp + 0x38]
xor eax, eax
mov edx, eax
lea r8, [sym.OverlayThread_void_]
xor eax, eax
mov rcx, rdx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x48
ret

Function at 0x1400020e0
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
call sym.__main
mov dword [rbp - 4], 0
lea rcx, str.TankWindowClass
xor eax, eax
mov edx, eax
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000213a
lea rcx, str.Make_sure_OW_game_process_is_open_n
call sym.printf_char_const__::_
lea rcx, str.pause
call sub.ucrtbase.dll_system
mov dword [rbp - 4], 0
jmp 0x14000215d
mov ecx, 0x82
call sym.DirectOverlaySetOption_unsigned_long_
mov rdx, qword [rbp - 0x10]
xor eax, eax
mov ecx, eax
call sym.DirectOverlaySetup_void____int__int___HWND___
call sub.ucrtbase.dll_getchar
mov dword [rbp - 4], 0
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x14000b5e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x14000c2b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400f7208]
test eax, eax
je 0x14000c34a
lea rax, [0x1400f71e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400f7210]
mov qword [rbp - 8], rax
jmp 0x14000c32e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000c322
cmp qword [rbp - 0x10], 0
je 0x14000c322
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000c2e8
lea rax, [0x1400f71e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000c34b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000c450
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000c478
mov eax, 0
jmp 0x14000c4c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000c4a1
mov eax, 0
jmp 0x14000c4c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000c4c1
mov eax, 0
jmp 0x14000c4c6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000c4cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000c54a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000c541
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000c541
mov rax, qword [rbp - 8]
jmp 0x14000c55f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000c514
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001a4a9
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14001a5f4
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x14001a5e7
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.ucrtbase.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001a59d
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001a5b3
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001a599
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001a5d2
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001a5f5
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001b62a
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x1400c11f0], eax
mov eax, dword [0x1400c11f0]
cmp eax, 0xffffffff
jne 0x14001b651
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x1400f7c90]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400c11f0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001b85a
mov rax, qword [rbp - 0x10]
jmp 0x14001b9ba
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x14001b876
cmp qword [rbp - 0x10], 0
jne 0x14001b880
mov eax, 0
jmp 0x14001b9ba
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14001b95b
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400c11f0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001b9b6
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret