joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442a80
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x442bea
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x442a98
cmp edx, ecx
jne 0x442bd8
nop dword [rax]
test rsi, rsi
jne 0x442bd8
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x442af4
nop
call fcn.00460d80
xorps xmm15, xmm15
mov r14, qword [0x00601368]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00442980
mov rcx, qword [0x005ae408]
mov rdx, qword [0x005ae400]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x442bd3
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x442bc8
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x005aee90]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x005aee90], rbx
nop
mov edx, 1
lea rsi, [0x005aee98]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x442bb7
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004c0d80]
mov ebx, 0x28
call fcn.004342c0
mov rcx, rax
mov rax, rsi
call fcn.0045f3e0
call fcn.004328e0
lea rax, [0x004c013d]
mov ebx, 0x23
call fcn.004342c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045cd80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00442a80
Function at 0x44d8c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44da38
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44d8fc
test r8b, r8b
jne 0x44d8fc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44d90f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44d9f8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44d9e6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44d9dc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44d963
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44d9a6
mov eax, 1
cmp rax, rbx
ja 0x44d995
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045f4a0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44d9d4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44d99d
mov r8d, eax
mov eax, r10d
jmp 0x44d968
mov rcx, rbx
call fcn.0045f3e0
xor eax, eax
mov rcx, rax
call fcn.0045f3e0
mov eax, r8d
mov rcx, rbx
call fcn.0045f4a0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44da2e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44d9f1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44d915
mov eax, edx
mov rcx, rbx
call fcn.0045f3e0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045f3e0
nop
int3
Function at 0x455100
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4551b9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00455200]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045cc40
xorps xmm15, xmm15
mov r14, qword [0x00601368]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045cd80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00455100
Function at 0x45ee20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x402fef
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409680
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045cd80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402fc0
cmp byte [0x0060118f], 0
je 0x45ee35
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45be80
jmp 0x402fc0

Function at 0x45ee40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00601440]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0060118f], 0
je 0x45ee75
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00601780]
aesenc xmm0, xmmword [0x00601790]
aesenc xmm0, xmmword [0x006017a0]
movq rax, xmm0
ret
jmp 0x409880

Function at 0x45ee80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00601440]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0060118f], 0
je 0x45eeb6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00601780]
aesenc xmm0, xmmword [0x00601790]
aesenc xmm0, xmmword [0x006017a0]
movq rax, xmm0
ret
jmp 0x4098e0

Function at 0x4608a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x00601700]
mov qword [rsp + 8], rdx
lea r8d, [0x006011a8]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045ed60
add rsp, 0x30
ret

Function at 0x460de0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x460e0c
call fcn.0045ed60
shl rcx, 3
add rcx, 0x1480
mov qword [0x00601368], rcx
ret
Function at 0x1800011b0
Capabilities:
Create thread
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, str.start_cmd.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
cmp ebx, 1
jne 0x180001207
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180001207
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x141278058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1412781df
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 0x141278089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14127806f
add dl, dl
jne 0x141278096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412780f6
xor eax, eax
add dl, dl
jne 0x1412780a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412781ad
add dl, dl
jne 0x1412780b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412780c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412780d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412780dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412780ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14127807e
mov eax, 1
add dl, dl
jne 0x141278106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141278113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412780fb
sub eax, ebx
mov ebx, 1
jne 0x14127814c
mov ecx, 1
add dl, dl
jne 0x14127812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14127813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141278123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14127807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141278168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141278175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14127815d
cmp eax, 0x7d00
jae 0x14127819b
cmp eax, 0x500
jb 0x141278196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14127807e
cmp eax, 0x7f
ja 0x14127819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14127807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412781d2
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 0x14127807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002b7c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0xa0a0a0a1
mul r10d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r10w
inc r10d
sub ax, cx
add ax, 0x34
xor ax, word [r9 + r8]
mov word [r8], ax
lea r8, [r8 + 2]
cmp r10d, 7
jl 0x14002b7cc
ret

Function at 0x14002b800
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0xa0a0a0a1
mul r10d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r10w
inc r10d
sub ax, cx
add ax, 0x34
xor ax, word [r9 + r8]
mov word [r8], ax
lea r8, [r8 + 2]
cmp r10d, 0x11
jl 0x14002b80c
ret

Function at 0x14002b840
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0xa0a0a0a1
mul r10d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r10w
inc r10d
sub ax, cx
add ax, 0x34
xor ax, word [r9 + r8]
mov word [r8], ax
lea r8, [r8 + 2]
cmp r10d, 0x12
jl 0x14002b84c
ret

Function at 0x14002b880
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0xa0a0a0a1
mul r10d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r10w
inc r10d
sub ax, cx
add ax, 0x34
xor ax, word [r9 + r8]
mov word [r8], ax
lea r8, [r8 + 2]
cmp r10d, 0x13
jl 0x14002b88c
ret

Function at 0x14002b8c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0xa0a0a0a1
mul r10d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r10w
inc r10d
sub ax, cx
add ax, 0x34
xor ax, word [r9 + r8]
mov word [r8], ax
lea r8, [r8 + 2]
cmp r10d, 0x16
jl 0x14002b8cc
ret

Function at 0x14002b900
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0xa0a0a0a1
mul r10d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r10w
inc r10d
sub ax, cx
add ax, 0x34
xor ax, word [r9 + r8]
mov word [r8], ax
lea r8, [r8 + 2]
cmp r10d, 0xd
jl 0x14002b90c
ret

Function at 0x14002b940
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0xa0a0a0a1
mul r10d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r10w
inc r10d
sub ax, cx
add ax, 0x34
xor ax, word [r9 + r8]
mov word [r8], ax
lea r8, [r8 + 2]
cmp r10d, 0xf
jl 0x14002b94c
ret
Function at 0x14002c304
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140070610
mov rax, rcx
neg rcx
test rax, 7
je 0x14007062d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140070688
test al, 7
jne 0x140070620
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140070641
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400706b2
test dh, dh
je 0x1400706ac
shr rdx, 0x10
test dl, dl
je 0x1400706a6
test dh, dh
je 0x1400706a0
shr rdx, 0x10
test dl, dl
je 0x14007069a
test dh, dh
je 0x140070694
shr edx, 0x10
test dl, dl
je 0x14007068e
test dh, dh
jne 0x140070641
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400520e4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140037aca
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140037aad
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140037a98

Function at 0x1400520f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140037b02
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140037ae5
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140037ad0

Function at 0x140070b78
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 0x14007096f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007096f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007096f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007096f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007096f
cmp dword [rcx + 0x84], 0xe
jbe 0x14007096f
cmp dword [rcx + 0xf8], 0
je 0x14007096f
mov ecx, ebx
call fcn.140070a80
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.1400706d4
nop
cmp dword [rbp + 0x20], 0
je 0x1400709bd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400709c8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140070900
Function at 0x1400b0f44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b0f5a
mov al, 1
jmp 0x1400b0fba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b0f6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b0fb8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400bd980
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b0fb8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b0fb8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b0fb8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b0fba
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400bbfd8
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 0x1400bc008
xor eax, eax
jmp 0x1400bc0cb
mov rbp, rbx
cmp word [rax], si
je 0x1400bc02d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400bc014
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400bc010
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.1400b8134
movsxd r14, eax
test eax, eax
jne 0x1400bc06b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400bc001
mov rcx, r14
call fcn.1400b2ea8
mov rdi, rax
test rax, rax
jne 0x1400bc084
xor ecx, ecx
call fcn.1400add70
jmp 0x1400bc060
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.1400b8134
test eax, eax
jne 0x1400bc0b5
mov rcx, rdi
call fcn.1400add70
jmp 0x1400bc0bf
xor ecx, ecx
call fcn.1400add70
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 0x1400bc0e8
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 0x1400bc16f
mov rsi, rbx
cmp word [rax], bp
je 0x1400bc12e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400bc118
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400bc114
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b2ea8
mov rdi, rax
test rax, rax
je 0x1400bc15c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005f940
mov rbp, rdi
xor ecx, ecx
call fcn.1400add70
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 0x1400c0438
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.1400ad9c8
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 0x1400c04d9
cmp ebx, dword [rsp + 0x30]
je 0x1400c04d2
test esi, esi
je 0x1400c04d2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400c04ad
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400c04ba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400c0497
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400c04be
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400c04db
mov eax, 1
jmp 0x1400c04db
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c344c
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, [0x1402797a0]
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 0x1400c34a3
cmp word [rdx], r13w
jne 0x1400c34a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400c34a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400c35cd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400c35ee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400c34e1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400c3508
cmp r9, r8
jae 0x1400c3518
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 0x1400c34c2
jmp 0x1400c35cd
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 0x1400c35c2
cmp dword [rsp + 0x80], esi
je 0x1400c35c2
lea r8, [0x1402797a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400c359a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400c356a
mov word [rbx], r13w
jmp 0x1400c35ca
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 0x1400c3577
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400c35ca
cmp word [rsp + 0x70], r13w
jne 0x1400c35a7
cmp rbx, r14
je 0x1400c3564
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400c25e8
cmp word [rsp + 0x70], r13w
je 0x1400c35cd
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, [0x1402797a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400c35c7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400c35cd