joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011a70
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011b70
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140013fb0
cmp esi, dword [rbx + 0x48]
jae 0x140011af0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140013ff0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140011b7d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140011b7d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x140011abf
call fcn.140010d20
mov rbx, rax
jmp 0x140011aaa
mov rcx, r13
call fcn.140013ff0
mov eax, 0xc
jmp 0x140011add

Function at 0x140011c00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011c28
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140010d20
test rax, rax
jne 0x140011c1a
add rsp, 0x28
ret

Function at 0x140011c90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011cb8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140010d20
test rax, rax
jne 0x140011caa
jmp 0x140011cae

Function at 0x140011dd0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14001eda8]
test eax, eax
jne 0x140011de8
xor eax, eax
add rsp, 0x28
ret
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011e18
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140011dde
test byte [rax + 0x40], 3
je 0x140011dde
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140011de0
call fcn.140010d20
test rax, rax
jne 0x140011dfe
jmp 0x140011dde

Function at 0x140011e30
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011e70
test ebx, ebx
jle 0x140011e60
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140010d20
test rax, rax
jne 0x140011e4d
add rsp, 0x20
pop rbx
ret
Function at 0x140011f60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011fd8
test byte [rbx + 0x40], 0xc
jne 0x140011f8f
mov eax, dword [0x14001eda8]
test eax, eax
jne 0x140011fa0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000fed0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140011fc3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140011fc3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140011fec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400101c0
call fcn.140010d20
mov rbx, rax
test rax, rax
jne 0x140011f7f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001200a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400101c0
call fcn.140011e80
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140012090
call fcn.140013140
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400120c8
call fcn.140010c70
mov ecx, dword [0x1400162a8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012120
test esi, esi
je 0x1400120a6
call fcn.140011f60
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012100
mov edx, edi
call fcn.1400131f0
call fcn.140011f60
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012110
call fcn.140011f60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140011f60
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010c70
mov ecx, dword [0x1400162a8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140012065
call fcn.140010d20
mov rbx, rax
jmp 0x140012065
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001207e
call fcn.140010d20
jmp 0x1400120a6
call fcn.140010d20
mov rbx, rax
jmp 0x140012061
Function at 0x140012020
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011fd8
test byte [rbx + 0x40], 0xc
jne 0x140011f8f
mov eax, dword [0x14001eda8]
test eax, eax
jne 0x140011fa0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000fed0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140011fc3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140011fc3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140011fec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400101c0
call fcn.140010d20
mov rbx, rax
test rax, rax
jne 0x140011f7f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001200a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400101c0
call fcn.140011e80
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140012090
call fcn.140013140
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400120c8
call fcn.140010c70
mov ecx, dword [0x1400162a8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012120
test esi, esi
je 0x1400120a6
call fcn.140011f60
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012100
mov edx, edi
call fcn.1400131f0
call fcn.140011f60
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012110
call fcn.140011f60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140011f60
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010c70
mov ecx, dword [0x1400162a8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140012065
call fcn.140010d20
mov rbx, rax
jmp 0x140012065
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001207e
call fcn.140010d20
jmp 0x1400120a6
call fcn.140010d20
mov rbx, rax
jmp 0x140012061

Function at 0x140012130
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140010c70
mov ecx, dword [0x1400162a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400121a0
test esi, esi
je 0x140012180
call fcn.140011f60
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400121b0
mov edx, esi
call fcn.1400131f0
call fcn.140011f60
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140011f60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140011f60
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140010d20
mov rbx, rax
jmp 0x140012151
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001216a
Function at 0x164c91250
Capabilities:
Encode data using base64

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
push r15
sub rsp, 0x38
lea rcx, [rdx + 2]
mov rdi, rdx
movabs rax, 0xaaaaaaaaaaaaaaab
mov r15, r9
mul rcx
mov r14, r8
shr rdx, 1
lea rdx, [rdx*4]
lea rcx, [rdx + 1]
test r8, r8
jne 0x164c9129e
mov qword [r9], rcx
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x164c91414
test rdi, rdi
je 0x164c91414
test r14, r14
je 0x164c91414
cmp qword [r15], rcx
jae 0x164c912d6
mov qword [r15], rdx
mov eax, 0x7a
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x28], rbp
mov rbp, r14
cmp rsi, r14
jne 0x164c91304
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
jne 0x164c91304
lea eax, [rbp + 8]
mov rbp, qword [rsp + 0x28]
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
ret
xor r8d, r8d
mov qword [rsp + 0x30], rbx
xor edx, edx
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rbx, rbp
nop dword [rax + rax]
movzx eax, byte [rsi]
lea rsi, [rsi + 1]
add edx, eax
dec rdi
inc r8d
cmp r8d, 3
jne 0x164c9137c
mov ecx, edx
mov eax, edx
and ecx, 0x3f
shr rax, 0x12
movzx eax, byte [rax + r9]
mov byte [rbx], al
mov eax, edx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r9]
mov byte [rbx + 1], al
mov eax, edx
xor edx, edx
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r9]
mov byte [rbx + 2], al
movzx eax, byte [rcx + r9]
mov byte [rbx + 3], al
add rbx, 4
xor r8d, r8d
jmp 0x164c9137f
shl edx, 8
test rdi, rdi
jne 0x164c91320
test r8d, r8d
je 0x164c913d7
mov ecx, 2
sub ecx, r8d
shl ecx, 3
shl edx, cl
mov eax, edx
shr rax, 0x12
mov ecx, edx
movzx eax, byte [rax + r9]
mov byte [rbx], al
mov eax, edx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r9]
mov byte [rbx + 1], al
cmp r8d, 1
jbe 0x164c913ca
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + r9]
jmp 0x164c913cc
mov al, 0x3d
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
add rbx, 4
mov byte [rbx], 0
sub rbx, rbp
cmp rbp, r14
je 0x164c913fa
lea r8, [rbx + 1]
mov rdx, rbp
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [rsp + 0x28]
xor eax, eax
mov qword [r15], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
ret
mov eax, 0x57
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x164c95ed9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x228
mov r9, r8
movsxd rax, dword [rcx + 0x3c]
mov r8d, edx
mov rdi, rcx
mov esi, r8d
mov rbp, r9
Function at 0x164c966f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc rbx
mov edx, 0x208
lea rcx, [rsp + 0x258]
mov r15d, dword [rsi + rbx*4]
add r15, r14
call fcn.164c960f9
mov rcx, r15
call fcn.164c95e59
mov r9d, eax
test eax, eax
je 0x164c9668c
cmp eax, 6
jbe 0x164c9661b
mov ecx, eax
lea rdx, [rsp + rcx*2 + 0x258]
lea r10, [r15 + rcx]
sub rdx, r10
lea r11, [rcx + rcx]
cmp rdx, r11
jg 0x164c965a6
neg rdx
cmp rdx, rcx
jle 0x164c9661b
xor edx, edx
mov r9d, eax
mov r11d, 1
xor r10d, r10d
shr r9d, 1
je 0x164c965ee
inc edx
lea r11d, [rax + r10]
movsx ecx, byte [r11 + r15]
mov word [rsp + r11*2 + 0x258], cx
lea r11d, [rax + r10 - 1]
movsx r8d, byte [r11 + r15]
add r10d, 0xfffffffe
mov word [rsp + r11*2 + 0x258], r8w
cmp edx, r9d
jb 0x164c965b9
lea r11d, [rdx + rdx + 1]
lea r9d, [r11 - 1]
cmp r9d, eax
jae 0x164c9660e
neg r11d
add r11d, eax
inc r11d
movsx r9d, byte [r11 + r15]
mov word [rsp + r11*2 + 0x258], r9w
lea r9d, [rax + 1]
sub eax, r9d
lea r9d, [rax + 1]
jmp 0x164c9668c
xor r10d, r10d
mov r11d, eax
mov edx, 1
xor ecx, ecx
shr r11d, 1
je 0x164c9666c
inc r10d
lea r9d, [rax + rcx]
movsx edx, byte [r9 + r15]
mov word [rsp + r9*2 + 0x258], dx
lea r9d, [rax + rcx - 1]
movsx r8d, byte [r9 + r15]
add ecx, 0xfffffffe
mov word [rsp + r9*2 + 0x258], r8w
cmp r10d, r11d
jb 0x164c9662d
lea r9d, [r10 + r10]
neg r9d
lea edx, [r10 + r10 + 1]
add r9d, eax
lea r10d, [rdx - 1]
cmp r10d, eax
jae 0x164c9668c
sub eax, edx
lea r9d, [rax + 1]
movsx r10d, byte [r9 + r15]
mov word [rsp + r9*2 + 0x258], r10w
mov r9d, eax
lea rcx, [rsp + 0x258]
movsx r15d, byte [r9 + r15]
mov word [rsp + r9*2 + 0x258], r15w
call fcn.164c95e99
mov r11d, eax
xor r9d, r9d
test r11d, r11d
jbe 0x164c96715
mov eax, r11d
xor r10d, r10d
mov edx, dword [rdi + 0x2c]
mov r15d, 1
shr eax, 1
je 0x164c966f9
imul r9d, edx
lea r15d, [r10 + r10]
movsxd r15, r15d
inc r10d
movzx ecx, word [rsp + r15*2 + 0x258]
add r9d, ecx
imul r9d, edx
movzx r15d, word [rsp + r15*2 + 0x25a]
add r9d, r15d
cmp r10d, eax
cmp edx, eax
cmp edx, eax
jb 0x164c966c5
lea r15d, [r10 + r10 + 1]
lea r10d, [r15 - 1]
cmp r10d, r11d
jae 0x164c96715
imul edx, r9d
movsxd r15, r15d
movzx r9d, word [rsp + r15*2 + 0x256]
add r9d, edx
movzx r10d, word [r13 + rbx*2]
mov r10d, dword [r12 + r10*4]
add r10, r14
cmp ebp, r9d
jne 0x164c9654c
mov ecx, 0x40
mov edx, 0xf8
mov r12, qword [rsp + 0xca0]
mov rsi, qword [rsp + 0x8a0]
mov r13, qword [rsp + 0x880]
mov r15, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov qword [rsp + 0x8c8], r10
call r12
mov rbx, rax
movsxd rax, dword [r15 + 0x3c]
mov r9d, dword [rdi + 0xcc]
mov qword [rsp + 0xc80], rbx
mov edx, dword [rax + r15 + 0x88]
xor eax, eax
mov qword [rsp + 0xca0], r12
mov qword [rsp + 0x8a0], rsi
mov r8d, dword [rdx + r15 + 0x20]
mov ecx, dword [rdx + r15 + 0x1c]
add r8, r15
mov edx, dword [rdx + r15 + 0x24]
add rcx, r15
add rdx, r15
mov r12, rcx
mov qword [rsp + 0x880], r13
mov r13, rax
mov qword [rsp + 0x870], r14
mov rbx, rdx
mov qword [rsp + 0x40], rbp
mov rsi, r8
mov ebp, r9d
jmp 0x164c967d3
Function at 0x164c986a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x60
mov rax, qword [0x164cf5010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor esi, esi
mov qword [rsp + 0x40], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], esi
lea r9, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x28], esi
mov r8, rdi
mov dword [rsp + 0x20], 0x1fffff
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp qword [rsp + 0x40], rsi
je 0x164c98733
lea rdx, [0x164cdfcf0]
lea ecx, [rsi + 0x18]
call fcn.164cd7468
mov rbx, rax
test rax, rax
jne 0x164c98737
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x164c987ad
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x164c98743
mov dword [rcx], esi
mov rax, qword [rsp + 0x40]
lea r8, [0x164c98650]
mov qword [rbx], rax
mov r9, rbx
mov eax, dword [rsp + 0x70]
xor edx, edx
mov dword [rbx + 8], eax
lea rax, [rsp + 0x48]
mov qword [rbx + 0x10], rcx
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x48], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
setne sil
test rax, rax
je 0x164c98793
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x164c987ab
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbx
call fcn.164cd6f98
mov eax, esi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.164cd6f70
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x164ca0a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor edx, edx
lea rcx, [0x164cf5190]
call fcn.164cd6ee0
mov r14d, 1
mov rdi, rax
mov ebx, r14d
test rax, rax
je 0x164ca0aa3
mov esi, dword [rsp + 0x58]
mov ebp, esi
shr ebp, 4
lea eax, [rbp + 1]
movzx r15d, ax
nop dword [rax + rax]
xor r9d, r9d
mov r8, r15
mov rcx, rdi
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x164ca0a8b
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call fcn.164ca1fd0
test rax, rax
jne 0x164ca0ab6
mov edx, ebx
lea rcx, [0x164cf5190]
inc ebx
call fcn.164cd6ee0
mov rdi, rax
test rax, rax
jne 0x164ca0a60
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
je 0x164ca0aa3
inc bp
mov r8d, 6
movzx edx, bp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x164ca0bbc
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x164ca0bbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x164ca0bbc
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and esi, 0xf
jbe 0x164ca0b39
nop dword [rax]
cmp rbx, rcx
jae 0x164ca0bbc
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add esi, 0xffffffff
jne 0x164ca0b20
cmp rbx, rcx
jae 0x164ca0bbc
cmp word [rbx], 0
je 0x164ca0bbc
mov rsi, qword [rsp + 0x50]
mov edx, r14d
movzx edi, word [rbx]
mov rax, qword [rsi]
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x164ca0b68
mov edx, edi
mov rcx, rsi
call fcn.164ca0c00
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wmemcpy_s]
test eax, eax
je 0x164ca0b94
cmp eax, 0xc
je 0x164ca0bdf
cmp eax, 0x16
je 0x164ca0bea
cmp eax, 0x22
je 0x164ca0bea
cmp eax, 0x50
jne 0x164ca0bd4
mov rax, qword [rsi]
cmp edi, dword [rax - 0xc]
jg 0x164ca0bea
mov dword [rax - 0x10], edi
xor ecx, ecx
mov rax, qword [rsi]
mov word [rax + rdi*2], cx
mov eax, r14d
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x60]
xor ecx, ecx
mov r14d, ecx
mov eax, ecx
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.164ca2080
int3
mov ecx, 0x8007000e
call fcn.164ca2080
int3
mov ecx, 0x80070057
call fcn.164ca2080
int3
Function at 0x164ca1fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x164ca2054
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x164ca2054
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rbx
mov ecx, dword [rsp + 0x40]
and ecx, 0xf
jbe 0x164ca203d
cmp rbx, rdx
jae 0x164ca2054
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add ecx, 0xffffffff
jne 0x164ca2028
cmp rbx, rdx
jae 0x164ca2054
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x164ca2770
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
sub rsp, 0x28
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]

Function at 0x164ca27a0
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x68]
mov qword [r11 - 0x10], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add rsp, 0x38
ret
Function at 0x164ca4410
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2f]
sub rsp, 0xb0
mov rax, qword [0x164cf5010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, qword [rbp + 0x5f]
mov rsi, qword [rbp + 0x67]
movsxd rdi, dword [rbp + 0x6f]
mov rdx, qword [rbp + 0x77]
xor r14d, r14d
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x21], r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r14w
mov qword [rbp - 0x21], r14
xor r8d, r8d
lea rcx, [rbp - 0x41]
call fcn.164ca3cb0
cmp eax, 1
jne 0x164ca45f5
mov rdx, qword [rbp - 0x31]
test rdx, rdx
je 0x164ca44fa
cmp rdx, 1
jb 0x164ca44c5
dec rdx
lea r9, [0x164ce02e0]
mov r8d, eax
lea rcx, [rbp - 0x41]
call fcn.164ccf5a0
test eax, eax
je 0x164ca44fa
test rbx, rbx
je 0x164ca44e4
mov r8d, 1
lea rdx, [0x164ce02e0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x164ca44ff
mov r8d, 1
lea rdx, [0x164ce02e0]
lea rcx, [rbp - 0x41]
call fcn.164c97be0
test rbx, rbx
je 0x164ca4527
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x164ca4510
mov rdx, rbx
lea rcx, [rbp - 0x41]
call fcn.164c97be0
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rdx, qword [rbp - 0x41]
mov qword [rbp - 0x51], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x51]
mov r8d, 1
lea rcx, str.HKEY_LOCAL_MACHINE
call qword [sym.imp.aswCmnOS.dll_dep_osRegistryOpen]
test eax, eax
jne case.0x164ca45c5.6
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov dword [rbp - 0x19], 0x30
mov dword [rbp - 0x49], r14d
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x19]
lea r8, [rbp - 0x11]
mov rdx, rsi
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.aswCmnOS.dll_dep_osRegistryReadBinary]
mov ebx, eax
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.aswCmnOS.dll_dep_osRegistryClose]
test ebx, ebx
jne case.0x164ca45c5.6
mov eax, dword [rbp - 0x49]
dec eax
cmp eax, 0xa
ja case.0x164ca45c5.6
lea rdx, [0x164c90000]
mov ecx, dword [rdx + rax*4 + 0x14648]
add rcx, rdx
jmp rcx
mov ebx, dword [rbp - 0x11]
jmp 0x164ca4614
mov ebx, dword [rbp - 0x11]
bswap ebx
mov ebx, ebx
jmp 0x164ca4614
mov rbx, qword [rbp - 0x11]
jmp 0x164ca4614
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp - 0x11]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoi64]
mov rbx, rax
jmp 0x164ca4614
mov rbx, rdi
jmp 0x164ca4614
lea r9, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae r9, qword [rbp - 0x41]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x164ca4623
call fcn.164cd6f98
nop
lea rcx, [rbp - 0x41]
call fcn.164c938b0
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.164cd6f70
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret