joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a4a70
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.14009a9e4
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 0x1400a4b11
cmp ebx, dword [rsp + 0x30]
je 0x1400a4b0a
test esi, esi
je 0x1400a4b0a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a4ae5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a4af2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a4acf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a4af6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a4b13
mov eax, 1
jmp 0x1400a4b13
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a5ba4
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 0x1400a5c2b
mov rsi, rbx
cmp word [rax], bp
je 0x1400a5bea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a5bd4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a5bd0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009b428
mov rdi, rax
test rax, rax
je 0x1400a5c18
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140085ae0
mov rbp, rdi
xor ecx, ecx
call fcn.14009b1e8
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 0x1400a9e90
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.14009fcb8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009fcb8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a9fe0
cmp rax, 0xffffffffffffffff
je 0x1400a9fe0
xor edi, edi
test rbp, rbp
jle 0x1400a9f8b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009c9b4
mov rbx, rax
test rax, rax
jne 0x1400a9f18
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a9f81
mov edx, 0x8000
mov ecx, r14d
call fcn.14009a2dc
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.14009e408
cmp eax, 0xffffffff
je 0x1400a9f61
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a9f28
mov edx, r15d
mov ecx, r14d
call fcn.14009a2dc
jmp 0x1400a9f81
cmp byte [rsi + 0x38], dil
je 0x1400a9f78
cmp dword [rsi + 0x34], 5
jne 0x1400a9f78
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400a9f81
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009b1e8
jmp 0x1400a9ff4
jns 0x1400a9ff4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009fcb8
cmp rax, 0xffffffffffffffff
jne 0x1400a9fac
cmp byte [rsi + 0x30], dil
je 0x1400a9ff4
mov edi, dword [rsi + 0x2c]
jmp 0x1400a9ff4
mov ecx, r14d
call fcn.1400a61f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a9ff4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400a9ff4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a9fed
mov eax, dword [rsi + 0x2c]
jmp 0x1400a9ff2
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009fcb8
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 0x1400aa770
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400aa798
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400aa798
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000108c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400c26e4
jmp 0x1400c259c
push rbx
sub rsp, 0x50
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r10d, r10d
mov rbx, r8
mov eax, r10d
mov r11, rdx
cmp rax, 0x20
mov r9, rcx
jae 0x1400c269b
mov byte [rsp + rax + 0x20], r10b
inc rax
cmp rax, 0x20
jl 0x1400c25c4
movzx r8d, byte [r11]
inc r11
mov edx, r8d
mov eax, r8d
shr rdx, 3
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
mov byte [rsp + rdx + 0x20], cl
test r8b, r8b
jne 0x1400c25d8
test r9, r9
jne 0x1400c2605
mov r9, qword [rbx]
movzx r8d, byte [r9]
mov edx, 1
mov ecx, r8d
shr r8, 3
and ecx, 7
shl edx, cl
test byte [rsp + r8 + 0x20], dl
je 0x1400c264a
mov r8b, byte [r9]
test r8b, r8b
je 0x1400c264a
inc r9
mov edx, 1
movzx r8d, byte [r9]
mov eax, r8d
mov ecx, r8d
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x1400c2624
mov r11, r9
jmp 0x1400c266e
movzx r8d, byte [r9]
mov edx, 1
mov ecx, r8d
shr r8, 3
and ecx, 7
shl edx, cl
test byte [rsp + r8 + 0x20], dl
jne 0x1400c2675
inc r9
cmp byte [r9], r10b
jne 0x1400c264f
jmp 0x1400c267b
mov byte [r9], r10b
inc r9
cmp r9, r11
mov qword [rbx], r9
cmovne r10, r11
mov rax, r10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x50
pop rbx
ret
call fcn.140002275
int3
sub rsp, 0x28
test r8, r8
jne 0x1400c2704
call fcn.1400033cd
mov dword [rax], socket
call fcn.140004845
xor eax, eax
add rsp, 0x28
ret
test rdx, rdx
je 0x1400c26ed
test rcx, rcx
jne 0x1400c2713
cmp qword [r8], rcx
je 0x1400c26ed
add rsp, 0x28
jmp 0x140002bd5

Function at 0x140001195
Capabilities:
Read file on windows

Disassembly:
jmp 0x140083390
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x1400833bd
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x1400833d8
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x40]
cmp dword [rcx + 0x218], edi
jne 0x140083402
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rcx + 0x230], rdi
mov qword [rsp + 0x48], rsi
lea rsi, [rcx + 0x228]
mov rcx, qword [rcx + 0x208]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x140083468
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140083466
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400011a4
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140095fbc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1401432d0]
mov edi, ecx
lea rdx, [0x1401432d8]
mov ecx, 7
lea r8, [0x1401432c8]
call fcn.140095730
mov rsi, rax
test rax, rax
je 0x140096008
mov rcx, rax
call fcn.140002f18
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x140096013
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400011f4
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401036cc
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x1401037a0
mov rsi, rax
cmp word [rax], r14w
je 0x14010371f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140103707
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140103703
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x1401037a0
mov rcx, rbp
call fcn.140002397
mov rdi, rax
test rax, rax
je 0x140103793
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140103793
mov rsi, rdi
mov rdi, r14
jmp 0x140103796
mov rsi, r14
mov rcx, rdi
call fcn.140005173
jmp 0x1401037a3
mov rsi, r14
test rbx, rbx
je 0x1401037b1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400012b7
Capabilities:
Connect pipe

Disassembly:
jmp 0x140082a60
push rdi
sub rsp, 0x20
mov rdi, rcx
xor eax, eax
mov rcx, qword [rcx + 0x208]
cmp rcx, 0xffffffffffffffff
je 0x140082ac8
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
cmp dword [rdi + 0x214], eax
jne 0x140082aad
cmp dword [rdi + 0x218], eax
jne 0x140082ace
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x140082aad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x140082abc
mov ebx, 1
mov dword [rdi + 0x210], 1
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, [rdi + 0x278]
mov qword [rdi + 0x278], rax
mov qword [rdi + 0x280], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x140082ab2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140082aa6
mov rcx, qword [rdi + 0x208]
lea r9d, [rbx + 1]
lea r8, [rsp + 0x30]
lea rdx, [rdi + 0x278]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
test eax, eax
jne 0x140082ab2
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001348
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x140014f90
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x20], 0x67452301
mov qword [rsp + 0x24], rax
mov ebx, r8d
mov qword [rsp + 0x2c], rax
mov rdi, rdx
mov qword [rsp + 0x34], rax
mov rsi, rcx
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x30], 0xc3d2e1f0
mov qword [rsp + 0x38], rax
test r8d, 0xfffffe00
je 0x14001501f
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140002671
add rdi, 0x40
add ebx, 0xfffffe00
test ebx, 0xfffffe00
jne 0x140015000
movzx r8d, bx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140003977
lea r9, [rsp + 0x20]
mov r8d, 5
sub r9, rsi
nop
mov ecx, dword [r9 + rsi]
lea rsi, [rsi + 4]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi - 4], edx
sub r8, 1
jne 0x140015040
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400014d3
Capabilities:
Encode data using base64

Disassembly:
jmp 0x140014d40
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
xor eax, eax
movzx r11d, r8w
mov word [rsp + 0x19], ax
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov byte [rsp + 0x1b], al
mov rdi, rdx
mov eax, 0x55555556
mov byte [rsp + 0x18], 0
imul r11d
xor r10d, r10d
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea eax, [rbx + rbx*2]
sub r11d, eax
test ebx, ebx
jle 0x140014e16
nop dword [rax]
movzx edx, r10w
lea r8, [rdi + rdx*2]
add r8, rdx
movzx edx, byte [r8]
movzx r9d, byte [r8 + 1]
movzx eax, dl
shr al, 2
mov byte [rsp + 0x18], al
movzx eax, r9b
shr al, 4
shl dl, 4
or al, dl
shl r9b, 2
movzx edx, byte [r8 + 2]
and al, 0x3f
mov byte [rsp + 0x19], al
mov r8d, 4
movzx eax, dl
shr al, 6
or al, r9b
and al, 0x3f
and dl, 0x3f
mov byte [rsp + 0x1a], al
mov byte [rsp + 0x1b], dl
lea rdx, [rsp + 0x18]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx eax, byte [rax + rsi]
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140014df0
inc r10w
movzx eax, r10w
cmp eax, ebx
jl 0x140014d90
sub r11d, 1
je 0x140014ea2
cmp r11d, 1
jne 0x140014e8f
movzx edx, r10w
lea rax, [rdi + rdx*2]
movzx r8d, byte [rdx + rax]
movzx r10d, byte [rdx + rax + 1]
movzx r9d, r8b
movzx edx, r10b
shr r9b, 2
shr dl, 4
and r10b, 0xf
movzx eax, r9b
shl r8b, 4
or dl, r8b
and dl, 0x3f
movzx eax, byte [rax + rsi]
mov byte [rcx], al
movzx eax, dl
shl r10b, 2
movzx eax, byte [rax + rsi]
mov byte [rcx + 1], al
movzx eax, r10b
movzx eax, byte [rax + rsi]
mov byte [rcx + 2], al
mov word [rcx + 3], 0x3d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov byte [rcx], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov rbx, qword [rsp + 8]
movzx edx, r10w
lea rax, [rdi + rdx*2]
mov rdi, qword [rsp + 0x20]
movzx r8d, byte [rdx + rax]
movzx eax, r8b
and r8b, 3
shr al, 2
movzx eax, al
shl r8b, 4
movzx eax, byte [rax + rsi]
mov byte [rcx], al
movzx eax, r8b
movzx eax, byte [rax + rsi]
mov rsi, qword [rsp + 0x10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
mov byte [rcx + 4], 0
ret

Function at 0x1400014e7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140095f50
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1401432b0]
mov ecx, 6
lea r8, [0x1401432a8]
lea rdx, [0x1401432b8]
call fcn.140095730
mov rdi, rax
test rax, rax
je 0x140095f91
mov rcx, rax
call fcn.140002f18
mov ecx, ebx
call rdi
jmp 0x140095f99
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001956
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140019390
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
xor ebx, ebx
mov r15, r9
mov rbp, r8
mov rdi, rdx
mov r14, rcx
mov qword [r12], rbx
cmp rdx, 2
jb 0x1400194f1
movzx ecx, word [rcx]
lea esi, [rbx + 2]
mov eax, 6
lea r13d, [rbx + 0x7f]
movzx edx, cx
mov r8d, 0x7e
shr dx, 0xf
and dl, 1
cmovne esi, eax
movzx eax, cx
shr ax, 8
and ax, 0x7f
cmp r8w, ax
jne 0x140019406
add rsi, 2
jmp 0x140019410
cmp r13w, ax
jne 0x140019410
add rsi, 8
cmp rdi, rsi
jb 0x1400194f1
test rsi, rsi
je 0x1400194f1
test cl, 0x70
je 0x140019431
mov eax, 0xf1
jmp 0x1400194f6
test cl, cl
jns 0x140019427
test dl, dl
je 0x140019427
movzx ecx, byte [r14]
and cl, 0xf
lea eax, [rcx - 1]
cmp al, 1
jbe 0x14001944e
lea eax, [rcx - 8]
cmp al, 2
ja 0x140019427
movzx eax, cl
lea r8, [rsp + 0x70]
mov rcx, r14
mov dword [rsp + 0x70], eax
mov rdx, rdi
call fcn.140019290
mov r8, rax
test rax, rax
je 0x1400194eb
mov rax, rdi
sub rax, rsi
cmp r8, rax
ja 0x1400194f1
jae 0x140019484
sub rdi, rsi
sub rdi, r8
mov qword [r12], rdi
movzx ecx, word [r14]
movzx eax, cx
shr ax, 0xf
test al, 1
je 0x140019427
shr cx, 8
mov eax, 0x7e
and cx, r13w
cmp ax, cx
jne 0x1400194ab
lea rdx, [r14 + 4]
jmp 0x1400194b9
lea rdx, [r14 + 0xa]
cmp r13w, cx
je 0x1400194b9
lea rdx, [r14 + 2]
test rdx, rdx
je 0x140019427
lea rax, [rdx + 4]
mov qword [rbp], rax
mov qword [r15], r8
test r8, r8
je 0x1400194eb
mov rcx, qword [rbp]
mov rax, rbx
and eax, 3
movzx eax, byte [rax + rdx]
xor byte [rcx + rbx], al
inc rbx
cmp rbx, qword [r15]
jb 0x1400194d2
mov eax, dword [rsp + 0x70]
jmp 0x1400194f6
mov eax, 0xf2
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001d02
Capabilities:
Terminate process

Disassembly:
jmp 0x1400836c0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 1
xor eax, eax
lock cmpxchg dword [rcx], edi
je 0x1400836f3
nop word [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lock cmpxchg dword [rbx], edi
jne 0x1400836e0
dec dword [rbx + 4]
xor edi, edi
mov eax, dword [rbx + 4]
test eax, eax
cmovs eax, edi
mov dword [rbx + 4], eax
test eax, eax
jne 0x14008379b
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x14008374a
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14008373c
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], rdi
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x68], rdi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140083783
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0x48]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140083783
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 8]
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rdi
mov dword [rbx + 0x58], 0xffffffff
call fcn.140003ffd
xchg dword [rbx], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001d7a
Capabilities:
Query environment variable

Disassembly:
jmp 0x140103810
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 esi, esi
mov rbx, rax
test rax, rax
je 0x14010388f
jmp 0x14010384b
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x14010383a
lea rax, [rax + rcx*2]
add rax, 2
cmp word [rax], si
jne 0x140103836
sub rax, rbx
add rax, 2
sar rax, 1
lea rbp, [rax + rax]
mov rcx, rbp
call fcn.140002397
mov rdi, rax
test rax, rax
je 0x14010387f
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.1400038a5
mov rsi, rdi
xor ecx, ecx
call fcn.140005173
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001f05
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140115390
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x1401153d1
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x1401153c5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x1401153d3
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x1401153b3
xor eax, eax
ret
Function at 0x140002045
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400fb4a0
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, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, [0x140148258]
mov r14, rcx
lea r8, [0x140148250]
lea rdx, [0x140148260]
mov ecx, listen
call fcn.1400faa8c
mov rbx, rax
test rax, rax
je 0x1400fb503
mov rcx, rax
call qword [section..00cfg]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x1400fb51d
xor edx, edx
mov rcx, r14
call fcn.1400030c6
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
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 0x140002347
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400c2c30
sub rsp, 0x58
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov r9, rdx
cmp rax, 0x20
mov r8, rcx
jae 0x1400c2cc8
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 0x20
jl 0x1400c2c4f
mov al, byte [rdx]
jmp 0x1400c2c82
movzx edx, al
shr rdx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
inc r9
mov byte [rsp + rdx + 0x20], cl
mov al, byte [r9]
test al, al
jne 0x1400c2c63
jmp 0x1400c2ca7
movzx eax, r9b
mov edx, 1
movzx ecx, r9b
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x1400c2cc3
inc r8
mov r9b, byte [r8]
test r9b, r9b
jne 0x1400c2c88
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x58
ret
mov rax, r8
jmp 0x1400c2cb1
call fcn.140002275
int3
Function at 0x1400025ae
Capabilities:
Create directory

Disassembly:
jmp 0x1400f076c
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400f078e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140004138
or eax, 0xffffffff
jmp 0x1400f0790
xor eax, eax
add rsp, 0x28
ret