joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402adc80
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.14010ff30
sub rsp, rax
mov rax, qword [0x1403a73d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1402bc8b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1402adccf
mov rax, rbp
jmp 0x1402addd7
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 + 0x3bb350]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1402b522c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3bb350]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1402addd3
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 0x1402addd3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1402b522c
test rax, rax
js 0x1402addd3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1402addd3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1402addc5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1402addc5
cmp byte [rcx], 0xd
jne 0x1402addab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1402addba
cmp byte [rcx + 1], 0xa
jne 0x1402addba
inc rcx
jmp 0x1402addba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a8ed0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1402add8d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1402addd7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14010f500
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 0x1402b2138
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 0x1402b216f
call fcn.1402afe24
mov dword [rax], 0x16
call fcn.1402a814c
xor eax, eax
jmp 0x1402b21fd
mov rdx, r9
mov rcx, r8
call fcn.1402b200c
mov rbx, rax
test rax, rax
je 0x1402b21fa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1402b1ec8]
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 0x1402b21e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402afd98
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1402b21ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402b21dd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1402c2c70
jmp 0x1402b21fa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402b21f7
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 0x1402b39b8
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.1402b5234
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402b5234
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402b3b08
cmp rax, 0xffffffffffffffff
je 0x1402b3b08
xor edi, edi
test rbp, rbp
jle 0x1402b3ab3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402c68b8
mov rbx, rax
test rax, rax
jne 0x1402b3a40
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402b3aa9
mov edx, 0x8000
mov ecx, r14d
call fcn.1402ba8a0
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.1402b5fe0
cmp eax, 0xffffffff
je 0x1402b3a89
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402b3a50
mov edx, r15d
mov ecx, r14d
call fcn.1402ba8a0
jmp 0x1402b3aa9
cmp byte [rsi + 0x38], dil
je 0x1402b3aa0
cmp dword [rsi + 0x34], 5
jne 0x1402b3aa0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1402b3aa9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402c2c70
jmp 0x1402b3b1c
jns 0x1402b3b1c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402b5234
cmp rax, 0xffffffffffffffff
jne 0x1402b3ad4
cmp byte [rsi + 0x30], dil
je 0x1402b3b1c
mov edi, dword [rsi + 0x2c]
jmp 0x1402b3b1c
mov ecx, r14d
call fcn.1402b4c9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402b3b1c
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 0x1402b3b1c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402b3b15
mov eax, dword [rsi + 0x2c]
jmp 0x1402b3b1a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402b5234
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 0x1402b62e8
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, [0x1403bb350]
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 0x1402b633f
cmp word [rdx], r13w
jne 0x1402b633f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1402b6344
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1402b6469
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1402b648a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1402b637d
mov rdx, r9
mov word [rbx], cx
jmp 0x1402b63a4
cmp r9, r8
jae 0x1402b63b4
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 0x1402b635e
jmp 0x1402b6469
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 0x1402b645e
cmp dword [rsp + 0x80], esi
je 0x1402b645e
lea r8, [0x1403bb350]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1402b6436
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1402b6406
mov word [rbx], r13w
jmp 0x1402b6466
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 0x1402b6413
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1402b6466
cmp word [rsp + 0x70], r13w
jne 0x1402b6443
cmp rbx, r14
je 0x1402b6400
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1402b5234
cmp word [rsp + 0x70], r13w
je 0x1402b6469
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, [0x1403bb350]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1402b6463
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1402b6469
Function at 0x1402b6fe8
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 0x1402b6e53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402b6e53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402b6e53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402b6e53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402b6e53
cmp dword [rcx + 0x84], 0xe
jbe 0x1402b6e53
cmp dword [rcx + 0xf8], 0
je 0x1402b6e53
mov ecx, ebx
call fcn.1402b6f04
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.1402b6ce0
nop
cmp dword [rbp + 0x20], 0
je 0x1402b6ea1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1402b6eac
int3
xor r8d, r8d
xor edx, edx
jmp 0x1402b6de4

Function at 0x1402c65e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402c65fe
mov al, 1
jmp 0x1402c665e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402c660f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1402c665c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1402b4c9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402c665c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1402c665c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402c665c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1402c665e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1402c7038
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14033f838]
mov edi, ecx
lea rdx, str.GetTempPath2W
mov ecx, 5
lea r8, [0x14033f830]
call fcn.1402c6a8c
test rax, rax
je 0x1402c7082
movabs r10, 0xa3e5bf4030d1b870
mov rdx, rbx
mov ecx, edi
call qword [case.0x140242629.1]
jmp 0x1402c708d
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1402cbff4
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 0x1402cc07b
mov rsi, rbx
cmp word [rax], bp
je 0x1402cc03a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402cc024
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402cc020
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402c3528
mov rdi, rax
test rax, rax
je 0x1402cc068
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14029d6c0
mov rbp, rdi
xor ecx, ecx
call fcn.1402c2c70
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 0x1402ce954
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.1402c31c8
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 0x1402ce9f5
cmp ebx, dword [rsp + 0x30]
je 0x1402ce9ee
test esi, esi
je 0x1402ce9ee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1402ce9c9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1402ce9d6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1402ce9b3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1402ce9da
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1402ce9f7
mov eax, 1
jmp 0x1402ce9f7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140ac2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ac21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ac2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ac206f
add dl, dl
jne 0x140ac2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ac20f6
xor eax, eax
add dl, dl
jne 0x140ac20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ac21ad
add dl, dl
jne 0x140ac20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ac20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ac20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ac20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ac20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ac207e
mov eax, 1
add dl, dl
jne 0x140ac2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ac2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ac20fb
sub eax, ebx
mov ebx, 1
jne 0x140ac214c
mov ecx, 1
add dl, dl
jne 0x140ac212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ac213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ac2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ac207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ac2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ac2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ac215d
cmp eax, 0x7d00
jae 0x140ac219b
cmp eax, 0x500
jb 0x140ac2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ac207e
cmp eax, 0x7f
ja 0x140ac219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ac207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ac21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ac207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140016b60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140016c42
call fcn.14002f3a0
test al, al
jne 0x140016c42
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140016b92
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.14003a360
test rax, rax
je 0x140016bd7
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.14003a360
mov rsi, rax
test rax, rax
je 0x140016bd7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x140016c0b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140027210
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140016bf0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140021f10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa8f], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140021fd9
cmp qword [rcx + 0x258], 0
je 0x140021f8e
mov qword [rsp + 0x40], rbx
call fcn.140011380
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1400116f0
mov rcx, qword [rdi + 0x1d0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x258]
movzx edx, bl
mov rcx, rdi
call fcn.1400116f0
mov rbx, qword [rsp + 0x40]
jmp 0x140021fd9
mov ecx, esi
test edx, edx
je 0x140021f9e
sub ecx, 1
je 0x140021f9e
cmp ecx, 1
jne 0x140021fd9
mov r9, qword [rdi + 0x1c8]
lea rax, [0x14006ea70]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140024b10
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x140024e00
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140024e2a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x14006ef90]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14006efa0]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x140024e89
mov rcx, rbx
test r14, r14
je 0x140024e76
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test r14, r14
je 0x140024ec0
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140024ec0
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140024f88
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140024ef0
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140024f7a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140024f7a
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140024f20
mov word [rax + rsi], 0x5c
inc rdi
cmp byte [rsi + rdi], bpl
jne 0x140024f31
mov rax, rsi
sub rax, rbx
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140024f50
mov rcx, rsi
test r14, r14
je 0x140024f71
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140024f77
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rsi
call qword [case.0x14001826b.0]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14002ac30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x14001826b.1]
mov rdi, rax
test rax, rax
je 0x14002acad
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14002acd8
cmp ebx, esi
je 0x14002acd8
cmp ebx, 0x8000
ja 0x14002acd8
cmp ebx, esi
jb 0x14002acd3
mov edx, ebx
mov rcx, rdi
call qword [case.0x14001826b.1]
mov rdi, rax
test rax, rax
jne 0x14002ac70
mov rcx, rbp
call qword [case.0x14001826b.0]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14002acb8
mov rcx, rdi
jmp 0x14002acb0
Function at 0x14003ab10
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140016f50
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x14001826b.2
mov rcx, rdi
mov rsi, rax
call case.0x14001826b.2
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14003abc0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140016f50
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140016fe0
cmp rax, 0x3e8
ja 0x14003abf1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14003ab70
test rsi, rsi
je 0x14003abcd
mov rcx, rsi
call case.0x14001826b.0
test rbx, rbx
je 0x14003abda
mov rcx, rbx
call case.0x14001826b.0
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14003abfe
mov rcx, rsi
call case.0x14001826b.0
test rbx, rbx
je 0x14003ac0b
mov rcx, rbx
call case.0x14001826b.0
mov eax, 1
jmp 0x14003abdc
Function at 0x14003b170
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14003b30e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14003b2ee
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14003b1de
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14003b1d0
inc rbx
jmp 0x14003b1e0
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14003b1ed
lea ebp, [rax + 0xe]
jmp 0x14003b1f9
cmp eax, 0x17
jne 0x14003b291
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x14003b291
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14003b291
cmp rax, rbp
jb 0x14003b291
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14003b2a0
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x14003b27e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x14003b28e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14003b1c0
jmp 0x14003b2a6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14003b2c0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14003b2e9
test rdi, rdi
je 0x14003b2e5
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [case.0x14001826b.0]
mov rdi, rbx
test rbx, rbx
jne 0x14003b2d0
xor edi, edi
jmp 0x14003b2fd
test rdi, rdi
jne 0x14003b2fd
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x14003b770
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
test rax, rax
je 0x14003b7a6
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret