joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013980
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rdx, str.Launching_arp...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0x10]
call fcn.140005c90
lea rdx, [rsp + 0x20]
call fcn.1400106e0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.c:windows_system32_arp.exe__a
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]

Function at 0x140013a10
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rdx, str.Launching_nslookup...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0x15]
call fcn.140005c90
lea rdx, [rsp + 0x20]
call fcn.1400106e0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.c:windows_system32_nslookup.exe
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]

Function at 0x140013aa0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rdx, str.Launching_notepad...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0x14]
call fcn.140005c90
lea rdx, [rsp + 0x20]
call fcn.1400106e0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.c:windows_system32_notepad.exe
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]

Function at 0x140013b30
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rdx, str.Restarting...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0xd]
call fcn.140005c90
lea rdx, [rsp + 0x20]
call fcn.1400106e0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.shutdown__r__t_0
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]

Function at 0x140013bbc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140013c40
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140017790]
cmp byte [rcx + rax], 0
je 0x140013c40
dec r8
sub rdx, 1
jne 0x140013c26
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140014d84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014dce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014dce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014dce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014dce
cmp dword [rcx + 0x84], 0xe
jbe 0x140014dce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014dd0
xor al, al
add rsp, 0x28
ret
Function at 0x140002030
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r9, [0x140085628]
xor edx, edx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rcx, [0x140085608]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140002091
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
js 0x140002091
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400020a1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400020b1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x50]
add rsp, 0x38
ret
Function at 0x14002b980
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rax
mov rdi, r8
mov rsi, rdx
mov dword [rsp + 0x28], 0
mov rbp, rcx
mov ebx, 0x200
lea rcx, [rsp + 0x20]
call fcn.1400149c0
test eax, eax
je 0x14002b9de
lea rcx, [rsp + 0x20]
call fcn.140014a60
cmp rbx, rdi
lea rcx, [rsp + 0x38]
mov r9, rsi
mov edx, 1
cmova rbx, rdi
mov r8, rbx
call fcn.140063fdc
add qword [rsp + 0x20], rax
sub rdi, rax
je 0x14002ba09
cmp rax, rbx
je 0x14002b9c6
lea rcx, [rsp + 0x20]
call fcn.1400149c0
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.1400136d0
mov dword [rsp + 0x28], 1
test rdi, rdi
je 0x14002ba3e
or edx, 0xffffffff
mov rcx, rbp
call fcn.140012ca0
test rax, rax
je 0x14002ba43
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003d350
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002ea60
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, qword [rcx + 8]
mov r8d, 8
call fcn.14001dbe0
test rax, rax
jne 0x14002eae5
mov qword [rsp + 0x40], rdi
mov rdi, qword [rsp + 0x30]
test rdi, rdi
jne 0x14002ea9c
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x10]
mov r8, rdi
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rsi
call fcn.14001dca0
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rax
mov rsi, rax
call fcn.14001dbe0
mov rcx, qword [rbx]
test rax, rax
jne 0x14002eb0d
lea r8, [rdi - 1]
mov rdx, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.14001df00
mov r8, qword [rbx + 0x18]
lea r9, str.unexpected_end
mov rcx, qword [rbx]
lea rdx, str._s:__s_in_precompiled_chunk
call fcn.14001b1e0
mov rcx, qword [rbx]
mov edx, 3
call fcn.14001cb20
int3
mov r8, qword [rbx + 0x18]
lea r9, str.unexpected_end
lea rdx, str._s:__s_in_precompiled_chunk
call fcn.14001b1e0
mov rcx, qword [rbx]
mov edx, 3
call fcn.14001cb20
int3

Function at 0x140030070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x28]
mov rbx, rcx
mov rax, qword [rdi]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx + 0x18]
movzx r9d, byte [rdi + 0xc]
mov r8, qword [rax + 0x30]
movzx eax, byte [r8 + 0x4a]
cmp eax, r9d
jbe 0x1400300ce
nop
dec byte [r8 + 0x4a]
movzx eax, byte [r8 + 0x4a]
movzx edx, word [r8 + rax*2 + 0xc4]
mov rax, qword [r8]
add rdx, rdx
mov rcx, qword [rax + 0x30]
mov eax, dword [r8 + 0x30]
mov dword [rcx + rdx*8 + 0xc], eax
movzx eax, byte [r8 + 0x4a]
cmp eax, r9d
ja 0x1400300a0
cmp byte [rdi + 0xd], 0
je 0x1400300ee
mov rax, qword [rbx + 0x18]
mov rcx, rbx
movzx edx, byte [rdi + 0xc]
shl edx, 6
or edx, 0x23
mov r8d, dword [rax + 8]
call fcn.140035900
movzx eax, byte [rbx + 0x4a]
lea rdx, [rbx + 0x38]
mov dword [rbx + 0x3c], eax
mov rcx, rbx
mov r8d, dword [rdi + 8]
mov eax, dword [rbx + 0x30]
mov dword [rbx + 0x34], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140034190
Function at 0x140035bf0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x250], 0
mov rbx, rcx
je 0x140035c4d
mov rax, qword [rcx + 0x248]
test rax, rax
je 0x140035c4d
mov qword [rsp + 0x30], rdi
xor edi, edi
test rax, rax
je 0x140035c3c
nop dword [rax + rax]
mov rcx, qword [rbx + 0x250]
mov rcx, qword [rcx + rdi*8]
call fcn.14003d8c4
inc rdi
cmp rdi, qword [rbx + 0x248]
jb 0x140035c20
mov rcx, qword [rbx + 0x250]
call fcn.14003d8c4
mov rdi, qword [rsp + 0x30]
cmp byte [rbx + 0x1298], 0
je 0x140035c63
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140035c70
add rsp, 0x20
pop rbx
ret

Function at 0x140035c70
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x14a8], 0
mov rdi, rcx
je 0x140035def
mov qword [r11 + 0x10], rbx
lea rcx, [rsp + 0x38]
mov qword [r11 + 0x18], rsi
call fcn.1400470b8
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140047018
xor esi, esi
lea r8, str._r_n_r_n
mov edx, 0x200
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x70]
call fcn.1400022b0
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rax, rbx
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140035cf0
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
lea r8, str._02d:_02d:_02d__Stopping_install_logging_r_n
mov r9d, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov edx, 0x200
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
call fcn.1400022b0
lea rcx, [rsp + 0x70]
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140035d50
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8, str._r_n_r_n_r_n
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.1400022b0
lea rax, [rsp + 0x70]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x140035da0
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x14a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x498]
mov qword [rdi + 0x14a8], rsi
mov rsi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14003d350
add rsp, 0x480
pop rdi
ret
cmp byte [rcx + 0x1298], 0
jne 0x140035c70
ret
Function at 0x140036ed0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x4090
call fcn.14003d9e0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4070], rax
cmp byte [rcx + 0x1298], 0
mov rdi, rcx
je 0x140037046
cmp qword [rcx + 0x14a8], 0
je 0x140037046
mov qword [rsp + 0x4088], rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x4080], rsi
xor esi, esi
mov dword [rsp + 0x30], esi
call fcn.1400470b8
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140047018
mov eax, dword [rsp + 0x40]
lea r8, str._02d:_02d:_02d
mov r9d, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov edx, 0x2000
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
call fcn.1400022b0
or rbx, 0xffffffffffffffff
mov dword [rsp + 0x30], esi
mov rax, rbx
lea rcx, [rsp + 0x70]
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140036f90
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rsp + 0x40a8]
lea r9, [rsp + 0x40b0]
mov edx, 0x2000
lea rcx, [rsp + 0x70]
call fcn.140037490
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], esi
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x140036fe3
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x14a8]
lea r9, [rsp + 0x30]
mov r8d, 4
mov dword [rsp + 0x30], esi
lea rdx, [0x140073f74]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rsp + 0x4080]
mov rbx, qword [rsp + 0x4088]
mov rcx, qword [rsp + 0x4070]
xor rcx, rsp
call fcn.14003d350
add rsp, 0x4090
pop rdi
ret
Function at 0x140037480
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x14a8], 0
mov rdi, rcx
je 0x140035def
mov qword [r11 + 0x10], rbx
lea rcx, [rsp + 0x38]
mov qword [r11 + 0x18], rsi
call fcn.1400470b8
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140047018
xor esi, esi
lea r8, str._r_n_r_n
mov edx, 0x200
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x70]
call fcn.1400022b0
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rax, rbx
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140035cf0
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
lea r8, str._02d:_02d:_02d__Stopping_install_logging_r_n
mov r9d, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov edx, 0x200
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
call fcn.1400022b0
lea rcx, [rsp + 0x70]
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140035d50
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8, str._r_n_r_n_r_n
mov edx, 0x200
lea rcx, [rsp + 0x70]
call fcn.1400022b0
lea rax, [rsp + 0x70]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x140035da0
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x14a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x498]
mov qword [rdi + 0x14a8], rsi
mov rsi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14003d350
add rsp, 0x480
pop rdi
ret
cmp byte [rcx + 0x1298], 0
jne 0x140035c70
ret
Function at 0x140037550
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rcx + 0x14b0], 0xffffffffffffffff
mov rsi, r8
mov edi, edx
mov rbx, rcx
je 0x140037630
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
call fcn.140042070
add dword [rbx + 0x14b8], edi
lea r8, str._d_t_s
mov r9d, dword [rbx + 0x14b8]
lea rcx, [rsp + 0x40]
mov eax, 0x64
mov qword [rsp + 0x20], rsi
cmp r9d, eax
mov edx, 0x100
cmovg r9d, eax
mov dword [rbx + 0x14b8], r9d
call fcn.140037830
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400375e0
mov rcx, qword [rbx + 0x14b0]
lea r8d, [rax*2 + 2]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140037630
mov rcx, qword [rbx + 0x14b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x14b0], 0xffffffffffffffff
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003d350
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140038e50
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov r15, rdx
mov rbp, rcx
mov qword [rsp + 0x68], 7
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea r8d, [r12 + 0x5c]
lea rdx, str._000214A0_0000_0000_C000_000000000046__r_nProp319__s_r_n_InternetShortcut__r_nURL_s_r_nIDList_r_n
lea rcx, [rsp + 0x50]
call fcn.140003b30
nop
or rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140038ec0
test rax, rax
je 0x140038ee6
mov r8d, 0x24
lea rdx, str.HotKey0_r_nIconIndex0_r_nIconFile_s_r_n
lea rcx, [rsp + 0x50]
call fcn.14000fda0
mov rcx, rdi
nop dword [rax]
inc rcx
cmp word [rsi + rcx*2], 0
jne 0x140038ef0
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbp + rdx*2], 0
jne 0x140038f00
mov r14, qword [rsp + 0x60]
add r14, rcx
add rdx, 5
add r14, rdx
mov eax, 2
mul r14
cmovo rax, rdi
mov rcx, rax
call fcn.14003d8bc
mov rbx, rax
test rax, rax
je 0x140039033
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038f56
and eax, 0xfffffffe
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
test rax, rax
je 0x140039033
lea r8, [r14 + r14]
xor edx, edx
mov rcx, rbx
call fcn.140042070
mov rcx, rdi
nop dword [rax]
inc rcx
cmp word [rsi + rcx*2], 0
jne 0x140038fa0
lea r8, [rsp + 0x50]
lea rdx, [r14 - 1]
test rcx, rcx
mov rcx, rbx
je 0x140038fdf
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbp
lea r9, [0x14007514c]
call fcn.1400022b0
jmp 0x140039000
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbp
lea r9, [0x140075150]
call fcn.1400022b0
nop dword [rax]
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x140039000
add edi, edi
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
jmp 0x140039036
xor dil, dil
test rbx, rbx
je 0x140039044
mov rcx, rbx
call fcn.14003d8c4
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140039061
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140003f70
movzx eax, dil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003d350
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140039e50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor esi, esi
mov rdi, rdx
cmp byte [0x14009a618], sil
mov rbx, rcx
mov dword [rsp + 0x48], esi
jne 0x140039ebf
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140039ebf
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009a610], rax
mov byte [0x14009a618], 1
jmp 0x140039ec6
mov rax, qword [0x14009a610]
test rax, rax
je 0x140039f71
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call rax
test eax, eax
js 0x14003a033
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rdx], si
jne 0x140039f08
mov r8, rsi
jmp 0x140039f1a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x140039f10
lea rcx, [rsp + 0x50]
call fcn.140003b30
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbx + 0x18], 7
lea rdx, [rsp + 0x50]
mov qword [rbx + 0x10], rsi
mov rcx, rbx
mov word [rbx], si
call fcn.140003dc0
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14003a042
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
inc r8
call fcn.140003f70
jmp 0x14003a042
mov r8, rdi
lea rdx, [rsp + 0x38]
lea rcx, [0x14009a1f0]
call fcn.140038010
movzx r8d, byte [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.140037f90
test rax, rax
je 0x14003a033
mov r8, rdi
lea rdx, [rsp + 0x38]
lea rcx, [0x14009a1f0]
call fcn.140038950
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov edx, dword [rax + 0x2c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14003a033
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rsp + 0x70], si
jne 0x14003a00c
mov r8, rsi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140003b30
jmp 0x140039f2f
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14003a015
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140003b30
jmp 0x140039f2f
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14003d350
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003a750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
movzx edi, dx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, ebx
movzx r9d, di
shr ebx, 4
mov edx, 6
inc bx
mov rcx, rax
movzx r8d, bx
mov r14, rax
and ebp, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
xor edi, edi
mov qword [rsp + 0x38], 7
xor r8d, r8d
mov qword [rsp + 0x30], rdi
lea rdx, [0x140085648]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
mov rbx, rax
call fcn.140003b30
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400036c0
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14003a7f4
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140003f70
test rbx, rbx
je 0x14003a8ae
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14003a8ae
mov ecx, edi
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
test ax, ax
je 0x14003a837
movzx eax, ax
cmp ecx, ebp
je 0x14003a842
lea rbx, [rbx + rax*2]
inc ecx
cmp ecx, 0x10
jl 0x14003a820
mov al, 1
jmp 0x14003a8b0
inc eax
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
mov edx, eax
xor r8d, r8d
mov qword [rsp + 0x38], 7
mov edi, eax
call fcn.14003c070
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400036c0
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14003a892
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140003f70
cmp qword [rsi + 0x18], 8
jb 0x14003a89c
mov rsi, qword [rsi]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140002150
mov al, 1
jmp 0x14003a8b0
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14003d350
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14003a8d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14003a922
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x14003a970
lea rax, [rbx - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x14003a970
sub rdx, rbx
lea r8, [rsp + 0x20]
sub r8, rdi
mov rax, rdi
nop
lea rcx, [rdx + rbx]
test rcx, rcx
je 0x14003a960
movzx ecx, word [r8 + rax]
test cx, cx
je 0x14003a960
mov word [rax], cx
add rax, 2
sub rbx, 1
jne 0x14003a940
test rbx, rbx
lea rcx, [rax - 2]
cmovne rcx, rax
xor eax, eax
mov word [rcx], ax
or rax, 0xffffffffffffffff
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14003a974
cmp word [rdi + rax*2 - 2], 0x5c
je 0x14003a99c
lea r8, [0x140087460]
mov edx, 0x104
mov rcx, rdi
call fcn.1400021d0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003d350
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret