joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001230
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1800993c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
lea rsi, [rcx + 0x10]
cmp qword [rsi], 0
jne 0x180001357
mov rcx, qword [rcx]
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x180001357
xor bpl, bpl
movzx edx, word [rax + rcx + 0x14]
mov dword [rbx + 0x18], edx
test edx, edx
je 0x180001352
lea r9, [rsp + 0x28]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001352
mov r14d, dword [rbx + 0x18]
mov ecx, r14d
call fcn.18004b568
mov rdi, rax
test rax, rax
je 0x1800012c5
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.180075540
jmp 0x1800012c7
xor edi, edi
lea rax, [rsp + 0x20]
cmp rsi, rax
je 0x1800012de
mov rcx, qword [rsi]
mov qword [rsi], rdi
test rcx, rcx
je 0x1800012eb
jmp 0x1800012e6
test rdi, rdi
je 0x1800012eb
mov rcx, rdi
call fcn.18004b560
mov r14, qword [rbx]
mov r8d, dword [rbx + 0x18]
mov rdx, r14
mov rcx, qword [rsi]
call fcn.180074ea0
cmp rax, r14
jne 0x18000131b
mov ecx, dword [rbx + 0x18]
mov rdi, r14
xor eax, eax
rep stosb byte [rdi], al
movzx ebp, bpl
mov eax, 1
test r14, r14
cmovne ebp, eax
mov edx, dword [rbx + 0x18]
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x28]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
neg eax
sbb cl, cl
and bpl, cl
jne 0x180001352
mov rcx, qword [rsi]
and qword [rsi], 0
test rcx, rcx
je 0x18000134b
call fcn.18004b560
and dword [rbx + 0x18], 0
xor bpl, bpl
mov al, bpl
jmp 0x180001359
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18004b680
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x18000137c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
cmp qword [rcx + 8], 0
jne 0x1800013ca
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
add rdx, 0x10
mov rbx, qword [rdx]
jmp 0x1800013c5
test rbx, rbx
je 0x1800013ca
mov rsi, qword [rcx]
cmp qword [rbx + 0x30], rsi
je 0x1800013e5
mov rbx, qword [rbx]
cmp rbx, rdx
jne 0x1800013b4
xor al, al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rax, qword [rbx + 8]
mov rbp, qword [rax]
mov rax, qword [rbx + 0x18]
mov r14, qword [rax]
mov rax, qword [rbx + 0x28]
mov r15, qword [rax]
mov ecx, 0x28
call fcn.18004b524
test rax, rax
je 0x18000141c
mov qword [rax], rsi
mov qword [rax + 8], rbp
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], rbx
mov rcx, qword [rdi + 8]
mov qword [rdi + 8], rax
test rcx, rcx
je 0x180001433
mov edx, 0x28
call fcn.18004b560
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x20]
mov rax, qword [rbx + 0x28]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 0x28]
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
mov al, 1
jmp 0x1800013cc
Function at 0x18000bc28
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18000bc4f
and qword [r8], 0
call fcn.18000bcf4
mov rbx, rax
test rax, rax
je 0x18000bcd7
mov rcx, rax
call fcn.18000bbb4
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000bccf
lea rcx, [rax + rbp]
call fcn.18000df08
mov rsi, rax
test rax, rax
je 0x18000bccf
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.180051ff0
cmp rax, rdi
je 0x18000bca8
mov rcx, rbx
call fcn.1800518fc
mov rcx, rsi
call fcn.18000df58
jmp 0x18000bcd7
test ebp, ebp
jle 0x18000bcba
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call fcn.180075540
mov rcx, rbx
call fcn.1800518fc
test r14, r14
je 0x18000bcca
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000bcd9
mov rcx, rbx
call fcn.1800518fc
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18000c034
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x18000c062
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x180078710]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x18000c03f
not r8d
mov eax, r8d
ret

Function at 0x18000c06c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18000c0c6
mov r11b, 0x23
lea rbx, [0x180078710]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x18000c0b0
cmp rdx, 2
jb 0x18000c0b0
cmp byte [r10], r11b
jne 0x18000c0b0
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x18000c08e
jmp 0x18000c107
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18000c107
mov r11b, 0x23
lea rbx, [0x180078710]
cmp dl, r11b
jne 0x18000c0eb
cmp byte [r10], r11b
jne 0x18000c0eb
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x18000c0d9
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x18002a998
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.18000b18c
mov ecx, 0x11
mov rdi, rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov edx, 0x1000
mov r8b, al
mov rcx, rdi
call fcn.1800043a4
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x2000
and al, bl
mov rcx, rdi
mov r8b, al
call fcn.1800043a4
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x4000
and al, bl
mov rcx, rdi
mov r8b, al
call fcn.1800043a4
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test bl, al
jne 0x18002aa32
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test bl, al
jne 0x18002aa32
xor ebx, ebx
mov r8b, bl
mov edx, 0x8000
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800043a4

Function at 0x18002aa4c
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.18000afb0
test rax, rax
je 0x18002aa6a
call fcn.18000b18c
mov rbx, qword [rax + 0x90]
jmp 0x18002aa6c
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18002aa97
and dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret
Function at 0x180042b54
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1800993c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180042beb
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call fcn.180075540
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x180042bd7
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call fcn.18005d5c8
test eax, eax
je 0x180042bde
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x180042bb9
jmp 0x180042be2
mov ebx, dword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18004b680
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x18004784c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1800993c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x18009c310]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x180047891
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x20]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800478c7
mov eax, 0xa
jmp 0x180047956
test esi, esi
je 0x1800478e9
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18004790a
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18004790a
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180047904
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18004790a
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004b680
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1800479b8
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800993c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov r13d, edx
mov rdi, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor edx, edx
mov r12d, r8d
mov esi, ebx
lea ecx, [rbx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180047b71
lea r14d, [rbx + 0x1c]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r14d
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180047af8
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x180047ab7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180047ab7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180047ab7
mov rdx, qword [rdi]
test rdx, rdx
jne 0x180047a79
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18009a788]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x180047adc
jmp 0x180047aaa
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x180047aaa
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x18009a788]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180047adc
mov qword [rdi], rax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r14d
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180047a27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180047af8
mov esi, ebx
cmp qword [rdi], rbx
je 0x180047af8
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18009a788]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180047b71
cmp qword [rdi], rbx
je 0x180047b76
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x180047b76
mov r8, qword [rdi]
xor edx, edx
mov r15d, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + r15*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
mov r14d, ebx
test rax, rax
je 0x180047b61
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x180047b53
mov r8d, r12d
mov edx, r13d
mov rcx, rbp
mov r14d, 1
call fcn.180047f14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x180047b68
mov rax, qword [rdi]
mov dword [rax + r15*4], ebx
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x180047b11
jmp 0x180047b76
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004b680
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800480b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180048119
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180048107
mov rax, qword [rbx]
mov r8d, dword [rax + rdi*4]
test r8d, r8d
je 0x180048100
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180048100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800480cf
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x18009a788]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180048490
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800484a7
cmp r8b, 0x90
je 0x1800484a7
cmp r8b, 0xcc
jne 0x1800484c9
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1800484c5
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1800484c9
add edx, r10d
cmp edx, r9d
jb 0x1800484b5
mov eax, r10d
ret
xor eax, eax
ret

Function at 0x18004aaf4
Capabilities:
Read file on windows

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, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18004ab22
xor eax, eax
jmp 0x18004ac08
cmp qword [rcx + 0x68], 0
je 0x18004ab33
call fcn.18004ac24
jmp 0x18004ac08
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x18004ab4a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18004ab4c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18004ab7e
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180074ea0
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rbp, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18004ac02
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18004abb5
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18004abde
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180051ff0
add r14, rax
sub rbp, rax
cmp rax, rbx
jne 0x18004ac02
cmp rbp, rbx
ja 0x18004abbc
test rbp, rbp
je 0x18004ac02
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.180051ff0
sub rbp, rax
sub rdi, rbp
mov rax, rdi
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 0x180052818
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.18004be80
sub rsp, rax
mov rax, qword [0x1800993c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180062fb0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180052867
mov rax, rbp
jmp 0x180052973
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x9bd30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180066e0c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x9bd30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18005296f
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18005296f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180066e0c
test rax, rax
js 0x18005296f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18005296f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180052961
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180052961
cmp byte [rcx], 0xd
jne 0x180052947
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180052956
cmp byte [rcx + 1], 0xa
jne 0x180052956
inc rcx
jmp 0x180052956
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x99800]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180052929
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180052973
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18004b680
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 0x18005dd34
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18005dd6b
call fcn.18005ed64
mov dword [rax], 0x16
call fcn.18005d0e4
xor eax, eax
jmp 0x18005ddfd
mov rdx, r9
mov rcx, r8
call fcn.18005dcd0
mov rbx, rax
test rax, rax
je 0x18005ddfa
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x18005dc04]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18005dde7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18005ecf4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18005ddce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18005dddd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800618f0
jmp 0x18005ddfa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18005ddf7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18005ff04
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 0x18005ff73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18005ff73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18005ff73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18005ff73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18005ff73
cmp dword [rcx + 0x84], 0xe
jbe 0x18005ff73
cmp dword [rcx + 0xf8], 0
je 0x18005ff73
mov ecx, ebx
call fcn.180060018
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.18005fe0c
nop
cmp dword [rbp + 0x20], 0
jne 0x18005ffd4
call fcn.18006a9c8
cmp eax, 1
jne 0x18005ffc4
xor dl, dl
jmp 0x18005ffce
call fcn.18006bd9c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18005ffdf
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18005ffe8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18005ff04
Function at 0x180061d78
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800a2050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x180061ddd
test rax, rax
jne 0x180061dcb
lea r9, str.GetLocaleInfoEx
lea r8, [0x180085178]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.1800619f0
test rax, rax
je 0x180061ddd
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.180074e60
jmp 0x180061df7
xor edx, edx
mov rcx, rbp
call fcn.180062068
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180065f88
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
xor edi, edi
mov rax, r15
lea rcx, [0x18009bd30]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x180065fde
cmp word [rdx], r9w
jne 0x180065fde
or byte [rax + rbp*8 + 0x38], 4
jmp 0x180065fe3
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x180066162
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x18006612d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x18006602b
cmp rcx, r8
jae 0x18006604b
cmp word [rcx], r9w
jne 0x18006602b
add rax, 4
mov edx, r9d
jmp 0x18006602e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x180066000
jmp 0x180066162
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180066126
cmp dword [rsp + 0x80], edi
je 0x180066126
lea r9, [0x18009bd30]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x180066100
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1800660b3
mov word [rbx], bp
jmp 0x18006615f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1800660ce
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x18006615f
cmp word [rsp + 0x70], bp
jne 0x18006610c
cmp rbx, rsi
je 0x1800660ab
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180066e14
cmp word [rsp + 0x70], bp
je 0x180066162
mov word [rbx], 0xd
jmp 0x18006615f
mov rcx, r15
lea r9, [0x18009bd30]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18006615c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180066162
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x180066fb0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180066fc6
mov al, 1
jmp 0x180067032
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180066fd7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180067030
mov ecx, dword [rcx + 0x18]
nop
call fcn.18006dda8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180067030
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180067030
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180067030
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180067032
xor al, al
add rsp, 0x20
pop rbx
ret