joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180029500
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5fd0], 0
lea rbx, [rcx + 0x5fd8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800295a7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18002955a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18002bd10
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18000ec60
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5fd0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5fe0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x18006bdac]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800295af
mov rcx, rbx
call fcn.18000ec60
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180029810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x18006bdf0]
xor ebp, ebp
cmp byte [rbx + 0x5f28], bpl
jne 0x1800298ef
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800298e8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.18000e520
mov rsi, rax
test rax, rax
je 0x1800298e8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x180029874
mov rcx, rax
call fcn.180029a40
mov r8, qword [0x18006bdf0]
test r8, r8
je 0x1800298df
movsx rdx, word [r8 + 0x60a8]
lea rcx, [r8 + 0x60ac]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1800298d4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60a8], cx
movsx rax, cx
lea rcx, [r8 + 0x60ac]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60a4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f28], 1
movss xmm0, dword [rbx + 0x5f2c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18002997e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f2c], xmm0
jb 0x18002997e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x180029971
mov rax, qword [0x18006bdf0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f2c], ebp
call fcn.180029ca0
lea rdx, [0x180061bd8]
mov rcx, rdi
mov rsi, rax
call fcn.18000e430
mov rdi, rax
test rax, rax
je 0x180029978
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x180029978
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f2c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800299a0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18006bdf0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180029a03
mov qword [rsp], rbx
lea rbx, [0x18005bed0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800299e3
cmp byte [r8], r9b
jne 0x1800299e3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1800299d0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f40]
not eax
mov r8, qword [r10 + 0x5f48]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x180029a2f
cmp dword [r8 + 8], eax
je 0x180029a36
add r8, 0x48
cmp r8, rcx
jne 0x180029a20
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x18003bf80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18006bdf0]
mov rcx, qword [rax + 0x4de8]
mov r9, qword [rax + 0x4008]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.1800374e0

Function at 0x18003c060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18006bdf0]
mov rcx, qword [rax + 0x4de8]
mov r10, qword [rax + 0x4008]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1800374e0
Function at 0x18004f140
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x18006b040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x18006bdf0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18004f35e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18004f35e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x18006bdf0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x18004f214
movsx rdx, word [r8 + 0x60a8]
lea rax, [r8 + 0x60ac]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x18004f209
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60a8], cx
movsx rax, cx
lea rax, [rax*8 + 0x60ac]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60a0]
test rdi, rdi
je 0x18004f231
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x18004f234
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x180062510]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x18004f277
mov rsi, qword [r8 + 0x90]
jmp 0x18004f27a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18004f2a5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x18006bdf0]
mov rcx, qword [rax + 0x4b00]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18004f31e
inc rbx
cmp rbx, 5
jl 0x18004f300
jmp 0x18004f34a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x18004f360
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180058ca0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x180051870
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x180051880
xor eax, eax
add rsp, 0x38
ret
xor eax, eax
lea r8, [0x1800517f0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180057090
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x18005716b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x1800570de
cmp rbx, qword [0x18006b008]
ja 0x1800570de
sub rbx, 0x8000000
jmp 0x180057162
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005716b
cmp dword [rsp + 0x40], 0x10000
jne 0x180057146
cmp qword [rsp + 0x38], 0x10000
jb 0x180057146
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18005716d
sub rbx, 0x10000
jmp 0x180057162
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x1800570c0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180057180
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x1800571a2
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x18005725d
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x1800571ce
cmp rbx, qword [0x18006b008]
ja 0x1800571ce
add rbx, 0x8000000
jmp 0x180057254
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005725d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180057239
cmp rcx, 0x10000
jb 0x180057239
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18005725f
add rbx, 0x10000
jmp 0x180057254
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180057254
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x1800571b0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180057270
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180057292
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x1800572ae
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x1800572c5
cmp byte [rcx + 1], 0x25
jne 0x180057309
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x1800572d1
cmp al, 0xe9
jne 0x180057309
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x1800572f4
cmp rcx, 0xffffffff80000000
jae 0x1800572eb
lea rsi, [rcx + 0x7ff80000]
jmp 0x180057309
mov rsi, 0xfffffffffff80000
jmp 0x180057309
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180057309
mov edi, 0x80000
mov rdx, qword [0x18006b758]
mov rax, qword [0x18006b750]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180057330
test rax, rax
je 0x180057347
mov rdx, rax
mov qword [0x18006b758], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180057347
cmp rcx, rdi
jb 0x180057347
cmp rcx, rsi
jbe 0x18005749a
mov qword [0x18006b758], rax
mov rdx, rax
test rax, rax
je 0x180057392
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18005737c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18005737c
cmp rax, rdi
jb 0x18005737c
cmp rax, rsi
jbe 0x18005749a
mov rdx, qword [rdx + 8]
mov qword [0x18006b758], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180057360
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x1800573bc
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180057090
mov rdx, rax
test rax, rax
jne 0x180057448
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x1800573e2
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180057180
mov rdx, rax
test rax, rax
jne 0x180057448
cmp rbx, 0x40000000
jbe 0x180057402
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180057180
mov rdx, rax
test rax, rax
jne 0x180057448
cmp rbx, rbp
jae 0x18005741e
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180057090
mov rdx, rax
test rax, rax
jne 0x180057448
mov rdx, rbx
mov rcx, rdi
call fcn.180057090
mov rdx, rax
test rax, rax
jne 0x180057448
mov rdx, rsi
mov rcx, rbx
call fcn.180057180
mov rdx, rax
test rax, rax
je 0x1800574d1
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x18006b758], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x18006b750]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x18006b750], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180057482
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x1800574d1
cmp rax, rsi
ja 0x1800574d1
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x18005b570]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x1800574d3
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180057720
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18005774e
xor al, al
jmp 0x180057790
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18005775f
xor al, al
jmp 0x180057790
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180057786
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180057786
mov al, 1
jmp 0x180057790
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180057c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18006b768], eax
je 0x180057c97
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x18006b76c]
test eax, eax
jne 0x180057dd7
test rbp, rbp
jne 0x180057cb6
mov eax, 0x57
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x180057cd2
cmp qword [rsi], 0
jne 0x180057cde
mov dword [0x18006b76c], 6
mov qword [0x18006b770], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.180058cc0
mov rdi, rax
test rax, rax
jne 0x180057d04
mov ebx, 8
jmp 0x180057dac
mov rcx, qword [rsi]
xor edx, edx
call fcn.180057bc0
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.180057bc0
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x180057d9e
cmp rdx, 0x1e
ja 0x180057d9e
cmp qword [rbx + 0x50], rax
jne 0x180057d9e
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180057d60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180057dac
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x18006b780]
mov qword [rdi], rax
xor eax, eax
mov qword [0x18006b780], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x18006b760], 0
mov ebx, 9
jne 0x180057db7
mov dword [0x18006b76c], ebx
test rdi, rdi
je 0x180057dc4
mov edx, 0x30
mov rcx, rdi
call fcn.180058d04
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x18006b770], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x180057de0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x18006b768], 0
jne 0x180057e87
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18006b768], ecx
jne 0x180057e87
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x18006b750]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x18006b780], rdi
mov qword [0x18006b778], rdi
mov qword [0x18006b770], rdi
test rbx, rbx
je 0x180057e70
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180057e68
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180057e40
jmp 0x180057e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18006b76c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x1800584a0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18006b76c]
mov rdi, rcx
test eax, eax
jne 0x180058545
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x1800584ca
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180058cc0
mov rbx, rax
test rax, rax
jne 0x1800584e8
mov edi, 8
jmp 0x18005850b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180058529
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180058d04
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18006b76c], edi
mov qword [0x18006b770], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18006b778]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x18006b778], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800b3cd6
Capabilities:
Hash data using murmur3

Disassembly:
not ebp
neg ebp
sub ebp, 0x1790f02b
bswap ebp
not byte [rsp + 0xc]
mov word [rsp + 0xe], cx
lea r11, [rdx*8 + 0x5f3e0a30]
inc ebp
push rdx
ror ebp, 1
lea rax, [rax*8 - 0x67ee82c2]
not ebp
xor eax, 0x6b090007
add dword [rsp + rax - 0xe987d34], r11d
lea r11, [r11 + r11*4 + 0x6504452f]
neg ebp
call fcn.1800bf064
lea r11, [rsp + r11 + 0x10]
neg eax
mov qword [rsp + rcx + 0x9c], rbp
mov qword [rbp + r11 - 0x4f389328], rdx
movsx edx, cx
sbb ebx, 0xd038680d
mov ebp, dword [rdi + rbp - 0x4f389328]
sub rcx, qword [rsp + rcx + 0xa4]
shr dword [rsp + rcx + 0xa52], 0x6e
inc dx
lea rdi, [rdi + rcx*2 + 0x149c]
rol dl, 0x65
lea rcx, [rdx + rbx*4 - 0x136dc37e]
xor ebp, esi
sar dword [rsp + 0xc], cl
jne 0x1800cd9f2
jp 0x1800a3b19
pop rbx
add rbx, 0xfffffffffffe3208
jmp rbx
movsxd rbp, ebp
adc r10, rbp
rol rax, 0xd
xchg rbx, rcx
sub r8w, bx
jmp r10
xchg ebx, eax
push rsi
add r8w, r11w
xor rbx, rcx
movzx esi, ax
xor dword [rsp + rax - 0xf1], ebp
or eax, 0xb723f91c
pop rsi
sbb r11w, 0xb
add r11d, r8d
jge 0x1800cab20
Function at 0x140002540
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
movzx ebx, cx
mov r15, r8
mov rdi, rdx
lea r8, [0x14003b520]
mov edx, ebx
xor ecx, ecx
mov r14d, r9d
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x1400025a5
lea rdx, str.Resource_not_found:
lea rcx, [0x1400424d0]
call fcn.1400064f0
mov rcx, rax
movzx edx, bx
call fcn.140002ac0
mov rcx, rax
call fcn.1400067a0
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rdx, rsi
mov qword [rsp + 0x70], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x1400025c6
lea rdx, str.Failed_to_load_resource:
jmp 0x1400025de
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
jne 0x140002610
lea rdx, str.Resource_size_is_zero:
lea rcx, [0x1400424d0]
call fcn.1400064f0
mov rcx, rax
movzx edx, bx
call fcn.140002ac0
mov rcx, rax
call fcn.1400067a0
mov rbp, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbp
mov qword [rsp + 0x28], r12
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
jne 0x140002653
lea rdx, str.Failed_to_lock_resource:
lea rcx, [0x1400424d0]
call fcn.1400064f0
mov rcx, rax
movzx edx, bx
call fcn.140002ac0
mov rcx, rax
call fcn.1400067a0
xor eax, eax
jmp 0x140002705
mov rdx, qword [rdi]
mov qword [rsp + 0x20], r13
mov r13, qword [rdi + 8]
mov rcx, r13
sub rcx, rdx
cmp rsi, rcx
jae 0x140002670
lea rax, [rdx + rsi]
jmp 0x1400026a2
jbe 0x1400026a6
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rsi, rax
jbe 0x14000268b
mov rdx, rsi
mov rcx, rdi
call fcn.140008730
jmp 0x1400026a6
mov rbx, rsi
xor edx, edx
sub rbx, rcx
mov rcx, r13
mov r8, rbx
call fcn.14002ea90
lea rax, [rbx + r13]
mov qword [rdi + 8], rax
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, r12
call fcn.14002e3f0
mov r13, qword [rsp + 0x20]
test r15, r15
je 0x140002700
test r14d, r14d
jle 0x140002700
mov r8, qword [rdi]
test r8, r8
je 0x140002700
xor r9d, r9d
test esi, esi
jle 0x140002700
nop dword [rax]
nop word [rax + rax]
mov eax, r9d
lea r8, [r8 + 1]
xor edx, edx
inc r9d
div r14d
movsxd rax, edx
movzx ecx, byte [rax + r15]
xor byte [r8 - 1], cl
cmp r9d, esi
jl 0x1400026e0
mov eax, 1
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret