joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017070
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
mov eax, 0x80
mov edi, edx
mov rbx, rcx
cmp word [rcx], ax
jb 0x140017098
xor eax, eax
jmp 0x1400171e6
cmp word [rcx], 0x20
jbe 0x1400171e1
cmp word [rcx], 0x7f
je 0x1400171e1
cmp word [rcx], 0x25
jne 0x14001713d
test r8b, 0x40
jne 0x1400171e1
cmp edx, 2
jle 0x1400170df
movzx ecx, word [rcx + 2]
call fcn.14000a124
test eax, eax
je 0x1400170df
movzx ecx, word [rbx + 4]
call fcn.14000a124
test eax, eax
jne 0x140017091
cmp edi, 5
jle 0x1400171e1
movzx eax, word [rbx + 2]
or ax, 0x20
cmp ax, 0x75
jne 0x1400171e1
movzx ecx, word [rbx + 4]
call fcn.14000a124
test eax, eax
je 0x1400171e1
movzx ecx, word [rbx + 6]
call fcn.14000a124
test eax, eax
je 0x1400171e1
movzx ecx, word [rbx + 8]
call fcn.14000a124
test eax, eax
je 0x1400171e1
movzx ecx, word [rbx + 0xa]
call fcn.14000a124
test eax, eax
jmp 0x1400171db
movzx ecx, word [rcx]
cmp ecx, 0x3d
jg 0x1400171b3
je 0x14001720f
cmp ecx, 0x27
jg 0x14001718d
je 0x140017184
cmp ecx, 0x21
je 0x14001720f
jle 0x140017091
cmp ecx, 0x23
jle 0x1400171e1
cmp ecx, 0x24
je 0x14001720f
cmp ecx, 0x26
jne 0x140017091
and r8d, 0x500000
jmp 0x14001720a
and r8d, 0x100020
jmp 0x14001720a
cmp ecx, 0x28
jl 0x140017091
cmp ecx, 0x2c
jle 0x14001720f
cmp ecx, 0x2f
je 0x14001720f
cmp ecx, 0x39
jle 0x140017091
cmp ecx, 0x3b
jle 0x14001720f
cmp ecx, 0x3c
jmp 0x1400171db
sub ecx, 0x3e
je 0x1400171e1
dec ecx
je 0x140017221
dec ecx
je 0x14001720f
sub ecx, 0x1b
je 0x1400171f6
sub ecx, 2
je 0x1400171f6
dec ecx
je 0x1400171e1
sub ecx, 2
je 0x1400171e1
sub ecx, 0x1b
je 0x1400171e1
cmp ecx, 2
jne 0x140017091
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbp
ret
test r9d, r9d
jne 0x140017091
shr r8d, 0x1d
not r8d
and r8d, 1
mov eax, r8d
jmp 0x1400171e6
test r9d, r9d
jne 0x140017091
and r8d, 0x100000
jmp 0x14001720a
and r8d, 0x140000
jmp 0x14001720a
Function at 0x140019250
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1090
call fcn.140005cf8
sub rsp, rax
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x40], rax
mov r13, rcx
mov ecx, 0x1c9181
mov esi, edx
mov dword [rsp + 0x20], edx
call fcn.14002cdf4
lea r15, [r13 + 0xd0]
mov rax, qword [r15]
xor r12d, r12d
mov rcx, r15
mov r14d, r12d
call qword [rax + 0x18]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8d, 0x824
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, eax
test eax, eax
jne 0x1400193a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001943b
lea r12, [r13 + 0xd0]
mov rcx, r12
mov rbx, qword [r12]
call qword [rbx + 0x30]
mov rcx, r12
mov edx, eax
call qword [rbx + 0x170]
mov rcx, r12
mov rdi, rax
mov rax, qword [r12]
call qword [rax + 0x30]
mov r8d, 0x5c
mov rcx, rdi
mov edx, eax
call fcn.140009fc4
mov rsi, rax
xor eax, eax
test rsi, rsi
je 0x14001943b
lea rdx, [rsp + 0x30]
mov r8d, 0x824
mov rcx, rdi
mov word [rsi], ax
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, eax
mov eax, 0x5c
mov word [rsi], ax
lea eax, [rbx - 1]
cmp eax, 0x823
ja 0x140019393
mov rax, rsi
sub rax, rdi
sar rax, 1
cmp ebx, eax
jbe 0x14001935d
mov ecx, 0x1c9183
call fcn.14002cdf4
mov eax, 0x825
or rdi, 0xffffffffffffffff
xor ecx, ecx
sub eax, ebx
test eax, eax
jle 0x140019388
lea rcx, [rsp + 0x30]
movsxd rdx, eax
mov r9, rdi
lea rcx, [rcx + rbx*2]
mov r8, rsi
call qword [sym.imp.MSVCR100.dll_wcsncpy_s]
xor ecx, ecx
inc rdi
cmp word [rsi + rdi*2], cx
jne 0x140019388
add ebx, edi
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x178]
mov esi, dword [rsp + 0x20]
lea eax, [rbx - 1]
cmp eax, 0x823
ja 0x14001943b
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x14001943b
test rax, rax
je 0x1400193db
lea rcx, [rsp + 0x30]
mov rdx, rax
call sub.MSVCR100.dll_wcscmp
test eax, eax
je 0x14001943b
cmp ebx, 0x104
ja 0x14001943b
lea rdi, [r13 + 0xd0]
lea rdx, [rsp + 0x30]
mov r8d, ebx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
test eax, eax
jne 0x140019406
mov eax, 0x8007000e
jmp 0x14001943e
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
mov rcx, rdi
mov rbx, rax
mov rax, qword [rdi]
call qword [rax + 0x30]
mov r9d, esi
mov rdx, rbx
mov r8d, eax
mov rcx, r13
call fcn.1400180f8
mov r14d, eax
test eax, eax
js 0x14001943e
mov rcx, r13
call fcn.1400158a4
mov eax, r14d
mov rcx, qword [rbp - 0x40]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x10e0]
add rsp, 0x1090
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019468
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1090
call fcn.140005cf8
sub rsp, rax
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x40], rax
lea r14, [rcx + 0xd0]
xor eax, eax
mov r13, rcx
mov r15d, eax
mov rax, qword [r14]
mov rcx, r14
mov r12d, edx
mov dword [rsp + 0x20], edx
call qword [rax + 0x18]
lea rdi, [r13 + 0xd0]
mov rbx, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
mov rcx, rbx
mov edx, eax
call fcn.140018848
test eax, eax
je 0x140019662
mov ecx, 0x1c9185
call fcn.14002cdf4
mov r11, qword [r14]
mov rcx, r14
call qword [r11 + 0x18]
lea rdx, [rsp + 0x30]
mov r8d, 0x824
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
test eax, eax
jne 0x1400195d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140019662
mov rbx, qword [rdi]
mov rcx, rdi
call qword [rbx + 0x30]
mov rcx, rdi
mov edx, eax
call qword [rbx + 0x170]
mov rcx, rdi
mov r12, rax
mov rax, qword [rdi]
call qword [rax + 0x30]
lea r8d, [rsi + 0x5c]
mov rcx, r12
mov edx, eax
call fcn.140009fc4
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x1400195c1
lea rdx, [rsp + 0x30]
mov r8d, 0x824
mov rcx, r12
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
mov eax, 0x5c
mov word [rbx], ax
lea eax, [rsi - 1]
cmp eax, 0x823
ja 0x1400195c1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
mov r11d, eax
mov rax, rbx
sub rax, r12
sar rax, 1
sub r11d, eax
lea r12d, [r11 + rsi]
cmp r12d, 0x824
ja 0x1400195be
lea eax, [r11 + 1]
lea rcx, [rsp + 0x30]
mov rdx, rbx
movsxd r8, eax
lea rcx, [rcx + rsi*2]
add r8, r8
call sub.MSVCR100.dll_memcpy
mov esi, r12d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x178]
mov r12d, dword [rsp + 0x20]
lea eax, [rsi - 1]
cmp eax, 0x823
ja 0x140019662
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x140019662
test rax, rax
je 0x140019609
lea rcx, [rsp + 0x30]
mov rdx, rax
call sub.MSVCR100.dll_wcscmp
test eax, eax
je 0x140019662
cmp esi, 0x104
ja 0x140019662
mov rax, qword [rdi]
lea rdx, [rsp + 0x30]
mov r8d, esi
mov rcx, rdi
call qword [rax + 0x50]
test eax, eax
jne 0x14001962d
mov eax, 0x8007000e
jmp 0x140019665
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
mov rcx, rdi
mov rbx, rax
mov rax, qword [rdi]
call qword [rax + 0x30]
mov r9d, r12d
mov rdx, rbx
mov r8d, eax
mov rcx, r13
call fcn.1400180f8
mov r15d, eax
test eax, eax
js 0x140019662
mov rcx, r13
call fcn.1400158a4
mov eax, r15d
mov rcx, qword [rbp - 0x40]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x10e0]
add rsp, 0x1090
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001fdb0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x14017c0a0], 0
mov rsi, r8
mov edi, edx
mov rbx, rcx
jne 0x14001fde9
mov edx, 0x8ff000ff
jmp 0x14001fe86
test r8, r8
je 0x14001fe81
xor edx, edx
cmp qword [0x14017b6f0], rdx
jne 0x14001fe08
call fcn.140020738
mov edx, eax
test eax, eax
js 0x14001fe19
cmp qword [0x14017b710], 0
jne 0x14001fe19
call fcn.14002097c
mov edx, eax
test edx, edx
js 0x14001fe86
mov r8, qword [0x14017b6f8]
cmp rbx, r8
jae 0x14001fe36
shl rbx, 6
add rbx, qword [0x14017b6f0]
jmp 0x14001fe57
mov rcx, qword [0x14017b718]
add rcx, r8
cmp rbx, rcx
jae 0x14001fe55
sub rbx, r8
shl rbx, 6
add rbx, qword [0x14017b710]
jmp 0x14001fe57
xor ebx, ebx
test rbx, rbx
je 0x14001fe81
test byte [rbx + 0x33], 4
jne 0x14001fe79
mov rcx, rbx
call fcn.1400227a8
mov edx, eax
test eax, eax
jns 0x14001fe79
cmp eax, 0x8007000e
je 0x14001fe86
xor edx, edx
dec edi
je 0x14001fea2
dec edi
je 0x14001feb9
mov edx, 0x80004005
mov eax, edx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x14001feb9
cmp byte [rbx + 0x32], 0
jbe 0x14001feb9
movzx eax, byte [rax]
mov qword [rsi], rax
jmp 0x14001fe86
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x20]
mov r9d, 3
mov edx, 0x1009
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x14001fe81
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll__wtoi]
mov rdx, rsi
mov ecx, eax
call fcn.14001fc88
mov edx, eax
jmp 0x14001fe86
Function at 0x140021b78
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x290
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
and dword [rsp + 0x30], 0
mov rbx, rcx
lea rcx, [0x14017c078]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [rbx + 0x33], 2
jne 0x140021d76
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x140021bde
lea rcx, [0x14017c0a8]
call fcn.140027b64
and qword [rbx + 0x20], rsi
mov byte [rbx + 0x31], sil
mov rcx, qword [rbx + 8]
mov edi, 8
lea r8, [rsp + 0x70]
mov r9d, edi
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x140021ce0
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x70]
lea rdx, str.CpgScript
mov qword [rsp + 0x20], rcx
xor ecx, ecx
xor r9d, r9d
call fcn.140023a38
mov dword [rsp + 0x30], eax
test eax, eax
js 0x140021ce0
lea rcx, [rdi - 9]
mov eax, edi
lea esi, [rdi - 7]
mul qword [rsp + 0x48]
cmovo rax, rcx
lea rcx, [0x14017c0a8]
mov rdx, rax
call fcn.140027b20
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140021cf8
xor edi, edi
cmp qword [rsp + 0x48], rdi
jbe 0x140021ca7
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + rdi*8]
call fcn.14001dde8
mov dword [rsp + 0x30], eax
test eax, eax
js 0x140021c96
movzx edx, byte [rbx + 0x31]
mov rcx, qword [rbx + 0x20]
mov rax, qword [rsp + 0x38]
mov qword [rcx + rdx*8], rax
inc byte [rbx + 0x31]
jmp 0x140021c9d
cmp eax, 0x8007000e
je 0x140021cc2
inc rdi
cmp rdi, qword [rsp + 0x48]
jb 0x140021c65
cmp byte [rbx + 0x31], 0
jne 0x140021d64
mov rax, qword [rbx + 0x20]
mov byte [rbx + 0x31], sil
and qword [rax], 0
jmp 0x140021d64
mov rdx, qword [rbx + 0x20]
lea rcx, [0x14017c0a8]
call fcn.140027b64
and qword [rbx + 0x20], 0
mov byte [rbx + 0x31], 0
jmp 0x140021d76
lea rcx, [0x14017c0a8]
mov rdx, rdi
call fcn.140027b20
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140021d02
mov dword [rsp + 0x30], 0x8007000e
jmp 0x140021d76
mov byte [rbx + 0x31], 1
and qword [rax], rsi
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x80]
mov r9d, 0x100
mov edx, 4
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x140021d64
and dword [rsp + 0x38], esi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.1400216c0
test rax, rax
je 0x140021d5a
mov ecx, dword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140025e68
mov rcx, qword [rbx + 0x20]
mov qword [rcx], rax
cmp dword [rsp + 0x30], 0x8007000e
je 0x140021d76
cmp dword [rbx + 0x10], 0xc00
je 0x140021d71
or byte [rbx + 0x33], 2
and dword [rsp + 0x30], 0
lea rcx, [0x14017c078]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x140021d91
lea rcx, [rsp + 0x40]
call fcn.140023ae0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140026114
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
push rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x20], rax
or qword [rsp + 0x30], 0xffffffffffffffff
xor esi, esi
mov rdi, rdx
mov ebx, 0x80004005
test rdx, rdx
je 0x1400261f2
cmp rcx, qword [0x14017b6f8]
jb 0x1400261f2
lea r8d, [rsi + 0x55]
lea rdx, [rsp + 0xf0]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call fcn.14001e5c0
test eax, eax
js 0x1400261f2
lea r9d, [rsi + 0x55]
lea r8, [rsp + 0x40]
lea edx, [rsi + 0x6e]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1400261a8
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14001e5a8
test eax, eax
jns 0x1400261e3
mov r9d, 0x55
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0xf0]
lea edx, [r9 - 0x54]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1400261f2
lea rcx, [rsp + 0x40]
call fcn.140020640
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.14001e254
test eax, eax
js 0x1400261f2
mov rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
mov qword [rdi], rcx
cmovne ebx, esi
mov eax, ebx
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140028eb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x770
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rcx, qword [rcx + 0x38]
mov bl, r8b
cmp rcx, 0xffffffffffffffff
jne 0x140028f17
lea edx, [rcx + 0x16]
lea r8, str.trying_to_write_to_a_from_a_file_thats_not_open
lea rcx, [rsp + 0x3d0]
call fcn.140029554
lea rcx, [rsp + 0x40]
mov r8d, 0x388
mov rdx, rax
call sub.MSVCR100.dll_memcpy
lea rdx, [0x14010c350]
lea rcx, [rsp + 0x40]
call sub.MSVCR100.dll__CxxThrowException
int3
and dword [rsp + 0x30], 0
cmp qword [rdx + 0x18], 0x10
jb 0x140028f28
mov rax, qword [rdx]
jmp 0x140028f2b
mov rax, rdx
mov r8d, dword [rdx + 0x10]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140028f96
test bl, bl
je 0x140028f92
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.write_to_file_failed
lea rcx, [rsp + 0x3d0]
mov r8d, eax
mov edx, 0xf
call fcn.140003ba4
lea rcx, [rsp + 0x40]
mov r8d, 0x388
mov rdx, rax
call sub.MSVCR100.dll_memcpy
lea rdx, [0x14010c350]
lea rcx, [rsp + 0x40]
call sub.MSVCR100.dll__CxxThrowException
int3
xor al, al
jmp 0x140028f98
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x790]
add rsp, 0x770
pop rbp
ret

Function at 0x140029134
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x760
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x140029167
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140029209
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140029209
cmp eax, 5
jne 0x1400291b6
lea edx, [rax + 0x7b]
mov r8b, dil
mov rcx, rbx
call fcn.14002922c
cmp qword [rbx + 0x18], 8
jb 0x1400291a3
mov rcx, qword [rbx]
jmp 0x1400291a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140029209
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140029209
test dil, dil
je 0x140029205
lea r9, str.failed_to_delete_file__s
lea rcx, [rsp + 0x3c0]
mov r8d, eax
mov edx, 0xf
mov qword [rsp + 0x20], rbx
call fcn.140029478
lea rcx, [rsp + 0x30]
mov r8d, 0x388
mov rdx, rax
call sub.MSVCR100.dll_memcpy
lea rdx, [0x14010c350]
lea rcx, [rsp + 0x30]
call sub.MSVCR100.dll__CxxThrowException
int3
xor al, al
jmp 0x14002920b
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x760]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14002922c
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x770
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp qword [rcx + 0x18], 8
mov dil, r8b
mov rbx, rcx
mov dword [rsp + 0x30], edx
jb 0x140029263
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400292c8
test dil, dil
je 0x1400292c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Cannot_set_file__s_attbutes_to__u
lea rcx, [rsp + 0x3d0]
mov r8d, eax
lea rax, [rsp + 0x30]
mov edx, 0xf
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.1400295fc
lea rcx, [rsp + 0x40]
mov r8d, 0x388
mov rdx, rax
call sub.MSVCR100.dll_memcpy
lea rdx, [0x14010c350]
lea rcx, [rsp + 0x40]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x770]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14002affc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
push rsi
push rdi
sub rsp, 0x790
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x20], rax
cmp qword [rcx + 0x18], 8
mov rsi, r8
mov dil, dl
mov rbx, rcx
jb 0x14002b02f
mov rcx, qword [rcx]
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14002b04e
cmp dword [rsp + 0x30], 0xffffffff
je 0x14002b04e
test byte [rsp + 0x30], 0x10
jne 0x14002b0bf
cmp qword [rbx + 0x18], 8
jb 0x14002b05a
mov rcx, qword [rbx]
jmp 0x14002b05d
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14002b0bf
test dil, dil
je 0x14002b0bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateDirectory_failed_for_directory:__s
lea rcx, [rsp + 0x3f0]
mov edx, 0xf
mov r8d, eax
mov qword [rsp + 0x20], rbx
call fcn.14002b0e0
lea rcx, [rsp + 0x60]
mov r8d, 0x388
mov rdx, rax
call sub.MSVCR100.dll_memcpy
lea rdx, [0x14010c350]
lea rcx, [rsp + 0x60]
call sub.MSVCR100.dll__CxxThrowException
int3
xor al, al
jmp 0x14002b0c1
mov al, 1
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x7b8]
add rsp, 0x790
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002c578
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x378
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x50], rax
movsxd rdi, ecx
mov ecx, dword [0x1401323e8]
mov esi, r9d
mov qword [rsp + 0x40], r8
mov r15d, edx
cmp ecx, 0xffffffff
je 0x14002c760
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r14d, r14d
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002c760
cmp dword [rax], r14d
jne 0x14002c760
mov dword [rax], 1
cmp edi, 0x7e
ja 0x14002c75d
mov rdi, qword [rax + rdi*8 + 8]
test rdi, rdi
je 0x14002c75d
lea rcx, [rsp + 0x152]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x150], r14w
call sub.MSVCR100.dll_memset
mov r12d, r14d
mov r14d, esi
and r14d, 3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov rcx, rdi
mov r13d, eax
call fcn.14002c94c
cmp eax, dword [rdi + 0x28]
jg 0x14002c675
mov ecx, dword [rdi + 0x60]
cmp dword [rdi + 0x64], ecx
jae 0x14002c675
test byte [rdi + 8], 1
jne 0x14002c675
test dword [rdi + 8], 0x400
jne 0x14002c675
test sil, 0x10
jne 0x14002c675
cmp dword [0x14017c190], r12d
je 0x14002c675
xor r9d, r9d
lea r8, [rsp + 0x50]
lea edx, [r9 + 0x20]
lea ecx, [rdx - 0x1f]
call qword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
movzx r12d, ax
mov rbx, qword [rsp + 0x40]
mov rsi, rdi
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x150]
mov r9d, r13d
mov r8d, r15d
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14002ca5c
test byte [rsi + 8], 2
jne 0x14002c6bd
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14002c67d
mov rbx, qword [rsp + 0x48]
test r14d, r14d
jne 0x14002c706
test byte [0x14017c140], 2
je 0x14002c706
mov rax, qword [rsp + 0x40]
mov r9d, dword [rdi + 0x4c]
mov r8d, dword [rdi + 0x48]
mov rcx, qword [0x14017c148]
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x30], r13d
lea rdx, [0x1400e2a80]
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call fcn.14002c780
cmp dword [rdi + 0x10], 0xffffffff
je 0x14002c758
movsxd rax, dword [rdi + 0x10]
mov rdi, qword [rbx + rax*8 + 8]
jmp 0x14002c753
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x150]
mov r9d, r13d
mov r8d, r15d
mov edx, r14d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14002ca5c
test byte [rdi + 8], 2
jne 0x14002c758
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14002c717
and dword [rbx], 0
jmp 0x14002c760
mov dword [rax], r14d
mov rcx, qword [rbp - 0x50]
xor rcx, rsp
call fcn.1400056f0
add rsp, 0x378
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14002e3a8
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x40], rax
mov r13, rcx
mov dword [rsp + 0x44], edx
mov edi, 0x104
lea rcx, [rsp + 0x70]
mov edx, edi
mov byte [rsp + 0x40], r8b
call fcn.1400318b0
xor r12d, r12d
test eax, eax
jne 0x14002e41f
or rax, 0xffffffffffffffff
mov rcx, qword [rbp - 0x40]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r15, [rsp + 0x70]
cmp word [rsp + 0x70], r12w
je 0x14002e436
add r15, 2
cmp word [r15], r12w
jne 0x14002e42c
mov esi, 1
mov ecx, esi
call fcn.140031828
mov rcx, qword [0x140131a48]
call fcn.14000bcfc
cmp eax, 0x64
mov ebx, eax
mov dword [rsp + 0x48], eax
cmova ebx, esi
lea rax, [rsp + 0x70]
mov rsi, r15
sub rsi, rax
sar rsi, 1
or r14, 0xffffffffffffffff
lea r8, [0x1400e3540]
lea rcx, [rsp + 0x50]
mov r9d, ebx
mov rdx, r14
call fcn.14002f6d8
test rsi, rsi
js 0x14002e5fc
cmp rsi, rdi
ja 0x14002e5f5
mov rax, rdi
sub rax, rsi
cmp rax, 0x7fffffff
ja 0x14002e5ee
lea rcx, [rsp + 0x50]
mov r8d, eax
mov rdx, r15
call fcn.14000aa68
mov eax, 1
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov r8d, eax
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], eax
call fcn.14008b238
mov r12, rax
cmp rax, r14
jne 0x14002e59c
cmp ebx, 0x64
mov r12d, 0
sbb eax, eax
and ebx, eax
inc ebx
cmp ebx, dword [rsp + 0x48]
jne 0x14002e46c
lea r8, [0x1400e3540]
lea rcx, [rsp + 0x50]
mov r9d, ebx
mov rdx, r14
call fcn.14002f6d8
test rsi, rsi
jns 0x14002e52e
call qword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rsi, rdi
ja 0x14002e5e7
sub rdi, rsi
cmp rdi, 0x7fffffff
jbe 0x14002e54a
call qword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rsp + 0x50]
mov r8d, edi
mov rdx, r15
call fcn.14000aa68
mov edi, 0x80
lea rcx, [rsp + 0x70]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [rdi - 0x7f]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], eax
and qword [rsp + 0x30], r12
xor r9d, r9d
mov r8d, eax
mov edx, 0xc0000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call fcn.14008b238
mov r12, rax
cmp ebx, 0x64
sbb edx, edx
and edx, ebx
cmp byte [rsp + 0x40], 0
je 0x14002e5b8
mov rcx, qword [0x140131a48]
inc edx
call fcn.14000bd2c
call fcn.14002e1a8
test r13, r13
je 0x14002e5df
movsxd rax, dword [rsp + 0x44]
test eax, eax
jle 0x14002e5df
lea r8, [rsp + 0x70]
mov rdx, rax
mov r9, r14
mov rcx, r13
call qword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov rax, r12
jmp 0x14002e3f8
call qword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
int3