joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002ac4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movdqa xmm0, xmmword [0x18002ff20]
movdqa xmm1, xmmword [0x18002fea0]
mov rbx, qword [0x180038a70]
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmm0, xmmword [0x18002ff10]
movdqa xmmword [rbp - 9], xmm1
movdqa xmm1, xmmword [0x18002feb0]
movdqa xmmword [rbp + 7], xmm0
movdqa xmm0, xmmword [0x18002fec0]
movdqa xmmword [rbp + 0x17], xmm1
movdqa xmm1, xmmword [0x18002fe80]
movdqa xmmword [rbp + 0x27], xmm0
movdqa xmm0, xmmword [0x18002ff00]
movdqa xmmword [rbp + 0x37], xmm1
movdqa xmm1, xmmword [0x18002fed0]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [0x18002fef0]
movdqa xmmword [rbp - 0x79], xmm1
movdqa xmm1, xmmword [0x18002fe70]
movdqa xmmword [rbp - 0x69], xmm0
movdqa xmm0, xmmword [0x18002fee0]
movdqa xmmword [rbp - 0x59], xmm1
movdqa xmm1, xmmword [0x18002fe90]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmmword [rbp - 0x39], xmm1
mov dword [rbp + 0x47], 0x29
mov dword [rbp - 0x29], 0x8c
call fcn.180004760
mov edx, 0xc9
mov r8d, 2
mov rcx, rbx
call rax
mov edi, dword [rax + 4]
mov esi, dword [rax]
mov ecx, edi
add rsi, rbx
mov ebx, edi
call fcn.180008550
xor ecx, ecx
mov r9, rax
test edi, edi
je 0x180002bcb
mov byte [rax], cl
inc rax
sub rbx, 1
jne 0x180002bc0
lea r8, [rsi + 0x67]
test r8, r8
je 0x180002bec
mov rdx, r9
test edi, edi
je 0x180002bec
sub r8, r9
mov al, byte [r8 + rdx]
mov byte [rdx], al
inc rdx
sub edi, 1
jne 0x180002bde
mov r11d, ecx
mov r8, rcx
mov r10, r9
movabs rbx, 0x47ae147ae147ae15
mov edi, 0x49200
mov rax, rbx
inc r11d
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0x19
sub r8, rax
mov al, byte [rsp + r8*4 + 0x20]
xor byte [r10], al
inc r10
movsxd r8, r11d
cmp r8, rdi
jb 0x180002c04
mov r8, rcx
mov r10, r9
mov rax, rbx
inc ecx
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0x19
sub r8, rax
mov al, byte [rbp + r8*4 - 0x19]
xor byte [r10], al
inc r10
movsxd r8, ecx
cmp r8, rdi
jb 0x180002c3d
lea r11, [rsp + 0x100]
mov rax, r9
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180002d4c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov al, cl
movaps xmmword [rsp + 0x20], xmm7
mov ebx, 0x45
cmp cl, 0xb
jl 0x180002ea8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ecx, ebx
call fcn.180002ca4
cvttss2si ebx, xmm0
cmp bl, 0x4d
jg 0x180002e84
call qword [sym.imp.SHELL32.dll_InitNetworkAddressControl]
cvttsd2si ecx, qword [0x18002fd88]
call fcn.180002d4c
movsx rcx, al
xorps xmm0, xmm0
mov eax, 0x7c
cqo
idiv rcx
cvtsi2sd xmm0, rax
cvttsd2si rcx, xmm0
call fcn.180002d34
movss xmm7, dword [0x18002fe08]
movss xmm6, dword [0x18002fe0c]
call qword [sym.imp.SHELL32.dll_InitNetworkAddressControl]
mulss xmm6, xmm7
movaps xmm7, xmm6
cvttss2si rcx, xmm7
call fcn.180002d34
movsx eax, al
movd xmm6, eax
cvtdq2ps xmm6, xmm6
movaps xmm0, xmm6
addss xmm0, xmm7
cvttss2si eax, xmm0
cmp al, 0x68
jne 0x180002dc9
mov r9d, 9
mov dl, 0x42
mov r8b, r9b
movsx eax, dl
movsx ecx, r8b
imul ecx, eax
movsx rax, dl
imul r9, rax
movsx eax, cl
movsx r8d, r9b
mov ecx, r8d
movsx edx, dl
imul ecx, eax
imul edx, r8d
add cl, dl
cmp cl, 0x25
jge 0x180002e04
call qword [sym.imp.ole32.dll_CoFreeUnusedLibraries]
movss xmm6, dword [0x18002fe00]
cvttss2si ecx, xmm6
call fcn.180002d4c
xorps xmm1, xmm1
movsx rcx, al
movaps xmm0, xmm6
addss xmm0, xmm6
cvtsi2ss xmm1, rcx
movaps xmm6, xmm0
movaps xmm2, xmm1
mulss xmm2, xmm0
divss xmm0, xmm1
xorps xmm1, xmm1
cvttss2si rax, xmm0
cvtsi2ss xmm1, rax
divss xmm2, xmm1
cvttss2si eax, xmm2
cmp al, 0x72
jle 0x180002e3f
jmp 0x180002ea0
mov ecx, 0x5b
mov al, bl
cmp bl, 0x6d
jg 0x180002ea0
call fcn.180002ca4
cvttss2si ecx, xmm0
mov al, cl
cmp cl, 0x6d
jle 0x180002e90
cmp al, 0xb
jge 0x180002d6c
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret
Function at 0x1800034d8
Capabilities:
Accept command line arguments
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm10
call qword [sym.imp.KERNEL32.dll_FlushProcessWriteBuffers]
mov cl, 0xe4
call fcn.180002eb8
movss xmm1, dword [0x18002fe58]
divss xmm1, xmm0
comiss xmm1, dword [0x18002fe24]
jbe 0x1800035bb
movss xmm6, dword [0x18002fdf8]
mov bl, 0x2d
cvtps2pd xmm0, xmm6
call fcn.180003014
xorps xmm6, xmm6
mov cl, bl
cvtsd2ss xmm6, xmm0
call fcn.180002eb8
cvttss2si ebx, xmm0
movsx eax, bl
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm6
ucomiss xmm1, dword [0x18002fcb8]
jp 0x180003529
jne 0x180003529
movss xmm6, dword [0x18002fe18]
mov ebp, 0x3e
lea esi, [rbp - 0x1d]
jmp 0x18000359c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xorps xmm0, xmm0
imul ebp, esi
movsxd rdi, ebp
lea rbx, [rdi + rsi]
cvtsi2ss xmm0, rbx
call fcn.1800034d8
movsxd rsi, eax
sub rdi, rbx
add rdi, rsi
xorps xmm1, xmm1
cvtsi2ss xmm1, rdi
comiss xmm1, xmm6
ja 0x18000356e
movss xmm0, dword [0x18002fdbc]
comiss xmm0, xmm1
ja 0x1800035bb
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov cl, 0x6a
call fcn.1800033cc
movss xmm10, dword [0x18002fe50]
mov ebx, 0x22
lea edi, [rbx - 0x1d]
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movss xmm7, dword [0x18002fe4c]
movss xmm6, dword [0x18002fe10]
movsxd rax, edi
imul rbx, rax
add edi, ebx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
movaps xmm1, xmm6
movaps xmm0, xmm6
divss xmm1, xmm7
movaps xmm7, xmm1
call fcn.1800034d8
movaps xmm0, xmm7
movd xmm6, eax
cvtdq2ps xmm6, xmm6
subss xmm0, xmm6
comiss xmm10, xmm0
jae 0x1800035eb
movsd xmm6, qword [0x18002fd70]
jmp 0x180003649
movaps xmm0, xmm6
subsd xmm0, xmm6
cvttsd2si ecx, xmm0
movaps xmm6, xmm0
call fcn.1800033cc
movsx ecx, al
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
addsd xmm1, xmm6
cvtpd2ps xmm0, xmm1
comiss xmm0, dword [0x18002fe20]
jae 0x180003621
movsd xmm6, qword [0x18002fcb0]
xor eax, eax
ucomiss xmm0, dword [0x18002fe48]
jp 0x180003667
je 0x180003697
xorps xmm2, xmm2
mov cl, al
mulsd xmm6, xmm2
call fcn.180002eb8
cvttss2si eax, xmm0
movd xmm2, eax
cvtdq2pd xmm2, xmm2
movaps xmm1, xmm2
addsd xmm1, xmm6
cvtpd2ps xmm0, xmm1
ucomiss xmm0, dword [0x18002fe48]
jp 0x18000366a
jne 0x18000366a
ucomiss xmm0, dword [0x18002fe40]
jp 0x1800035cc
jne 0x1800035cc
call qword [sym.imp.USER32.dll_GetForegroundWindow]
jmp 0x1800035cc
Function at 0x180003710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
movsxd rax, dword [rcx + 0x3c]
xor r12d, r12d
mov r14, rdx
mov r8d, dword [rax + rcx + 0x88]
test r8d, r8d
jne 0x180003747
xor eax, eax
jmp 0x1800037e5
lea rax, [rcx + r8]
mov rsi, r12
mov ebx, dword [rax + 0x20]
mov edx, dword [rax + 0x1c]
add rbx, rcx
mov r8d, dword [rax + 0x24]
add rdx, rcx
mov r15d, dword [rax + 0x18]
add r8, rcx
test r15, r15
je 0x1800037d2
mov edi, dword [rbx]
mov r9, r12
add rdi, rcx
cmp byte [r14], r12b
je 0x180003780
inc r9
cmp byte [r9 + r14], r12b
jne 0x180003777
test rdi, rdi
je 0x1800037c2
mov r10d, r12d
test r9, r9
je 0x1800037bd
mov rbp, r14
mov r11, rdi
sub rbp, rdi
mov al, byte [r11 + rbp]
cmp byte [r11], al
jb 0x1800037b9
ja 0x1800037b1
inc r11
mov rax, r11
sub rax, rdi
cmp rax, r9
jb 0x180003796
jmp 0x1800037bd
mov r10d, 1
jmp 0x1800037bd
or r10d, 0xffffffff
test r10d, r10d
je 0x1800037d2
inc rsi
add rbx, 4
add r8, 2
cmp rsi, r15
jb 0x18000376a
cmp r12w, word [r8]
jae 0x1800037e0
movzx eax, word [r8]
lea rdx, [rdx + rax*4]
mov eax, dword [rdx]
add rax, rcx
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x18000457c
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov r10d, ecx
rdtscp
shl rdx, 0x20
mov r9d, 0x989680
or rax, rdx
cmp rax, r9
jbe 0x1800045b0
mov r9d, 0x17047ce
jmp 0x1800045c8
rdtscp
shl rdx, 0x20
or rax, rdx
xor edx, edx
mov rcx, rax
mov rax, r9
div rcx
mov r9, rax
rdtscp
shl rdx, 0x20
or rax, rdx
movd xmm1, r9d
mov ecx, eax
movabs rax, 0x58ed2308158ed231
imul r8, rcx, 0xd4f6
cvtdq2ps xmm1, xmm1
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x5f
sub r8, rax
add r8d, 3
xor ebx, ebx
cmp r9d, r8d
je 0x18000461d
mov ebx, r10d
ror ebx, 0xd
jmp 0x180004749
movss xmm0, dword [0x18002fdf8]
mov eax, 0x69
jmp 0x180004638
imul rax, rax
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
ucomiss xmm1, xmm0
jp 0x18000462c
jne 0x18000462c
movss xmm0, dword [0x18002fe28]
comiss xmm0, xmm1
jb 0x180004657
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xorps xmm0, xmm0
jmp 0x180004668
movsd xmm0, qword [0x18002fd78]
call fcn.180003014
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x18002fdb8]
mov edi, 0x35
lea eax, [rdi + 0x17]
jb 0x1800046ca
movsd xmm2, qword [0x18002fd18]
add rax, rdi
xorps xmm6, xmm6
cvtsi2sd xmm6, rax
addsd xmm2, xmm6
cvttsd2si ecx, xmm6
cvttsd2si rdi, xmm2
call fcn.1800033cc
movsx rax, al
xorps xmm2, xmm2
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
cvtsi2sd xmm2, rdi
movaps xmm1, xmm2
mulsd xmm1, xmm6
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
comiss xmm0, dword [0x18002fdb8]
jae 0x180004681
comiss xmm0, dword [0x18002fdc0]
jb 0x1800046da
mov cl, 0x64
call fcn.1800033cc
movsd xmm6, qword [0x18002fcd8]
mov edi, 6
lea esi, [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetCursor]
movaps xmm0, xmm6
sub edi, esi
divsd xmm0, xmm6
lea esi, [rdi + rdi]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
movaps xmm6, xmm0
divsd xmm1, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
ucomiss xmm0, dword [0x18002fde8]
jp 0x180004726
je 0x1800046ea
mov eax, 0x2f
mov cl, al
call fcn.1800033cc
movsx rax, al
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
ucomiss xmm0, dword [0x18002fe14]
jp 0x18000472b
jne 0x18000472b
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x180004760
Capabilities:
Access peb ldr_data
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x20]
jmp 0x1800047ad
mov r9, qword [rdx + 0x50]
xor r8d, r8d
movzx r10d, word [rdx + 0x48]
movzx ecx, byte [r9]
ror r8d, 0xd
mov eax, r8d
add rax, rcx
cmp cl, 0x61
lea r8, [rax - 0x20]
cmovb r8, rax
inc r9
sub r10, 1
jne 0x18000477f
cmp r8d, 0x6a4abc5b
je 0x1800047b5
mov rdx, qword [rdx]
test rdx, rdx
jne 0x180004773
xor eax, eax
ret
mov r8, qword [rdx + 0x20]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
mov edx, dword [r9 + r8 + 0x20]
mov ecx, dword [r9 + r8 + 0x24]
add rdx, r8
add rcx, r8
mov r11d, dword [rdx]
add r11, r8
xor r10d, r10d
mov al, byte [r11]
inc r11
ror r10d, 0xd
movsx eax, al
add r10d, eax
mov al, byte [r11]
test al, al
jne 0x1800047e1
cmp r10d, 0x3bd09a55
je 0x180004808
add rdx, 4
add rcx, 2
jmp 0x1800047d5
movzx edx, word [rcx]
mov ecx, dword [r9 + r8 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
ret

Function at 0x180004a20
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 0x180004ab2
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x180004a8c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004aab
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180004aab
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x180004a9b
cmp dword [rdi + 8], 0
je 0x180004aab
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x180004a9b
cmp byte [0x180038af8], 0
jne 0x180004afd
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004ae9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x180038af0], rax
jmp 0x180004af0
mov r10, qword [0x180038af0]
mov eax, 1
mov byte [0x180038af8], al
jmp 0x180004b04
mov r10, qword [0x180038af0]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x180004a95
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x180004a9b
Function at 0x180004b1c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov edi, dword [rcx + 8]
lea rax, [rbp + 0x1a0]
xor r15d, r15d
mov qword [rsp + 0x20], rax
mov rsi, rcx
mov qword [rsp + 0x40], r15
mov rcx, qword [rcx]
or edi, 0x2001f
mov r9d, edi
mov dword [rsp + 0x48], r15d
xor r8d, r8d
mov qword [rsp + 0x50], r15
mov r14, rdx
mov qword [rbp + 0x1a0], r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180004c38
mov rcx, qword [rsp + 0x40]
mov ebx, r15d
test rcx, rcx
je 0x180004b99
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rbp + 0x1a0]
and edi, 0x300
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], edi
test ebx, ebx
jne 0x180004c38
mov edi, 0x100
jmp 0x180004bd8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180004b1c
mov ebx, eax
test eax, eax
jne 0x180004c38
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x1a8]
mov dword [rbp + 0x190], edi
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x190]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180004bbe
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180004c26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov rdx, r14
mov dword [rsp + 0x48], r15d
mov rcx, rsi
call fcn.180004a20
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180004c48
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005094
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x460
mov r14, r9
mov r15, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x50], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x488], rax
test rax, rax
jne 0x180005113
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x488], rax
test rax, rax
jne 0x180005113
call fcn.180004860
mov ebx, eax
jmp 0x180005227
mov r8, r14
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180005134
call fcn.180004860
jmp 0x180005216
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000512a
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x480], eax
inc eax
cmp eax, ebx
jae 0x180005172
mov ebx, 0x8007000e
jmp 0x180005218
mov ecx, eax
test eax, eax
je 0x1800051a4
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180005259
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1800051a4
lea rcx, [rsp + 0x50]
call fcn.1800081bc
jmp 0x1800051ae
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x1800051c6
cmp qword [rsp + 0x50], rdi
je 0x180005168
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x18000512a
mov ecx, eax
mov rax, qword [rsp + 0x50]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4a0]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.180005dec
mov ebx, eax
test rsi, rsi
je 0x180005227
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x18000523e
lea rcx, [rsp + 0x50]
call fcn.180008044
nop
mov eax, ebx
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov ecx, 0x80070216
call fcn.18000483c
int3
Function at 0x18000718c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, r8
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1800071bc
call fcn.180007974
jmp 0x180007234
mov rsi, rbx
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x1800071d3
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800071d5
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000722e
test ecx, ecx
jle 0x18000720f
cmp rbx, rbp
cmovl rbp, rbx
mov r8, rbp
mov rcx, r9
call fcn.18000ac80
nop
sub rbx, rbp
mov rax, qword [rdi + 0x58]
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
add r14, rbp
test rbx, rbx
jle 0x18000722e
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000722e
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18000f33c
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180007250
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18000727d
xor eax, eax
jmp 0x18000736e
cmp qword [rcx + 0x68], 0
je 0x18000728e
call fcn.180007a24
jmp 0x18000736e
mov rbp, rdi
mov rax, qword [rcx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800072a5
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800072a7
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800072dd
mov rbx, rdi
cmp rax, rdi
cmovb rbx, rax
mov r8, rbx
mov rcx, r14
call fcn.18000ac80
nop
add r14, rbx
mov rbp, rdi
sub rbp, rbx
mov rax, qword [rsi + 0x50]
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
mov rbx, rbp
cmp qword [rsi + 0x80], 0
je 0x180007368
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180007317
mov rdx, qword [rsi + 0x90]
mov rcx, qword [rsi + 0x88]
mov qword [r8], rcx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
jmp 0x180007344
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.18000f650
add r14, rax
sub rbp, rax
mov rbx, rbp
cmp rax, r15
jne 0x180007387
cmp rbp, r15
ja 0x18000731f
test rbx, rbx
je 0x180007368
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.18000f650
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x18000736b
Function at 0x18000771c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x180007744
xor eax, eax
jmp 0x180007866
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000777e
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x18000777e
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, esi
mov byte [rdx], sil
jmp 0x180007866
cmp qword [rbx + 0x80], 0
je 0x180007864
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800077b9
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800077dc
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.18000e7a8
cmp eax, edi
cmovne edi, esi
jmp 0x180007864
lea r8, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x18000782a
sub eax, 1
je 0x18000782a
cmp eax, 2
jne 0x180007864
movsx ecx, byte [rbp - 0x30]
jmp 0x1800077c6
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x180007854
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.18000f33c
cmp r14, rax
jne 0x180007864
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x180007866
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x180007dbc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180007e18
cmp byte [rcx + 0x71], 0
je 0x180007e18
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180007e5f
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x180007e25
sub eax, 1
je 0x180007e29
cmp eax, 2
jne 0x180007e5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x180007e56
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.18000f33c
cmp rdi, rax
jne 0x180007e5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180007e1a
xor al, al
jmp 0x180007e1a