joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e250
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14000e26b
mov qword [r8], 0
call fcn.14000e3b0
mov rbx, rax
test rax, rax
jne 0x14000e281
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000e38b
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000e38b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000e38b
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000e38b
cmp rdi, 0xffffffffffffffff
je 0x14000e38b
mov rax, qword [0x1400d76a0]
test rax, rax
je 0x14000e304
inc dword [rax + 0xf4]
mov rdx, qword [0x1400d76b0]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14000e38b
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x14000e363
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400d76a0]
test rax, rax
je 0x14000e351
dec dword [rax + 0xf4]
mov rdx, qword [0x1400d76b0]
mov rcx, rsi
call qword [0x1400c3008]
jmp 0x14000e394
test ebp, ebp
jle 0x14000e375
lea rcx, [rdi + rsi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000e386
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000e396
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x14000e7c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000e81d
lea rbx, [0x1400626e0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000e804
cmp r10, 2
jb 0x14000e804
cmp byte [r9], r8b
jne 0x14000e804
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000e7e0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000e85f
lea rbx, [0x1400626e0]
cmp r8b, 0x23
jne 0x14000e843
cmp byte [r9], r8b
jne 0x14000e843
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000e830
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14000eb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x14000eb70
cmp rax, rdi
jae 0x14000ece8
movzx r8d, byte [rax]
test r8b, r8b
je 0x14000ece8
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x632b8]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x14000eba6
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x14000ebbe
movzx r15d, byte [rcx]
jmp 0x14000ebc1
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x14000ebd0
movzx r14d, byte [rcx]
jmp 0x14000ebd3
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x14000ebe1
movzx ebp, byte [rcx]
jmp 0x14000ebe4
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x632d8]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x63308]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x632f0]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, 0x100
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x63320]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x14000ecda
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x14000eb62
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x14000ed60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x14000ef77
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x14000edbe
cmp r8, rsi
jae 0x14000ef54
movzx edx, byte [r8]
test dl, dl
je 0x14000ef54
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x632b8]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x14000edf2
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x14000ee0b
movzx r13d, byte [rax]
jmp 0x14000ee0e
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x14000ee1d
movzx r12d, byte [rax]
jmp 0x14000ee20
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x14000ee2f
movzx r15d, byte [rax]
jmp 0x14000ee32
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x632d8]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x63308]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x632f0]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x63320]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x14000ef36
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x14000edb0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x14000ef8d
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140010850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c90], 0
lea rbx, [rcx + 0x5c98]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400108f7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400108aa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001f4f0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001efa0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c90]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5ca0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400d76a8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400108ff
mov rcx, rbx
call fcn.14001efa0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140019510
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1400d76a0]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5bf4], ecx
test rbx, rbx
je 0x14001957f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140019590
lea rdx, [0x140064044]
mov rcx, rbx
mov rdi, rax
call fcn.14000e3b0
mov rbx, rax
test rax, rax
je 0x14001957a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x14001da80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x1400d76a0]
cmp byte [rbx + 0x5bf1], 0
jne 0x14001dbdc
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001dbd5
lea rdx, [0x140064040]
mov qword [rsp + 0x40], rdi
call fcn.14000e3b0
mov rdi, rax
test rax, rax
je 0x14001dbd0
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001dbbd
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001dbbd
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14001dbbd
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001dbbd
cmp rsi, 0xffffffffffffffff
je 0x14001dbbd
mov rax, qword [0x1400d76a0]
test rax, rax
je 0x14001db47
inc dword [rax + 0xf4]
mov rdx, qword [0x1400d76b0]
mov rcx, rsi
call qword [section..data]
mov rbp, rax
test rax, rax
je 0x14001dbbd
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14001db83
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001db99
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14001db99
mov rdx, rsi
mov rcx, rbp
call fcn.140010380
mov rax, qword [0x1400d76a0]
test rax, rax
je 0x14001dbab
dec dword [rax + 0xf4]
mov rdx, qword [0x1400d76b0]
mov rcx, rbp
call qword [0x1400c3008]
jmp 0x14001dbc6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5bf1], 1
movss xmm0, dword [rbx + 0x5bf4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001dc1f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5bf4], xmm0
jb 0x14001dc1f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001dc0e
call fcn.140019510
jmp 0x14001dc15
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5bf4], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140033150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400d76a0]
mov rcx, qword [rax + 0x4b40]
mov r10, qword [rax + 0x3ed8]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x298]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x238], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x298]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp 0x140028560

Function at 0x140033220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400d76a0]
mov rcx, qword [rax + 0x4b40]
mov r9, qword [rax + 0x3ed8]
movups xmm0, xmmword [r9 + 0x238]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x238], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x21e]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x298]
add rsp, 0x38
jmp 0x140028560
Function at 0x14005ecf0
Capabilities:
Parse pe header

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

Function at 0x14005faa8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14005fae2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14005fae7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14005fb30
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400ba040]
cmp byte [rcx + rax], 0
je 0x14005fb30
dec r8
sub rdx, 1
jne 0x14005fb16
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x100006950
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rax, qword [0x10000e360]
mov qword [rsp + 0x230], rax
mov qword [r11 + 0x18], rbx
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov qword [r11 + 0x20], rdi
mov word [rsp + 0x20], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov edx, 0x208
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [0x100003278]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rdi, rax
jne 0x1000069c7
lea eax, [rdi + 1]
jmp 0x1000069ef
mov edx, 5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, 0xffffffff
mov rdx, rbx
xor ecx, ecx
call rax
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rdi, qword [rsp + 0x268]
mov rbx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
call fcn.10000afa0
add rsp, 0x248
ret

Function at 0x100006a20
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov r11d, eax
jne 0x100006a4b
movzx eax, bl
mov ecx, 1
shr r11w, 8
cmovne eax, ecx
add rsp, 0x20
pop rbx
ret
mov al, bl
add rsp, 0x20
pop rbx
ret

Function at 0x100006a60
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, bl
cmp al, 6
mov edx, 1
cmove ecx, edx
mov al, cl
add rsp, 0x20
pop rbx
ret
Function at 0x100006a90
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
sub rsp, 0x298
mov rax, qword [0x10000e360]
mov qword [rsp + 0x260], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov rsi, rdx
mov qword [r11 - 0x20], r13
lea rdx, [rsp + 0x34]
xor r13d, r13d
mov dword [rsp + 0x34], r13d
mov r12, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov ebx, eax
je 0x100006cb2
lea ecx, [r13 + 2]
mov rdx, rbx
mov dword [rsp + 0x40], r13d
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [rsp + 0x34]
mov r8d, ebx
mov r9, rax
mov rcx, r12
mov rbp, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x58]
lea rdx, [0x100003358]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
mov rcx, qword [rsp + 0x58]
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 0x16]
movzx r9d, word [rcx + 0x10]
movzx r8d, word [rcx + 0x12]
mov dword [rsp + 0x28], edx
lea rdx, [0x100003340]
lea rcx, [rsi + 4]
mov r13d, eax
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [0x10000333c]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x100006b9a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x100006cb5
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [0x100003308]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100006bcb
cmp dword [rsp + 0x30], 4
jb 0x100006bcb
mov rax, qword [rsp + 0x50]
mov ebx, dword [rax]
mov dword [rsp + 0x38], ebx
jmp 0x100006bcf
mov ebx, dword [rsp + 0x38]
test rbp, rbp
je 0x100006ca0
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x1fc
mov word [rsp + 0x60], 0
call sub.msvcrt.dll_memset
movzx r12d, bx
lea rax, [0x100002608]
shr ebx, 0x10
lea rdx, [0x1000032d0]
lea rcx, [rsp + 0x60]
mov r8d, r12d
mov r9d, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100006c49
mov rdx, qword [rsp + 0x48]
lea rcx, [rsi + 0x20c]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx r9d, word [rsp + 0x3a]
lea rax, [0x1000032a8]
lea rdx, [0x1000032d0]
lea rcx, [rsp + 0x60]
mov r8d, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100006c9d
mov rdx, qword [rsp + 0x48]
lea rcx, [rsi + 0x414]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [rsi], r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, r13d
mov r13, qword [rsp + 0x278]
mov r12, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x288]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x260]
call fcn.10000afa0
add rsp, 0x298
ret
Function at 0x100006d00
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
mov r11, rsp
sub rsp, 0x668
mov rax, qword [0x10000e360]
mov qword [rsp + 0x650], rax
cmp word [rdx + 2], 0x3a
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov rdi, rcx
mov rbx, rdx
jne 0x100006d48
movzx r8d, word [rdx]
lea rcx, [r11 - 0x438]
lea rdx, [0x100003368]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x100006d7c
lea rdx, [rsp + 0x440]
mov r8d, 0x100
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx r8d, word [rsp + 0x440]
lea rdx, [0x100003368]
lea rcx, [rsp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x20]
lea rdx, [0x10000335c]
lea rcx, [rsp + 0x230]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100006def
lea rdx, [rsp + 0x20]
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100006def
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100006def
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100006df3
xor al, al
jmp 0x100006e00
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov rdi, qword [rsp + 0x688]
mov rbx, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x650]
call fcn.10000afa0
add rsp, 0x668
ret
Function at 0x100007200
Capabilities:
Get geographical location

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rax, qword [0x10000e360]
mov qword [rsp + 0x230], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov qword [r11 + 0x20], rdi
mov word [rsp + 0x20], 0
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
mov r9d, CSocketWnd::CSocketWnd
mov edx, 1
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea rdx, [0x1000034c8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, COleControlSite::XOleClientSite::AddRef
test eax, eax
lea edi, [rsi - 5]
jne 0x10000727d
mov bx, 0x804
jmp 0x1000072e9
lea rdx, [0x100003508]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100007299
mov bx, 0x804
jmp 0x1000072e9
lea rdx, [0x1000034f8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1000072b4
mov bx, di
jmp 0x1000072e9
lea rdx, [0x1000034e8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1000072cf
mov bx, di
jmp 0x1000072e9
lea rdx, [0x100003508]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, esi
test eax, eax
cmove bx, di
mov rax, qword [sym.imp.msvcrt.dll___argc]
cmp dword [rax], 2
jl 0x100007360
mov rax, qword [sym.imp.msvcrt.dll___wargv]
lea rdx, [0x1000034c0]
mov rcx, qword [rax]
mov rcx, qword [rcx + 8]
call qword [sym.imp.msvcrt.dll_wcsstr]
mov ecx, 0x804
lea rdx, [0x1000034e0]
test rax, rax
mov rax, qword [sym.imp.msvcrt.dll___wargv]
cmovne bx, cx
mov rcx, qword [rax]
mov rcx, qword [rcx + 8]
call qword [sym.imp.msvcrt.dll_wcsstr]
lea rdx, [0x1000034d8]
test rax, rax
mov rax, qword [sym.imp.msvcrt.dll___wargv]
mov rcx, qword [rax]
cmovne bx, di
mov rcx, qword [rcx + 8]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
cmovne bx, si
mov rdi, qword [rsp + 0x268]
mov rsi, qword [rsp + 0x260]
mov ax, bx
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
call fcn.10000afa0
add rsp, 0x248
ret

Function at 0x1000073a0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10000741f
lea r8, [rsp + 0x58]
lea rdx, [0x100003518]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x100007419
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x34], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x80010002
mov ecx, 2
call qword [sym.imp.USER32.dll_ExitWindowsEx]
add rsp, 0x48
ret