joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180040dd0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1800661c0], ebp
je 0x180040e27
cmp rbx, 0x20
jae 0x180040e10
xor ecx, ecx
jmp 0x180040e12
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800661c0], ebp
jne 0x180040e06
cmp qword [0x1800661c8], r15
je 0x180040f21
test rdi, rdi
jne 0x180040e47
mov ecx, esi
call fcn.180040920
mov ebp, eax
jmp 0x180040f26
mov ecx, dword [0x18006650c]
mov ebx, r15d
test ecx, ecx
je 0x180040e6f
mov r8, qword [0x180066500]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180040e79
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180040e60
mov ebp, 4
jmp 0x180040f26
cmp ebx, 0xffffffff
je 0x180040e6f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180040f18
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180040640
mov edx, esi
mov ecx, ebx
call fcn.1800407f0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180040f26
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180040f02
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180040ef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180040ed0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800661c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180040f26
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180040f26
mov ebp, 2
xchg dword [0x1800661c0], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180047380
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x180065040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
test edx, edx
je 0x180047449
cmp edx, 1
jne 0x180047473
xor ecx, ecx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
lea rcx, str.UnrealWindow
add rax, 0x65979e0
mov qword [0x180066200], rax
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
test rax, rax
je 0x180047423
call fcn.180002fc0
xorps xmm0, xmm0
mov qword [rax + 0x1d0], rbx
movups xmmword [rsp + 0x30], xmm0
call fcn.180002fc0
lea rdx, [rsp + 0x30]
mov rcx, qword [rax + 0x1d0]
call qword [sym.imp.USER32.dll_GetClientRect]
call fcn.180002fc0
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0x1dc], ecx
call fcn.180002fc0
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x1d8], ecx
xor eax, eax
lea r8, [0x180047320]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x68]
jmp 0x180047473
cmp dword [0x1800662c8], 0
je 0x180047473
call fcn.180040f50
mov rcx, qword [0x1800662c0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x1800662c0], rax
mov dword [0x1800662c8], eax
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004e050
add rsp, 0x50
pop rdi
ret
Function at 0x140001820
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
xor r8d, r8d
lea rdx, [0x1400011c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14009d080]
mov dword [rax], 1
mov rax, qword [0x14009d090]
mov dword [rax], 1
mov rax, qword [0x14009d0a0]
mov dword [rax], 1
mov rax, qword [0x14009d040]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140027500
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14008ac20
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x1400275a9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14002756e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140027560
test rax, rax
je 0x14008c510
mov rcx, rbx
add rsi, 1
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x140027548
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400275d8
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400275f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x140027691
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x140027656
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140027648
test rax, rax
je 0x14008c516
mov rcx, rbx
add rsi, 1
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x140027630
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140080b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400ac051], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x140080bb8
lea rdx, [0x1400997ca]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140080c20
mov rbx, qword [0x1400abf08]
jmp 0x140080b75
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140080b70
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14006f1e0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400abf08], rax
mov ebx, dword [rax]
mov qword [0x1400abf08], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400abf08], rdx
call fcn.14007fc60
cmp eax, ebx
jne 0x140080ca7
mov byte [0x1400ac051], 1
jmp 0x140080b4c
cmp byte [0x1400ac050], 0
jne 0x140080b63
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400ac988], rax
call rbx
mov qword [0x1400ac980], rax
call rbx
mov qword [0x1400ac978], rax
call rbx
mov qword [0x1400ac970], rax
call rbx
mov qword [0x1400ac968], rax
call rbx
mov qword [0x1400ac960], rax
call rbx
mov qword [0x1400ac958], rax
call rbx
mov byte [0x1400ac050], 1
mov qword [0x1400ac950], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400abf00], rax
jmp 0x140080b63
lea rcx, str.Error__corrupted_constants_object
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140089900
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14008bd60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x14008a5d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ace48]
test eax, eax
je 0x14008a66a
lea rax, [0x1400ace20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ace50]
mov qword [rbp - 8], rax
jmp 0x14008a64e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14008a642
cmp qword [rbp - 0x10], 0
je 0x14008a642
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14008a608
lea rax, [0x1400ace20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008a66b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008a770
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14008a798
mov eax, 0
jmp 0x14008a7e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14008a7c1
mov eax, 0
jmp 0x14008a7e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14008a7e1
mov eax, 0
jmp 0x14008a7e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008a7ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14008a86a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008a861
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14008a861
mov rax, qword [rbp - 8]
jmp 0x14008a87f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14008a834
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180117cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180117d28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180117d28
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180117d15
nop
cmp rbx, rcx
jae 0x180117d28
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180117d00
cmp rbx, rcx
jae 0x180117d28
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x180117d2a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180117d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x18013021f
cmp dword [rcx + 0xe8], 0
jne 0x18013021f
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.1801437e8
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180130263
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180130263
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.180130598
jmp 0x180130265
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801185b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x13e0
call fcn.1802d8da0
sub rsp, rax
mov rax, qword [0x180371040]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
xorps xmm0, xmm0
mov qword [rsp + 0x38], 0
movdqu xmmword [rsp + 0x28], xmm0
mov ebx, 0x980
nop dword [rax]
call fcn.1802b6284
mov dword [rsp + 0x44], eax
mov ecx, 1
mov dword [rsp + 0x13c4], 0xffffffff
nop dword [rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rsp + rcx*4 + 0x44], eax
inc rcx
cmp rcx, 0x270
jb 0x180118610
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x270
call fcn.1801196f0
mov ecx, eax
imul rax, rcx, 0x64
cmp eax, 0x5f
ja 0x180118665
nop dword [rax]
lea rcx, [rsp + 0x40]
call fcn.1801196f0
mov ecx, eax
imul rax, rcx, 0x64
cmp eax, 0x60
jb 0x180118650
mov rdx, qword [rsp + 0x30]
shr rax, 0x20
inc eax
mov dword [rsp + 0x20], eax
cmp rdx, qword [rsp + 0x38]
je 0x180118685
mov dword [rdx], eax
add qword [rsp + 0x30], 4
jmp 0x180118694
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180119560
sub rbx, 1
jne 0x1801185f0
mov rdi, qword [rsp + 0x30]
sub rdi, qword [rsp + 0x28]
sar rdi, 2
dec edi
test edi, edi
jle 0x1801186ec
mov eax, edi
lea rcx, [rsp + 0x28]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov r8d, eax
mov ebx, eax
call fcn.180118540
lea edx, [rbx + 1]
mov r8d, edi
lea rcx, [rsp + 0x28]
call fcn.180118540
mov r9d, edi
lea rcx, [rsp + 0x28]
mov r8d, ebx
xor edx, edx
call fcn.1801181d0
xor r8d, r8d
lea rax, [0x18000c09c]
xor ecx, ecx
lea edx, [r8 + 1]
call rax
mov rbx, 0xffffffffffffffff
mov ecx, 0x993
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x180118705
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180118752
mov rdx, qword [rsp + 0x38]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x18011874d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180118773
call fcn.1801175d0
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.1801198e0
mov rbx, qword [rsp + 0x13f0]
add rsp, 0x13e0
pop rdi
ret
call fcn.1802bc6d0
int3
Function at 0x180118ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov edi, edx
mov ecx, edx
call fcn.1801407e4
mov rsi, rax
test rax, rax
jne 0x180118f05
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, edi
mov qword [rsp + 0x30], rbx
shr eax, 4
mov r8d, 6
inc ax
mov qword [rsp + 0x38], rbp
movzx edx, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x180118fef
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180118fef
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180118fef
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180118f8a
cmp rbx, rcx
jae 0x180118fef
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180118f75
cmp rbx, rcx
jae 0x180118fef
cmp word [rbx], 0
je 0x180118fef
mov rax, qword [r14]
mov esi, 1
movzx edi, word [rbx]
mov ecx, esi
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x180118fb8
mov edx, edi
mov rcx, r14
call fcn.180119320
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rdi
call fcn.1802bc748
xor ecx, ecx
test eax, eax
je 0x180118fdb
cmp eax, 0xc
je 0x180119016
cmp eax, 0x50
jne 0x180119010
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x18011901c
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov word [rax + rdi*2], cx
jmp 0x180118ff3
xor ecx, ecx
mov esi, ecx
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.180133564
int3
call fcn.180133588
int3
mov ecx, 0x80070057
call fcn.1801175a0
int3
Function at 0x1801191d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
shr eax, 4
mov edi, r8d
inc ax
mov rsi, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x1801192dd
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1801192dd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1801192dd
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180119275
nop word [rax + rax]
cmp rbx, rcx
jae 0x1801192dd
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180119260
cmp rbx, rcx
jae 0x1801192dd
cmp word [rbx], 0
je 0x1801192dd
mov rax, qword [rsi]
mov ecx, 1
movzx edi, word [rbx]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x1801192a1
mov edx, edi
mov rcx, rsi
call fcn.180119320
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.1802bc748
xor edx, edx
test eax, eax
je 0x1801192c4
cmp eax, 0xc
je 0x180119300
cmp eax, 0x50
jne 0x1801192fa
mov rcx, qword [rsi]
cmp edi, dword [rcx - 0xc]
jg 0x180119306
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [rsi]
mov word [rcx + rdi*2], dx
jmp 0x1801192df
xor eax, eax
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
call fcn.180133564
int3
call fcn.180133588
int3
mov ecx, 0x80070057
call fcn.1801175a0
int3
Function at 0x1801196f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x180119751
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x180119710
mov ecx, dword [r9]
jmp 0x180119838
cmp ecx, 0x4e0
jb 0x180119838
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180119770
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1801197c0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret