joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070050
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1400a1840]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.1400462f0
mov r13, rax
test rax, rax
jne 0x1400700d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140046e50
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14002e700
xor ecx, ecx
mov ebx, 0x4d
call qword [fcn.14007c93a]
jmp 0x140070288
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r13
mov qword [rsp + 0x170], r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140070146
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140046e50
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14002e700
xor ecx, ecx
mov ebx, 0x4d
jmp 0x140070272
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14007018f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140046e50
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14002e700
mov ebx, 0x4d
jmp 0x140070266
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x1400701c4
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.14002e700
mov ebx, 0x4d
jmp 0x14007025e
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x1400701e0
mov ebx, 0x1b
jmp 0x14007025e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x140070238
nop dword [rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400702aa
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14007022f
mov edi, esi
jmp 0x140070231
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1400701f0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.14006fdc0
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.14007c93a]
mov rcx, r13
call fcn.14007c93a
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14007b4d0
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140046e50
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14002e700
mov ebx, 0x4d
jmp 0x140070256
Function at 0x140075680
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, ebx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400756bb
mov edx, 0x2e
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400756b9
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140076b60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x140076ba3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x140076bf0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x140076c52
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x140076c10
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x140076c91
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14008f631]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14008f632]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x140076c60
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x140076e80
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400a1840]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140076ecc
mov eax, 0x1b
jmp 0x140076f9f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140076f10
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x140076f9f
mov rcx, rbp
call fcn.1400329e0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x140076f7b
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140076f8b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140076f9d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14007b4d0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x140077d60
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140077dc5
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x140077d70
ret
Function at 0x140077dd0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400a1840]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140077e53
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140077e75
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14007b4d0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.1400329e0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x140077ed4
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140077ee4
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140077ef6
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x140077e58
Function at 0x14007aed8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007af12
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007af17
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007af60
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14007af60
dec r8
sub rdx, 1
jne 0x14007af46
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007c330
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007c37a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007c37a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007c37a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007c37a
cmp dword [rcx + 0x84], 0xe
jbe 0x14007c37a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007c37c
xor al, al
add rsp, 0x28
ret
Function at 0x140003649
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rax, r9
mov edi, ecx
mov r12, qword [rsp + 0x98]
mov r9, qword [rsp + 0x90]
mov ebp, edi
shr ebp, 8
lea r13, [rdx + r8*2]
xor ecx, ecx
cmp rdx, r13
je 0x1400036e3
lea rbx, [rdx + 2]
movzx r14d, byte [rdx + 1]
add r14, rcx
cmp byte [rdx], bpl
jne 0x1400036b6
mov rdx, r14
mov r15, rax
mov r8, rax
mov rsi, r9
call fcn.140008b7d
xor ecx, ecx
cmp rdx, rcx
je 0x1400036c0
lea r8, [rcx + 1]
cmp byte [rax + rcx], dil
mov rcx, r8
jne 0x1400036a2
jmp 0x1400036ce
mov rdx, rbx
mov rcx, r14
jbe 0x140003679
jmp 0x1400036e3
mov rdx, rbx
mov rcx, r14
mov r9, rsi
mov rax, r15
jmp 0x140003679
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, di
mov r9, qword [rsp + 0xa0]
add r9, r12
mov al, 1
cmp r12, r9
je 0x1400036d0
lea r8, [r12 + 1]
movzx edx, byte [r12]
test dl, dl
js 0x14000370b
mov r12, r8
jmp 0x140003723
cmp r8, r9
je 0x14000372b
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r12 + 1]
add r12, 2
or edx, r8d
sub ecx, edx
js 0x1400036d0
xor al, 1
jmp 0x1400036f3
lea rcx, [0x14002175e]
lea r8, str._redacted_
mov edx, 0x2b
call fcn.14001dbfb
ud2

Function at 0x140009eb6
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rsi, rcx
test r9, r9
je 0x140009efc
mov r15, r9
mov r14, r8
mov rbx, qword [rsp + 0x120]
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14000a0f8
Function at 0x14000df3d
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4e8
mov rdi, r9
mov bpl, byte [rsp + 0x558]
mov r15b, byte [rsp + 0x550]
lock inc qword [0x14002db88]
jle 0x14000e568
mov rbx, rcx
mov eax, dword [0x14002dc20]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x18], 0
jne 0x14000e5e4
mov rsi, rdx
mov eax, dword [0x14002dc20]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x10]
mov byte [rax + 0x18], 1
lea r12, [0x140020a48]
mov qword [rsp + 0x48], r12
lea rax, [0x140021530]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x68], r15b
mov byte [rsp + 0x69], bpl
lea rcx, [0x14002dba0]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov al, byte [0x14002dba8]
mov r14, qword [0x14002dbb0]
mov rcx, rbx
call qword [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rdx
test r14, r14
jne 0x14000e0a7
mov rbx, rax
mov sil, 3
test bpl, bpl
jne 0x14000e339
add eax, dword [rax]
invalid
mov eax, dword [0x14002dc20]
mov rcx, qword gs:[0x58]
add byte [rax], al
mov rcx, qword [0x14002dbb0]
lea rax, [0x140020a48]
lea rdx, [rsp + 0xb0]
mov qword [rdx], rax
lea rax, [0x140021530]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], rdi
mov byte [rdx + 0x20], r15b
mov byte [rdx + 0x21], bpl
lea rcx, [rsp + 0x90]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, [rsp + 0x48]
mov qword [rax], rdx
lea r8, [0x1400214a8]
lea rdx, [rsp + 0xe0]
mov qword [rdx], r8
mov qword [rdx + 8], 2
and qword [rdx + 0x20], 0
lea r8, [0x140004115]
mov qword [rax + 8], r8
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], 1
jmp 0x14000e61f
lea rcx, [rsp + 0xb0]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, [0x140021cb0]
lea rdx, [rsp + 0xe0]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [0x140020a48]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.14000a646
mov rcx, rax
call fcn.140009e4e
mov ecx, 7
int 0x29
ud2

Function at 0x14000fbcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fc16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fc16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fc16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fc16
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fc16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000fc18
xor al, al
add rsp, 0x28
ret
Function at 0x140013278
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400132e7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400132e7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400132e7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400132e7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400132e7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400132e7
cmp dword [rcx + 0xf8], 0
je 0x1400132e7
mov ecx, ebx
call fcn.140013398
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140013174
nop
cmp dword [rbp + 0x20], 0
je 0x140013335
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013340
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140013278

Function at 0x14001347c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013278
Function at 0x14001653c
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 0x14001656c
xor eax, eax
jmp 0x14001662f
mov rbp, rbx
cmp word [rax], si
je 0x140016591
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140016578
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140016574
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.14001645c
movsxd r14, eax
test eax, eax
jne 0x1400165cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140016565
mov rcx, r14
call fcn.140017418
mov rdi, rax
test rax, rax
jne 0x1400165e8
xor ecx, ecx
call fcn.140014abc
jmp 0x1400165c4
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.14001645c
test eax, eax
jne 0x140016619
mov rcx, rdi
call fcn.140014abc
jmp 0x140016623
xor ecx, ecx
call fcn.140014abc
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 0x140019b20
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.14001552c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140019baa
cmp byte [rbp - 0x21], r15b
je 0x140019ba5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140019be0
call fcn.140017c28
test eax, eax
jne 0x140019bcc
cmp byte [rbp - 0x21], r15b
je 0x140019bc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140019be0
cmp byte [rbp - 0x21], r15b
je 0x140019bdd
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.140014b0c
test eax, eax
jne 0x140019c80
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001552c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140019c1f
cmp byte [rbp - 0x21], r15b
je 0x140019c54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140019c54
call fcn.140017c28
test eax, eax
jne 0x140019c40
cmp byte [rbp - 0x21], r15b
je 0x140019c39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140019c54
cmp byte [rbp - 0x21], r15b
je 0x140019c51
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.140014b0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140019c80
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140019c83
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140019c91
mov rcx, rdi
call fcn.140014abc
cmp byte [rbp + 0x3f], r15b
je 0x140019ca0
mov rcx, qword [rbp + 0x27]
call fcn.140014abc
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 0x14001cad0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001caf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001caf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400037d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003822
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003822
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003822
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003822
cmp dword [rcx + 0x84], 0xe
jbe 0x140003822
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003824
xor al, al
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004054e0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004054f0]
mov dword [rax], 1
mov rax, qword [0x00405500]
mov dword [rax], 1
mov rax, qword [0x004054d0]
mov dword [rax], 1
mov rax, qword [0x00405390]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004054c0]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call sym._encode_pointer
mov rdx, qword [0x00405420]
mov qword [rdx], rax
mov rdx, qword [0x00405410]
mov qword [rdx], rax
mov rax, qword [0x00405480]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00405340]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058