joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001410
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call fcn.18000d130
mov r9, rax
cmp qword [rax + 0x60], 0
je 0x180001540
xor esi, esi
lea rbp, str.win32u.dll
mov rdi, qword [r9 + 0x30]
xor r10b, r10b
mov r11, qword [r9 + 0x60]
mov r9, qword [r9]
test rdi, rdi
je 0x180001536
movzx ebx, word [r9 + 0x58]
mov ecx, esi
test ebx, ebx
je 0x180001536
mov rax, rbp
sub r11, rbp
nop dword [rax]
movzx edx, word [r11 + rax]
test dx, dx
je 0x18000152d
movzx r8d, word [rax]
test r8w, r8w
je 0x18000152d
cmp dx, r8w
jne 0x180001536
inc ecx
add rax, 2
mov r10b, 1
cmp ecx, ebx
jl 0x180001470
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x180001540
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
jne 0x180001540
mov ecx, dword [rax + rdi + 0x88]
test ecx, ecx
je 0x180001540
mov r11d, dword [rdi + rcx + 0x1c]
lea rax, [rdi + rcx]
mov r9d, dword [rax + 0x20]
add r11, rdi
mov ebx, dword [rax + 0x24]
add r9, rdi
mov r10d, dword [rax + 0x18]
add rbx, rdi
test r10d, r10d
je 0x180001540
nop
mov eax, dword [r9]
xor dl, dl
add rax, rdi
cmp byte [rax], dl
je 0x18000155b
lea r8, str.NtUserGetAsyncKeyState
sub r8, rax
movzx ecx, byte [rax + r8]
test cl, cl
je 0x180001557
cmp byte [rax], cl
jne 0x18000155b
inc rax
mov dl, 1
cmp byte [rax], 0
jne 0x180001506
movsxd rax, esi
movzx ecx, word [rbx + rax*2]
mov eax, dword [r11 + rcx*4]
add rax, rdi
jmp 0x180001542
test r10b, r10b
jne 0x1800014a3
cmp qword [r9 + 0x60], rsi
jne 0x180001440
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test dl, dl
jne 0x18000151d
inc esi
add r9, 4
cmp esi, r10d
jb 0x1800014f0
jmp 0x180001540
Function at 0x180001990
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180037040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov eax, 0x5a4d
mov rdi, rcx
mov esi, r14d
cmp word [rcx], ax
je 0x1800019c9
mov ebx, r14d
jmp 0x1800019da
movsxd rbx, dword [rcx + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
cmovne rbx, r14
mov ebp, dword [rbx + 0x50]
lea rcx, [rsp + 0x28]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
call fcn.180001870
mov r10, qword [rsp + 0x30]
mov r9d, r14d
mov r11, qword [rsp + 0x28]
sub r10, r11
sar r10, 2
sub rbp, r10
je 0x180001a4f
mov rbx, r14
mov eax, r14d
test r10, r10
je 0x180001a40
mov rcx, r14
nop dword [rax]
mov r8d, dword [r11 + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rdi]
cmp ecx, r8d
je 0x180001a37
cmp r8d, 0xffffffff
jne 0x180001a44
inc eax
mov ecx, eax
cmp rcx, r10
jb 0x180001a20
lea rsi, [rbx + rdi]
inc r9d
mov ebx, r9d
cmp rbx, rbp
jb 0x180001a12
inc dword [0x180037a6c]
test r11, r11
je 0x180001a8f
mov rdx, qword [rsp + 0x38]
mov rax, r11
sub rdx, r11
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180001a87
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001ab5
mov rcx, r11
call fcn.18000da60
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000d320
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.1800168f8
int3
Function at 0x180002ba0
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x180037040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
mov rsi, rdx
mov rdx, qword [0x18003b720]
mov rbp, r8
mov rdi, rcx
mov r14, qword [rax + 0x208]
test rdx, rdx
jne 0x180002ca9
mov rax, qword gs:[0x60]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x50], 0x7865742e
mov byte [rsp + 0x54], 0x74
mov rbx, qword [rax + 0x10]
movsxd rcx, dword [rbx + 0x3c]
movzx eax, word [rcx + rbx + 0x14]
lea r8, [rcx + rbx]
add rax, 0x18
add r8, rax
movzx eax, word [rcx + rbx + 6]
lea rcx, [rax + rax*4]
lea r11, [r8 + rcx*8]
cmp r8, r11
je 0x180002c63
lea r9, [rsp + 0x50]
sub r9, r8
nop dword [rax]
lea r10, [r8 + 5]
mov rax, r8
cmp r8, r10
je 0x180002c63
nop dword [rax]
movsx edx, byte [r9 + rax]
movzx ecx, byte [rax]
cmp ecx, edx
jne 0x180002c56
inc rax
cmp rax, r10
jne 0x180002c40
jmp 0x180002c63
add r8, 0x28
sub r9, 0x28
cmp r8, r11
jne 0x180002c30
mov eax, dword [r8 + 8]
mov ecx, dword [r8 + 0xc]
add rcx, rbx
mov word [rsp + 0x30], 0x26ff
mov rbx, qword [rsp + 0x60]
lea rdx, [rax + rcx]
cmp rax, 2
jb 0x180002ca2
movzx eax, word [rsp + 0x30]
lea r8, [rdx - 2]
nop dword [rax]
cmp ax, word [rcx]
je 0x180002c9f
cmp rcx, r8
je 0x180002ca2
inc rcx
jmp 0x180002c90
mov rdx, rcx
mov qword [0x18003b720], rdx
xor eax, eax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov r8, rbp
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.18000d0f0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000d320
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000d130
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
ret

Function at 0x18000d150
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov rax, rdx
syscall
ret
Function at 0x18001cc4c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18001cc7c
xor eax, eax
jmp 0x18001cd3f
mov rbp, rbx
cmp word [rax], si
je 0x18001cca1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001cc88
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001cc84
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18001cb6c
movsxd r14, eax
test eax, eax
jne 0x18001ccdf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001cc75
mov rcx, r14
call fcn.180019750
mov rdi, rax
test rax, rax
jne 0x18001ccf8
xor ecx, ecx
call fcn.1800189f0
jmp 0x18001ccd4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18001cb6c
test eax, eax
jne 0x18001cd29
mov rcx, rdi
call fcn.1800189f0
jmp 0x18001cd33
xor ecx, ecx
call fcn.1800189f0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180022b08
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800386a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180022b5f
cmp word [rdx], r13w
jne 0x180022b5f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180022b64
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180022c89
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180022caa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180022b9d
mov rdx, r9
mov word [rbx], cx
jmp 0x180022bc4
cmp r9, r8
jae 0x180022bd4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180022b7e
jmp 0x180022c89
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180022c7e
cmp dword [rsp + 0x80], esi
je 0x180022c7e
lea r8, [0x1800386a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180022c56
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180022c26
mov word [rbx], r13w
jmp 0x180022c86
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180022c33
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180022c86
cmp word [rsp + 0x70], r13w
jne 0x180022c63
cmp rbx, r14
je 0x180022c20
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180022a28
cmp word [rsp + 0x70], r13w
je 0x180022c89
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800386a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180022c83
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180022c89
Function at 0x18002402c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180022a28
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180022a28
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18002417c
cmp rax, 0xffffffffffffffff
je 0x18002417c
xor edi, edi
test rbp, rbp
jle 0x180024127
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180018978
mov rbx, rax
test rax, rax
jne 0x1800240b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18002411d
mov edx, 0x8000
mov ecx, r14d
call fcn.180023eb0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18001e828
cmp eax, 0xffffffff
je 0x1800240fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800240c4
mov edx, r15d
mov ecx, r14d
call fcn.180023eb0
jmp 0x18002411d
cmp byte [rsi + 0x38], dil
je 0x180024114
cmp dword [rsi + 0x34], 5
jne 0x180024114
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18002411d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800189f0
jmp 0x180024190
jns 0x180024190
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180022a28
cmp rax, 0xffffffffffffffff
jne 0x180024148
cmp byte [rsi + 0x30], dil
je 0x180024190
mov edi, dword [rsi + 0x2c]
jmp 0x180024190
mov ecx, r14d
call fcn.18001efdc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180024190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180024190
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180024189
mov eax, dword [rsi + 0x2c]
jmp 0x18002418e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180022a28
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180025100
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180025128
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180025128
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140070172
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
jmp 0x140126e70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x578
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xea
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x598]
mov rax, qword [0x14019f058]
xor rax, rbp
mov qword [rbp + 0x518], rax
lea rcx, [0x1401be155]
call fcn.140074682
mov rcx, qword [rbp + 0x540]
call fcn.1400705c8
mov rdx, rax
lea rcx, [rbp + 0x198]
call fcn.140071f81
nop
lea rdx, [0x14017453c]
lea rcx, [rbp + 0x1d8]
call fcn.140071f81
nop
mov rcx, qword [rbp + 0x548]
call fcn.1400705c8
mov rdx, rax
lea rcx, [rbp + 0x218]
call fcn.140071f81
nop
lea r8, [rbp + 0x1d8]
lea rdx, [rbp + 0x198]
lea rcx, [rbp + 0x458]
call fcn.1400738bd
mov qword [rbp + 0x508], rax
mov rax, qword [rbp + 0x508]
mov qword [rbp + 0x510], rax
lea r8, [rbp + 0x218]
mov rdx, qword [rbp + 0x510]
lea rcx, [rbp + 0x258]
call fcn.140071798
nop
lea rcx, [rbp + 0x458]
call fcn.140070c8a
lea rcx, [rbp + 0x258]
call fcn.1400705c8
mov qword [rbp + 0x298], rax
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.140073480
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.140073480
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x298]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14012704b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_failed_GLE__d_._n
call fcn.1400720ee
mov dword [rbp + 0x494], 1
lea rcx, [rbp + 0x258]
call fcn.140070c8a
nop
lea rcx, [rbp + 0x218]
call fcn.140070c8a
nop
lea rcx, [rbp + 0x1d8]
call fcn.140070c8a
nop
lea rcx, [rbp + 0x198]
call fcn.140070c8a
mov eax, dword [rbp + 0x494]
jmp 0x14012711a
mov edx, dword [section..data]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x1401270bd
lea rax, [rbp + 0x4b8]
mov qword [rbp + 0x4f8], rax
mov rdx, qword [rbp + 0x548]
mov rcx, qword [rbp + 0x4f8]
call fcn.1400708a2
mov qword [rbp + 0x508], rax
mov rdx, qword [rbp + 0x508]
lea rcx, [rbp + 0xd0]
call fcn.140072e4a
mov dword [rbp + 0x2b4], eax
mov r8d, 0x10002
mov edx, dword [rbp + 0xd8]
mov ecx, dword [rbp + 0xd4]
call qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
jmp 0x14012704b
xor edx, edx
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x258]
call fcn.140070c8a
nop
lea rcx, [rbp + 0x218]
call fcn.140070c8a
nop
lea rcx, [rbp + 0x1d8]
call fcn.140070c8a
nop
lea rcx, [rbp + 0x198]
call fcn.140070c8a
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14016ea68]
call fcn.1400739c1
mov rax, rdi
mov rcx, qword [rbp + 0x518]
xor rcx, rbp
call fcn.1400721cf
lea rsp, [rbp + 0x528]
pop rdi
pop rbp
ret
Function at 0x14007062c
Capabilities:
Write file on windows

Disassembly:
jmp 0x14012f090
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401be127]
call fcn.140074682
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14012f0e7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14012f1f3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14012f18c
cmp qword [rbp + 0x28], 0
jle 0x14012f18c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14012f12c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140074191
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14012f1e2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14012f1e2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140072779
Capabilities:
Terminate process

Disassembly:
jmp 0x140149390
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]
add rsp, 0x28
ret
Function at 0x140072ce7
Capabilities:
Get geographical location

Disassembly:
jmp 0x140142520
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14014255d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140074646
add rsp, 0x58
ret
Function at 0x140073b83
Capabilities:
Create directory

Disassembly:
jmp 0x140143f60
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14019f058]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140143f9d
mov byte [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x24]
jmp 0x140144012
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xb7
jne 0x140144000
mov edx, 1
mov ecx, 2
call fcn.1400701f4
mov r9d, 0xffffffff
mov r8d, eax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.1400713b5
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140144000
mov edx, 0x10
mov ecx, dword [rsp + 0x48]
call fcn.14007082a
movzx eax, al
test eax, eax
jne 0x140144000
mov dword [rsp + 0x20], 0xb7
mov byte [rsp + 0x2c], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400721cf
add rsp, 0x68
ret
Function at 0x140074560
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400e0610
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14019f058]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x1401be127]
call fcn.140074682
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x1400e0676
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400e067d
mov al, 1
jmp 0x1400e07ef
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.1400712f2
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.1400712f2
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140073a70
movzx eax, al
test eax, eax
je 0x1400e06e2
xor al, al
jmp 0x1400e07ef
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x1400e0755
cmp dword [rbp + 0x1a0], 1
je 0x1400e0760
cmp dword [rbp + 0x1a0], 3
je 0x1400e07de
jmp 0x1400e07ed
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1400e07b0
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1400e07b0
xor al, al
jmp 0x1400e07ef
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400e07cb
mov dword [rbp + 0x194], 1
jmp 0x1400e07d5
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x1400e07ef
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400e07ef
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401681b0]
call fcn.1400739c1
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400721cf
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140074902
Capabilities:
Print debug messages

Disassembly:
jmp 0x140130b58
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140073480
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x140179258]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.1400720e4
test eax, eax
jne 0x140130bef
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140130bef
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140130be8
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1401a5a50], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret