joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180045fb0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x180078028]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
cmp rdi, 0x40000000
jbe 0x180045ffd
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180079208]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x60], r15
cmovbe r15, qword [rsp + 0x60]
sub r15, 0xfff
test rsi, rsi
je 0x18004603f
cmp rsi, r14
jb 0x180046037
cmp rsi, r15
jae 0x180046037
cmp qword [rsi + 8], 0
jne 0x1800461fd
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180046022
mov qword [rsp + 0xb8], rbx
mov rbx, rdi
mov qword [rsp + 0xc0], rbp
cmp rdi, r14
jb 0x1800460c2
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800460b9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800460b9
cmp dword [rsp + 0x40], 0x10000
je 0x18004613b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800460b9
sub rbx, rbp
cmp rbx, r14
jae 0x180046080
test rsi, rsi
jne 0x1800461a6
cmp rdi, r15
ja 0x1800461ed
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800461ed
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800461ed
cmp dword [rsp + 0x40], 0x10000
je 0x180046174
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800460f2
jmp 0x1800461ed
test rbx, rbx
je 0x1800460b9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800461a6
cmp rbx, r14
jae 0x180046060
jmp 0x1800460c2
test rdi, rdi
je 0x1800461ed
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800461a6
cmp rdi, r15
jbe 0x1800460d0
jmp 0x1800461ed
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x1800461c0
mov rax, qword [0x180079208]
mov qword [rsi], rax
mov qword [0x180079208], rsi
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800479f0
mov rsi, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
ret
Function at 0x180046de0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180078028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov dword [rsp + 0x20], 0
movzx esi, dl
add rbx, qword [0x180079218]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180046e5c
mov eax, 0xa
jmp 0x180046eeb
test sil, sil
je 0x180046e7f
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180046ea2
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180046ea2
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180046e9b
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180046ea2
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, byte [rbx + 0x20]
movzx eax, sil
and cl, 0xfd
shl sil, 2
add al, al
or cl, al
and cl, 0xfb
or cl, sil
mov byte [rbx + 0x20], cl
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800479f0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180046f10
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x180079224]
xor ebx, ebx
test edx, edx
je 0x180046f3f
mov rcx, qword [0x180079218]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
jne 0x180046f47
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x180046f30
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x180046f3f
xor r8d, r8d
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x20]
call fcn.180046a70
mov edi, eax
test eax, eax
jne 0x180047024
mov r8d, dword [0x180079224]
cmp ebx, r8d
jae 0x180046fb1
nop dword [rax]
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180079218]
test byte [rdx + rcx + 0x20], 2
je 0x180046faa
xor edx, edx
mov ecx, ebx
call fcn.180046de0
mov edi, eax
test eax, eax
jne 0x180046fb1
mov r8d, dword [0x180079224]
inc ebx
cmp ebx, r8d
jb 0x180046f80
cmp qword [rsp + 0x20], 0
je 0x180047022
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18004700e
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180046ffa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180046fd2
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180079228]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x1800473d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov esi, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x180079210], edi
je 0x18004741f
nop
cmp ebx, 0x20
jae 0x180047409
xor ecx, ecx
jmp 0x18004740b
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
xor eax, eax
lock cmpxchg dword [0x180079210], edi
jne 0x180047400
cmp qword [0x180079228], rsi
je 0x18004754d
mov r8d, dword [0x180079224]
mov ebx, r15d
test r8d, r8d
je 0x180047552
mov rdx, qword [0x180079218]
add rdx, 0x20
nop word [rax + rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x18004746c
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x180047450
jmp 0x180047552
cmp ebx, 0xffffffff
je 0x180047552
mov r8d, 2
lea rcx, [rsp + 0x20]
call fcn.180046a70
mov esi, eax
test eax, eax
jne 0x180047552
mov r9d, dword [0x180079224]
cmp ebx, r9d
jae 0x1800474e3
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180079218]
movzx r8d, byte [rdx + rcx + 0x20]
movzx edx, r8b
shr r8b, 1
shr dl, 2
and r8b, dil
and dl, dil
cmp r8b, dl
je 0x1800474dc
mov ecx, ebx
call fcn.180046de0
mov esi, eax
test eax, eax
jne 0x1800474e3
mov r9d, dword [0x180079224]
inc ebx
cmp ebx, r9d
jb 0x1800474a0
cmp qword [rsp + 0x20], r15
je 0x180047552
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180047537
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180047528
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180047500
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180079228]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180047552
mov esi, 2
xchg dword [0x180079210], r15d
mov rbx, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x403102
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov eax, ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov byte [rbp + 0x10], al
mov byte [rbp - 1], 0
jmp 0x40319b
mov byte [rbp - 2], 0
jmp 0x403191
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp + 0x10]
lea edx, [rax*4]
movzx eax, byte [rbp - 1]
add eax, edx
lea edx, [rax*4]
movzx eax, byte [rbp - 2]
add eax, edx
cdqe
mov rdx, qword [rbp + 0x20]
add rax, rdx
movzx ecx, byte [rax]
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
xor r8d, ecx
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
mov byte [rax], r8b
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x403123
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x40311d
nop
add rsp, 0x10
pop rbp
ret

Function at 0x4031ac
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x40321f
mov byte [rbp - 2], 0
jmp 0x403215
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx r8d, byte [rbp - 2]
movzx ecx, byte [rbp - 1]
cdqe
lea rdx, str.cw
movzx edx, byte [rax + rdx]
mov r9, qword [rbp + 0x10]
movsxd rcx, ecx
movsxd rax, r8d
shl rax, 2
add rax, r9
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x4031c4
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x4031be
nop
add rsp, 0x10
pop rbp
ret

Function at 0x403cc1
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x403d34
mov byte [rbp - 2], 0
jmp 0x403d2a
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx r8d, byte [rbp - 2]
movzx ecx, byte [rbp - 1]
cdqe
lea rdx, [0x00407b40]
movzx edx, byte [rax + rdx]
mov r9, qword [rbp + 0x10]
movsxd rcx, ecx
movsxd rax, r8d
shl rax, 2
add rax, r9
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x403cd9
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x403cd3
nop
add rsp, 0x10
pop rbp
ret

Function at 0x403f6b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 1], 0
jmp 0x403fb4
movzx eax, byte [rbp - 1]
mov rdx, qword [rbp + 0x10]
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp - 1]
mov rdx, qword [rbp + 0x18]
add rax, rdx
movzx ecx, byte [rax]
movzx eax, byte [rbp - 1]
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add byte [rbp - 1], 1
cmp byte [rbp - 1], 0xf
jbe 0x403f81
nop
add rsp, 0x10
pop rbp
ret
Function at 0x404720
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040b624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4048a8
mov rax, qword [0x0040b628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40476c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4047f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x404750
mov rcx, rbx
call fcn.004053c0
test rax, rax
mov r12, rax
je 0x4048dd
mov rax, qword [0x0040b628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004054f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040b628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4048c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4047ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x404850
add dword [0x0040b624], 1
cmp edi, 8
jae 0x404823
test dil, 4
jne 0x404894
test edi, edi
je 0x404818
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4048af
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x404818
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40483c
jmp 0x404818
add rsi, qword [0x0040b628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4047ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004058c0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x404818
xor esi, esi
jmp 0x404777
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x404818
mov rax, qword [0x0040b628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004058c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004058c0
nop
nop dword [rax]

Function at 0x405030
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040b900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040b8e0]
test rbx, rbx
je 0x405084
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40507b
test rsi, rsi
je 0x40507b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x405060
lea rcx, [0x0040b900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4053c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00407fa0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40542d
mov rcx, r8
call fcn.004052a0
test eax, eax
je 0x40542d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40542d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x405424
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40542f
add rax, 0x28
cmp rax, r9
jne 0x405410
xor eax, eax
add rsp, 0x28
ret

Function at 0x4058c0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00405780
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00405780
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001e80
Capabilities:
Create directory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rbp, qword [0x1400b5130]
xor edx, edx
lea rbx, [rsp + 0x40]
mov rsi, rcx
mov rax, qword [rbp]
mov qword [rsp + 0x68], rax
xor eax, eax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rbx + 0x10]
test rsi, rsi
mov qword [rsp + 0x40], rax
je 0x140001fc0
mov rcx, rsi
call sub.msvcrt.dll_wcslen
lea rdi, [rax + rax]
mov r9, rdi
sar r9, 1
cmp r9, 7
mov qword [rsp + 0x38], r9
ja 0x140001f70
cmp r9, 1
mov rcx, qword [rsp + 0x40]
je 0x140001fb0
test r9, r9
jne 0x140001f92
mov rdx, qword [str.pZ_v_]
xor r10d, r10d
mov qword [rsp + 0x48], r9
mov word [rcx + r9*2], r10w
mov ecx, 0x158
call fcn.1400aaa10
test rax, rax
mov rsi, rax
je 0x140001f41
lea r8, [0x140001e60]
mov dword [rsp + 0x28], 7
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
call fcn.140008390
mov rcx, qword [rsp + 0x40]
add rbx, 0x10
cmp rcx, rbx
je 0x140001f54
call fcn.1400aa950
mov rdi, qword [rsp + 0x68]
xor rdi, qword [rbp]
mov rax, rsi
jne 0x140001fcc
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x38]
mov rcx, rbx
xor r8d, r8d
call fcn.14009aca0
mov rdx, qword [rsp + 0x38]
mov rcx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rdx
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
jmp 0x140001ef5
movzx r8d, word [rsi]
mov word [rcx], r8w
jmp 0x140001ef5
lea rcx, [0x1400af320]
call fcn.1400a3da0
call fcn.1400048e0
mov rdx, qword [str.pZ_v_]
mov rcx, rsi
mov rbp, rax
add rbx, 0x10
call fcn.1400aa960
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x140001ff6
call fcn.1400aa950
mov rcx, rbp
call fcn.140014760
nop
nop
Function at 0x140006960
Capabilities:
Terminate thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x98]
test rcx, rcx
je 0x14000697c
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
je 0x14000698e
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsi + 0xc0]
test eax, eax
jne 0x140006a40
cmp qword [rsi + 0x18], 0
je 0x140006b5e
lock sub dword [0x1400db280], 1
je 0x140006ad0
mov rcx, qword [rsi + 0x140]
lea rdi, [rsi + 0x140]
cmp rdi, rcx
je 0x1400069e0
nop dword [rax + rax]
mov rbx, qword [rcx]
call fcn.1400aa950
cmp rdi, rbx
mov rcx, rbx
jne 0x1400069d0
mov rcx, qword [rsi + 0x60]
lea rax, [rsi + 0x70]
cmp rcx, rax
je 0x1400069f2
call fcn.1400aa950
mov rcx, qword [rsi + 0x40]
lea rax, [rsi + 0x50]
cmp rcx, rax
je 0x140006a04
call fcn.1400aa950
mov rcx, qword [rsi + 0x20]
lea rax, [rsi + 0x30]
cmp rcx, rax
je 0x140006a16
call fcn.1400aa950
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x140006ae2
mov rcx, rbx
call fcn.1400088f0
mov edx, 0x370
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.1400aa970
lea rcx, [0x1400db2a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rsi + 0xc0]
test al, 1
jne 0x140006b46
test al, 4
jne 0x140006b34
mov rbx, qword [0x1400db2d0]
mov r9, qword [rbx + 8]
cmp rsi, qword [r9 - 8]
je 0x140006b27
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.warning:_removing_Breakpad_handler_out_of_order_n
lea rcx, [rax + 0x60]
call fcn.140021ba0
mov rbx, qword [0x1400db2d0]
mov r9, qword [rbx]
mov rax, qword [rbx + 8]
jmp 0x140006aa9
cmp rsi, qword [r9]
je 0x140006af0
add r9, 8
cmp r9, rax
jne 0x140006aa0
cmp r9, qword [rbx]
je 0x140006baf
lea rcx, [0x1400db2a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000699c
lea rcx, [0x1400db2a0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400069b5
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rdx, [r9 + 8]
cmp rdx, rax
je 0x140006bf4
mov r8, rax
mov rcx, rbx
sub r8, rdx
mov r10, r8
sar r10, 3
test r10, r10
jne 0x140006bd9
sub rax, 8
mov qword [rbx + 8], rax
mov rbx, rcx
mov rax, qword [rcx + 8]
jmp 0x140006aa9
sub r9, 8
mov qword [rbx + 8], r9
jmp 0x140006aae
mov rcx, qword [rsi + 0xd0]
call qword [0x1400ac180]
jmp 0x140006a63
mov rcx, qword [rsi + 0xc8]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [rsi + 0xc0]
jmp 0x140006a5b
mov edx, 1
mov rcx, qword [rsi + 0xd8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsi + 0xd8]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
lea rcx, [rsi + 0xe8]
mov qword [rsi + 0xd8], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsi + 0x110]
call rbx
mov rcx, qword [rsi + 0x118]
call rbx
jmp 0x1400069a7
test r9, r9
je 0x140006bbc
mov rcx, r9
call fcn.1400aa950
mov edx, 0x18
mov rcx, rbx
call fcn.1400aa970
mov qword [0x1400db2d0], 0
jmp 0x140006ab7
mov rcx, r9
call sub.msvcrt.dll_memmove
mov rcx, qword [0x1400db2d0]
mov r9, rax
mov rax, qword [rbx + 8]
jmp 0x140006b16
mov rcx, rbx
jmp 0x140006b16
Function at 0x14001a570
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x14001a5c5
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x14001a5b0
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x14001a640
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.140019e30
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.1400199e0
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14001a2a0
mov eax, dword [0x1400ac0f0]
cmp eax, 0xffffffff
je 0x14001a66c
test eax, eax
je 0x14001a65c
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x14001a5cd
call fcn.140021820
test al, 1
mov edx, 3
jne 0x14001a64f
jmp 0x14001a654
lea rcx, [0x1400b3fe7]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x14001a694
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x1400ac0f0], eax
jmp 0x14001a64b
xor eax, eax
jmp 0x14001a689

Function at 0x14001c900
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x14001c955
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x14001c940
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x14001c9d0
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.14001c070
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.14001bb90
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14001c630
mov eax, dword [0x1400ac120]
cmp eax, 0xffffffff
je 0x14001c9fc
test eax, eax
je 0x14001c9ec
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x14001c95d
call fcn.140021820
test al, 1
mov edx, 3
jne 0x14001c9df
jmp 0x14001c9e4
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x14001ca24
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x1400ac120], eax
jmp 0x14001c9db
xor eax, eax
jmp 0x14001ca19
Function at 0x1400739a0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call fcn.140073890
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x1400739f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400739ba
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret