joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402e4070
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x168
mov rax, r9
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x40], 0
mov r9d, 0x20019
or r9d, dword [rsp + 0x1b0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1402e40f1
mov rcx, qword [rsp + 0x40]
lea rbx, [rsp + 0x3c]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1402e4109
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.14030f080
mov rax, rsi
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edx, dword [rsp + 0x3c]
lea r14, [rsp + 0x68]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x167]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
call fcn.14030f680
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
mov byte [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1402e4177
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.14030f080
jmp 0x1402e41b8
mov edx, dword [rsp + 0x3c]
test edx, edx
je 0x1402e4194
mov eax, dword [rsp + 0x4c]
add eax, 0xffffffff
cmp eax, 1
ja 0x1402e4196
add edx, 0xffffffff
mov dword [rsp + 0x3c], edx
jmp 0x1402e4196
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14030f680
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14030f1c0
cmp qword [rsp + 0x50], r14
je 0x1402e40f9
lea rcx, [rsp + 0x50]
call fcn.14030b790
jmp 0x1402e40f9

Function at 0x1402e4290
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], 0
mov eax, 0xf003f
or eax, dword [rsp + 0x90]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov rcx, r9
mov rdx, r8
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1402e4338
mov rcx, qword [rsp + 0x48]
cmp byte [rdi + 0xe], 0
mov rax, qword [rdi]
cmove rax, rdi
movsx edx, byte [rdi + 0xf]
cmovne edx, dword [rdi + 8]
add edx, 1
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
mov rdx, rsi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14035c7a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x20
mov r9, r8
mov r8, rdx
mov rsi, rcx
test byte [rcx + 0x130], 4
jne 0x14035c8b8
cmp byte [rsi + 0x2f8], 0
jne 0x14035c8b8
movzx r10d, byte [r8]
mov eax, r10d
and eax, 0xf
cmp eax, 8
jne 0x14035c8d4
mov eax, r10d
and eax, 0xfffffff0
cmp eax, 0x70
ja 0x14035c8d4
cmp r9, 2
jb 0x14035c8b8
mov eax, dword [rsi + 0x1c0]
cmp eax, 0x3fff
ja 0x14035c8b8
mov ecx, dword [rsi + 0x1bc]
cmp ecx, 0x3fff
ja 0x14035c8b8
movzx edx, byte [rsi + 0x242]
imul ecx, edx
movzx r11d, byte [rsi + 0x23f]
imul r11d, ecx
add r11d, 0xf
shr r11d, 3
imul r11d, eax
mov ecx, r10d
shr ecx, 4
mov edx, 0x80
shl edx, cl
cmp r11d, edx
ja 0x14035c874
cmp edx, 0x100
jb 0x14035c874
mov eax, edx
nop word cs:[rax + rax]
nop
add ecx, 0xffffffff
shr eax, 1
cmp r11d, eax
ja 0x14035c874
cmp edx, 0x1ff
mov edx, eax
ja 0x14035c860
shl ecx, 4
or ecx, 8
movzx eax, cl
cmp eax, r10d
je 0x14035c8b8
mov byte [r8], cl
movzx eax, byte [r8 + 1]
and eax, 0xffffffe0
shl ecx, 8
or ecx, eax
imul rdx, rcx, 0x8421085
shr rdx, 0x20
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
mov edx, ecx
shl edx, 5
sub ecx, edx
add ecx, eax
or ecx, eax
xor cl, 0x1f
mov byte [r8 + 1], cl
lea rdx, str.IDAT
mov rcx, rsi
call fcn.140356e20
or byte [rsi + 0x130], 4
add rsp, 0x20
pop rsi
ret
lea rdx, str.Invalid_zlib_compression_method_or_flags_in_IDAT
mov rcx, rsi
call fcn.14034bc20
int3

Function at 0x1403633b0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140365a40
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140365a40
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1403635f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1403636a0
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov esi, 1
cmp byte [0x140601ed0], 1
jne 0x140363726
mov r14, rdx
mov rbx, rcx
test r8, r8
je 0x1403636e7
lea rax, [0x140601ed8]
cmp r8, rax
je 0x1403636e7
lea rcx, str._dso__dso____dso_handle
lea rdx, str..._crt_tls_atexit.c
mov r8d, 0x46
call sub.msvcrt.dll__assert
mov ecx, 1
mov edx, 0x18
call sub.msvcrt.dll_calloc
test rax, rax
je 0x140363726
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], r14
mov ecx, dword [0x140499978]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rdi + 0x10], rax
mov ecx, dword [0x140499978]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
xor esi, esi
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140366dc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x14038d010]
movzx edx, word [r8]
cmp edx, 0x5a4d
jne 0x140366e2d
movsxd rdx, dword [r8 + 0x3c]
cmp dword [r8 + rdx], 0x4550
jne 0x140366e2d
add r8, rdx
movzx edx, word [r8 + 0x18]
cmp edx, 0x20b
jne 0x140366e2d
movzx edx, word [r8 + 6]
test edx, edx
je 0x140366e2d
sub rcx, qword [0x14038d010]
movzx eax, word [r8 + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140366e19
add rax, 0x28
add edx, 0xffffffff
je 0x140366e2d
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140366e10
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140366e10
jmp 0x140366e2f
xor eax, eax
ret

Function at 0x140366e30
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14038d010]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140366e66
movsxd r8, dword [rcx + 0x3c]
cmp dword [rcx + r8], 0x4550
jne 0x140366e66
movzx edx, word [rcx + r8 + 0x18]
cmp edx, 0x20b
jne 0x140366e66
movzx eax, word [rcx + r8 + 6]
ret

Function at 0x140366ee0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14038d010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140366f0c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140366f0c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x140366f0e
xor eax, eax
ret

Function at 0x140367290
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140602e3b], 1
jne 0x1403672a8
mov al, byte [0x140602e3a]
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
test rax, rax
setne al
setne byte [0x140602e3a]
mov byte [0x140602e3b], 1
add rsp, 0x28
ret
Function at 0x140008af0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r12, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rbp - 0x49], r13d
lea rcx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x39], rcx
lea rdi, vtable.CVolObject.0
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x29], r13
lea rax, vtable.CWString.0
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x6f], rax
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], r13
lea rbx, vtable.CVolMem.0
mov qword [rbp - 0x19], rbx
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
mov qword [rbp + 0x17], 0x40
mov qword [rbp - 0x21], r13
mov qword [rbp + 0x17], 0xfe
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r14d, eax
test eax, eax
jne 0x140008bfa
mov rax, qword [rbp - 0x21]
test rax, rax
jne 0x140008bb3
lea rax, [0x14026ce60]
cmp qword [rbp + 0xf], r13
cmovne rax, qword [rbp - 1]
mov rdx, rax
mov rcx, rsi
call fcn.140008a70
mov dword [rbp - 0x49], 1
lea rax, [rbp - 0x19]
mov qword [rbp + 0x6f], rax
mov qword [rbp - 0x19], rbx
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140008be5
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
mov qword [rbp - 0x19], rdi
jmp 0x140008cec
inc r14d
movsxd r15, r14d
mov eax, 2
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002e420
mov rbx, rax
test r14d, r14d
je 0x140008c37
movzx eax, r13w
mov rdi, rbx
mov rcx, r15
rep stosw word [rdi], ax
lea rdi, vtable.CVolObject.0
mov r8d, r14d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rbp - 0x21], r13
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140008c5e
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
test rbx, rbx
je 0x140008c81
cmp word [rbx], 0
je 0x140008c81
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140038290
mov rcx, rbx
call fcn.1400473c4
mov rax, qword [rbp - 0x21]
test rax, rax
jne 0x140008ca3
lea rax, [0x14026ce60]
cmp qword [rbp + 0xf], 0
cmovne rax, qword [rbp - 1]
mov rdx, rax
mov rcx, rsi
call fcn.140008a70
mov dword [rbp - 0x49], 1
lea rax, [rbp - 0x19]
mov qword [rbp + 0x6f], rax
lea rax, vtable.CVolMem.0
mov qword [rbp - 0x19], rax
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140008cdc
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x39], rdi
mov rax, rsi
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000eec0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
lea r12, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x39], r12
lea r14, vtable.CVolObject.0
mov qword [rbp - 0x39], r14
xor esi, esi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], rsi
lea rax, vtable.CWString.0
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x6f], rax
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
lea r15, vtable.CVolMem.0
mov qword [rbp - 0x19], r15
mov qword [rbp - 1], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 7], rsi
mov qword [rbp + 0x17], 0x40
mov qword [rbp - 0x21], rsi
mov qword [rbp + 0x17], 0xfe
lea rax, vtable.CWConstString.0
mov qword [rbp - 0x39], rax
lea rax, str.vU_hV
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x39]
lea rcx, [0x1402c64e0]
call fcn.140030f90
nop
lea rax, [rbp - 0x19]
mov qword [rbp + 0x77], rax
mov qword [rbp - 0x19], r15
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x14000ef90
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov qword [rbp - 1], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 7], rsi
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x39], r14
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14000f0b4
lea rdx, str.IsNTAdmin
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
xor ecx, ecx
call rax
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14000f0b4
lea rcx, [rbp - 0x39]
call fcn.1400322d0
nop
mov rcx, rax
call fcn.14000f0e0
mov ebx, eax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x19], r15
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x14000f01a
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov qword [rbp - 1], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 7], rsi
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x39], r14
mov eax, dword [0x1402c62e0]
mov edi, 1
test ebx, ebx
cmovne eax, edi
mov dword [0x1402c62e0], eax
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x49], rsi
lea rbx, vtable.CVolRefObject.0
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x41], rsi
lea rax, vtable.rg_n1::rg_n2542.0
mov qword [rbp - 0x59], rax
lea rax, vtable.rg_n8414::rg_n10614.0
mov qword [rbp - 0x59], rax
or qword [rbp - 0x51], rdi
mov qword [rsp + 0x30], rsi
call fcn.14002b3b0
nop
mov qword [rbp - 0x59], rbx
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14000f09c
mov rdx, qword [rcx]
call qword [rdx + 0x40]
nop
mov qword [rbp - 0x59], r14
mov eax, edi
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r9d, r9d
lea r8, [0x140270e70]
lea rdx, [0x140270e78]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14002d8e0
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 0x14002d955
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002d955
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14002d945
nop
cmp rbx, rcx
jae 0x14002d955
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14002d930
cmp rbx, rcx
jae 0x14002d955
cmp word [rbx], 0
je 0x14002d955
mov rax, rbx
jmp 0x14002d957
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 0x14002d970
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 rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14002da8b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002da8b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002da8b
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14002da19
nop word [rax + rax]
cmp rbx, rcx
jae 0x14002da8b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14002da00
cmp rbx, rcx
jae 0x14002da8b
movzx edi, word [rbx]
test di, di
je 0x14002da8b
mov r10, qword [r14]
mov ecx, 1
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, edi
or ecx, eax
jge 0x14002da4f
mov edx, edi
mov rcx, r14
call fcn.14002e0b0
mov r10, qword [r14]
movzx edx, word [rbx]
movzx r9d, dx
lea r8, [rbx + 2]
mov rdx, rdi
mov rcx, r10
call fcn.1401ebc20
xor edx, edx
test eax, eax
je 0x14002da72
cmp eax, 0xc
je 0x14002daae
cmp eax, 0x50
jne 0x14002daa8
mov rcx, qword [r14]
cmp edi, dword [rcx - 0xc]
jg 0x14002dab4
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [r14]
mov word [rcx + rdi*2], dx
jmp 0x14002da8d
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.140051488
int3
call fcn.1400514ac
int3
mov ecx, 0x80070057
call fcn.14002e120
int3
Function at 0x14002dac0
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.140051fbc
mov rsi, rax
test rax, rax
jne 0x14002daf5
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 0x14002dbed
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002dbed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002dbed
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14002db7e
cmp rbx, rcx
jae 0x14002dbed
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14002db65
cmp rbx, rcx
jae 0x14002dbed
movzx edi, word [rbx]
test di, di
je 0x14002dbed
mov r10, qword [r14]
mov ebp, 1
mov ecx, ebp
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, edi
or ecx, eax
jge 0x14002dbb6
mov edx, edi
mov rcx, r14
call fcn.14002e0b0
mov r10, qword [r14]
movzx edx, word [rbx]
movzx r9d, dx
lea r8, [rbx + 2]
mov rdx, rdi
mov rcx, r10
call fcn.1401ebc20
xor ecx, ecx
test eax, eax
je 0x14002dbd9
cmp eax, 0xc
je 0x14002dc14
cmp eax, 0x50
jne 0x14002dc0e
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x14002dc1a
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov word [rax + rdi*2], cx
jmp 0x14002dbf1
xor ecx, ecx
mov ebp, ecx
mov rbx, qword [rsp + 0x30]
mov eax, ebp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.140051488
int3
call fcn.1400514ac
int3
mov ecx, 0x80070057
call fcn.14002e120
int3

Function at 0x14002f660
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x1c8], 0
mov ebx, edx
mov rdi, rcx
jne 0x14002f688
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14005b0ec
test ebx, ebx
jne 0x14002f6a3
mov qword [0x1402b8520], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1402c981c], eax
cmp qword [0x1402b8520], 0
je 0x14002f6d1
mov edx, ebx
mov rcx, rdi
call fcn.14005b0ec
movsxd rcx, eax
mov qword [0x1402b8520], rcx
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ebx, 2
jl 0x14002f6c1
lea rcx, [0x1402c63c0]
call fcn.1400390b0
mov rax, qword [rdi + 0x1c8]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1402c981c]
mov rcx, qword [rdi + 0x1c8]
mov edx, eax
mov rax, qword [rbx + 0xa0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
Function at 0x140032430
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402b7920]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x38], dil
call fcn.140032670
test rax, rax
je 0x140032483
lea edx, [rdi + 0x10]
lea rcx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_gethostname]
movzx ecx, byte [rsp + 0x38]
cmp eax, 0xffffffff
cmove ecx, edi
mov byte [rsp + 0x38], cl
lea rcx, vtable.CVolObject.0
mov qword [rbx], rcx
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
lea rdx, vtable.CWString.0
mov qword [rbx], rdx
lea rax, [rbx + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
lea rcx, vtable.CVolMem.0
mov qword [rax], rcx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x30], 0x40
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x50], 0xfe
mov qword [rbx], rdx
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140032520
nop
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401e49e0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140032670
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1402b7920]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [0x1402c6360]
test rax, rax
jne 0x1400326b6
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
test eax, eax
sete cl
mov qword [0x1402c6360], rcx
mov rax, rcx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401e49e0
add rsp, 0x1d8
ret
Function at 0x140035be0
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 r12
push r14
push r15
sub rsp, 0x80
mov rbx, r8
mov edi, edx
test r8, r8
je 0x140035db0
mov rax, qword [rcx]
call qword [rax]
mov rbp, rax
test edi, edi
je 0x140035c50
cmp edi, 3
je 0x140035c50
sub edi, 1
je 0x140035c3f
cmp edi, 1
jne 0x140035db0
movzx edx, bx
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x140035db2
movzx edx, bx
mov rcx, rbp
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x140035db2
movzx edx, bx
mov r8d, 0xa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x140035db0
xor ebx, ebx
mov esi, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x140035db0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x140035d16
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.140034290
test rax, rax
je 0x140035cef
mov rsi, qword [rsp + 0x50]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140035d16
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x140035db0
cmp edi, 3
jne 0x140035dab
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1d]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x140035d9d
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x140035d9d
lea ecx, [rdx + 1]
and ecx, 0xfffffffe
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [rdi + 0x1e]
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov rdi, rax
test rax, rax
je 0x140035d9d
mov r8d, 0xff00ff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test eax, eax
jns 0x140035d9a
mov rcx, rdi
call qword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x140035db2
mov rbx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x140035db2
mov rax, rsi
jmp 0x140035db2
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret