joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b4900
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.g_v_]
mov rdi, rax
test rax, rax
jne 0x1400b4942
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400b4989
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400b49e2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400b49a0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b4a23
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c80c2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c80c3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b49f0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400b4a4c
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 0x1400b4a86
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400b4a8b
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 0x1400b4ad4
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 0x1400b4ad4
dec r8
sub rdx, 1
jne 0x1400b4aba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400b63d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b6422
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b6422
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b6422
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b6422
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b6422
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b6424
xor al, al
add rsp, 0x28
ret
Function at 0x140017207
Capabilities:
Identify system language via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x10]
cdqe
mov rcx, rax
call fcn.14011dd10
call fcn.14011d900
mov qword [rbp - 0x20], 0
call fcn.14011da80
call fcn.14011da80
call sub.KERNEL32.dll_GetUserDefaultLangID
mov qword [rbp - 0x10], rax
call fcn.14011d990
mov edx, eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14011bb60
call fcn.14011d990
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14011db50
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011b3a0
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 3
jne 0x1400172b9
call fcn.14011da80
lea rax, [0x140934140]
mov rcx, rax
call fcn.14011dae0
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011dae0
call fcn.14011d990
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14011db50
jmp 0x1400172ba
nop
call fcn.14011da80
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011dae0
call fcn.14011da50
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14011dcf0
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0x140031fb0
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x18]
cdqe
mov rcx, rax
call fcn.14011dd10
call fcn.14011d900
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14011dd50
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x10], 0
call fcn.14011da80
call fcn.14011da80
call fcn.14011d990
mov edx, eax
mov ecx, 0x3e8
call fcn.14011b3f0
call fcn.14011d990
mov edx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.14011db50
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x18], rax
lea rax, str.WINDIR
mov rdx, qword [rbp - 0x18]
mov r8d, 0x3e8
mov rcx, rax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x78]
lea rdx, [0x14095c520]
mov rcx, rax
call fcn.14011dbe0
call fcn.14011da80
call fcn.14011da80
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14011dae0
lea rax, str.System32
mov rcx, rax
call fcn.14011dae0
call fcn.14011dc90
call fcn.14011da80
lea rax, str.__c
mov rcx, rax
call fcn.14011dae0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14011dae0
call fcn.14011dc90
call fcn.14011da80
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14011dae0
lea rax, str.System32cmd.exe
mov rcx, rax
call fcn.14011dae0
call fcn.14011da50
mov qword [rbp - 0x28], rax
call fcn.14011da50
mov qword [rbp - 0x30], rax
call fcn.14011da50
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov r9d, SafeArrayGetLBound
mov r8, rcx
mov rcx, rax
call fcn.1400c4b58
mov qword [rbp - 0x40], rax
call fcn.14011d9e0
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140032208
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400c5164
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
je 0x1400321f5
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400c51c0
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
je 0x1400321ef
call fcn.14011da80
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14011dae0
call fcn.14011da80
call fcn.14011da80
call fcn.14011da80
call fcn.14011da80
call fcn.14011d990
mov edx, eax
mov rax, qword [rbp - 0x10]
mov r8d, edx
mov edx, SafeArrayPutElement
mov rcx, rax
call fcn.1400c530c
call fcn.14011da50
mov qword [rbp - 0x58], rax
call fcn.14011d990
mov edx, eax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.1400148c2
mov qword [rbp - 0x60], rax
call fcn.14011d990
lea rax, [0x14094ff90]
mov rcx, rax
call fcn.14011dae0
call fcn.14011d990
mov edx, eax
lea rax, [rbp - 0x78]
mov rcx, rax
call fcn.14011db50
jmp 0x14003212d
nop
jmp 0x14003212d
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400c529c
mov qword [rbp - 0x68], rax
jmp 0x140032209
nop
call fcn.14011da80
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14011dae0
call fcn.14011da50
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14011dcf0
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14011dcf0
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14011dcf0
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x14003671e
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
call fcn.14011d900
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
lea rax, str.Kernel32
mov rcx, rax
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rbp - 0x20], rax
lea rdx, [0x14094e380]
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.KERNEL32.dll_CreateRemoteThread
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400367da
mov qword [rbp - 8], 0
jmp 0x140036827
nop
mov rax, qword [rbp - 0x10]
mov rdx, 0xffffffffffffffff
mov rcx, rax
call sub.KERNEL32.dll_WaitForSingleObject
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_GetExitCodeThread
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x1400375ff
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp - 8], 0
call fcn.14011d900
mov rdx, qword [rbp + 0x18]
lea rax, [rbp + 0x18]
mov rcx, rax
call fcn.14011dd50
mov rdx, qword [rbp + 0x20]
lea rax, [rbp + 0x20]
mov rcx, rax
call fcn.14011dd50
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x40]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x38]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x18]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rcx
mov rcx, rax
call sub.ADVAPI32.dll_RegCreateKeyExW
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x14003770c
mov rax, qword [rbp + 0x20]
mov r10, rax
mov rax, qword [rbp - 0x40]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov rdx, r10
mov rcx, rax
call sub.ADVAPI32.dll_RegSetValueExW
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sub.ADVAPI32.dll_RegCloseKey
mov qword [rbp - 0x30], rax
jmp 0x14003770d
nop
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.14011dcf0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.14011dcf0
mov rax, qword [rbp - 8]
add rsp, 0x90
pop rbp
ret
Function at 0x140077cf0
Capabilities:
Parse pe header

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

Function at 0x14007c658
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 0x14007c6c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007c6c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007c6c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007c6c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007c6c7
cmp dword [rcx + 0x84], 0xe
jbe 0x14007c6c7
cmp dword [rcx + 0xf8], 0
je 0x14007c6c7
mov ecx, ebx
call fcn.14007c7cc
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.14007c48c
nop
cmp dword [rbp + 0x20], 0
je 0x14007c715
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14007c720
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14007c658

Function at 0x14007c8b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14007c658
Function at 0x14008844c
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.14007e6fc
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 0x1400884ed
cmp ebx, dword [rsp + 0x30]
je 0x1400884e6
test esi, esi
je 0x1400884e6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400884c1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400884ce
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400884ab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400884d2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400884ef
mov eax, 1
jmp 0x1400884ef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140089784
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 0x1400897b4
xor eax, eax
jmp 0x140089877
mov rbp, rbx
cmp word [rax], si
je 0x1400897d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400897c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400897bc
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.140089a7c
movsxd r14, eax
test eax, eax
jne 0x140089817
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400897ad
mov rcx, r14
call fcn.14007f180
mov rdi, rax
test rax, rax
jne 0x140089830
xor ecx, ecx
call fcn.14007d4b0
jmp 0x14008980c
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.140089a7c
test eax, eax
jne 0x140089861
mov rcx, rdi
call fcn.14007d4b0
jmp 0x14008986b
xor ecx, ecx
call fcn.14007d4b0
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 0x140089894
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 0x14008991b
mov rsi, rbx
cmp word [rax], bp
je 0x1400898da
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400898c4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400898c0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007f180
mov rdi, rax
test rax, rax
je 0x140089908
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140097b90
mov rbp, rdi
xor ecx, ecx
call fcn.14007d4b0
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 0x140091ad8
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.1400826a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140091b62
cmp byte [rbp - 0x21], r15b
je 0x140091b5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140091b98
call fcn.140080420
test eax, eax
jne 0x140091b84
cmp byte [rbp - 0x21], r15b
je 0x140091b7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140091b98
cmp byte [rbp - 0x21], r15b
je 0x140091b95
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.140083744
test eax, eax
jne 0x140091c38
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400826a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140091bd7
cmp byte [rbp - 0x21], r15b
je 0x140091c0c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140091c0c
call fcn.140080420
test eax, eax
jne 0x140091bf8
cmp byte [rbp - 0x21], r15b
je 0x140091bf1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140091c0c
cmp byte [rbp - 0x21], r15b
je 0x140091c09
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.140083744
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140091c38
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140091c3b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140091c49
mov rcx, rdi
call fcn.14007d4b0
cmp byte [rbp + 0x3f], r15b
je 0x140091c58
mov rcx, qword [rbp + 0x27]
call fcn.14007d4b0
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 0x1400941f0
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, [0x14095d500]
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 0x140094247
cmp word [rdx], r13w
jne 0x140094247
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009424c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140094371
mov r11d, SafeArrayGetElemsize
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140094392
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140094285
mov rdx, r9
mov word [rbx], cx
jmp 0x1400942ac
cmp r9, r8
jae 0x1400942bc
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 0x140094266
jmp 0x140094371
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 0x140094366
cmp dword [rsp + 0x80], esi
je 0x140094366
lea r8, [0x14095d500]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009433e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009430e
mov word [rbx], r13w
jmp 0x14009436e
mov ecx, SafeArrayGetElemsize
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 0x14009431b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009436e
cmp word [rsp + 0x70], r13w
jne 0x14009434b
cmp rbx, r14
je 0x140094308
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009578c
cmp word [rsp + 0x70], r13w
je 0x140094371
mov ecx, SafeArrayGetElemsize
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, [0x14095d500]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009436b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140094371
Function at 0x1400a53a0
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x1400a53ac
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov ebp, r8d
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x1400a55a8
cmp word [rdx], di
je 0x1400a55a8
mov qword [r11 - 0x38], rdi
lea r12d, [rdi + 1]
mov r8d, r12d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400a55a3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd r15, eax
test eax, eax
jle 0x1400a559a
mov ecx, ebp
call fcn.1400a5b50
mov rsi, rax
test rax, rax
je 0x1400a559a
lea edx, [rdi + 2]
cmp ebp, 0xffffffff
mov rcx, r14
cmovne edx, ebp
call fcn.1400a6154
mov rbx, rax
test rax, rax
je 0x1400a558f
mov qword [rax + 0x40], rsi
lea r8, [r15 + 0x10]
mov qword [rbx + 0x60], rdi
cmp r14, 0xffffffffffffffff
mov dword [rbx + 0x68], edi
cmove r14, rax
mov dword [rbx + 0x20], edi
mov qword [rax + 0x48], r14
xor edx, edx
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x14095ba28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
mov rcx, rax
test rax, rax
je 0x1400a54bf
lea eax, [r15 + 0x10]
mov dword [rcx + 8], eax
mov rax, qword [rbx + 0x38]
mov qword [rax], rdi
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x1400a54c8
mov dword [rbx + 0x50], r12d
mov rdx, rbx
mov rcx, rsi
call fcn.1401269a0
mov ebp, edi
mov r14d, 0x4000
lea eax, [r14 + rbp]
cmp eax, r15d
jle 0x1400a54ea
mov r14d, r15d
sub r14d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.140125b80
mov r12, rax
test rax, rax
je 0x1400a5579
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, r14d
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
cmp edx, r14d
jne 0x1400a5565
add ebp, edx
cmp dword [rbx + 0x20], edi
jne 0x1400a5535
mov rcx, r12
call fcn.1400a5c34
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rsi
cmp ebp, r15d
jl 0x1400a5545
mov r8d, 1
jmp 0x1400a5548
xor r8d, r8d
call fcn.1401261e0
test eax, eax
je 0x1400a5558
cmp ebp, r15d
jl 0x1400a54db
jmp 0x1400a558b
mov rcx, rsi
call fcn.140125ec0
mov dword [rbx + 0x24], eax
jmp 0x1400a5580
lea rax, str.file_read_error
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x1400a558b
mov dword [rbx + 0x24], 1
mov rdx, rsi
mov rcx, rbx
call fcn.1400a5d08
mov qword [rbx + 0x40], rdi
mov rcx, rsi
call fcn.140126370
mov rdi, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x1400a55aa
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret