joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032440
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x54]
mov r15, r9
lea r8d, [rdx + 0x64]
call fcn.140081700
xor eax, eax
mov dword [rsp + 0x50], 0x68
mov qword [r15], rax
xor r12d, r12d
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rax
lea r8, [rax - 1]
test rsi, rsi
je 0x1400324aa
mov rax, r8
nop
inc rax
cmp word [rsi + rax*2], r12w
jne 0x1400324a0
test rdi, rdi
je 0x1400324be
mov rcx, r8
inc rcx
cmp word [rdi + rcx*2], r12w
jne 0x1400324b2
jmp 0x1400324c1
mov rcx, r12
lea rbp, [rax + 0x100]
mov eax, 2
add rbp, rcx
mul rbp
mov r14, rax
cmovo r14, r8
mov rcx, r14
call fcn.1400517e4
mov rbx, rax
test rax, rax
je 0x1400324fd
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.140081700
mov word [rbx], r12w
jmp 0x140032500
mov rbx, r12
mov r9, rdi
mov rdx, rbp
mov rcx, rbx
test rsi, rsi
jne 0x14003251c
lea r8, str.__s_
call fcn.140013aa0
jmp 0x14003252d
lea r8, str.__s___s
mov qword [rsp + 0x20], rsi
call fcn.140013aa0
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov rdx, rbx
mov dword [rsp + 0x28], 0x8000000
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne dil
test rbx, rbx
je 0x14003257c
mov edx, 2
mov rcx, rbx
call fcn.1400514f4
lea r11, [rsp + 0xc0]
movzx eax, dil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x14003ec10
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x14003ec75
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov qword [rbx + 0x18], rsi
add rbx, 8
lea edi, [rsi + 2]
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003ec61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
add rbx, 8
sub rdi, 1
jne 0x14003ec50
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x140046540
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401a5020]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x68], 0
mov rbp, rcx
je 0x140046686
cmp byte [rcx + 0x72], 0
je 0x140046686
mov ebx, 0xffff
mov edx, ebx
call fcn.140045660
cmp bx, ax
je 0x14004664d
mov rcx, qword [rbp + 0x68]
lea rdx, vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
mov qword [rsp + 0xa0], r15
mov rax, qword [rcx]
mov r10, qword [rax + 0x40]
cmp rax, rdx
jne 0x1400466a5
mov rbx, qword [rbp + 0x74]
lea rax, [rsp + 0x40]
lea r9, [rcx + 0x10]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
xor edx, edx
lea r8, [rbp + 0x74]
xor edi, edi
call fcn.1400f95e0
mov rsi, qword [rsp + 0x30]
mov ecx, eax
test eax, eax
jg 0x1400465e1
mov edi, 2
jmp 0x140046637
dec ecx
mov qword [rsp + 0x98], r14
lea rax, [rsp + 0x60]
movsxd r14, ecx
sub rax, rsi
cmp rax, r14
jge 0x14004660e
mov r14, qword [rsp + 0x98]
mov edi, 1
mov qword [rbp + 0x74], rbx
jmp 0x140046637
test ecx, ecx
jle 0x14004662f
mov r8, r14
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140081290
mov rsi, qword [rsp + 0x30]
add rsi, r14
mov qword [rsp + 0x30], rsi
mov r14, qword [rsp + 0x98]
mov r15, qword [rsp + 0xa0]
test edi, edi
je 0x140046651
sub edi, 1
je 0x140046655
cmp edi, 2
je 0x140046686
xor al, al
jmp 0x140046688
mov byte [rbp + 0x72], 0
lea rax, [rsp + 0x40]
sub rsi, rax
je 0x14004667d
mov r9, qword [rbp + 0x80]
lea rcx, [rsp + 0x40]
mov r8, rsi
mov edx, 1
call fcn.1400ac560
cmp rsi, rax
jne 0x14004664d
cmp byte [rbp + 0x72], 0
sete al
jmp 0x140046688
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140050f90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x74]
call r10
mov rsi, qword [rsp + 0x30]
mov edi, eax
jmp 0x140046637

Function at 0x1400480c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov rax, qword [0x1401a5020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140081700
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
test eax, eax
jns 0x14004814e
xor r8d, r8d
lea rdx, [0x14015c230]
mov rcx, rbx
call fcn.140002170
jmp 0x140048178
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x140048160
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002170
nop
mov dword [rsp + 0x30], 1
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140050f90
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140048b80
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401a5020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rbx, [0x1401b9890]
mov eax, dword [rdx + rcx]
cmp dword [0x1401b9888], eax
jg 0x140048d4a
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140048be8
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140048d18
cmp qword [0x1401b98a8], 8
cmovae rbx, qword [0x1401b9890]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140048c14
mov rcx, qword [rdi]
mov rax, qword [0x1401b98a0]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov rdx, qword [rdi + 0x10]
call fcn.140023440
mov r8, rax
cmp rax, 0xffffffffffffffff
je 0x140048cef
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1401627f0]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], bp
cmp qword [rdi + 0x10], rax
cmovb r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140048c6b
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
call fcn.140002170
mov ebx, 1
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x40]
call fcn.140048b80
test al, al
sete sil
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140048cd3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048cce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048d44
call fcn.1400514f4
movdqa xmm0, xmmword [0x1401627f0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], bp
test sil, sil
je 0x140048cef
xor al, al
jmp 0x140048d21
cmp qword [rdi + 0x18], 8
jb 0x140048cf9
mov rdi, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140048d1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
jmp 0x140048d21
test eax, 0x410
je 0x140048ceb
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140050f90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140090478
int3
lea rcx, [0x1401b9888]
call fcn.140052110
cmp dword [0x1401b9888], 0xffffffff
jne 0x140048bdb
movdqa xmm0, xmmword [0x1401627f0]
movdqu xmmword [0x1401b98a0], xmm0
mov word [0x1401b9890], bp
mov r8d, 2
lea rdx, [0x140161680]
mov rcx, rbx
call fcn.140002170
lea rcx, [0x14013ad40]
call fcn.1400514dc
nop
lea rcx, [0x1401b9888]
call fcn.1400520b0
jmp 0x140048bdb
Function at 0x1400495f0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
xor edx, edx
add rcx, 0x2c
mov r8d, 0x208
call fcn.140081700
test rbx, rbx
je 0x140049638
cmp byte [rbx], 0
je 0x140049638
mov r8d, 0x207
lea rcx, [rdi + 0x2c]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
xor r13d, r13d
lea rcx, [rdi + 0x234]
mov qword [rdi], r13
xor edx, edx
mov qword [rdi + 8], r13
mov r8d, 0x208
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov qword [rdi + 0x20], r13
mov dword [rdi + 0x28], r13d
call fcn.140081700
xor edx, edx
lea rcx, [rdi + 0x43c]
mov r8d, 0x208
call fcn.140081700
xor edx, edx
lea rcx, [rdi + 0x644]
mov r8d, 0x208
call fcn.140081700
lea rdx, [rsp + 0xa0]
lea rcx, [rdi + 0x2c]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebp, eax
test eax, eax
je 0x140049802
lea edx, [rax + 1]
mov ecx, edx
mov ebx, edx
call fcn.1400517e4
mov r8d, ebx
mov qword [rdi], rax
xor edx, edx
mov rcx, rax
call fcn.140081700
mov r9, qword [rdi]
lea rcx, [rdi + 0x2c]
mov edx, dword [rsp + 0xa0]
mov r8d, ebp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x140049802
mov rcx, qword [rdi]
mov qword [rsp + 0xb0], r13
test rcx, rcx
je 0x140049802
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0xb0]
lea rdx, [0x14016174c]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x140049802
mov rax, qword [rsp + 0xb0]
lea r8, [rdi + 0x234]
lea rdx, [0x140161720]
movups xmm1, xmmword [rax]
movups xmm2, xmmword [rax + 0x10]
movups xmm3, xmmword [rax + 0x20]
movdqa xmm0, xmm1
psrldq xmm0, 8
movd eax, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
shr eax, 0x10
mov word [rdi + 0xc], ax
pextrw eax, xmm1, 4
psrldq xmm1, 8
movq rcx, xmm1
shr rcx, 0x20
mov word [rdi + 0xe], ax
mov eax, ecx
shr eax, 0x10
mov word [rdi + 0x10], ax
mov word [rdi + 0x12], cx
movq rcx, xmm2
movd eax, xmm2
shr rcx, 0x20
mov word [rdi + 0x1a], cx
shr eax, 0x10
mov word [rdi + 0x14], ax
movd eax, xmm2
psrldq xmm2, 8
mov word [rdi + 0x16], ax
mov eax, ecx
shr eax, 0x10
mov rcx, rdi
mov word [rdi + 0x18], ax
movq rax, xmm2
movd dword [rdi + 0x20], xmm3
shr rax, 0x20
psrldq xmm3, 8
mov dword [rdi + 0x1c], eax
movd dword [rdi + 0x24], xmm0
movd dword [rdi + 0x28], xmm3
call fcn.140049c00
lea r8, [rdi + 0x644]
mov rcx, rdi
lea rdx, [0x140161730]
call fcn.140049c00
lea r8, [rdi + 0x43c]
mov rcx, rdi
lea rdx, [0x140161740]
call fcn.140049c00
mov rbx, qword [rsp + 0xb8]
mov rax, rdi
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14004a090
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1401b1d2c], 0
mov rbx, rcx
jle 0x14004a0da
lea rcx, [0x1401b7670]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
mov r8d, eax
lea rdx, [0x1401b7670]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x1401b1d2c], 0
add rsp, 0x30
pop rbx
ret
Function at 0x14004a0e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov eax, dword [0x1401b1d2c]
lea r14, [0x1401b7670]
mov rdi, rdx
mov rbx, rcx
cmp eax, 0x1c00
jle 0x14004a145
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, eax
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x78]
xor eax, eax
mov dword [0x1401b1d2c], eax
movsxd rbx, eax
lea rsi, [rsp + 0x80]
add rbx, r14
call fcn.140013b00
mov r9, rdi
mov qword [rsp + 0x28], rsi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x20], 0
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rax]
or rcx, 1
call fcn.1400ab90c
test eax, eax
cmovs eax, edi
add dword [0x1401b1d2c], eax
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004a5b0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x80
mov r12, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x54]
xor edx, edx
mov eax, 0x40000000
xor edi, edi
div rsi
mov r14d, edi
lea ebp, [rdi + 1]
mov r15, rax
shl r15, 2
test r15, r15
je 0x14004a678
mov qword [rsp + 0xa0], rbx
mov rcx, rdi
lea rdx, [rsp + 0x20]
imul rcx, rsi
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test rax, rax
je 0x14004a65d
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14004a65d
div rsi
cmp dword [rsp + 0x40], 0x1000
mov rbx, rax
jne 0x14004a668
mov rdx, qword [rsp + 0x28]
cmp rdx, r14
jbe 0x14004a668
mov r8d, ebp
mov rcx, r12
mov r14, rdx
call fcn.14004a230
test al, al
je 0x14004a668
inc ebp
jmp 0x14004a668
mov eax, 0x10000
div rsi
mov rbx, rax
add rdi, rbx
cmp rdi, r15
jb 0x14004a604
mov rbx, qword [rsp + 0xa0]
lea r11, [rsp + 0x80]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14004b590
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x180
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x1401a5020]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
lea r9, str.CrashDump.dmp
mov r8, rcx
lea rdx, str._s_s
lea rcx, [rsp + 0x60]
call fcn.14001b910
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x1401b98d8], eax
jg 0x14004b72b
xor ebp, ebp
mov eax, dword [rbx]
cmp dword [0x1401b98e8], eax
jg 0x14004b769
cmp qword [0x1401b98e0], 0
je 0x14004b6f7
cmp qword [0x1401b98f0], 0
je 0x14004b6f7
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004b6bd
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x44], rsi
mov dword [rsp + 0x4c], 1
cmp qword [0x1401b98f0], 0
je 0x14004b6b2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x120
mov r8, rdi
mov edx, ebx
call qword [0x1401b98f0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004b6f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Error_creating_dump_file__err_d
mov edx, 0x5800
lea rcx, [0x1401b1d60]
call fcn.14004c790
lea rcx, [0x1401b1d60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x1401b1d60]
call fcn.14004c730
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140050f90
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401b98e8]
call fcn.1400520b0
jmp 0x14004b60b
lea rcx, [0x1401b98d8]
call fcn.140052110
cmp dword [0x1401b98d8], 0xffffffff
jne 0x14004b5fb
lea rcx, str.Dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401b98e0], rax
lea rcx, [0x1401b98d8]
call fcn.1400520b0
jmp 0x14004b5fb
lea rcx, [0x1401b98e8]
call fcn.140052110
cmp dword [0x1401b98e8], 0xffffffff
jne 0x14004b60b
mov rcx, qword [0x1401b98e0]
test rcx, rcx
je 0x14004b7a7
lea rdx, str.MiniDumpWriteDump
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b98f0], rax
jmp 0x14004b71a
mov qword [0x1401b98f0], rbp
jmp 0x14004b71a
Function at 0x140056388
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14005639b
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1400637d4
lea rdx, [0x14019c750]
lea rcx, [rsp + 0x20]
call fcn.140081198
int3

Function at 0x140064c44
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1401b00a8]
xor edx, edx
jmp fcn.140056388

Function at 0x1400666ac
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1401b00a8]
jmp fcn.140056388

Function at 0x140078040
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140078120]
mov r9, qword [r9 + 8]
jmp fcn.140060acc

Function at 0x1400780f8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140078130]
mov r9, qword [r9 + 8]
jmp fcn.140060acc

Function at 0x1400ae07c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400ade04
Function at 0x1400be9a0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400be64e
call fcn.140090044
mov dword [rax], 0x16
call fcn.140090458
jmp 0x1400be799
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400be799
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400be799
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400be67d
lock or dword [rcx + 0x14], 0x10
jmp 0x1400be799
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400be691
call fcn.1400ce2e8
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1400be6a1
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1400be6a4
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1400b700c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1400bdf48
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400be787
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400be735
mov rcx, rbx
call fcn.1400b700c
cmp eax, 0xffffffff
je 0x1400be720
mov rcx, rbx
call fcn.1400b700c
cmp eax, 0xfffffffe
je 0x1400be720
mov rcx, rbx
call fcn.1400b700c
movsxd rdi, eax
lea r14, [0x1401b0fd0]
mov rcx, rbx
sar rdi, 6
call fcn.1400b700c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400be727
lea rdx, [0x1401a5420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400be735
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400be759
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400be759
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400be759
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1400be777
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1400be782
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1400be79e
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400be618
Function at 0x140061c5d
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400cc900
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1401ae1a4]
call fcn.140065ea2
mov qword [rbp + 8], 0
jmp 0x1400cc93e
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1400cc994
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x1400cc933
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000b880]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000b890]
mov dword [rax], 1
mov rax, qword [0x14000b8a0]
mov dword [rax], 1
mov rax, qword [0x14000b820]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000b870]
mov dword [0x14000e020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000b950]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000b930]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000b7d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0b4]
mov rbx, rcx
test esi, esi
jle 0x140001bd0
mov rax, qword [0x14000e0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001aeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ad0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001bf2
mov rax, qword [0x14000e0b8]
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 [0x14000e0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b80
add dword [0x14000e0b4], 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 [0x14000e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b6e
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 0x140001af8
mov rax, qword [0x14000e0b8]
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]