joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400adec0
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov rbp, rdx
mov r14, rcx
xor sil, sil
xor edi, edi
call fcn.1400a5ca0
test al, al
je 0x1400adf80
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.1400a5890
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x10]
movzx ecx, word [rcx + rdx]
call fcn.140045a10
lea ecx, [rax - 0x41]
mov ebx, 1
shl ebx, cl
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400adf5b
cmp ecx, 0xffffffff
je 0x1400adf6e
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x78]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400adf6e
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x78]
call fcn.140049bf0
and ebx, edi
setne sil
neg ebx
sbb edi, edi
and edi, 0x14
jmp 0x1400ae068
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400a5f90
nop
mov dword [rsp + 0x30], 7
lea rax, [0x1401fefa8]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov ebx, 1
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140045050
test al, al
je 0x1400ae032
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
mov r9d, ebx
lea r8d, [rbx + 6]
movzx edx, word [rax + rcx]
lea rcx, [rsp + 0x70]
call fcn.1400406d0
mov r8d, eax
test eax, eax
jle 0x1400ae01c
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
inc r8d
mov r9d, ebx
movzx edx, word [rax + rcx]
lea rcx, [rsp + 0x70]
call fcn.1400406d0
test eax, eax
jle 0x1400ae01c
mov rcx, qword [rsp + 0x70]
mov edx, dword [rcx + 4]
dec edx
cmp eax, edx
jne 0x1400ae032
lea rcx, [rsp + 0x70]
call fcn.1400ae290
test al, al
je 0x1400ae032
mov edi, 0x10
movzx esi, bl
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ae055
cmp ecx, 0xffffffff
je 0x1400ae068
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x70]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ae068
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x70]
call fcn.140049bf0
test sil, sil
je 0x1400ae092
mov dword [rbp + 0x10], edi
test dil, 0x10
mov ecx, 0x20000
mov eax, 0x40000
cmovne ecx, eax
or ecx, dword [rbp + 4]
bts ecx, 0x16
mov dword [rbp + 4], ecx
or dword [rbp], 0x560000
movzx eax, sil
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ae0b0
Capabilities:
Enumerate network shares

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov r14, rdx
mov r12, rcx
xor ebx, ebx
mov dword [rbp + 0x50], ebx
mov dword [rbp + 0x58], ebx
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x30], ebx
lea r13, [0x1401a1e20]
nop
mov rcx, r12
call fcn.140046630
mov rcx, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp - 0x10]
mov edx, 1
call sub.NETAPI32.dll_NetShareEnum
mov r15d, eax
test eax, eax
je 0x1400ae13c
cmp eax, 0xea
jne 0x1400ae250
mov rdi, qword [rbp - 0x10]
mov esi, 1
cmp dword [rbp + 0x58], esi
jb 0x1400ae250
nop
test r14, r14
je 0x1400ae241
cmp dword [rdi + 8], 0
jne 0x1400ae241
mov r8d, 0xffffffff
mov rdx, qword [rdi]
lea rcx, [rbp - 0x20]
call fcn.140040590
nop
mov rcx, qword [rax]
mov qword [rbp - 0x28], rcx
mov qword [rax], r13
or ebx, 5
test bl, 2
je 0x1400ae1c4
and ebx, 0xfffffffd
mov dword [rbp + 0x50], ebx
mov rax, qword [rbp - 0x18]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ae1af
cmp ecx, 0xffffffff
je 0x1400ae1c1
mov ecx, 0xffffffff
mov rax, qword [rbp - 0x18]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ae1c1
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x18]
call fcn.140049bf0
mov ebx, dword [rbp + 0x50]
and ebx, 0xfffffffe
mov dword [rbp + 0x50], ebx
mov rax, qword [rbp - 0x20]
mov eax, dword [rax]
test eax, eax
je 0x1400ae1eb
cmp eax, 0xffffffff
je 0x1400ae1fe
mov ecx, 0xffffffff
mov rax, qword [rbp - 0x20]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ae1fe
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x20]
call fcn.140049bf0
nop
lea rdx, [rbp - 0x28]
mov rcx, r14
call fcn.140008140
nop
mov rax, qword [rbp - 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ae22c
cmp ecx, 0xffffffff
je 0x1400ae23e
mov ecx, 0xffffffff
mov rax, qword [rbp - 0x28]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ae23e
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x28]
call fcn.140049bf0
mov ebx, dword [rbp + 0x50]
add rdi, 0x18
inc esi
cmp esi, dword [rbp + 0x58]
jbe 0x1400ae150
mov rcx, qword [rbp - 0x10]
call sub.NETAPI32.dll_NetApiBufferFree
cmp r15d, 0xea
je 0x1400ae0f0
test r15d, r15d
sete al
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b1d50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r9d, r9d
mov r10, rcx
mov ecx, r9d
cmp rdx, 0x20
jb 0x1400b1dd7
mov qword [rsp + 0x10], rbx
lea r11, [r8 + 0x10]
mov qword [rsp], rdi
mov rbx, r10
sub rbx, r8
mov edi, 0x10
sub rdi, r8
nop
movdqu xmm1, xmmword [rbx + r11 - 0x10]
add rcx, 0x20
movdqu xmm2, xmmword [rbx + r11]
lea r11, [r11 + 0x20]
movdqa xmm0, xmm1
lea rax, [rdi + r11]
psrlw xmm1, 8
psllw xmm0, 8
pxor xmm0, xmm1
movdqa xmm1, xmm2
psllw xmm1, 8
psrlw xmm2, 8
pxor xmm1, xmm2
movdqu xmmword [r11 - 0x30], xmm0
movdqu xmmword [r11 - 0x20], xmm1
cmp rax, rdx
jbe 0x1400b1d80
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
lea rax, [rcx + 0x10]
cmp rax, rdx
ja 0x1400b1e01
movdqu xmm1, xmmword [rcx + r10]
movdqa xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
pxor xmm0, xmm1
movdqu xmmword [rcx + r8], xmm0
mov rcx, rax
cmp rcx, rdx
jae 0x1400b1e35
lea rax, [rcx + r8]
sub r10, r8
nop dword [rax]
cmp r9, 0x10
jae 0x1400b1e35
movzx ecx, word [rax + r10]
add r9, 2
rol cx, 8
mov word [rax], cx
add rax, 2
mov rcx, rax
sub rcx, r8
cmp rcx, rdx
jb 0x1400b1e10
mov rax, rdx
add rsp, 8
ret
Function at 0x1400b4c00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xa4], 1
je 0x1400a7192
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400b4c00
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x78]
test rcx, rcx
jne 0x1400b4d43
cmp dword [rsi + 0xa0], 0xffffffff
jne 0x1400b4dd3
mov rcx, qword [rsi + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x1400b4dca
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x48], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b4ccc
nop
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400b4cc4
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x1400b4cc4
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400b4c80
test rdi, rdi
je 0x1400b4ccc
mov rax, rdi
jmp 0x1400b4de1
mov edx, 0xffffffff
lea rcx, [rsp + 0x88]
call fcn.14009f5f0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400b4d21
cmp ecx, 0xffffffff
je 0x1400b4dca
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x88]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400b4dca
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x88]
call fcn.140049bf0
mov rax, 0xffffffffffffffff
jmp 0x1400b4de1
call fcn.140133564
mov ecx, eax
call fcn.1401333e8
cmp rax, 0xffffffffffffffff
je 0x1400b4dd3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400b4dd3
mov rcx, qword [rsi + 0x78]
call fcn.1401310b8
test eax, eax
je 0x1400b4dd3
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14009f7a0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400b4db7
cmp ecx, 0xffffffff
je 0x1400b4dca
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400b4dca
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call fcn.140049bf0
mov rax, 0xffffffffffffffff
jmp 0x1400b4de1
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.1400a71b0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400b5020
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
and dword [rbx + 0x40], 0xfdffffff
cmp dword [rbx + 0xa4], 2
je 0x1400a7a09
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 2
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400b5020
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
cmp qword [rcx + 0x78], 0
jne 0x1400b5155
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x1400b5155
mov rcx, qword [rcx + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x1400b514c
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x48], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400b50e9
nop dword [rax]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400b50e4
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x1400b50e4
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400b50a0
test rdi, rdi
je 0x1400b50e9
mov rax, rdi
jmp 0x1400b515a
mov edx, 0xffffffff
lea rcx, [rsp + 0x88]
call fcn.14009f5f0
nop
mov r8, rax
mov edx, 2
mov rcx, r15
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400b5136
cmp ecx, 0xffffffff
je 0x1400b514c
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x88]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400b514c
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x88]
call fcn.140049bf0
mov rax, 0xffffffffffffffff
jmp 0x1400b515a
call fcn.1400a7a30
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400b5820
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 8]
mov rbx, qword [rax + 0x80]
cmp rbx, 0xffffffffffffffff
jne 0x1400b59cb
cmp dword [rax + 0xa0], ebx
jne 0x1400b599f
cmp qword [rax + 0x78], 0
jne 0x1400b599f
lea rcx, [rax + 0x20]
mov rax, qword [rcx]
cmp dword [rax + 4], 0
jne 0x1400b5883
mov rax, qword [rcx + 8]
cmp dword [rax + 4], 0
je 0x1400b5a22
lea rdx, [rsp + 0x80]
call fcn.1400a5890
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400382e0
nop
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax]
mov ebx, 0xffffffff
test ecx, ecx
je 0x1400b58c9
cmp ecx, ebx
je 0x1400b58df
mov ecx, ebx
mov rax, qword [rsp + 0x80]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400b58df
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x80]
call fcn.140049bf0
mov dword [rsp + 0x70], 3
mov edx, 3
lea rcx, [rsp + 0x28]
call fcn.140038e00
test al, al
je 0x1400b598a
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.140039e10
movzx esi, al
test al, al
jne 0x1400b5973
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.140062290
nop
mov r8, rax
mov edx, 0xc
mov rcx, rdi
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400b595c
cmp ecx, 0xffffffff
je 0x1400b5973
mov rax, qword [rsp + 0x88]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1400b5973
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x88]
call fcn.140049bf0
nop
lea rcx, [rsp + 0x28]
call fcn.1400383b0
movzx eax, sil
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [rsp + 0x28]
call fcn.1400383b0
xor al, al
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp rbx, 0xffffffffffffffff
jne 0x1400b59cb
mov rcx, qword [rax + 0x78]
test rcx, rcx
je 0x1400b59b7
call fcn.140133564
mov ecx, eax
jmp 0x1400b59bd
mov ecx, dword [rax + 0xa0]
call fcn.1401333e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b5a22
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
mov rbp, rax
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x38]
mov rdx, rsi
mov rcx, rdi
call r8
test al, al
je 0x1400b5a16
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400b5a16
mov rax, qword [rdi]
cmp rbp, rsi
cmovl rsi, rbp
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x38]
mov al, 1
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rdi]
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x38]
xor al, al
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e9090
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc0
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov eax, 0x40
test r9d, r9d
cmovne eax, r9d
mov dword [rsp + 0x24], eax
cmp eax, 0x40
jle 0x1400e90f5
movsxd rcx, eax
add rcx, rcx
call fcn.14012ab94
mov r8, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x1400e90eb
call fcn.140057ac0
mov r8, qword [rsp + 0x28]
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
jmp 0x1400e9107
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 0x40
mov r9d, eax
mov edx, edi
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400e9124
lea rax, [0x1401a1e20]
mov qword [rbx], rax
jmp 0x1400e91a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400e918c
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, eax
test eax, eax
jne 0x1400e9151
lea rax, [0x1401a1e20]
mov qword [rbx], rax
jmp 0x1400e91a0
mov r8d, edx
cmp edx, dword [rsp + 0x20]
cmovl r8d, dword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.1400ace50
mov r9d, dword [rsp + 0x24]
mov r8, qword [rsp + 0x28]
mov edx, edi
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400e918c
lea rax, [0x1401a1e20]
mov qword [rbx], rax
jmp 0x1400e91a0
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.1400043b0
nop
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
cmp rcx, rax
je 0x1400e91b4
call fcn.1401297e8
mov rax, rbx
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400ea720
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [rcx + 4]
mov rbx, rcx
test eax, eax
jne 0x1400ea7b2
mov ecx, dword [rcx]
lea r9d, [rax + 8]
lea r8, [rsp + 0x20]
mov edx, 0x1014
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400ea7aa
movzx eax, word [rsp + 0x20]
cmp ax, 0x31
je 0x1400ea7aa
cmp ax, 0x30
jne 0x1400ea771
mov eax, 1
jmp 0x1400ea7af
cmp ax, 0x32
je 0x1400ea7a3
mov ecx, dword [rbx]
lea r8, [rsp + 0x30]
mov r9d, 0xb
lea edx, [r9 + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400ea7aa
movzx ecx, word [rsp + 0x30]
movzx eax, word [rsp + 0x20]
add ecx, 2
cmp eax, ecx
jne 0x1400ea7aa
mov eax, 2
jmp 0x1400ea7af
mov eax, 3
mov dword [rbx + 4], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140121c90
add rsp, 0x50
pop rbx
ret

Function at 0x1400ebaa0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov eax, edx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x20], 0
lea rsi, [0x1401a1e20]
mov qword [rcx], rsi
mov dword [rsp + 0x20], 1
mov r9d, 0xff
lea r8, [rsp + 0x50]
mov edx, 0x5a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400ebba3
mov edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140040590
nop
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov qword [rax], rsi
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ebb54
cmp ecx, edi
je 0x1400ebb67
mov ecx, edi
mov rax, qword [rsp + 0x28]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ebb67
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x28]
call fcn.140049bf0
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x38]
mov qword [rbx], rax
mov eax, dword [rcx]
test eax, eax
je 0x1400ebb90
cmp eax, 0xffffffff
je 0x1400ebba3
mov rcx, qword [rsp + 0x30]
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400ebba3
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call fcn.140049bf0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140121c90
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140109850
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x3c], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1401246d0
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 0xffffffff
mov r8d, ebx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140040590
mov rcx, rax
mov rax, qword [rax]
mov qword [rsi], rax
lea rax, [0x1401a1e20]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140109913
cmp eax, ebx
je 0x140109926
mov rcx, qword [rsp + 0x30]
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140109926
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call fcn.140049bf0
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140121c90
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x14011fa20
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x141999ce0]
test rcx, rcx
jne 0x14011fa4a
xor r8d, r8d
lea edx, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x141999ce0], rax
jmp 0x14011fa55
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r10, qword [0x141999cf8]
lea rax, [rbx - 0x10]
mov rcx, qword [rax]
mov r9, rax
sub r9, qword [rax + 8]
sub r10, rcx
mov qword [0x141999cf8], r10
cmp qword [r9], 0
jne 0x14011fa8c
add qword [r9 + 0x20], rcx
lea r8, [r9 + 0x20]
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
jmp 0x14011faba
xor edx, edx
mov qword [rax + 0x20], rcx
mov rcx, qword [0x141999cf0]
lea r8, [rax + 0x20]
mov qword [rax], rdx
mov r9, rax
mov qword [rbx], rcx
mov qword [rax + 0x18], rdx
test rcx, rcx
je 0x14011fab3
mov qword [rcx + 0x18], rax
mov qword [0x141999cf0], rax
mov rcx, qword [r8]
cmp qword [rcx + r9], 0
lea rdx, [rcx + r9]
jne 0x14011fb06
add rcx, qword [rdx + 0x20]
mov qword [r8], rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x14011fae4
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x14011faf3
mov qword [rax + 0x10], rcx
jmp 0x14011fafa
mov qword [0x141999cf0], rcx
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], 0
jne 0x14011fb6c
cmp qword [rdx], 1
jne 0x14011fb6c
mov rcx, qword [0x141999d00]
lea rax, [r10 + r10*2]
sub rcx, qword [r8]
shr rax, 1
cmp rcx, rax
jbe 0x14011fb6c
mov qword [0x141999d00], rcx
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x14011fb45
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x10]
mov rax, qword [r9 + 0x18]
test rax, rax
je 0x14011fb54
mov qword [rax + 0x10], rcx
jmp 0x14011fb5b
mov qword [0x141999cf0], rcx
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x141999ce0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]

Function at 0x140136f7c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140136da8
Function at 0x140001330
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r9d, 4
mov dword [rsp + 0x50], 1
mov rbx, rdx
lea r8, [rsp + 0x50]
mov edi, ecx
or rcx, 0xffffffffffffffff
lea edx, [r9 + 0x32]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov rcx, qword [sym.imp.CSRSRV.dll_CsrUnhandledExceptionFilter]
call qword [sym.imp.ntdll.dll_RtlSetUnhandledExceptionFilter]
mov r9d, 4
mov dword [rsp + 0x58], 0xd
lea r8, [rsp + 0x58]
or rcx, 0xffffffffffffffff
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_RtlSetHeapInformation]
mov r9d, 8
mov dword [rsp + 0x28], 2
lea r8, [rsp + 0x28]
mov dword [rsp + 0x2c], 1
or rcx, 0xffffffffffffffff
lea edx, [r9 + 0x2c]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.CSRSRV.dll_CsrServerInitialization]
mov ebx, eax
test eax, eax
js 0x1400016f8
mov r9d, 4
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
or rcx, 0xffffffffffffffff
lea edx, [r9 + 8]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov edx, ebx
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.ntdll.dll_NtTerminateThread]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
mov edx, ebx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
nop
jmp 0x1400013de

Function at 0x406ce0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040db30]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x406d4d
mov rcx, r8
call fcn.00406bc0
test eax, eax
je 0x406d4d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x406d4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x406d44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x406d4f
add rax, 0x28
cmp rax, r9
jne 0x406d30
xor eax, eax
add rsp, 0x28
ret