joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400321b0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rdx, str.using_GlobalMemoryStatusEx
lea rcx, [rsp + 0x28]
call fcn.14000264c
nop
lea rcx, [rsp + 0x28]
call fcn.1400018c0
mov r8, rax
lea rdx, str.INFO
mov rcx, qword [0x1400b7498]
call fcn.140018920
nop
lea rcx, [rsp + 0x28]
call fcn.140001624
mov dword [rsp + 0x50], 0x40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov r11, qword [rsp + 0x60]
shr r11, 0xa
pxor xmm0, xmm0
cvtsi2sd xmm0, r11
test r11, r11
jns 0x140032241
addsd xmm0, qword [0x140091d38]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14005ba60
add rsp, 0xa8
ret

Function at 0x140032400
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x90
mov qword [rsp + 0x20], 0xfffffffffffffffe
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov rcx, rdx
call fcn.1400337b0
movapd xmm6, xmm0
lea rdx, str.setMaxMemoryPercentOfTotal
lea rcx, [rsp + 0x30]
call fcn.14000264c
nop
lea rcx, [rsp + 0x30]
call fcn.1400018c0
mov r8, rax
lea rdx, str.INFO
mov rcx, qword [0x1400b7498]
call fcn.140018920
nop
lea rcx, [rsp + 0x30]
call fcn.140001624
xorpd xmm5, xmm5
comisd xmm5, xmm6
jbe 0x140032485
movapd xmm6, xmm5
jmp 0x140032497
comisd xmm6, xmmword [0x1400926a8]
jbe 0x140032497
movsd xmm6, qword [0x1400926a8]
mov dword [rsp + 0x30], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov r11, qword [rsp + 0x38]
shr r11, 0xa
pxor xmm0, xmm0
cvtsi2sd xmm0, r11
test r11, r11
jns 0x1400324c9
addsd xmm0, qword [0x140091d38]
mulsd xmm0, xmm6
divsd xmm0, qword [0x1400926a8]
cvttsd2si eax, xmm0
mov dword [rbx + 0x2e0], eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005ba60
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret

Function at 0x140032500
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x90
mov qword [rsp + 0x20], 0xfffffffffffffffe
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov rcx, rdx
call fcn.1400337b0
movapd xmm6, xmm0
lea rdx, str.setInitMemoryPercentOfTotal
lea rcx, [rsp + 0x30]
call fcn.14000264c
nop
lea rcx, [rsp + 0x30]
call fcn.1400018c0
mov r8, rax
lea rdx, str.INFO
mov rcx, qword [0x1400b7498]
call fcn.140018920
nop
lea rcx, [rsp + 0x30]
call fcn.140001624
xorpd xmm5, xmm5
comisd xmm5, xmm6
jbe 0x140032585
movapd xmm6, xmm5
jmp 0x140032597
comisd xmm6, xmmword [0x1400926a8]
jbe 0x140032597
movsd xmm6, qword [0x1400926a8]
mov dword [rsp + 0x30], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov r11, qword [rsp + 0x38]
shr r11, 0xa
pxor xmm0, xmm0
cvtsi2sd xmm0, r11
test r11, r11
jns 0x1400325c9
addsd xmm0, qword [0x140091d38]
mulsd xmm0, xmm6
divsd xmm0, qword [0x1400926a8]
cvttsd2si eax, xmm0
mov dword [rbx + 0x2ec], eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005ba60
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret
Function at 0x14003ab30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r8
mov rbp, rdx
mov r12, rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003ac43
test al, 0x10
jne 0x14003ac43
mov ecx, 0x2800
call fcn.14005ba80
mov r13, rax
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400053e0
mov ebx, eax
mov rdi, qword [rsp + 0x30]
add rbx, rdi
lea r8, [0x14008e327]
mov rdx, rbx
mov rcx, rdi
call fcn.14002f670
cmp rax, rbx
jae 0x14003ac1e
mov rcx, rdi
call fcn.14005ba88
lea r8, str.JavaArch.class_found
lea rdx, str.INFO
mov rcx, rsi
call fcn.140018920
mov qword [rsp + 0x20], rbp
mov r9, r12
lea r8, str.__s_binjavaw.exe___classpath___s__ru.megamakc.core.JavaArch
mov edx, 0x1400
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, r13
call fcn.140004c60
mov ebx, eax
mov rcx, r13
call fcn.14005ba88
cmp ebx, 0x20
sete al
jmp 0x14003ac87
lea r8, str.JavaArch.class_NOT_FOUND
lea rdx, str.ERROR
mov rcx, rsi
call fcn.140018920
test rdi, rdi
je 0x14003ac85
mov rcx, rdi
call fcn.14005ba88
jmp 0x14003ac85
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.14000264c
nop
lea rdx, str._not_found
mov rcx, rax
call fcn.140002680
mov rcx, rax
call fcn.1400018c0
mov r8, rax
lea rdx, str.INFO
mov rcx, rsi
call fcn.140018920
nop
lea rcx, [rsp + 0x40]
call fcn.140001624
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003b020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x578], rbx
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rsi, r8
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov r8, rdx
lea rdx, str._sjre
lea rcx, [rbp + 0x10]
call fcn.140027ea0
lea r8, [rbp + 0x10]
lea rdx, str._s_binclientjvm.dll
lea rcx, [rbp + 0x220]
call fcn.140027ea0
lea rcx, [rbp + 0x220]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003b251
test al, 0x10
jne 0x14003b251
lea r8, str.Local_Java_is_found__check_version...
lea rdx, str.INFO
mov rcx, rsi
call fcn.140018920
lea r8, [rbp + 0x220]
lea rdx, str.INFO
mov rcx, rsi
call fcn.140018920
mov r8, rsi
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x20]
call fcn.140054bc0
nop
lea rcx, [rbp - 0x20]
call fcn.1400018c0
mov r8, rax
lea rdx, str.INFO
mov rcx, rsi
call fcn.140018920
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call fcn.140001678
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.140001678
mov qword [rbp - 0x28], rbx
lea rdx, str.http:__dl.upzona.net_jre2_packed.ebz
lea rcx, [rbp - 0x78]
call fcn.1400026b0
nop
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140054da0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14003aad0
lea rcx, [rsp + 0x30]
call fcn.140001624
lea r8, str.Local_Java_is_good__use_it
lea rdx, str.INFO
mov rcx, rsi
call fcn.140018920
mov ecx, 0x120
call fcn.14005baec
test rax, rax
je 0x14003b19b
mov rcx, rax
call fcn.140030120
mov rbx, rax
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x1400b7928]
mov rcx, rbx
call fcn.1400028b0
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x30]
call fcn.14000264c
nop
lea rcx, [rbx + 0xc8]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x30]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x30]
call fcn.140001624
lea rcx, [rbp - 0x20]
call fcn.1400018c0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000264c
nop
lea rcx, [rbx + 0x50]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x30]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x30]
call fcn.140001624
mov rdx, rbx
mov rcx, rdi
call fcn.14003c880
nop
lea rcx, [rbp - 0x50]
call fcn.140001624
lea rcx, [rbp - 0x78]
call fcn.140001624
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
lea rcx, [rbp - 0x20]
call fcn.140001624
mov al, 1
jmp 0x14003b253
xor al, al
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0x578]
add rsp, 0x540
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003d4e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x16d0
call fcn.140068770
sub rsp, rax
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x16c0], rax
movsxd rbp, r8d
mov rdi, rcx
mov rsi, r9
mov r9, rdx
lea r8, str.SoftwarePinstall_s
lea rcx, [rsp + 0xc0]
xor r12d, r12d
mov edx, 0x100
mov word [rsp + 0x40], r12w
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea rdx, str.nstallDate
lea rcx, [0x140088f68]
call fcn.140007130
lea rdx, [rsp + 0xc0]
mov r9d, 0x20019
mov rbx, rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov word [rsp + 0x40], r12w
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003d61f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2c0]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x34], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003d614
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x14003d5d2
cmp eax, 2
je 0x14003d5d7
cmp eax, 7
je 0x14003d5d2
cmp eax, 3
jne 0x14003d614
cmp eax, 2
jne 0x14003d5fd
lea rdx, [rsp + 0x6c0]
lea rcx, [rsp + 0x2c0]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r8, [rsp + 0x6c0]
jmp 0x14003d605
lea r8, [rsp + 0x2c0]
lea rcx, [rsp + 0x40]
mov edx, 0x40
call fcn.14005c0fc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x40], r12w
je 0x14003d683
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov r8d, 0xa
call fcn.14005f7bc
mov rbx, rax
mov rax, rbp
imul rax, rax, 0x5265c00
add rbx, rax
call fcn.1400064e0
cmp rax, rbx
jge 0x14003d683
lea r8, str.pinstall_exist_already
lea rdx, str.INFO
mov rcx, rsi
call fcn.140018920
lea rcx, [rdi + 0xba8]
lea rdx, str.busy
call fcn.140002680
mov al, 1
jmp 0x14003d685
xor al, al
mov rcx, qword [rsp + 0x16c0]
xor rcx, rsp
call fcn.14005ba60
add rsp, 0x16d0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140040150
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x480
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x460], rax
cmp byte [rcx], 0
mov rsi, r9
mov ebp, edx
mov rbx, rcx
je 0x14004026c
mov r9, r8
lea rcx, [rsp + 0x50]
lea r8, str._sinit.xml
mov edx, 0x104
mov qword [rsp + 0x478], rdi
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea r8, str.write_init_xml_to
lea rdx, str.INFO
mov rcx, rsi
call fcn.140018920
lea r8, [rsp + 0x50]
lea rdx, str.INFO
mov rcx, rsi
call fcn.140018920
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004022a
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140040264
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.createInitXml__d
lea rcx, [rsp + 0x260]
mov r9d, eax
mov edx, 0x100
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea r8, [rsp + 0x260]
lea rdx, str.ERROR
mov rcx, rsi
call fcn.140018920
mov rdi, qword [rsp + 0x478]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14005ba60
add rsp, 0x480
pop rsi
pop rbp
pop rbx
ret

Function at 0x140041420
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
lea rdx, str.oftwarePinstall_s
lea rcx, [0x140088580]
call fcn.140007130
lea rcx, [rsp + 0x60]
mov r9, rdi
mov r8, rax
mov edx, 0x100
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea rdx, str.fferDate
lea rcx, [0x140088430]
lea rbx, [rdi + 0xb48]
call fcn.140007130
mov rsi, rax
test rbx, rbx
je 0x14004150d
xor ecx, ecx
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov rcx, 0xffffffff80000001
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004150d
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov r9d, 1
xor r8d, r8d
not rcx
mov rdx, rsi
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005ba60
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140041540
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
lea rdx, str.oftwarePinstall_s
lea rcx, [0x140088580]
call fcn.140007130
lea rcx, [rsp + 0x60]
mov r9, rdi
mov r8, rax
mov edx, 0x100
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea rdx, str.nstallDate
lea rcx, [0x140088f68]
lea rbx, [rdi + 0xb48]
call fcn.140007130
mov rsi, rax
test rbx, rbx
je 0x14004162d
xor ecx, ecx
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov rcx, 0xffffffff80000001
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004162d
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov r9d, 1
xor r8d, r8d
not rcx
mov rdx, rsi
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005ba60
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140042750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x110
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x50], ebp
lea rcx, [r11 - 0x48]
call fcn.1400060d0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x60], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140001678
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x68]
call fcn.1400028b0
nop
mov rdx, qword [rbx + 8]
add rdx, 0x880
lea rcx, [rsp + 0x90]
call fcn.14000264c
mov rbx, rax
lea rdx, str.artnerUtilId
lea rcx, [0x140089b04]
call fcn.140007130
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.14000264c
nop
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x68]
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.1400505c0
mov rcx, rsi
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004285c
test al, 0x10
je 0x140042867
xor edx, edx
mov rcx, rsi
call fcn.140001648
nop
lea rcx, [rsp + 0xe0]
call fcn.140001624
mov rax, rsi
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret
Function at 0x140046f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov qword [rsp + 0x20], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140046f83
lea rcx, [rsp + 0x20]
call rax
lea rcx, [rbx + 8]
call fcn.1400018c0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140046a40
nop
lea rcx, [rsp + 0x30]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140046fba
test al, 0x10
jne 0x140046fba
mov bl, 1
jmp 0x140046fbc
xor bl, bl
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140046fe6
lea rcx, [rsp + 0x20]
call rax
nop
lea rcx, [rsp + 0x30]
call fcn.140001624
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005ba60
add rsp, 0x60
pop rbx
ret

Function at 0x1400470a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov qword [rsp + 0x20], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400470f3
lea rcx, [rsp + 0x20]
call rax
lea rcx, [rbx + 8]
call fcn.1400018c0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140046a40
nop
lea rcx, [rsp + 0x30]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004712a
test al, 0x10
je 0x14004712a
mov bl, 1
jmp 0x14004712c
xor bl, bl
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140047156
lea rcx, [rsp + 0x20]
call rax
nop
lea rcx, [rsp + 0x30]
call fcn.140001624
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005ba60
add rsp, 0x60
pop rbx
ret
Function at 0x140048bd0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov ecx, 0x400
mov rbx, rdx
call fcn.14005baec
mov edx, 1
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.GDI32.dll_SetBkMode]
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140048c34
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rdi + 8]
mov r8d, 0x200
mov rdx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetClientRect]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
lea r9, [rsp + 0x30]
mov rdx, rsi
repne scasw ax, word [rdi]
mov dword [rsp + 0x20], eax
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawTextW]
mov rcx, rsi
call fcn.14005ba88
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140048e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rcx
lea r8, [0x140089410]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x140048ebe
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0x140048ef2
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
jne 0x140048f01
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rdx, rbx
mov ecx, 2
mov qword [rsp + 0x58], r12
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140048fed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140048fe4
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.14005bd90
lea r8, [rsp + 0x68]
xor r12d, r12d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x68], r12
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x140048fdb
mov rbp, qword [rsp + 0x68]
lea ecx, [rax + 0x18]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x140048f9d
lea rax, vtable.Gdiplus::Bitmap.0
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov qword [rbx], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov rcx, qword [rsp + 0x20]
mov dword [rbx + 0x10], eax
mov qword [rbx + 8], rcx
jmp 0x140048fa0
mov rbx, r12
mov rcx, qword [rsp + 0x68]
mov qword [rsi], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r11, qword [rsi]
test r11, r11
je 0x140048fdb
mov eax, dword [r11 + 0x10]
mov dword [r11 + 0x10], r12d
test eax, eax
jne 0x140048fc6
mov al, 1
jmp 0x140048fef
mov rcx, qword [rsi]
test rcx, rcx
je 0x140048fd8
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsi], r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140049420
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.14000193c
mov r9, rax
mov r8, rdi
mov rdx, qword [rsi + 0x60]
lea rcx, [rsi + 0x50]
call fcn.140012ef0
test eax, eax
je 0x1400494d8
mov rdx, rdi
lea rcx, [rsi + 0x50]
call fcn.1400026b0
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x38
call fcn.14005baec
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400494b0
mov rdx, rdi
mov rcx, rax
call fcn.14000264c
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rsi
jmp 0x1400494b2
xor ebx, ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140049300]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x140049760
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea r8, [rcx + 0x238]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret

Function at 0x140049960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov r12, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
mov rbp, rdx
repne scasw ax, word [rdi]
not rcx
mov esi, ecx
lea rdi, [rcx - 1]
movsxd rcx, ecx
call fcn.14005ba80
movsxd r8, edi
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140062200
test esi, esi
je 0x1400499ee
lea rax, [rsp + 0x70]
or r9d, 0xffffffff
mov r8, rbp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
jae 0x1400499e2
mov eax, eax
mov byte [rax + rbx], 0
jmp 0x1400499ee
lea eax, [rsi - 1]
cmp byte [rax + rbx], 0
je 0x1400499ee
mov byte [rbx], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
lea r9, [rsp + 0x60]
mov rdx, rbx
not rcx
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], rax
lea r8d, [rcx - 1]
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.14005ba88
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
mov rax, r12
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret