joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400462bc
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x430
mov rax, qword [0x140067290]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rcx
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x20], ax
call fcn.140018210
mov rcx, qword [rbx + 0xc8]
lea rdx, [rsp + 0x20]
mov r8d, 0x200
call qword [sym.imp.USER32.dll_GetWindowTextW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
repne scasw ax, word [rdi]
lea edi, [rax + 1]
not rcx
sub rcx, rdi
mov r8, rcx
lea rcx, [rbx + 0x100]
call fcn.140002d7c
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.USER32.dll_EndDialog]
mov eax, edi
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140015e40
mov rbx, qword [rsp + 0x448]
add rsp, 0x430
pop rdi
ret

Function at 0x14004640c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x7c8]
sub rsp, 0x8c0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140067290]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rbx, rcx
mov qword [rsp + 0x50], 7
xor edi, edi
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
mov rcx, qword [rcx + 0xd0]
add rcx, 0x118
cmp qword [rcx + 0x18], 8
jb 0x140046470
mov rcx, qword [rcx]
call fcn.140038da0
test al, al
je 0x14004649d
mov rdx, qword [rbx + 0xd0]
add rdx, 0x118
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.140002c64
jmp 0x14004656d
mov word [rbp - 0x50], di
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x4e]
call fcn.140018210
lea r8, str.okKyEg_Q1SilKZeCLuWuUx5axbsK9FlLX7xNFVUS3VLLg2
lea rdx, str.KRglXTx2gH3c24R6o3JfvDqdFO9DgW9GgOnUdF
lea rcx, [rbp - 0x78]
call fcn.140038950
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140039260
mov r8, qword [rbx + 0xd0]
lea r9, [r8 + 0xc8]
cmp qword [r9 + 0x18], 8
jb 0x1400464ef
mov r9, qword [r9]
add r8, 0x118
cmp qword [r8 + 0x18], 8
jb 0x140046500
mov r8, qword [r8]
cmp qword [rax + 0x18], 8
jb 0x14004650a
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140016ce4
cmp qword [rsp + 0x78], 8
jb 0x140046528
mov rcx, qword [rsp + 0x60]
call fcn.140015e1c
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
cmp qword [rbp - 0x60], 0x10
jb 0x14004654b
mov rcx, qword [rbp - 0x78]
call fcn.140015e1c
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x38]
call fcn.140002d7c
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
mov dword [rsp + 0x28], 5
lea r9, [0x1400528c8]
mov qword [rsp + 0x20], r9
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, 2
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_EndDialog]
nop
cmp qword [rsp + 0x50], 8
jb 0x1400465c3
mov rcx, qword [rsp + 0x38]
call fcn.140015e1c
mov eax, 1
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140015e40
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140046e40
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x178]
sub rsp, 0x278
lea rdx, [rbp - 0x40]
mov ecx, 0x101
xor edi, edi
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x14004702e
movzx eax, word [rbp - 0x40]
cmp al, 1
jne 0x14004702e
shr ax, 8
cmp al, 1
jne 0x14004702e
mov qword [rsp + 0x270], rbx
mov ebx, edi
mov dword [rbp - 0x68], 0x1388
cmp qword [str.1.pool.ntp.org], rbx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
je 0x14004701a
mov qword [rsp + 0x268], rsi
lea rsi, str.1.pool.ntp.org
mov qword [rsp + 0x260], r12
mov rax, rsi
lea r12, [0x140068f80]
nop word [rax + rax]
mov rdx, qword [rax]
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.1400325f0
test eax, eax
je 0x140046fd3
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx r8d, word [rsp + 0x26]
movzx edx, word [rsp + 0x22]
movzx ecx, word [rsp + 0x20]
call fcn.140031fa0
lea r8, [rbp - 0x70]
sub eax, 0x24d9ad
cdqe
lea rcx, [rax + rax*2]
movzx eax, word [rsp + 0x28]
lea rdx, [rax + rcx*8]
movzx eax, word [rsp + 0x2a]
imul rdx, rdx, 0x3c
add rdx, rax
movzx eax, word [rsp + 0x2c]
imul rdx, rdx, 0x3c
add rdx, rax
movzx eax, word [rsp + 0x2e]
mov ecx, dword [r12 + rax*4]
shl rdx, 0x20
add rdx, rcx
lea rcx, [rbp + 0x190]
mov qword [rbp + 0x190], rdx
lea rdx, [rbp + 0x198]
call fcn.140032430
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x198]
call fcn.140032340
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x40]
movaps xmm5, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm5
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x140046fd3
lea rdx, [rbp + 0x1a8]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x140046fd3
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x140046fe6
inc rbx
cmp qword [rsi + rbx*8], rdi
lea rax, [rsi + rbx*8]
jne 0x140046ee0
jmp 0x14004700a
movzx eax, word [rsp + 0x32]
movzx edi, al
movzx eax, word [rsp + 0x30]
shl eax, 0x10
shl edi, 8
and eax, 0xffff0000
or edi, eax
movzx eax, word [rsp + 0x36]
movzx ecx, al
or edi, ecx
mov rsi, qword [rsp + 0x268]
mov r12, qword [rsp + 0x260]
mov eax, edi
mov rbx, qword [rsp + 0x270]
add rsp, 0x278
pop rdi
pop rbp
ret
xor eax, eax
add rsp, 0x278
pop rdi
pop rbp
ret
Function at 0x140047100
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1040
call fcn.140019b50
sub rsp, rax
movzx ebx, cl
lea rcx, [rsp + 0x842]
xor edi, edi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x840], di
call fcn.140018210
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x40], di
call fcn.140018210
lea rcx, [rsp + 0x840]
mov edx, 0x800
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x40]
mov edx, 0x800
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edx, edx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x38], edx
mov word [rsp + 0x3c], dx
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call fcn.1400188b4
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
mov eax, dword [0x140057cd8]
lea rcx, [rsp + 0x1058]
mov dword [rdi - 2], eax
call fcn.14001755c
mov rdx, qword [rsp + 0x1058]
lea rcx, [rsp + 0x1060]
mov qword [rsp + 0x1060], rdx
call fcn.140019514
mov rdi, rax
xorpd xmm2, xmm2
test rax, rax
jne 0x1400471ec
movapd xmm0, xmm2
jmp 0x14004721c
movd xmm0, dword [rax]
mov edx, dword [rax + 0x10]
mov ecx, dword [rax + 0x14]
mov eax, dword [rax + 4]
mov r9d, dword [rdi + 8]
mov r8d, dword [rdi + 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [rsp + 0x28], xmm0
inc edx
add ecx, 0x76c
mov dword [rsp + 0x20], eax
call fcn.1400378f0
test bl, bl
je 0x140047239
movzx eax, bl
imul eax, eax, 0xe10
movd xmm2, eax
cvtdq2pd xmm2, xmm2
divsd xmm2, qword [0x140058f08]
lea r8, [rsp + 0x840]
movapd xmm1, xmm2
mov r9b, 1
call fcn.140037b60
test al, al
jne 0x14004728c
lea rcx, [rsp + 0x40]
xor r8d, r8d
movzx edx, bl
call fcn.140037e40
test al, al
jne 0x14004728c
lea rcx, [rsp + 0x30]
xor r8d, r8d
movzx edx, bl
call fcn.140037e40
test al, al
jne 0x14004728c
mov al, 1
mov rbx, qword [rsp + 0x1050]
add rsp, 0x1040
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x1050]
add rsp, 0x1040
pop rdi
ret
Function at 0x140006030
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x140064080]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0
sete al
and al, 1
movzx esi, al
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14002bbb0
mov eax, esi
add rsp, 0x1c0
pop rsi
ret
Function at 0x14001c1f0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp], rcx
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
cmp rax, qword [rsp + 0x18]
jae 0x14001c250
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 8]
movzx eax, byte [rax + rcx]
xor rax, qword [rsp]
mov qword [rsp], rax
movabs rax, 0x100000001b3
imul rax, qword [rsp]
mov qword [rsp], rax
mov rax, qword [rsp + 8]
add rax, 1
mov qword [rsp + 8], rax
jmp 0x14001c20b
mov rax, qword [rsp]
add rsp, 0x20
ret

Function at 0x14001d0e0
Capabilities:
Get memory capacity

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rax, qword [0x140064080]
xor rax, rbp
mov qword [rbp], rax
mov dword [rbp - 0x40], 0x40
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rbp - 0x38]
shr rax, 0xa
shr rax, 0xa
mov dword [rbp - 0x44], eax
cmp dword [rbp - 0x44], 0xc18
jae 0x14001d134
pop rax
push rbx
je 0x14001d128
je 0x14001d12d
and dword [rcx + rsi], esi
xor dh, byte [rbx]
pop rbx
and dword [rcx + rsi], esi
xor dh, byte [rbx]
push rax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14002bbb0
nop
add rsp, 0x78
pop rbx
pop rbp
ret

Function at 0x14001d150
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [rbp + 6], ax
movzx eax, word [rbp + 6]
and eax, 0x3ff
cmp eax, 4
je 0x14001d1a7
lea rcx, [0x140065f30]
lea rdx, [0x14005b405]
call fcn.1400063c0
lea rdx, [0x140006820]
mov rcx, rax
call fcn.140006870
pop rax
push rbx
je 0x14001d19b
je 0x14001d1a0
and dword [rcx + rsi], esi
xor dh, byte [rbx]
pop rbx
and dword [rcx + rsi], esi
xor dh, byte [rbx]
push rax
nop
add rsp, 0x28
pop rbx
pop rbp
ret

Function at 0x14001e450
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x140
mov rsi, rcx
mov rax, qword [0x140064080]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140005120
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14002bbb0
mov rax, rsi
add rsp, 0x140
pop rsi
ret
Function at 0x14002c748
Capabilities:
Parse pe header

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

Function at 0x140032fcc
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 0x140033003
call fcn.140035698
mov dword [rax], socket
call fcn.140035f1c
xor eax, eax
jmp 0x140033091
mov rdx, r9
mov rcx, r8
call fcn.1400330b4
mov rbx, rax
test rax, rax
je 0x14003308e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140033118]
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 0x14003307b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400356d8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140033062
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140033071
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003d7a0
jmp 0x14003308e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003308b
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 0x1400331ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140033334
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 0x1400333a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400333a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400333a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400333a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400333a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400333a3
cmp dword [rcx + 0xf8], 0
je 0x1400333a3
mov ecx, ebx
call fcn.14003326c
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.1400334c8
nop
cmp dword [rbp + 0x20], 0
je 0x1400333f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140033300
int3
Function at 0x140033334
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140033334
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 0x1400333a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400333a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400333a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400333a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400333a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400333a3
cmp dword [rcx + 0xf8], 0
je 0x1400333a3
mov ecx, ebx
call fcn.14003326c
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.1400334c8
nop
cmp dword [rbp + 0x20], 0
je 0x1400333f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140033300
int3

Function at 0x14003a260
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003a288
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003a288
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140044788
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.14003da0c
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 0x140044829
cmp ebx, dword [rsp + 0x30]
je 0x140044822
test esi, esi
je 0x140044822
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400447fd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004480a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400447e7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004480e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004482b
mov eax, 1
jmp 0x14004482b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400457a0
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.14002cc20
sub rsp, rax
mov rax, qword [0x140064080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140041d48
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400457ef
mov rax, rbp
jmp 0x1400458f7
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 + 0x67bf0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400454d0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x67bf0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400458f3
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 0x1400458f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400454d0
test rax, rax
js 0x1400458f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400458f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400458e5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400458e5
cmp byte [rcx], 0xd
jne 0x1400458cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400458da
cmp byte [rcx + 1], 0xa
jne 0x1400458da
inc rcx
jmp 0x1400458da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x64bc0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400458ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400458f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002bbb0
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 0x140045c58
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 0x140045c88
xor eax, eax
jmp 0x140045d4b
mov rbp, rbx
cmp word [rax], si
je 0x140045cad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140045c94
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140045c90
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.14003d8cc
movsxd r14, eax
test eax, eax
jne 0x140045ceb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140045c81
mov rcx, r14
call fcn.14003d7dc
mov rdi, rax
test rax, rax
jne 0x140045d04
xor ecx, ecx
call fcn.14003d7a0
jmp 0x140045ce0
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.14003d8cc
test eax, eax
jne 0x140045d35
mov rcx, rdi
call fcn.14003d7a0
jmp 0x140045d3f
xor ecx, ecx
call fcn.14003d7a0
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 0x1400476ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400476c2
mov al, 1
jmp 0x140047722
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400476d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140047720
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400461b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140047720
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140047720
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140047720
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140047722
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140048058
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, [0x140067bf0]
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 0x1400480af
cmp word [rdx], r13w
jne 0x1400480af
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400480b4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400481d9
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400481fa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400480ed
mov rdx, r9
mov word [rbx], cx
jmp 0x140048114
cmp r9, r8
jae 0x140048124
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 0x1400480ce
jmp 0x1400481d9
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 0x1400481ce
cmp dword [rsp + 0x80], esi
je 0x1400481ce
lea r8, [0x140067bf0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400481a6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140048176
mov word [rbx], r13w
jmp 0x1400481d6
mov ecx, recv
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 0x140048183
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400481d6
cmp word [rsp + 0x70], r13w
jne 0x1400481b3
cmp rbx, r14
je 0x140048170
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004542c
cmp word [rsp + 0x70], r13w
je 0x1400481d9
mov ecx, recv
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, [0x140067bf0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400481d3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400481d9