joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401495c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rsi, r9
mov rbx, rcx
test rcx, rcx
je 0x1401496d4
test r10, r10
je 0x1401496d4
movzx eax, byte [rcx]
test r8d, r8d
jne 0x140149605
cmp al, 0x7f
jbe 0x1401496cd
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x1401496dc
mov r11b, 0xff
cmp al, 0x80
jbe 0x14014961b
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x1401496dc
jne 0x1401496cd
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x1401496be
cmp rcx, 8
jb 0x1401496b0
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax + rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
movd xmm1, dword [rax + rbx + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
cmp rax, rdx
jb 0x140149650
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x1401496be
nop
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x1401496b0
neg edx
sbb r11b, r11b
movzx r11d, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x1401496dc
mov eax, 1
mov r10, rdx
mov qword [rsp + 0x10], rdi
test rsi, rsi
je 0x140149735
mov rdi, qword [r9]
test rdi, rdi
je 0x140149735
movzx r8d, r11b
lea r9, [rbx + r10]
and r8d, 1
mov byte [rdi], r11b
test r10, r10
je 0x140149732
mov ebx, edx
add rbx, rdi
nop word [rax + rax]
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x140149710
add qword [rsi], rax
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
pop rsi
ret
Function at 0x14015b240
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.14022fff0
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.140111fb0
test eax, eax
je 0x14015b27f
xor edx, edx
mov rcx, rbx
call fcn.140112430
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rsi + 8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov r14, qword [rsi]
lea eax, [rbp - 1]
movsxd rdi, eax
xor eax, eax
mov rcx, qword [r14 + rdi*8]
cmp rcx, 1
sete al
sub ebp, eax
cmp rsi, rbx
je 0x14015b2c7
mov edx, ebp
mov rcx, rbx
call fcn.1401129d0
test rax, rax
je 0x14015b32d
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r14 + rdi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rdi*8]
shr rcx, 1
je 0x14015b2e7
mov qword [r8], rcx
test rdi, rdi
jle 0x14015b31e
sub r14, rax
nop
mov rcx, qword [r14 + r8 - 8]
lea r8, [r8 - 8]
mov rax, rcx
dec rdi
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rdi, rdi
jg 0x14015b2f0
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x14015b328
mov dword [rbx + 0x10], ebp
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x14015cbb0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.14022fff0
sub rsp, rax
lea rcx, [0x140325db4]
add rsp, 0x28
jmp fcn.140127c00

Function at 0x1401889a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.14022fff0
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x1401889f3
xor ecx, ecx
cmp rdx, r8
jb 0x1401889f3
sub r8, r10
lea rax, [rcx + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, rcx
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1401889e0
jmp 0x140188a06
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.140155b30
test eax, eax
je 0x140188a37
cmp dword [rsp + 0x40], 0x10
jne 0x140188a37
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x140188be0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140188c68
test r8, r8
je 0x140188c68
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x140188c26
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x140188c10
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x140188c68
sub r8, rax
cmp r8, 0x10
jbe 0x140188c3c
mov r8d, reloc.WS2_32.dll_recv
jmp 0x140188c41
test r8, r8
je 0x140188c68
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x140188c50
ret
Function at 0x14018f700
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xd8
call fcn.14022fff0
sub rsp, rax
mov rax, qword [0x140322440]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, qword [rsp + 0x140]
xor r12d, r12d
mov rax, qword [rcx]
mov rbp, r9
movsxd rbx, r8d
mov rsi, rdx
mov qword [rsp + 0x20], r14
mov rdi, rcx
lea r15d, [r12 + 1]
mov r13d, r12d
test r9, r9
je 0x14018f76f
cmp r9, rax
je 0x14018f767
test rdx, rdx
je 0x14018f7e0
test r8d, r8d
js 0x14018f7e0
mov r13d, r15d
mov qword [rcx], r9
jmp 0x14018f777
test rax, rax
je 0x14018f7e0
mov rbp, rax
mov rcx, rbp
call fcn.140106590
test al, 2
jne 0x14018f7e0
test rsi, rsi
je 0x14018f848
mov rcx, rbp
mov r13d, r15d
call fcn.140133340
cmp eax, 0x90
jg 0x14018f7e0
cmp eax, ebx
jge 0x14018f806
mov rcx, qword [rdi + 8]
mov r8, r14
mov rdx, rbp
call fcn.140116480
test eax, eax
je 0x14018f7e0
mov rcx, qword [rdi + 8]
mov r8, rbx
mov rdx, rsi
call fcn.1401166e0
test eax, eax
je 0x14018f7e0
mov rcx, qword [rdi + 8]
lea rsi, [rdi + 0x20]
mov r8, rsi
lea rdx, [rdi + 0x24]
call fcn.1401163a0
test eax, eax
jne 0x14018f823
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14022f770
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp ebx, 0x90
ja 0x14018f7e0
mov r8, rbx
lea rcx, [rdi + 0x24]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rsi, [rdi + 0x20]
mov dword [rsi], ebx
mov ecx, dword [rsi]
cmp ecx, 0x90
je 0x14018f851
mov eax, ecx
mov r8d, 0x90
sub r8d, ecx
xor edx, edx
lea rcx, [rdi + 0x24]
add rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x14018f851
test r13d, r13d
je 0x14018f926
lea r14, [rsp + 0x30]
mov esi, 0x48
sub r14, rdi
lea rbx, [rdi + 0x25]
lea r15, [rsp + 0x31]
mov rcx, rbx
sub r15, rdi
mov edx, esi
nop
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 2]
xor al, 0x36
mov byte [r14 + rcx - 0x27], al
movzx eax, byte [rcx - 2]
xor al, 0x36
mov byte [r15 + rcx - 0x27], al
sub rdx, 1
jne 0x14018f870
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x10]
call fcn.140116480
test eax, eax
je 0x14018f939
mov rcx, rbp
call fcn.140133340
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.1401166e0
test eax, eax
je 0x14018f939
nop word [rax + rax]
movzx eax, byte [rbx - 1]
lea rbx, [rbx + 2]
xor al, 0x5c
mov byte [rbx + r14 - 0x27], al
movzx eax, byte [rbx - 2]
xor al, 0x5c
mov byte [rbx + r15 - 0x27], al
sub rsi, 1
jne 0x14018f8d0
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x18]
call fcn.140116480
test eax, eax
je 0x14018f939
mov rcx, rbp
call fcn.140133340
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.1401166e0
test eax, eax
je 0x14018f939
lea r15d, [rsi + 1]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call fcn.140116750
test eax, eax
cmovne r12d, r15d
test r13d, r13d
je 0x14018f94d
mov edx, 0x90
lea rcx, [rsp + 0x30]
call fcn.140001240
mov eax, r12d
jmp 0x14018f7e2
Function at 0x1401d6880
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.14022fff0
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401d68a9
lea rax, [0x1401d4ef0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401cde30
lea rax, [0x1401d40b0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401cdb80

Function at 0x1402304b0
Capabilities:
Parse pe header

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

Function at 0x1806a5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1806a51df
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 0x1806a5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806a506f
add dl, dl
jne 0x1806a5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806a50f6
xor eax, eax
add dl, dl
jne 0x1806a50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806a51ad
add dl, dl
jne 0x1806a50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806a50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806a50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806a50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806a50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1806a507e
mov eax, 1
add dl, dl
jne 0x1806a5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806a5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806a50fb
sub eax, ebx
mov ebx, 1
jne 0x1806a514c
mov ecx, 1
add dl, dl
jne 0x1806a512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1806a513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806a5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806a507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1806a5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1806a5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806a515d
cmp eax, 0x7d00
jae 0x1806a519b
cmp eax, 0x500
jb 0x1806a5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806a507e
cmp eax, 0x7f
ja 0x1806a519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806a507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806a51d2
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 0x1806a507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002200
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140049020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x1400022b4
xor ecx, ecx
mov qword [r11 + 8], rbx
mov qword [r11 - 0x28], rcx
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rax
lea rdx, str.SOFTWAREAMDDVR
mov qword [r11 - 0x38], rcx
xor r9d, r9d
mov qword [r11 - 0x18], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
xor bl, bl
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400022aa
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 4]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
movzx ebx, bl
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
jmp 0x1400022b6
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000dbb0
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

Function at 0x1400022e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140049020]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
lea rdx, str.SOFTWAREAMDDVR
mov qword [rsp + 0x38], rax
mov edi, r9d
mov qword [rsp + 0x30], rcx
mov rbx, r8
mov dword [rsp + 0x28], 0xf003f
xor r9d, r9d
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, 0xffffffff80000001
xor sil, sil
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002387
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], edi
lea rdx, str.CustomKey
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
movzx ebx, sil
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x14000238b
movzx eax, sil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000dbb0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400268f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140026926
call fcn.14001980c
mov dword [rax], 0x16
call fcn.1400145f0
jmp 0x140026a45
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140026a45
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140026a45
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140026955
lock or dword [rcx + 0x14], 0x10
jmp 0x140026a45
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140026969
call fcn.140027f58
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140023f5c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400276d4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140026a33
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400269fe
mov rcx, rsi
call fcn.140023f5c
cmp eax, edi
je 0x1400269e9
mov rcx, rsi
call fcn.140023f5c
cmp eax, 0xfffffffe
je 0x1400269e9
mov rcx, rsi
call fcn.140023f5c
movsxd rbx, eax
lea r14, [0x14004b410]
mov rcx, rsi
sar rbx, 6
call fcn.140023f5c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400269f0
lea rdx, [0x1400493c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400269fe
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140026a22
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140026a22
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140026a22
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140026a48
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140026d70
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.14000e580
sub rsp, rax
mov rax, qword [0x140049020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140023f5c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140026dbf
mov rax, rbp
jmp 0x140026ec7
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 + 0x4b410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140027eac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4b410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140026ec3
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 0x140026ec3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140027eac
test rax, rax
js 0x140026ec3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140026ec3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140026eb5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140026eb5
cmp byte [rcx], 0xd
jne 0x140026e9b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140026eaa
cmp byte [rcx + 1], 0xa
jne 0x140026eaa
inc rcx
jmp 0x140026eaa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x49410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140026e7d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140026ec7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000dbb0
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 0x140027228
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004b410]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140027286
cmp word [rdx], r12w
jne 0x140027286
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002728c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400273e7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400273c2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400272c5
mov rcx, r9
jmp 0x1400272e8
cmp r9, rdx
jae 0x1400272ff
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400272a9
jmp 0x1400273e7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400273bc
cmp dword [rsp + 0x80], edi
je 0x1400273bc
mov rdx, r14
lea r11, [0x14004b410]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140027395
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140027368
mov word [rbx], r12w
jmp 0x1400273e3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140027371
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400273e3
cmp word [rsp + 0x70], r12w
jne 0x1400273a2
cmp rbx, rsi
je 0x140027362
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140027eb4
cmp word [rsp + 0x70], r12w
je 0x1400273e7
mov word [rbx], r13w
jmp 0x1400273e3
lea r11, [0x14004b410]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400273df
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400273e7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002ad44
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 0x14002ad74
xor eax, eax
jmp 0x14002ae37
mov rbp, rbx
cmp word [rax], si
je 0x14002ad99
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002ad80
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002ad7c
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.14002948c
movsxd r14, eax
test eax, eax
jne 0x14002add7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002ad6d
mov rcx, r14
call fcn.140022bd0
mov rdi, rax
test rax, rax
jne 0x14002adf0
xor ecx, ecx
call fcn.140022b94
jmp 0x14002adcc
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.14002948c
test eax, eax
jne 0x14002ae21
mov rcx, rdi
call fcn.140022b94
jmp 0x14002ae2b
xor ecx, ecx
call fcn.140022b94
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 0x1800019a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180029f0c]
mov ebx, edi
test ecx, ecx
je 0x180001adb
mov rax, qword [0x180029f00]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800019f8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800019d0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180001adb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180001d20
mov r8d, dword [0x180029f0c]
cmp ebx, r8d
jae 0x180001a68
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180029f00]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180001a61
mov edx, esi
mov ecx, ebx
call fcn.180001c10
mov edi, eax
test eax, eax
jne 0x180001a68
mov r8d, dword [0x180029f0c]
inc ebx
cmp ebx, r8d
jb 0x180001a30
cmp qword [rsp + 0x20], 0
je 0x180001adb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180001ac7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180001ab8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180001a90
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180028d28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret