joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
out dx, eax
clc
loope 0x14003f682
xor eax, 0xffffffbd
ficom word [rbx + 0x4e]
xor dl, byte [rcx + 0x4cd2a15b]
stc
invalid
fldcw word [rax + 0x56]
cwde
adc dh, ch
push 0x7ea7fa47
or ecx, edx
jae 0x14003f662
sub eax, 0xbf95a83c
mov ch, 0xa0
sub byte [rdx + 0x7a], ch
invalid
or dword [rcx - 0x4d], edi
and byte [rbp - 0x47fd0beb], dh
xor byte [0x171c854cc], cl
sbb ch, byte [rcx - 0x69f4b391]
cmp esp, ebp
in al, dx
or r10, qword [rsi + 0x5c35ec39]
invalid
in al, dx
xor eax, 0x582b615c
push rbp
test al, 0x24
cmp edi, edi
sbb al, 0x9a
out dx, eax
sub byte [rdi - 0x7c], 0xc9
leave
leave
je 0x14003f6d5
jle 0x14003f697
jrcxz 0x14003f69d
loop 0x14003f6e7
invalid
iretd
or eax, 0xc80f2f48
fist dword [rsi + 0x6273622]
invalid
invalid
invalid
or ebx, ebp
sar dword [rbx + 0x72], 0xe6
sti
invalid
jnp 0x14003f70b
out 0xfb, al
iretd
rcl dword [rcx - 0x26ff5d90], cl
mov esp, 0x783cc1c4
cmp al, 0x78
cmp al, 0x78
clc
invalid
invalid
test eax, 0x11703af
cmpsb byte [rsi], byte [rdi]
xor edx, dword [rdi + 0x5e]
fiadd word [rsi + 0x33]
out dx, al
xor byte [rsi - 0x7cec1fc5], cl
invalid
adc eax, dword [rbx - 0x1f802ee1]
invalid
invalid

Function at 0x140007284
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14000734a
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x14000730e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000730b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1400205b8]
mov rdx, rsi
call fcn.140011c68
jmp 0x14000730e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072db
mov rdx, qword [0x14001f120]
lea rcx, [0x1400205b8]
mov rdi, rdx
inc rdx
mov qword [0x14001f120], rdx
lea edx, [rbx + 0x20]
call fcn.140011cb0
lea rcx, [0x140021170]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x180011b80
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov qword [rsp + 0x20], rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x180011c2d
cmp qword [rbx + 0x20], 7
lea rcx, [rbx + 8]
jbe 0x180011baa
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, 1
call fcn.1800aa560
mov r9, rax
lea r8, [0x1801069d4]
lea rdx, [0x1801069d8]
lea rcx, [0x180197860]
call fcn.1800aad70
mov ecx, 2
call fcn.1800aa560
mov r9, rax
lea r8, [0x1801069d4]
lea rdx, [0x1801069d8]
lea rcx, [0x180197860]
call fcn.1800aad70
xor ecx, ecx
call fcn.1800aa560
mov r9, rax
lea r8, [0x1801069e0]
lea rdx, str.CONIN_
lea rcx, [0x180197860]
call fcn.1800aad70
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov rcx, rbx
call fcn.1800144a0
mov rcx, qword [rbx]
mov edx, 0x10
mov qword [rbx], 0
add rsp, 0x30
pop rbx
jmp fcn.180002050
Function at 0x180017810
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180194480]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18001785f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180199f30]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18001789d
cmp rsi, r14
jb 0x180017895
cmp rsi, r15
jae 0x180017895
cmp qword [rsi + 8], 0
jne 0x180017a67
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180017880
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180017932
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180017929
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180017929
cmp dword [rsp + 0x40], 0x10000
je 0x1800179ab
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180017929
sub rbx, rbp
cmp rbx, r14
jae 0x1800178f0
test rsi, rsi
jne 0x180017a10
cmp rdi, r15
ja 0x180017a4f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180017a4f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180017a4f
cmp dword [rsp + 0x40], 0x10000
je 0x1800179e1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180017962
jmp 0x180017a4f
test rbx, rbx
je 0x180017929
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180017a10
cmp rbx, r14
jae 0x1800178d0
jmp 0x180017932
test rdi, rdi
je 0x180017a4f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180017a10
cmp rdi, r15
jbe 0x180017940
jmp 0x180017a4f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180017a20
mov rax, qword [0x180199f30]
mov qword [rsi], rax
mov qword [0x180199f30], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18009f1a0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180018300
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x180199f2c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180018347
mov rax, qword [0x180199f20]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180018354
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180018330
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180018347
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.1800186a0
mov edi, eax
test eax, eax
jne 0x18001843f
mov r9d, dword [0x180199f2c]
cmp ebx, r9d
jae 0x1800183cc
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180199f20]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x1800183c5
mov edx, esi
mov ecx, ebx
call fcn.180018570
mov edi, eax
test eax, eax
jne 0x1800183cc
mov r9d, dword [0x180199f2c]
inc ebx
cmp ebx, r9d
jb 0x180018390
cmp qword [rsp + 0x20], 0
je 0x18001843d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180018429
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001841a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800183f0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801978b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180018570
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180194480]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180199f20]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800185e3
mov eax, 0xa
jmp 0x180018676
test esi, esi
je 0x180018605
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180018628
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180018628
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180018621
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180018628
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18009f1a0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800186a0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180194480]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001884a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800187e5
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x1800187a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800187a0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800187a0
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180018762
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1801978b8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800187c8
jmp 0x180018793
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180018793
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rbx + 8], eax
mov rcx, qword [0x1801978b8]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800187c8
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180018710
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800187e5
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x1800187e5
mov rcx, qword [0x1801978b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18001884a
cmp qword [rbx], r15
je 0x180018845
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180018845
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001883e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180018d60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180018800
mov eax, r15d
jmp 0x18001884f
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18009f1a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180018f10
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x180018f81
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180018f6a
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180018f5e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180018f30
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1801978b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18004cb50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x34], ebp
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add eax, 1
mov edx, eax
mov rax, 0xffffffffffffffff
cmovb rdx, rax
movzx r8d, bp
mov rcx, rsi
call fcn.180016c90
mov dword [rsp + 0x34], 1
mov edi, dword [rsi + 0x18]
xor edx, edx
mov rcx, rsi
call fcn.180057460
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r8d, eax
mov rcx, qword [rsi + 0x18]
cmp r8, rcx
ja 0x18004cbee
mov qword [rsi + 0x18], r8
lea rax, [rsi + 8]
cmp qword [rsi + 0x20], 7
jbe 0x18004cbd9
mov rax, qword [rax]
mov word [rax + r8*2], bp
mov rax, rsi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rdx, r8
sub rdx, rcx
mov rdi, qword [rsi + 0x20]
mov rax, rdi
sub rax, rcx
cmp rdx, rax
ja 0x18004cc3b
mov qword [rsi + 0x18], r8
lea r9, [rsi + 8]
cmp rdi, 7
jbe 0x18004cc14
mov r9, qword [r9]
lea rdi, [r9 + rcx*2]
test rdx, rdx
je 0x18004cc26
movzx eax, bp
mov rcx, rdx
rep stosw word [rdi], ax
mov word [r9 + r8*2], bp
mov rax, rsi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov word [rsp + 0x20], bp
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
mov rcx, rsi
call fcn.180007ef0
mov rax, rsi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005f050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x180194480]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov edx, 1
mov r8d, 0x10
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18005f16c
mov rdx, rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x18005f18f
mov rax, qword [sym.imp.KERNEL32.dll_FreeResource]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [0x180145ea0]
mov rcx, rax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18005f1b2
mov rcx, qword [rsp + 0x38]
cmp dword [rcx], 0xfeef04bd
jne 0x18005f149
movups xmm0, xmmword [rcx]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rbx + 0x20], xmm0
mov ecx, dword [rcx + 0x30]
mov dword [rbx + 0x30], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18009f1a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
lea rdx, str.Invalid_version_info_found.
lea rcx, [rsp + 0x20]
call fcn.18000fd80
lea rdx, [0x1801923c8]
lea rcx, [rsp + 0x20]
call fcn.1800a1670
nop
lea rdx, str.No_such_resource
lea rcx, [rsp + 0x48]
call fcn.18000fd80
lea rdx, [0x1801923c8]
lea rcx, [rsp + 0x48]
call fcn.1800a1670
int3
lea rdx, str.LoadResource_failure
lea rcx, [rsp + 0x48]
call fcn.18000fd80
lea rdx, [0x1801923c8]
lea rcx, [rsp + 0x48]
call fcn.1800a1670
nop
lea rdx, str.Failed_to_query_version_information.
lea rcx, [rsp + 0x20]
call fcn.18000fd80
lea rdx, [0x1801923c8]
lea rcx, [rsp + 0x20]
call fcn.1800a1670
int3
Function at 0x180062150
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x180194480]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x70], r8
mov rax, qword [rdx]
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
movzx r9d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
lea rbx, [rcx + 0x18]
add rbx, rax
lea rax, [r9 + r9*4]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x18006229f
mov r8d, 8
mov rdx, rbp
mov rcx, rbx
call fcn.1800af400
test eax, eax
je 0x1800621d4
add rbx, 0x28
cmp rbx, rsi
je 0x18006229f
jmp 0x1800621b0
mov eax, dword [rbx + 0xc]
add rax, qword [r14]
mov ecx, dword [rbx + 8]
test rcx, rcx
je 0x180062274
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
mov rdx, qword [rdi + 0x10]
cmp rdx, qword [rdi + 0x18]
je 0x180062267
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rdx], xmm0
mov rbx, qword [rdi + 0x10]
mov edx, 3
lea rcx, [rsp + 0x70]
call fcn.18009a160
mov rdx, qword [rdi]
add rdx, 8
mov rax, qword [rdx]
test rax, rax
je 0x180062253
mov rcx, rax
xor r9d, r9d
nop word [rax + rax]
cmp qword [rax + 0x10], rbx
jb 0x180062244
ja 0x180062244
mov qword [rcx], r9
mov rax, qword [rcx + 8]
mov qword [rdx], rax
jmp 0x18006224b
lea rdx, [rcx + 8]
mov rax, qword [rdx]
mov rcx, rax
test rax, rax
jne 0x180062230
lea rcx, [rsp + 0x70]
call fcn.18009a240
add qword [rdi + 0x10], 0x10
mov rax, rdi
jmp 0x180062277
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.180049b90
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18009f1a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rax, str.Section____not_found
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x16
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.18002bb30
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.18002bb90
lea rdx, [0x180192338]
lea rcx, [rsp + 0x30]
call fcn.1800a1670
int3

Function at 0x180064ac0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x180194480]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rdx
mov qword [rsp + 0x70], rdx
mov rax, qword [rcx]
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
lea rbx, [rcx + 0x18]
add rbx, rax
lea rax, [r8 + r8*4]
lea rdi, [rbx + rax*8]
cmp rbx, rdi
je 0x180064b55
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call fcn.1800af400
test eax, eax
je 0x180064b30
add rbx, 0x28
cmp rbx, rdi
je 0x180064b55
jmp 0x180064b10
mov rax, rbx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18009f1a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rax, str.Section____not_found
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x16
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.18002bb30
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.18002bb90
lea rdx, [0x180192338]
lea rcx, [rsp + 0x30]
call fcn.1800a1670
int3
Function at 0x18008e6a0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180084ae0
Function at 0x1800933c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1800933e4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x180093472
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180093440
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180093440
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1800fc9b0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18009345d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180093465
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180093401
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180093550
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180093489
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18009348b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800934bd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1800fc9b0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18009354d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800934f8
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
cmp rsi, 0xfff
jbe 0x18009352e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1800c7150
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18009354d
cmp rsi, rax
ja 0x180093501
test rsi, rsi
je 0x18009354d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800c7150
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x18009af70
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x18009afad
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.18009af10
add rsp, 0x58
ret

Function at 0x1800a9700
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1800a91e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1800a973f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1801035c8]
jmp 0x1800a9749
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret