joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097c00
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rbp], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x40], 0
test r8d, r8d
je 0x140097dd3
dec r8d
je 0x140097d64
dec r8d
jne 0x140097e36
mov dword [rsp + 0x54], 0x40
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0x40
lea r9d, [r8 + 0x40]
lea r8, [rsp + 0x60]
mov edx, 0x1008
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140097cfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140097cb3
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x140097e36
call fcn.1400fa5e4
jmp 0x140097e36
mov dword [rsp + 0x20], 0xff
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x20]
cmp dword [rsp + 0x50], 0xff
cmovle rax, rcx
mov r8d, dword [rax]
mov edx, 0xff
lea rcx, [rsp + 0x50]
call fcn.14005ea60
mov r9d, dword [rsp + 0x54]
mov r8, qword [rsp + 0x58]
mov edx, 0x1008
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140097c96
or r8d, 0xffffffff
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.14000e320
nop
mov rdx, rax
mov rcx, rdi
call fcn.140094860
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140097d38
cmp eax, 0xffffffff
je 0x140097d47
lock dec dword [rcx]
jne 0x140097d47
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
nop
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x140097e44
call fcn.1400fa5e4
jmp 0x140097e44
mov r9d, 0xd
lea r8, [rbp - 0x20]
lea edx, [r9 + 7]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140097e36
or r8d, 0xffffffff
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x28]
call fcn.14000e320
nop
mov rdx, rax
mov rcx, rdi
call fcn.140094860
nop
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x140097dc3
cmp eax, 0xffffffff
je 0x140097e44
lock dec dword [rcx]
jne 0x140097e44
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
jmp 0x140097e44
mov r9d, 9
lea r8, [rbp - 0x20]
lea edx, [r9 + 0xc]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140097e36
or r8d, 0xffffffff
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.14000e320
nop
mov rdx, rax
mov rcx, rdi
call fcn.140094860
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140097e26
cmp eax, 0xffffffff
je 0x140097e44
lock dec dword [rcx]
jne 0x140097e44
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
jmp 0x140097e44
mov dword [rdi + 8], 0x80000000
mov qword [rdi], 0
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400fb630
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400983e0
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov dword [rsp + 0x28], 0
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 0x100c
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140098482
or r8d, 0xffffffff
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000e320
nop
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rax
call fcn.14001a520
lea edx, [rax + 1]
mov rcx, rdi
call fcn.1400948e0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140098472
cmp eax, 0xffffffff
je 0x14009848f
lock dec dword [rcx]
jne 0x14009848f
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
jmp 0x14009848f
mov edx, 1
mov rcx, rdi
call fcn.1400948d0
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400fb630
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400984b0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0x37], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov esi, r8d
mov rbx, rdx
mov r14, rcx
mov dword [rbp - 0x69], 0
mov edi, 0x40
test r9d, r9d
cmovne edi, r9d
mov dword [rbp - 0x55], edi
cmp edi, 0x40
jle 0x14009851b
movsxd rcx, edi
add rcx, rcx
call fcn.1400fc0e8
mov qword [rbp - 0x51], rax
test rax, rax
jne 0x140098516
call fcn.14000e450
mov rax, qword [rbp - 0x51]
mov edi, dword [rbp - 0x55]
mov dword [rbp - 0x59], edi
jmp 0x14009852a
lea rax, [rbp - 0x49]
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x59], 0x40
mov r9d, edi
mov r8, rax
mov edx, esi
mov ecx, dword [r14]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14009854e
lea rax, [0x14143f7c8]
mov qword [rbx], rax
jmp 0x1400985ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400985bd
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov ecx, dword [r14]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, eax
test eax, eax
jne 0x14009857c
lea rax, [0x14143f7c8]
mov qword [rbx], rax
jmp 0x1400985ce
mov dword [rbp + 0x7f], eax
lea rax, [rbp - 0x59]
lea rcx, [rbp + 0x7f]
cmp edx, dword [rbp - 0x59]
cmovge rax, rcx
mov r8d, dword [rax]
lea rcx, [rbp - 0x59]
call fcn.14005ea60
mov r9d, dword [rbp - 0x55]
mov r8, qword [rbp - 0x51]
mov edx, esi
mov ecx, dword [r14]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400985bd
lea rax, [0x14143f7c8]
mov qword [rbx], rax
jmp 0x1400985ce
or r8d, 0xffffffff
mov rdx, qword [rbp - 0x51]
mov rcx, rbx
call fcn.14000e320
nop
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x51]
cmp rcx, rax
je 0x1400985e0
call fcn.1400fa5e4
mov rax, rbx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140098c70
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rdi, rdx
mov dword [rsp + 0x20], 0
mov r9d, 2
lea r8, [rsp + 0x50]
lea edx, [r9 + 0xb]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140098d54
or r8d, 0xffffffff
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14000e320
nop
mov dword [rsp + 0x30], 1
lea rax, [0x14150e9f8]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140012a80
test al, al
je 0x140098d2c
mov edx, 1
mov rcx, rdi
call fcn.1400948d0
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x140098d1c
cmp eax, 0xffffffff
je 0x140098d5e
lock dec dword [rcx]
jne 0x140098d5e
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
jmp 0x140098d5e
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x140098d46
cmp eax, 0xffffffff
je 0x140098d54
lock dec dword [rcx]
jne 0x140098d54
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
xor edx, edx
mov rcx, rdi
call fcn.1400948d0
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140099160
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
xor edi, edi
mov dword [rsp + 0x28], edi
lea r9d, [rdi + 0xf]
lea r8, [rsp + 0x38]
lea edx, [rdi + 0x29]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400991f1
or r8d, 0xffffffff
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000e320
nop
mov rdx, rax
mov rcx, rbx
call fcn.140094860
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400991e1
cmp eax, 0xffffffff
je 0x1400991fb
lock dec dword [rcx]
jne 0x1400991fb
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
jmp 0x1400991fb
mov dword [rbx + 8], 0x80000000
mov qword [rbx], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400fb630
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400998a0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rcx + 4], 0
mov rbx, rcx
jne 0x140099964
mov ecx, dword [rcx]
lea r8, [rsp + 0x20]
mov r9d, 8
mov edx, 0x1014
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400998fd
mov dword [rbx + 4], 3
mov eax, 3
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400fb630
add rsp, 0x50
pop rbx
ret
movzx eax, word [rsp + 0x20]
cmp ax, 0x31
jne 0x140099911
mov dword [rbx + 4], 3
jmp 0x140099964
cmp ax, 0x30
jne 0x140099920
mov dword [rbx + 4], 1
jmp 0x140099964
cmp ax, 0x32
jne 0x14009992f
mov dword [rbx + 4], 2
jmp 0x140099964
mov ecx, dword [rbx]
mov r9d, 0xb
lea r8, [rsp + 0x30]
lea edx, [r9 + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400998de
movzx ecx, word [rsp + 0x30]
movzx eax, word [rsp + 0x20]
xor edx, edx
add ecx, 2
cmp eax, ecx
setne dl
add edx, 2
mov dword [rbx + 4], edx
mov eax, dword [rbx + 4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400fb630
add rsp, 0x50
pop rbx
ret
Function at 0x14009ac60
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, edx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x20], 0
lea rcx, [0x14143f7c8]
mov qword [rbx], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0xff
lea r8, [rsp + 0x40]
mov edx, 0x5a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14009ad13
or r8d, 0xffffffff
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.14000e320
mov rdx, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14009ad05
cmp eax, 0xffffffff
je 0x14009ad13
lock dec dword [rcx]
jne 0x14009ad13
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400fb630
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x1400a6170
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x268], rbx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
cmp eax, 0x104
jbe 0x1400a61f9
mov dword [rsp + 0x260], eax
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x260]
cmp edi, dword [rsp + 0x30]
cmovge rcx, rax
mov r8d, dword [rcx]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.14005e960
mov edx, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
mov r8d, edi
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000e320
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x1400a621e
call fcn.1400fa5e4
mov rax, rbx
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1400ac530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov ecx, dword [rdi + 0x44]
sub esi, dword [rdi + 0x9c]
add ecx, 0xfffffefa
add ecx, ebx
sub esi, edx
cmp edx, ecx
jb 0x1400ac5df
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.1400f97d0
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
lea rdx, [rdx - 2]
cmp eax, ebx
jb 0x1400ac5b0
sub eax, ebx
jmp 0x1400ac5b2
xor eax, eax
mov word [rdx], ax
dec r8d
jne 0x1400ac5a0
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
movzx eax, word [rcx - 2]
lea rcx, [rcx - 2]
cmp eax, ebx
jb 0x1400ac5d4
sub eax, ebx
jmp 0x1400ac5d6
xor eax, eax
mov word [rcx], ax
dec edx
jne 0x1400ac5c4
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x1400ac6cc
mov edx, dword [rdi + 0x9c]
mov eax, dword [rdi + 0x94]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.1400ac920
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x1400ac647
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x1400ac65d
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1400ac550
mov ecx, dword [rdi + 0x1718]
mov esi, dword [rdi + 0x58]
cmp ecx, esi
jae 0x1400ac6cc
mov ebx, dword [rdi + 0x94]
add ebx, r9d
cmp ecx, ebx
jae 0x1400ac69e
sub esi, ebx
mov eax, 0x102
mov ecx, ebx
cmp esi, eax
cmova esi, eax
add rcx, qword [rdi + 0x50]
xor edx, edx
mov r8d, esi
call fcn.1400fb660
lea eax, [rsi + rbx]
mov dword [rdi + 0x1718], eax
jmp 0x1400ac6cc
lea eax, [rbx + 0x102]
cmp ecx, eax
jae 0x1400ac6cc
sub ebx, ecx
sub esi, ecx
mov eax, 0x102
add ebx, eax
cmp ebx, esi
cmova ebx, esi
add rcx, qword [rdi + 0x50]
xor edx, edx
mov r8d, ebx
call fcn.1400fb660
add dword [rdi + 0x1718], ebx
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400adcb0
Capabilities:
Encode data using xor

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 edi, r8d
mov rsi, rdx
mov rbp, rcx
mov r14d, r8d
test rcx, rcx
je 0x1400addd2
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x1400addd2
test rdx, rdx
je 0x1400addd2
mov eax, dword [rbx + 0x2c]
cmp eax, 2
je 0x1400addd2
cmp eax, 1
jne 0x1400add10
cmp dword [rbx + 8], 0x2a
jne 0x1400addd2
cmp eax, 0
je 0x1400add20
mov ecx, dword [rcx + 0x4c]
call sym.Xin_1101_Q.exe_z_adler32
mov dword [rbp + 0x4c], eax
cmp edi, 3
jb 0x1400addce
mov eax, dword [rbx + 0x44]
cmp edi, eax
jbe 0x1400add3a
sub edi, eax
mov r14d, eax
mov eax, edi
add rsi, rax
mov rcx, qword [rbx + 0x50]
mov r8d, r14d
mov rdx, rsi
call fcn.1400f97d0
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x80]
mov dword [rbx + 0x94], r14d
mov dword [rbx + 0x84], r14d
movzx edx, byte [rax]
mov dword [rbx + 0x70], edx
movzx eax, byte [rax + 1]
shl edx, cl
xor edx, eax
xor r9d, r9d
and edx, dword [rbx + 0x7c]
add r14d, 0xfffffffd
mov r10d, r9d
mov dword [rbx + 0x70], edx
nop
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x80]
mov edx, dword [rbx + 0x4c]
movzx r8d, byte [rax + r10 + 2]
mov eax, dword [rbx + 0x70]
and rdx, r10
shl eax, cl
mov rcx, qword [rbx + 0x60]
inc r10
xor r8d, eax
mov rax, qword [rbx + 0x68]
and r8d, dword [rbx + 0x7c]
mov dword [rbx + 0x70], r8d
movzx eax, word [rax + r8*2]
mov word [rcx + rdx*2], ax
mov ecx, dword [rbx + 0x70]
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*2], r9w
inc r9d
cmp r9d, r14d
jbe 0x1400add80
xor eax, eax
jmp 0x1400addd7
mov eax, 0xfffffffe
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
Function at 0x1400b2e20
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x68], 0x1000
xor edi, edi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400b2e68
mov edi, dword [rsp + 0x60]
jmp 0x1400b2e7a
cmp byte [rbx + 0x78], dil
jne 0x1400b2e7a
mov byte [rbx + 0x78], 1
mov rcx, rbx
call fcn.1400c6500
mov dword [rsp + 0x70], edi
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
cmp edi, 0x1000
cmovae rax, rcx
mov edi, dword [rax]
cmp byte [rbx + 0x78], 0
jne 0x1400b2f75
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400b2ebe
movsxd rdx, dword [rbx + 0x60]
sub rcx, rdx
cmp rdi, rcx
jle 0x1400b2ebe
mov edi, dword [rbx + 0x40]
sub edi, edx
je 0x1400b2f75
lea rcx, [rbx + 0x48]
mov edx, edi
call fcn.14003dff0
mov byte [rbx + 0x6c], 1
lea rcx, [rbx + 0x18]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, edi
mov rdx, rax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400b2f75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, eax
sub ecx, 0x6d
je 0x1400b2f65
sub ecx, 0x7c
je 0x1400b2f65
dec ecx
je 0x1400b2f75
cmp ecx, 0x2fb
je 0x1400b2f75
mov byte [rbx + 0x6c], 0
mov edx, 0x22
lea rcx, [0x141521c00]
call fcn.140015480
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x78]
mov edx, edi
mov rcx, rbx
call fcn.1400c6600
nop
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400b2f55
cmp eax, 0xffffffff
je 0x1400b2f75
lock dec dword [rcx]
jne 0x1400b2f75
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
jmp 0x1400b2f75
mov byte [rbx + 0x6c], 0
mov byte [rbx + 0x78], 1
mov rcx, rbx
call fcn.1400c6500
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x1400beb40
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
mov qword [rbp - 0x68], rcx
xor esi, esi
mov dword [rsp + 0x70], esi
lea rax, [0x141468e50]
mov qword [rcx], rax
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], rsi
or r8d, 0xffffffff
lea rdx, [0x141555b48]
lea rcx, [rsp + 0x78]
call fcn.140001960
nop
mov rcx, rax
call fcn.14001afc0
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400bebfb
cmp eax, 0xffffffff
je 0x1400bec09
lock dec dword [rcx]
jne 0x1400bec09
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
test bl, bl
je 0x1400bed35
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400bed2a
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400bed2a
mov ebx, esi
nop dword [rax + rax]
mov dword [rsp + 0x74], 0xff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x74]
lea r8, [rbp - 0x60]
mov edx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400bed1e
or r8d, 0xffffffff
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x78]
call fcn.14000e320
nop
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.1400420f0
nop
mov rdx, rax
mov rcx, rdi
call fcn.140029a40
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400bece9
cmp eax, 0xffffffff
je 0x1400becf8
lock dec dword [rcx]
jne 0x1400becf8
mov rcx, qword [rbp - 0x80]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140011b40
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400bed10
cmp eax, 0xffffffff
je 0x1400bed1e
lock dec dword [rcx]
jne 0x1400bed1e
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400bec70
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400fb630
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400c0860
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor eax, eax
mov rsi, rcx
mov rdi, r8
mov rbx, rdx
lea rcx, [rsp + 0x42]
mov r8d, 0x206
xor edx, edx
mov dword [rsp + 0x34], eax
mov word [rsp + 0x40], ax
call fcn.1400fb660
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [rsp + 0x40]
or r8d, 0xffffffff
mov rcx, rsi
call fcn.14000e320
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400fb630
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400c0c30
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x1415b0b50]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor esi, esi
mov dword [rsp + 0x30], esi
lea ecx, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov word [rsp + 0x20], si
lea r9d, [rsi + 3]
lea r8, [rsp + 0x48]
lea edx, [rsi + 4]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
or edi, 0xffffffff
cmp eax, 3
jne 0x1400c0cb0
mov r8d, edi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.14000e320
nop
mov esi, 1
mov dword [rsp + 0x30], esi
mov rcx, rax
call fcn.140048180
mov ebx, eax
jmp 0x1400c0cb2
mov ebx, esi
test sil, 1
je 0x1400c0ce0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1400c0cd2
cmp eax, 0xffffffff
je 0x1400c0ce0
lock dec dword [rcx]
jne 0x1400c0ce0
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400fb630
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret