joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000892d
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rbx, rcx
mov rsi, rdx
mov r13, r8
test rcx, rcx
je 0x140008b5a
mov rdx, qword [rcx]
cmp r8, rdx
jge 0x140008b6c
jb 0x14000896d
dec rdx
mov rcx, r13
call fcn.140004ebf
cmp byte [rbx + r13 + 0x10], 0x2b
jne 0x140008b6c
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, r13
call fcn.1400088f0
test al, al
je 0x140008994
call fcn.140003c01
mov r12, qword [rsp + 0x38]
mov rdx, qword [rbx]
cmp r12, rdx
jl 0x1400089a8
xor eax, eax
jmp 0x140008b74
jb 0x1400089b5
dec rdx
mov rcx, r12
call fcn.140004ebf
mov al, byte [rbx + r12 + 0x10]
sub eax, 0x30
cmp al, 9
ja 0x1400089a1
mov qword [rsi], 0
movq xmm6, qword [0x140019db0]
movabs rdi, 0x7fffffffffffffff
mov rdx, qword [rbx]
cmp r12, rdx
jl 0x140008a04
lea r8, [rsp + 0x38]
mov rdx, r13
mov rcx, r12
call fcn.14000890c
test al, al
je 0x140008b53
call fcn.140003c01
jmp 0x140008b53
jb 0x140008a11
dec rdx
mov rcx, r12
call fcn.140004ebf
mov al, byte [rbx + r12 + 0x10]
sub eax, 0x30
cmp al, 9
ja 0x1400089e2
mov rdx, qword [rbx]
cmp r12, rdx
jb 0x140008a30
dec rdx
mov rcx, r12
call fcn.140004ebf
movzx ecx, byte [rbx + r12 + 0x10]
lea r8, [rsp + 0x28]
mov edx, 0x30
call fcn.14000890c
test al, al
je 0x140008a4e
call fcn.140003c01
mov r14, qword [rsp + 0x28]
lea rbp, [rsp + 0x30]
mov rcx, rdi
mov r8, rbp
mov rdx, r14
call fcn.14000890c
test al, al
je 0x140008a6f
call fcn.140003c01
mov rax, qword [rsp + 0x30]
mov r8d, 0xa
mov rcx, qword [rsi]
cqo
idiv r8
cmp rcx, rax
jle 0x140008a8c
mov qword [rsi], rdi
jmp 0x140008aeb
imul r15, rcx, 0xa
cvtsi2sd xmm1, rcx
mulsd xmm1, qword [0x140019da0]
cvtsi2sd xmm0, r15
ucomisd xmm1, xmm0
jp 0x140008aaa
je 0x140008aca
subsd xmm0, xmm1
movaps xmm2, xmm1
andps xmm2, xmm6
andps xmm0, xmm6
mulsd xmm0, qword [0x140019dc0]
comisd xmm2, xmm0
jae 0x140008aca
call fcn.140003c01
lea r8, [rsp + 0x38]
mov rdx, r14
mov rcx, r15
call fcn.1400088f0
test al, al
je 0x140008ae3
call fcn.140003c01
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
mov r8, rbp
mov edx, 1
mov rcx, r12
call fcn.1400088f0
test al, al
je 0x140008b04
call fcn.140003c01
mov r12, qword [rsp + 0x30]
lea rbp, [rsp + 0x38]
mov rdx, qword [rbx]
cmp r12, rdx
jge 0x1400089da
jb 0x140008b27
dec rdx
mov rcx, r12
call fcn.140004ebf
cmp byte [rbx + r12 + 0x10], 0x5f
jne 0x1400089da
mov r8, rbp
mov edx, 1
mov rcx, r12
call fcn.1400088f0
test al, al
je 0x140008b4c
call fcn.140003c01
mov r12, qword [rsp + 0x38]
jmp 0x140008b0e
mov rax, qword [rsp + 0x38]
jmp 0x140008b74
or rdx, 0xffffffffffffffff
test r8, r8
js 0x140008965
jmp 0x1400089a1
mov r12, r13
jmp 0x140008999
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140010bb0
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 0x140010bd8
mov eax, 0
jmp 0x140010c26
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 0x140010c01
mov eax, 0
jmp 0x140010c26
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 0x140010c21
mov eax, 0
jmp 0x140010c26
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140010c2c
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 0x140010caa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140010ca1
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 0x140010ca1
mov rax, qword [rbp - 8]
jmp 0x140010cbf
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 0x140010c74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800015d0
Capabilities:
Create thread
Set registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180014040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
cmp edx, 1
jne 0x1800016eb
xorps xmm0, xmm0
mov qword [rsp + 0x78], rdi
xor edi, edi
lea r8d, [rdx + 0xa]
lea rdx, str.lostark.exe
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], rdi
movups xmmword [rsp + 0x30], xmm0
call fcn.1800018f0
lea rcx, [rsp + 0x30]
call fcn.180001270
test al, al
je 0x1800016ce
movsxd r8, dword [rbx + 0x3c]
movabs rax, 0xaaaaaaaaaaaaaaab
mov ecx, dword [r8 + rbx + 0xa4]
mul rcx
mov ecx, dword [r8 + rbx + 0xa0]
mov r8, rbx
shr rdx, 3
add rcx, rbx
call qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
lea rcx, [0x18000f4bc]
mov dword [0x180014d10], 1
call fcn.18000c140
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 8
lea r9d, [rdi + 0xb]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [0x180014ad0], rbx
lea rdx, str.GameMessage
mov qword [rsp + 0x50], rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x180008e60]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x78]
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000c520
add rsp, 0x60
pop rbx
ret
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000c520
add rsp, 0x60
pop rbx
ret

Function at 0x180002a30
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 0x18], r8d
mov byte [rsp + 8], cl
push rbx
sub rsp, 0x30
mov ebx, r8d
movzx r8d, cl
mov qword [rsp + 0x20], r9
cmp edx, 1
jne 0x180002a73
mov rax, qword [0x180014348]
mov rdx, qword [rax]
cvttss2si eax, dword [rsp + 0x20]
mov dword [rdx + 0x4dc], eax
cvttss2si eax, dword [rsp + 0x24]
mov dword [rdx + 0x4e0], eax
jmp 0x180002aaa
mov rax, qword [0x180014340]
mov rcx, qword [rax]
mov rax, qword [rcx + 0x7c4]
mov rcx, qword [rax]
mov rax, qword [rcx + 0x58]
mov rcx, qword [rax + 0x848]
cvttss2si eax, dword [rsp + 0x20]
mov dword [rcx + 0x2c8], eax
cvttss2si eax, dword [rsp + 0x24]
mov dword [rcx + 0x2cc], eax
jmp 0x180002ac2
test r8b, r8b
je 0x180002aed
xor edx, edx
mov ecx, ebx
call fcn.180002990
mov edx, 1
mov ecx, ebx
call fcn.180002990
lea rcx, [0x18000f6a0]
add rsp, 0x30
pop rbx
jmp fcn.18000c140
add rsp, 0x30
pop rbx
ret
Function at 0x180009430
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x180008e60]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret

Function at 0x18000c140
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x750
mov rax, qword [0x180014040]
xor rax, rsp
mov qword [rsp + 0x730], rax
cmp dword [0x180014d10], 0
mov rbx, rcx
je 0x18000c20f
xor edx, edx
mov qword [r11 - 0x10], rdi
mov r8d, 0x3ff
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x31]
call sub.VCRUNTIME140.dll_memset
lea rdi, [rsp + 0x768]
call fcn.18000c320
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x430]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x300
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
lea r8, str._cow_:
mov edx, 0x400
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [rsp + 0x430]
mov edx, 0x400
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdi, qword [rsp + 0x748]
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.18000c520
add rsp, 0x750
pop rbx
ret

Function at 0x18000c230
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x750
mov rax, qword [0x180014040]
xor rax, rsp
mov qword [rsp + 0x730], rax
cmp dword [0x180014d10], 0
mov rbx, rcx
je 0x18000c2ff
xor edx, edx
mov qword [r11 - 0x10], rdi
mov r8d, 0x3ff
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x31]
call sub.VCRUNTIME140.dll_memset
lea rdi, [rsp + 0x768]
call fcn.18000c320
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x430]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x300
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
lea r8, str._QQ_:
mov edx, 0x400
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [rsp + 0x430]
mov edx, 0x400
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdi, qword [rsp + 0x748]
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.18000c520
add rsp, 0x750
pop rbx
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140015cb0
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 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016ff0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017010
xor al, al
jmp 0x140017091
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017023
xor al, al
jmp 0x140017091
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 0x14001704d
xor al, al
jmp 0x140017091
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017061
xor al, al
jmp 0x140017091
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017073
xor al, al
jmp 0x140017091
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001708f
xor al, al
jmp 0x140017091
mov al, 1
add rsp, 0x38
ret
Function at 0x140014880
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113a2
movzx eax, al
test eax, eax
jne 0x1400148a0
mov ecx, 7
call fcn.140011320
nop
mov byte [rsp + 0x20], 0
call fcn.140011334
mov byte [rsp + 0x21], al
cmp dword [0x1400208d8], 1
jne 0x1400148c4
mov ecx, 7
call fcn.140011320
nop
jmp 0x14001491c
cmp dword [0x1400208d8], 0
jne 0x140014917
mov dword [0x1400208d8], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.14001119f
test eax, eax
je 0x1400148f8
mov eax, 0xff
jmp 0x140014a21
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.14001132a
mov dword [0x1400208d8], 2
jmp 0x14001491c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001130c
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140014979
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140014979
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 [0x140026020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400149ad
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x1400149ad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011361
nop
call fcn.140014ad0
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x1400149cc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400149db
call fcn.14001136b
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140014a21
add rsp, 0x68
ret
Function at 0x1400018a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400018c1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400018ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400018f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001949
test ecx, ecx
jle 0x140001929
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001949
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001949
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140001970
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001992
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400019a1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400019c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400019c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001a02
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001a9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001a3d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140001a7e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140001a9e
cmp rbx, rax
ja 0x140001a50
test rbx, rbx
je 0x140001a9e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140001ed0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001efd
xor eax, eax
jmp 0x14000205a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140001f28
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140001f28
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14000205a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000204d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140001f6b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140001f96
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002052
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002005
sub eax, 1
je 0x140002005
cmp eax, 2
jne 0x14000204d
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002052
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002033
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000204d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002052
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002e20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002320
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400023f3
cmp byte [rcx + 0x71], 0
je 0x1400023f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400023ef
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400023b4
sub eax, 1
je 0x1400023b8
cmp eax, 2
jne 0x1400023ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002e20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400023e6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400023ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000239c
xor al, al
jmp 0x14000239c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002e20
add rsp, 0x60
pop rbx
ret

Function at 0x1400037b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400037fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400037fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400037fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400037fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400037fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003800
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4dab50
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 0x2fc4db552
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4db5ea
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4db5ce
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 0x2fc4db5c2
cmp qword [rbp - 0x10], 0
je 0x2fc4db5c2
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 0x2fc4db588
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db5eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db6f0
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 0x2fc4db718
mov eax, 0
jmp 0x2fc4db766
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 0x2fc4db741
mov eax, 0
jmp 0x2fc4db766
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 0x2fc4db761
mov eax, 0
jmp 0x2fc4db766
mov eax, 1
add rsp, 0x20
pop rbp
ret