joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400403d8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14004040f
call fcn.140044fdc
mov dword [rax], 0x16
call fcn.140046028
xor eax, eax
jmp 0x14004049d
mov rdx, r9
mov rcx, r8
call fcn.140040374
mov rbx, rax
test rax, rax
je 0x14004049a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400402a0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140040487
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044f50
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004046e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004047d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004b9c4
jmp 0x14004049a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140040497
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14004adec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004ae02
mov al, 1
jmp 0x14004ae62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004ae13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004ae60
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400557d8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004ae60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004ae60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004ae60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004ae62
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140050110
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140036a70
sub rsp, rax
mov rax, qword [0x14007d100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004abd0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005015f
mov rax, rbp
jmp 0x140050267
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x802b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140051b30
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x802b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140050263
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140050263
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140051b30
test rax, rax
js 0x140050263
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140050263
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140050255
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140050255
cmp byte [rcx], 0xd
jne 0x14005023b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005024a
cmp byte [rcx + 1], 0xa
jne 0x14005024a
inc rcx
jmp 0x14005024a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7d540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005021d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140050267
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140036350
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140050ed0
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, [0x1400802b0]
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 0x140050f27
cmp word [rdx], r13w
jne 0x140050f27
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140050f2c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140051051
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140051072
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140050f65
mov rdx, r9
mov word [rbx], cx
jmp 0x140050f8c
cmp r9, r8
jae 0x140050f9c
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 0x140050f46
jmp 0x140051051
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 0x140051046
cmp dword [rsp + 0x80], esi
je 0x140051046
lea r8, [0x1400802b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005101e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140050fee
mov word [rbx], r13w
jmp 0x14005104e
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 0x140050ffb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005104e
cmp word [rsp + 0x70], r13w
jne 0x14005102b
cmp rbx, r14
je 0x140050fe8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140051b38
cmp word [rsp + 0x70], r13w
je 0x140051051
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, [0x1400802b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005104b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140051051
Function at 0x140054a28
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 0x140054a58
xor eax, eax
jmp 0x140054b1b
mov rbp, rbx
cmp word [rax], si
je 0x140054a7d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140054a64
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140054a60
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.14005364c
movsxd r14, eax
test eax, eax
jne 0x140054abb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140054a51
mov rcx, r14
call fcn.14004da74
mov rdi, rax
test rax, rax
jne 0x140054ad4
xor ecx, ecx
call fcn.14004b9c4
jmp 0x140054ab0
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.14005364c
test eax, eax
jne 0x140054b05
mov rcx, rdi
call fcn.14004b9c4
jmp 0x140054b0f
xor ecx, ecx
call fcn.14004b9c4
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 0x140054b38
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140054bbf
mov rsi, rbx
cmp word [rax], bp
je 0x140054b7e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140054b68
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140054b64
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004da74
mov rdi, rax
test rax, rax
je 0x140054bac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005dd80
mov rbp, rdi
xor ecx, ecx
call fcn.14004b9c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140057d2c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14004b378
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140057dcd
cmp ebx, dword [rsp + 0x30]
je 0x140057dc6
test esi, esi
je 0x140057dc6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140057da1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140057dae
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140057d8b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140057db2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140057dcf
mov eax, 1
jmp 0x140057dcf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005bfa8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003d5f0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005c032
cmp byte [rbp - 0x21], r15b
je 0x14005c02d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005c068
call fcn.14004bd20
test eax, eax
jne 0x14005c054
cmp byte [rbp - 0x21], r15b
je 0x14005c04c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005c068
cmp byte [rbp - 0x21], r15b
je 0x14005c065
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140047bdc
test eax, eax
jne 0x14005c108
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003d5f0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005c0a7
cmp byte [rbp - 0x21], r15b
je 0x14005c0dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005c0dc
call fcn.14004bd20
test eax, eax
jne 0x14005c0c8
cmp byte [rbp - 0x21], r15b
je 0x14005c0c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005c0dc
cmp byte [rbp - 0x21], r15b
je 0x14005c0d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140047bdc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005c108
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005c10b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005c119
mov rcx, rdi
call fcn.14004b9c4
cmp byte [rbp + 0x3f], r15b
je 0x14005c128
mov rcx, qword [rbp + 0x27]
call fcn.14004b9c4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14005cf34
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.140051b38
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140051b38
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005d084
cmp rax, 0xffffffffffffffff
je 0x14005d084
xor edi, edi
test rbp, rbp
jle 0x14005d02f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004b94c
mov rbx, rax
test rax, rax
jne 0x14005cfbc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005d025
mov edx, 0x8000
mov ecx, r14d
call fcn.140048f48
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.14004d108
cmp eax, 0xffffffff
je 0x14005d005
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005cfcc
mov edx, r15d
mov ecx, r14d
call fcn.140048f48
jmp 0x14005d025
cmp byte [rsi + 0x38], dil
je 0x14005d01c
cmp dword [rsi + 0x34], 5
jne 0x14005d01c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005d025
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004b9c4
jmp 0x14005d098
jns 0x14005d098
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140051b38
cmp rax, 0xffffffffffffffff
jne 0x14005d050
cmp byte [rsi + 0x30], dil
je 0x14005d098
mov edi, dword [rsi + 0x2c]
jmp 0x14005d098
mov ecx, r14d
call fcn.1400557d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005d098
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 0x14005d098
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005d091
mov eax, dword [rsi + 0x2c]
jmp 0x14005d096
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140051b38
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 0x14005d8b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005d8d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005d8d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x419790
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov r9d, dword [0x011e6100]
test r9d, r9d
jle 0x419824
mov r10b, byte [rsi]
lea r8, [0x011e6110]
xor ecx, ecx
mov rbx, r8
jmp 0x4197d0
add rcx, 1
add rbx, 0x807f
cmp rcx, r9
je 0x419824
imul rdx, rcx, 0x807f
cmp r10b, byte [rdx + r8]
jne 0x4197c0
mov edi, 1
mov edx, r10d
nop word cs:[rax + rax]
nop
test dl, dl
je 0x419806
movzx edx, byte [rsi + rdi]
lea rax, [rdi + 1]
cmp dl, byte [rbx + rdi]
mov rdi, rax
je 0x4197f0
jmp 0x4197c0
mov eax, ecx
imul rax, rax, 0x807f
lea rcx, [0x011e6110]
add rax, rcx
add rax, 0x80
jmp 0x4199bd
movsxd r9, r9d
cmp r9d, 5
jae 0x4199c9
imul rax, r9, 0x807f
lea r14, [0x011e6110]
lea rdx, [rax + r14]
add rdx, 0x80
mov rcx, rsi
mov r8d, 0x7fff
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
add eax, 0xffffffff
cmp eax, 0x7ffd
ja 0x4198e4
mov r9, 0xffffffffffffffff
nop
cmp byte [rsi + r9 + 1], 0
lea r9, [r9 + 1]
jne 0x419870
cmp r9, 0x80
jae 0x4199ea
movsxd rbx, dword [0x011e6100]
imul r15, rbx, 0x807f
lea rdx, [r14 + r15]
mov eax, 1
movzx ecx, byte [rsi + rax - 1]
test cl, cl
je 0x4198eb
mov byte [rdx + rax - 1], cl
movzx ecx, byte [rsi + rax]
test cl, cl
je 0x4198f9
mov byte [rdx + rax], cl
add rax, 2
cmp rax, 0x81
jne 0x4198a0
lea rcx, [r15 + r14]
add rcx, 0x80
test cl, 0xf
jne 0x4199aa
mov eax, pe_nt_image_headers64
xor esi, esi
jmp 0x41996f
xor eax, eax
jmp 0x4199bd
lea rcx, [rax + rdx]
add rcx, 0xffffffffffffffff
add rax, 0xffffffffffffffff
jmp 0x4198fd
lea rcx, [rdx + rax]
mov esi, pe_nt_image_headers64
sub rsi, rax
mov edi, ecx
or edi, esi
test dil, 0xf
je 0x41996f
cmp rax, 0x80
je 0x4199aa
mov edx, esi
and edx, 7
add rax, 0xffffffffffffff87
cmp rax, 7
jb 0x419959
and rsi, 0xfffffffffffffff8
nop
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov byte [rcx + 2], 0
mov byte [rcx + 3], 0
mov byte [rcx + 4], 0
mov byte [rcx + 5], 0
mov byte [rcx + 6], 0
mov byte [rcx + 7], 0
add rcx, 8
add rsi, 0xfffffffffffffff8
jne 0x419930
test rdx, rdx
je 0x4199aa
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdx, rax
jne 0x419960
jmp 0x4199aa
and rsi, 0xfffffffffffffff8
lea rdi, [rcx + rsi]
cmp rdi, rcx
jbe 0x4199aa
add rsi, rax
add rsi, rdx
lea rdi, [rax + rdx]
add rdi, 0x10
cmp rsi, rdi
cmovbe rsi, rdi
not rax
sub rax, rdx
lea r8, [rax + rsi]
add r8, 0x10
and r8, 0xfffffffffffffff0
xor edx, edx
call sub.msvcrt.dll_memset
add ebx, 1
mov dword [0x011e6100], ebx
lea rax, [r15 + r14]
add rax, 0x80
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x20], 5
lea rcx, str.gotsan.cpp
lea r8, str.__num_env_vars_______kEnvVariables__
mov edx, 0x23be
call fcn.004045b0
mov qword [rsp + 0x20], pe_nt_image_headers64
lea rcx, str.gotsan.cpp
lea r8, str.__internal_strlen_name________kMaxEnvNameLength__
mov edx, 0x23c2
call fcn.004045b0
int3
Function at 0x41fda0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movabs rax, 0x10000000000
lea rsi, [rax + rcx*2]
and rsi, 0xfffffffffffffff0
add rdx, rcx
lea rdi, [rax + rdx*2]
and rdi, 0xfffffffffffffff0
mov rax, qword [0x011e4068]
mov rcx, rax
test rax, rax
jne 0x41fe08
lea rcx, [rsp + 0x28]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov qword [0x011e4068], rax
mov rcx, rax
test rax, rax
jne 0x41fe08
lea rcx, [rsp + 0x28]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x2c]
mov qword [0x011e4068], rcx
xor eax, eax
cmp rsi, rdi
jae 0x41fe31
neg rax
and rax, rsi
neg rcx
and rdi, rcx
sub rdi, rax
je 0x41fe29
mov rcx, rsi
mov rdx, rdi
call fcn.0041d560
nop
add rsp, 0x58
pop rdi
pop rsi
ret
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__beg___end______0_
mov edx, 0x235c
xor r9d, r9d
call fcn.004045b0
int3
Function at 0x434400
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
mov rdx, qword [0x006b5bb8]
mov rcx, rax
call fcn.00446c40
mov rdi, rax
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rcx
sub rdx, rax
cmp rdx, rdi
jge 0x4344bb
mov rax, qword [0x011e4068]
test rax, rax
jne 0x434459
lea rcx, [rsp + 0x28]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov qword [0x011e4068], rax
shl rax, 4
cmp rax, 0x10000
mov edx, 0x10000
cmovb rdx, rax
mov rcx, rdi
call fcn.00446c40
mov r14, rax
xor ecx, ecx
mov rdx, rax
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.kernel32.dll_VirtualAlloc]
test rax, rax
je 0x4344f8
mov qword [rsi + 8], rax
mov rcx, r14
add rcx, rax
mov qword [rsi], rcx
mov rbx, qword [0x011e4058]
test rbx, rbx
je 0x4344bb
mov rcx, rax
mov rdx, r14
call rbx
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
sub rcx, rax
cmp rcx, rdi
jl 0x4344d4
add rdi, rax
mov qword [rsi + 8], rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__allocated_end____allocated_current_____sptr_size______0_
mov edx, 0x19d5
xor r9d, r9d
call fcn.004045b0
call qword [sym.imp.kernel32.dll_GetLastError]
mov byte [rsp + 0x20], 0
lea rdx, str.Allocate
lea r8, str.allocate
mov rcx, r14
mov r9d, eax
call fcn.00434660
int3

Function at 0x4346e0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
nop
cmp byte [rsi + rdi], 0
lea rdi, [rdi + 1]
jne 0x4346f0
mov rbx, qword [0x006b5bc0]
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x43478e
lea rcx, [0x006b5bc0]
call fcn.0043e830
mov rcx, qword [0x006b5bc8]
cmp rcx, 0xffffffffffffffff
je 0x4347bc
lea rax, [rcx - 1]
cmp rax, 1
ja 0x434750
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x434777
add edi, 0xffffffff
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x434780
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [rbx], 0
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor ebp, ebp
mov r14, qword [sym.imp.kernel32.dll_Sleep]
jmp 0x43479c
add ebp, 1
cmp ebp, 0x63
ja 0x4347a5
pause
jmp 0x4347aa
xor ecx, ecx
call r14
cmp byte [rbx], 0
jne 0x434799
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x434799
jmp 0x43470d
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x250a
xor r9d, r9d
call fcn.004045b0
int3
Function at 0x43e540
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x43e5f6
mov r14, r8
mov rsi, rdx
mov rax, qword [rsp + 0x80]
test rax, rax
lea rbx, [rsp + 0x2c]
cmovne rbx, rax
test r9, r9
lea rdi, [rsp + 0x30]
cmovne rdi, r9
mov dword [rbx], 0
mov qword [rdi], 0
lea rax, [rcx - 1]
cmp rax, 1
ja 0x43e5ac
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x43e5ec
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov rdx, rsi
mov r8d, r14d
call qword [sym.imp.kernel32.dll_WriteFile]
mov esi, eax
test eax, eax
je 0x43e5d5
mov eax, dword [rsp + 0x28]
mov qword [rdi], rax
jmp 0x43e5dd
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbx], eax
test esi, esi
setne al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rbx], 6
xor eax, eax
jmp 0x43e5e2
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x250a
xor r9d, r9d
call fcn.004045b0
int3

Function at 0x43e740
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx]
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x43e7d9
mov rcx, rbx
call fcn.0043e830
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x43e807
lea rax, [rcx - 1]
cmp rax, 1
ja 0x43e79c
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x43e7c0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rsi
mov r8d, r14d
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x43e7c9
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [rdi], 0
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebp, ebp
mov r15, qword [sym.imp.kernel32.dll_Sleep]
jmp 0x43e7e7
add ebp, 1
cmp ebp, 0x63
ja 0x43e7f0
pause
jmp 0x43e7f5
xor ecx, ecx
call r15
cmp byte [rdi], 0
jne 0x43e7e4
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x43e7e4
jmp 0x43e760
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x250a
xor r9d, r9d
call fcn.004045b0
int3