joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800081f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800a21e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
movzx ebx, r8b
mov qword [rsp + 0x30], rcx
mov edi, edx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180048640
mov edx, edi
lea rax, [rsp + 0x40]
bts edx, 0xf
mov qword [rsp + 0x20], rax
test bl, bl
cmove edx, edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rsi + 0x18], 7
mov r8, 0xffffffffffffffff
test eax, eax
je 0x180008281
xor eax, eax
mov qword [rsi + 0x10], rax
mov word [rsi], ax
inc r8
cmp word [rax + r8*2], ax
jne 0x180008273
xor edx, edx
jmp 0x1800082a0
xor eax, eax
mov qword [rsi + 0x10], rax
mov word [rsi], ax
lea rax, [rsp + 0x40]
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180008290
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800041c0
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002a480
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800086a0
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push rbx
push r14
mov eax, 0x1258
call fcn.18002af00
sub rsp, rax
mov rax, qword [0x1800a21e8]
xor rax, rsp
mov qword [rsp + 0x1240], rax
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1000
call fcn.180048640
xor eax, eax
lea r8, [rsp + 0x20]
xor ebx, ebx
mov word [rsp + 0x1238], ax
mov edx, 0x1000
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x30]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x180008805
mov qword [rsp + 0x1280], rsi
mov esi, dword [rsp + 0x20]
shr esi, 2
test esi, esi
je 0x180008801
mov qword [rsp + 0x1278], rbp
mov qword [rsp + 0x1288], rdi
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x1250], r15
mov r15d, ebx
nop dword [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x1030]
mov r8d, 0x208
call fcn.180048640
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, 0x104
lea rdx, [rsp + 0x1030]
mov rcx, rax
mov rbp, rax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test rbp, rbp
je 0x18000878c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x104
lea rcx, [rsp + 0x1030]
call fcn.1800542e8
mov rdx, r14
lea rcx, [rsp + 0x1030]
call fcn.1800493e4
test rax, rax
jne 0x1800087fb
inc ebx
add rdi, 4
cmp ebx, esi
jb 0x180008740
mov eax, r15d
mov rdi, qword [rsp + 0x1288]
mov rbp, qword [rsp + 0x1278]
mov r15, qword [rsp + 0x1250]
mov rsi, qword [rsp + 0x1280]
mov rcx, qword [rsp + 0x1240]
xor rcx, rsp
call fcn.18002a480
add rsp, 0x1258
pop r14
pop rbx
ret
mov eax, dword [rsp + rbx*4 + 0x30]
jmp 0x1800087c0
mov eax, ebx
jmp 0x1800087d8
mov eax, ebx
jmp 0x1800087e0
Function at 0x180008ad0
Capabilities:
Delete registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1800a21e8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r9
mov r14, r8
mov rbp, rdx
mov r15, rcx
test rdx, rdx
jne 0x180008b0d
xor al, al
jmp 0x180008d23
cmp qword [rcx + 0x18], 0
ja 0x180008b93
lea rcx, [rsp + 0x48]
call fcn.180008490
mov rbx, rax
lea rdi, [r15 + 8]
cmp rdi, rax
je 0x180008b51
mov rcx, rdi
call fcn.180003f60
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180008b93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008b8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180008d43
call fcn.18002a370
lea rdi, [r15 + 8]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov r15, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x180008bae
mov rdi, qword [rdi]
cmp r15, 8
jae 0x180008bc7
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], 7
jmp 0x180008c0a
mov rbx, r15
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x28]
call fcn.180003fd0
mov qword [rsp + 0x28], rax
lea r8, [r15*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.1800481e0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov r8d, 0xa
lea rdx, str.Software_
lea rcx, [rsp + 0x28]
call fcn.180004040
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rbp + r8*2], 0
jne 0x180008c30
mov rdx, rbp
lea rcx, [rsp + 0x28]
call fcn.180004040
test r14, r14
je 0x180008c88
mov r8d, 1
lea rdx, [0x18007836c]
lea rcx, [rsp + 0x28]
call fcn.180004040
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [r14 + r8*2], 0
jne 0x180008c70
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.180004040
test rsi, rsi
je 0x180008cbe
mov r8d, 1
lea rdx, [0x18007836c]
lea rcx, [rsp + 0x28]
call fcn.180004040
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x180008ca4
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.180004040
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180008d21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008d1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180008d3d
call fcn.18002a370
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18002a480
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.18004bf34
int3
call fcn.18004bf34
int3
Function at 0x180020980
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800a21e8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
mov ecx, dword [rcx + 0x30]
cmp ecx, 0xffffffff
je 0x1800209c4
call fcn.18005a62c
mov dword [rdi + 0x30], 0xffffffff
mov r8d, dword [rdi + 0x48]
dec r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.18001d300
nop
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call fcn.180054688
mov ebx, dword [rdi + 0x48]
sub ebx, 2
js 0x180020aea
xor esi, esi
mov r8d, ebx
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.18001d300
nop
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18001d300
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180020a8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180020a87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180020b6b
call fcn.18002a370
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180020ae1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180020adc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180020b5f
call fcn.18002a370
sub ebx, 1
jns 0x180020a00
mov rcx, rdi
call fcn.18001fdc0
mov byte [rdi + 0x90], 0
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x180020b3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180020b35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180020b65
call fcn.18002a370
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18002a480
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.18004bf34
nop
call fcn.18004bf34
nop
call fcn.18004bf34
int3
Function at 0x180020b80
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800a21e8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
mov ecx, dword [rcx + 0x30]
cmp ecx, 0xffffffff
je 0x180020bc4
call fcn.18005a62c
mov dword [rdi + 0x30], 0xffffffff
mov r8d, dword [rdi + 0x48]
dec r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.18001d300
nop
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call fcn.180054688
mov ebx, dword [rdi + 0x48]
sub ebx, 2
js 0x180020cea
xor esi, esi
mov r8d, ebx
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.18001d300
nop
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18001d300
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180020c8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180020c87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180020d6b
call fcn.18002a370
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180020ce1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180020cdc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180020d5f
call fcn.18002a370
sub ebx, 1
jns 0x180020c00
mov rcx, rdi
call fcn.180020020
mov byte [rdi + 0x90], 0
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x180020d3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180020d35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180020d65
call fcn.18002a370
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18002a480
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.18004bf34
nop
call fcn.18004bf34
nop
call fcn.18004bf34
int3
Function at 0x180022440
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x1800a21e8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r14d, dword [rsp + 0x110]
mov rbp, rcx
mov rcx, rdx
mov edi, r9d
mov ebx, r8d
mov rsi, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18002248b
mov eax, 2
jmp 0x180022576
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.180022150
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.180048640
test r14d, r14d
mov dword [rsp + 0x20], 0x70
lea rcx, str.runas
mov qword [rsp + 0x38], rsi
lea rax, [0x180078b38]
mov dword [rsp + 0x24], 0x40
cmovne rax, rcx
cmp qword [rsp + 0xa8], 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x90]
cmovae rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x88]
mov esi, eax
test rcx, rcx
je 0x180022530
test ebx, ebx
je 0x180022530
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x180022574
mov rcx, qword [rsp + 0x90]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002256f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180022594
call fcn.18002a370
mov eax, esi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18002a480
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.18004bf34
int3
Function at 0x180023e30
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x180023ee5
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x180023eb1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180023ed0
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180023ed0
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x180023ed0
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x1800a5a90], 0
jne 0x180023f30
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180023f20
lea rdx, [0x18007b798]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800a5a88], rax
mov byte [0x1800a5a90], 1
jmp 0x180023f37
mov rax, qword [0x1800a5a88]
mov byte [0x1800a5a90], 1
jmp 0x180023f37
mov rax, qword [0x1800a5a88]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x180023eba
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x180024db0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800a21e8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.180024890
mov ebx, eax
test eax, eax
jne 0x180024ec7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180024ea1
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180024db0
mov ebx, eax
test eax, eax
jne 0x180024ec7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180024e50
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180024eb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.180023e30
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180024ed7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18002a480
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800253e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1800a21e8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18002546e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18002546e
call fcn.180023aa0
mov ebx, eax
jmp 0x180025593
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18002548f
call fcn.180023aa0
jmp 0x180025582
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1800254b2
call fcn.180023aa0
jmp 0x180025582
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1800254d4
mov ebx, 0x8007000e
jmp 0x180025584
mov ecx, eax
test eax, eax
je 0x180025509
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1800255cb
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180025509
lea rcx, [rsp + 0x70]
call fcn.180023980
jmp 0x180025513
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180025526
cmp qword [rsp + 0x70], 0
jne 0x180025535
mov ebx, 0x8007000e
jmp 0x180025584
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x18002555f
call fcn.180023aa0
jmp 0x180025582
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180024f00
mov ebx, eax
test rdi, rdi
je 0x180025593
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1800255aa
lea rcx, [rsp + 0x70]
call fcn.180023fa0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18002a480
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.180004370
int3
Function at 0x18002cb38
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x18002cb4b
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.18002d158
lea rdx, [0x1800a0150]
lea rcx, [rsp + 0x20]
call fcn.180048f8c
int3

Function at 0x1800388b8
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1800a6888]
xor edx, edx
jmp fcn.18002cb38

Function at 0x180039250
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1800a6888]
jmp fcn.18002cb38

Function at 0x180044ea0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180044f5c]
mov r9, qword [r9 + 8]
jmp fcn.180034d8c

Function at 0x180044f34
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180044f6c]
mov r9, qword [r9 + 8]
jmp fcn.180034d8c

Function at 0x180054688
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180054680
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18004ed34
or eax, 0xffffffff
jmp 0x180054682
xor eax, eax
add rsp, 0x28
ret
jmp 0x180054660
Function at 0x180067ccc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180067988
call fcn.18004eda4
mov dword [rax], 0x16
call fcn.18004bf14
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180067970
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180067970
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800679ba
lock or dword [rax + 0x14], 0x10
jmp 0x180067970
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800679d7
mov rcx, qword [rbp + 0x10]
call fcn.1800681a8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18006224c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800667c4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180067a2e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180067970
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180067a9a
mov rcx, qword [rbp + 0x10]
call fcn.18006224c
cmp eax, 0xffffffff
je 0x180067a81
mov rcx, qword [rbp + 0x10]
call fcn.18006224c
cmp eax, 0xfffffffe
je 0x180067a81
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18006224c
movsxd rdi, eax
lea rsi, [0x1800a6f10]
mov rcx, rbx
sar rdi, 6
call fcn.18006224c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180067a88
lea rax, [0x1800a26b0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180067a9a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180067ad0
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180067acc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180067acc
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180067973
jmp 0x180067940