joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029fd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14, r8
mov qword [rsp + 0x28], r8
mov rsi, rdx
mov qword [rsp + 0x20], rdx
cmp byte [rcx + 0x15], 0
jne 0x14002a001
xor eax, eax
jmp 0x14002a13f
call fcn.140010200
mov r13, rax
lea rdx, str.Wow64SetThreadContext
lea rcx, [rsp + 0x30]
call fcn.140003230
nop
call fcn.140025990
lea rcx, [r13 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x30]
call fcn.140003ea0
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140003eb0
xor ebp, ebp
movabs r8, 0xcbf29ce484222325
mov edx, ebp
test rbx, rbx
je 0x14002a073
movabs r9, 0x100000001b3
nop
movzx ecx, byte [rdx + rax]
xor r8, rcx
imul r8, r9
inc rdx
cmp rdx, rbx
jb 0x14002a060
mov rcx, qword [r13 + 0x30]
and rcx, r8
add rcx, rcx
mov rax, qword [r13 + 0x18]
mov rdi, qword [rax + rcx*8 + 8]
cmp rdi, qword [r13 + 8]
je 0x14002a0e7
mov r14, qword [rax + rcx*8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.140004b00
mov r15, rax
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140004b00
cmp rsi, rbx
jne 0x14002a0c6
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.1400416b0
test eax, eax
je 0x14002a0d1
cmp rdi, r14
je 0x14002a0dd
mov rdi, qword [rdi + 8]
jmp 0x14002a090
mov rsi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
jmp 0x14002a0ea
mov rsi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, rbp
test rdi, rdi
je 0x14002a114
cmp rdi, qword [r13 + 8]
je 0x14002a114
mov rbx, qword [rdi + 0x30]
lea rcx, [r13 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14002a11e
mov rdx, r14
mov rcx, rsi
call rbx
mov ebx, eax
jmp 0x14002a120
lea rcx, [r13 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, ebp
lea rcx, [rsp + 0x30]
call fcn.1400040b0
test ebx, ebx
jne 0x14002a13d
mov rax, qword gs:[0x30]
mov ebp, dword [rax + 0x1250]
mov eax, ebp
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140033590
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
jne 0x1400335b5
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
cmp dword [rcx + 0x10], 3
jne 0x140033611
cmp byte [rcx + 0x16], 0
jne 0x140033611
call fcn.140010200
mov rbx, rax
lea rdx, str.Wow64SuspendThread
lea rcx, [rsp + 0x20]
call fcn.140003230
nop
lea r8, [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140033630
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x20]
call fcn.1400040b0
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
setne al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rbp, rdx
mov rsi, rcx
call fcn.140025990
lea rcx, [rsi + 0x40]

Function at 0x1400336f0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
jne 0x14003370c
mov al, 1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x140033730
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x970
mov rax, qword [0x14008d030]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov edi, edx
mov rbx, rcx
cmp edx, 4
ja 0x14003390f
xor edx, edx
mov qword [rsp + 0x988], rsi
mov r8d, 0x670
lea rcx, [rsp + 0x2f0]
call fcn.140041270
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2cc
call fcn.140041270
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov rax, qword [rcx + 0x10]
movzx esi, byte [rax + 0x16]
test sil, sil
jne 0x1400337bf
mov dword [rsp + 0x320], 0x100010
lea r8, [rsp + 0x2f0]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x1400337d6
mov dword [rsp + 0x20], 0x100010
lea r8, [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x50]
test sil, sil
lea r8, [rsp + 0x360]
lea rcx, [rsp + 0x38]
cmovne r8, rcx
test eax, eax
js 0x1400338e6
mov edx, dword [r8]
test edi, edi
jne 0x140033804
and edx, 0xfff0fffe
mov dword [r8], edx
jmp 0x140033866
cmp edi, 1
jne 0x14003380e
and edx, 0xfffffffb
jmp 0x140033820
cmp edi, 2
mov eax, 0xffffffef
mov ecx, 0xffffffbf
cmovne eax, ecx
and edx, eax
cmp edi, 1
jne 0x14003382d
and edx, 0xff3fffff
jmp 0x14003383f
cmp edi, 2
mov eax, 0xf3ffffff
mov ecx, 0x3fffffff
cmovne eax, ecx
and edx, eax
cmp edi, 1
jne 0x14003384f
and edx, 0xffcfffff
mov dword [r8], edx
jmp 0x140033866
cmp edi, 2
mov eax, 0xfcffffff
mov ecx, 0xcfffffff
cmovne eax, ecx
and eax, edx
mov edx, eax
mov dword [r8], eax
mov eax, edx
shr eax, 2
mov ecx, eax
or ecx, edx
shr ecx, 4
or ecx, eax
or ecx, edx
test cl, 1
jne 0x140033882
btr edx, 8
mov dword [r8], edx
mov rcx, rbx
mov edi, 0xc000071c
call fcn.140033590
test sil, sil
jne 0x1400338b3
test al, al
je 0x1400338e4
mov rax, qword [rbx]
lea r8, [rsp + 0x2f0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x1400338cd
test al, al
je 0x1400338e4
mov rax, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x1400338e4
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rsi, qword [rsp + 0x988]
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.14003ecb0
mov rbx, qword [rsp + 0x990]
add rsp, 0x970
pop rdi
ret
xor eax, eax
jmp 0x1400338ee
Function at 0x140033920
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x970
mov rax, qword [0x14008d030]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x2f0]
mov r8d, 0x670
call fcn.140041270
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2cc
call fcn.140041270
mov rcx, qword [rdi]
mov rdx, qword [rdi + 0x10]
mov rax, qword [rcx + 0x10]
movzx esi, byte [rax + 0x16]
test sil, sil
jne 0x1400339a4
mov dword [rsp + 0x320], 0x100010
lea r8, [rsp + 0x2f0]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x1400339bb
mov dword [rsp + 0x20], 0x100010
lea r8, [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x50]
test sil, sil
lea r8, [rsp + 0x360]
lea rcx, [rsp + 0x38]
cmovne r8, rcx
test eax, eax
jns 0x1400339da
xor eax, eax
jmp 0x140033acd
xor edx, edx
mov ecx, edx
mov eax, edx
cmp qword [rsp + rax*8 + 0x338], rbx
je 0x140033a05
cmp dword [rsp + rax*4 + 0x24], ebx
je 0x140033a05
inc ecx
inc rax
cmp rax, 4
jl 0x1400339e0
mov eax, 0xc0000225
jmp 0x140033acd
movsxd rax, ecx
test sil, sil
jne 0x140033a17
mov qword [rsp + rax*8 + 0x338], rdx
jmp 0x140033a1b
mov dword [rsp + rax*4 + 0x24], edx
mov edx, dword [r8]
test ecx, ecx
jne 0x140033a2a
and edx, 0xfff0fffe
jmp 0x140033a4a
cmp ecx, 1
jne 0x140033a37
and edx, 0xff0ffffb
jmp 0x140033a4a
cmp ecx, 2
jne 0x140033a44
and edx, 0xf0ffffef
jmp 0x140033a4a
and edx, 0xfffffbf
mov eax, edx
mov dword [r8], edx
shr eax, 2
mov ecx, eax
or ecx, edx
shr ecx, 4
or ecx, eax
or ecx, edx
test cl, 1
jne 0x140033a69
btr edx, 8
mov dword [r8], edx
mov rcx, rdi
mov ebx, 0xc000071c
call fcn.140033590
test sil, sil
jne 0x140033a9a
test al, al
je 0x140033acb
mov rax, qword [rdi]
lea r8, [rsp + 0x2f0]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x140033ab4
test al, al
je 0x140033acb
mov rax, qword [rdi]
lea r8, [rsp + 0x20]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
je 0x140033acb
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.14003ecb0
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140033ff0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14008d030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov byte [rcx + 0x60], 0
mov rcx, qword [rcx + 0x48]
xor esi, esi
test rcx, rcx
je 0x14003402c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x48], rsi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140034041
jle 0x14003403d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rsi
mov edi, esi
mov edx, edi
mov rcx, rbx
call fcn.1400345e0
inc edi
cmp edi, 4
jl 0x140034043
cmp qword [rbx + 0x10], rsi
je 0x1400340c6
call fcn.1400075f0
mov rcx, qword [rbx]
mov edx, dword [rcx + 8]
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], esi
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1400340b1
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rsp + 0x44]
mov edx, 0x8005e020
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400340b1
mov rax, qword gs:[0x30]
lea rcx, [rbx + 8]
call fcn.140034910
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x50], rsi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
jle 0x1400340d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x18]
call fcn.140003de0
lea rdi, [rbx + 8]
mov rcx, rdi
call fcn.140001850
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
cmp byte [rbx + 0x19], sil
jne 0x140034125
nop word [rax + rax]
mov r8, qword [rbx + 0x10]
mov rdx, rdi
mov rcx, rdi
call fcn.140034980
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x38
call fcn.140005ea0
cmp byte [rbx + 0x19], sil
je 0x140034100
mov edx, 0x38
mov rcx, qword [rdi]
call fcn.140005ea0
nop
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003ecb0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140036ac0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp byte [rcx + 0x15], 0
mov rbx, r9
mov rdi, r8
mov rsi, rdx
je 0x140036af2
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp method.blackbone::Native.virtual_112
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140090bd0], eax
jg 0x140036b5e
mov rcx, qword [0x140090bc0]
test rcx, rcx
jne 0x140036b2f
mov eax, 0xc0000138
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor eax, eax
mov r9, rdi
mov qword [rsp + 0x30], rax
mov r8, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea edx, [rax + 5]
call fcn.14003b570
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rcx, [0x140090bd0]
call fcn.14003ee58
cmp dword [0x140090bd0], 0xffffffff
jne 0x140036b0e
call fcn.14003b5b0
mov rcx, rax
lea rdx, str.NtQueueApcThread
call fcn.14003b640
lea rcx, [0x140090bd0]
mov qword [0x140090bc0], rax
call fcn.14003edf8
jmp 0x140036b0e

Function at 0x140037430
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14008d030]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003ecb0
add rsp, 0x68
ret

Function at 0x140037530
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x14008d030]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov r15, rcx
mov qword [rsp + 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], r12
lea r14, [rcx + 0x20]
mov rcx, r14
call fcn.140003e10
nop
lea rsi, [r15 + 0x40]
mov qword [rsp + 0x20], rsi
mov dword [rsi], r12d
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
lea r8, [rsi + 8]
lea rdx, [0x14007f163]
lea rcx, [rsp + 0x70]
call fcn.140001870
lea ecx, [r12 + 0x38]
call fcn.140005c30
mov rbx, rax
mov rdx, rax
lea ecx, [r12 + 8]
call fcn.1400011d0
mov qword [rax], rbx
lea rdx, [rbx + 8]
lea ecx, [r12 + 8]
call fcn.1400011d0
mov qword [rax], rbx
mov qword [rsi + 8], rbx
lea rcx, [rsp + 0x70]
call fcn.140001850
nop
mov qword [rsi + 0x18], r12
mov qword [rsi + 0x20], r12
mov qword [rsi + 0x28], r12
lea rdx, [0x14007f163]
lea rcx, [rsi + 0x18]
call fcn.140001860
nop
mov qword [rsi + 0x30], 7
mov qword [rsi + 0x38], 8
mov dword [rsi], 0x3f800000
mov r8, qword [rsi + 8]
lea edx, [r12 + 0x10]
lea rcx, [rsi + 0x18]
call fcn.14000ef30
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x80]
call fcn.140041270
mov r8d, 0x104
lea rdx, [rbp + 0x80]
lea rcx, str._NT_SYMBOL_PATH
Function at 0x140037bd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x68], rbx
mov r14, rcx
mov rbx, qword [rdx + 0x10]
mov rcx, rdx
mov qword [rsp + 0x28], rbp
mov r15, r8
mov rbp, rdx
call fcn.140003d90
xor edi, edi
movabs r9, 0xcbf29ce484222325
mov edx, edi
add rbx, rbx
je 0x140037c33
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rax + rdx]
inc rdx
xor r9, rcx
imul r9, r8
cmp rdx, rbx
jb 0x140037c20
mov rcx, qword [r14 + 0x70]
mov rax, qword [r14 + 0x58]
and rcx, r9
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r14 + 0x48]
je 0x140037c86
mov qword [rsp + 0x20], rsi
lea rdx, [rbx + 0x10]
mov rsi, qword [rax + rcx*8]
mov rcx, rbp
call fcn.14000ff10
test al, al
jne 0x140037c7e
cmp rbx, rsi
je 0x140037c81
mov rbx, qword [rbx + 8]
mov rcx, rbp
lea rdx, [rbx + 0x10]
call fcn.14000ff10
test al, al
je 0x140037c65
mov rdi, rbx
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x68]
test rdi, rdi
je 0x140037cb1
cmp rdi, qword [r14 + 0x48]
je 0x140037cb1
mov eax, dword [rdi + 0x30]
add rax, qword [r14 + 0x18]
mov qword [r15], rax
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov eax, 0x806d0013
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14003b360
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
movabs rax, 0x1fffffffffffffff
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov rsi, rcx
call fcn.140001780
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.140003610
mov edi, 1
mov rdx, qword [rax]
mov eax, edi
or rdx, 2
shr rdx, 1
bsr rcx, rdx
shl rax, cl
cmp rbx, rax
ja 0x14003b557
lea rax, [rbx - 1]
mov qword [rsp + 0x68], r14
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14000ef30
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14003b524
mov qword [rsp + 0x60], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14003b49c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14003b513
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x14003b4d9
mov r10, qword [rdx]
cmp r10, rax
je 0x14003b4d3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14003b513
cmp r9, rdx
je 0x14003b4ef
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x14003b531
cmp r9, rdx
jne 0x14003b4e0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14003b420
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14003b513
lea rcx, str.invalid_hash_bucket_count
call fcn.14003c7d8
int3
Function at 0x14003f7a0
Capabilities:
Parse pe header

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

Function at 0x14005196c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140051768

Function at 0x140058b94
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140058baa
mov al, 1
jmp 0x140058c0a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140058bbb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140058c08
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005dc00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140058c08
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140058c08
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140058c08
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140058c0a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14005a0a4
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.14003f5a0
sub rsp, rax
mov rax, qword [0x14008d030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140056bb0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005a0f3
mov rax, rbp
jmp 0x14005a1fb
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 + 0x8fe90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005a58c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8fe90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005a1f7
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 0x14005a1f7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005a58c
test rax, rax
js 0x14005a1f7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005a1f7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005a1e9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005a1e9
cmp byte [rcx], 0xd
jne 0x14005a1cf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005a1de
cmp byte [rcx + 1], 0xa
jne 0x14005a1de
inc rcx
jmp 0x14005a1de
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8db20]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005a1b1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005a1fb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003ecb0
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 0x14005d184
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 0x14005d1b4
xor eax, eax
jmp 0x14005d277
mov rbp, rbx
cmp word [rax], si
je 0x14005d1d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005d1c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005d1bc
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.14005ba14
movsxd r14, eax
test eax, eax
jne 0x14005d217
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005d1ad
mov rcx, r14
call fcn.14005581c
mov rdi, rax
test rax, rax
jne 0x14005d230
xor ecx, ecx
call fcn.1400549cc
jmp 0x14005d20c
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.14005ba14
test eax, eax
jne 0x14005d261
mov rcx, rdi
call fcn.1400549cc
jmp 0x14005d26b
xor ecx, ecx
call fcn.1400549cc
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 0x140060154
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.1400545f4
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 0x1400601f5
cmp ebx, dword [rsp + 0x30]
je 0x1400601ee
test esi, esi
je 0x1400601ee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400601c9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400601d6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400601b3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400601da
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400601f7
mov eax, 1
jmp 0x1400601f7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret