joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006f465
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400788d0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x1400910b0]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400788c0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14006f57a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400788d0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14006f548
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400788d0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x14006f589
lea rax, [0x1400788d0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14006f5c5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14006f633
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x1400788c0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14006f67d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14006f67d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400788d0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14006f66f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140001d5c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140001d97
mov r8d, 0x104
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowTextW]
add rsp, 0x38
ret

Function at 0x140002068
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov qword [rsp + 0x260], 0
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x260], 0xffffffffffffffff
jne 0x1400020c0
xor eax, eax
jmp 0x140002142
mov dword [rsp + 0x20], 0x238
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x260]
call sub.KERNEL32.dll_Process32FirstW
mov dword [rsp + 0x268], eax
jmp 0x1400020fc
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x260]
call sub.KERNEL32.dll_Process32NextW
mov dword [rsp + 0x268], eax
cmp dword [rsp + 0x268], 0
je 0x140002132
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x4c]
call fcn.14002ef88
test eax, eax
jne 0x140002130
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140002142
jmp 0x1400020e3
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x270
pop rdi
ret
Function at 0x1400067a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x80], 0
je 0x1400067dd
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x89]
test eax, eax
jne 0x1400067e9
mov al, 1
jmp 0x140006a51
mov dword [rsp + 0x30], 8
call fcn.140006150
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov qword [rsp + 0xa8], rcx
mov edx, eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xa8]
call qword [rax + 0x18]
mov dword [rsp + 0x70], eax
call fcn.140006150
mov dword [rsp + 0x74], eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x74]
call fcn.140006118
movzx eax, al
test eax, eax
je 0x140006848
xor al, al
jmp 0x140006a51
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140006a5c
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.140006ac8
mov rcx, rax
call fcn.140006afc
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x40]
call fcn.1400030dc
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140006ac8
mov rcx, rax
call fcn.140006afc
mov rcx, qword [rsp + 0xe0]
add rcx, 0x8c
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0xb8]
mov r9, rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x80]
call fcn.140006ec4
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x140006920
cmp dword [rsp + 0xc0], 1
je 0x14000692f
cmp dword [rsp + 0xc0], 3
je 0x140006a0b
jmp 0x140006a26
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x89], 0
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.140006ac8
mov rcx, rax
call fcn.140006afc
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jbe 0x1400069c1
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140006ac8
mov rcx, rax
call fcn.140006afc
mov rcx, qword [rsp + 0xe0]
mov r9, qword [rcx + 0x98]
mov r8, qword [rsp + 0x68]
mov edx, 1
mov rcx, rax
call fcn.14002f8e0
cmp qword [rsp + 0x68], rax
je 0x1400069c1
mov byte [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
call fcn.140002fb8
mov al, byte [rsp + 0x98]
jmp 0x140006a51
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x89]
test eax, eax
jne 0x1400069ef
mov byte [rsp + 0x99], 1
lea rcx, [rsp + 0x40]
call fcn.140002fb8
mov al, byte [rsp + 0x99]
jmp 0x140006a51
cmp qword [rsp + 0x68], 0
jne 0x140006a09
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140005800
jmp 0x140006a41
mov byte [rsp + 0x9a], 1
lea rcx, [rsp + 0x40]
call fcn.140002fb8
mov al, byte [rsp + 0x9a]
jmp 0x140006a51
mov byte [rsp + 0x9b], 0
lea rcx, [rsp + 0x40]
call fcn.140002fb8
mov al, byte [rsp + 0x9b]
jmp 0x140006a51
jmp 0x14000685b
add rsp, 0xd8
ret
Function at 0x14000822c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x148]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x60]
add rax, 0x138
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x60]
add rax, 0x160
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140008cec
mov rax, qword [rsp + 0x60]
add rax, 0x160
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x360], eax
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x360]
mov rcx, qword [rsp + 0x60]
add rcx, 0x160
mov rdx, qword [rsp + 0x60]
add rdx, 0x160
mov qword [rsp + 0x38], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, rax
call fcn.14002e130
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x360]
add eax, 8
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x364], eax
mov rax, qword [rsp + 0x60]
add rax, 0x370
mov rcx, rax
call fcn.140008ca0
add rax, 8
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [rax]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400083b8
mov rax, qword [rsp + 0x60]
add rax, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x138]
mov rax, qword [rax + 0x140]
sub rax, rcx
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x60]
pxor xmm1, xmm1
cvtsi2sd xmm1, qword [rax + 0x130]
divsd xmm1, qword [0x140050738]
divsd xmm0, xmm1
mov rax, qword [rsp + 0x60]
movsd qword [rax + 0x128], xmm0
mov al, 1
jmp 0x1400083ba
xor al, al
add rsp, 0x58
ret
Function at 0x140009f10
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov ecx, 0x7532
call fcn.14002e84c
mov qword [rsp + 0x290], rax
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x38], rax
mov r8d, 0x7532
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.14002e760
mov rax, qword [rsp + 0x38]
mov byte [rax], 2
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x24], 0
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x140009faa
mov rax, qword [rsp + 0x38]
add rax, 2
lea r8, [0x1400508a8]
mov edx, 0x36b0
mov rcx, rax
call fcn.14002ef64
jmp 0x14000a063
mov qword [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140009fe3
mov rax, qword [rsp + 0x38]
add rax, 2
mov r8d, 0x104
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rax, qword [rsp + 0x38]
add rax, 2
lea rdx, [0x140050854]
mov rcx, rax
call fcn.14002ef88
test eax, eax
jne 0x14000a01c
mov rax, qword [rsp + 0x38]
add rax, 2
lea r8, [0x1400508b8]
mov edx, 0x3a98
mov rcx, rax
call fcn.14002ef64
mov rax, qword [rsp + 0x38]
add rax, 2
mov rcx, qword [rsp + 0x38]
add rcx, 2
mov r9, rax
lea r8, [0x1400508c4]
mov edx, 0x3a98
call fcn.14002ef64
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0x238
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
add rax, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2b0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x2b0]
mov rcx, qword [rcx + 8]
mov rax, qword [rax]
mov r8d, 0x7532
mov rdx, qword [rsp + 0x38]
call qword [rax + reloc.WS2_32.dll_recv]
cmp qword [rsp + 0x38], 0
je 0x14000a0d8
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x298], rax
mov rcx, qword [rsp + 0x298]
call fcn.14002e10c
mov qword [rsp + 0x38], 0
add rsp, 0x2a0
pop rdi
ret
Function at 0x14000a0e4
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x620
mov r8d, 0x2d8
mov rdx, qword [rsp + 0x638]
lea rcx, [rsp + 0x50]
call fcn.14002e130
xor eax, eax
mov word [rsp + 0x340], ax
lea rax, [rsp + 0x342]
mov rdi, rax
xor eax, eax
mov ecx, 0x2ce
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x330], rax
cmp qword [rsp + 0x330], 0xffffffffffffffff
jne 0x14000a180
xor eax, eax
jmp 0x14000a27b
mov eax, dword [rsp + 0x640]
sub rax, 0x2d8
mov rcx, qword [rsp + 0x638]
add rcx, 0x2d8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000a1c9
xor eax, eax
jmp 0x14000a27b
mov rcx, qword [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14000a20a
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x260]
lea rdx, str._s__s
lea rcx, [rsp + 0x340]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14000a220
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x340]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x610], eax
cmp dword [rsp + 0x610], 0
je 0x14000a241
cmp dword [rsp + 0x610], 1
je 0x14000a25e
jmp 0x14000a276
mov r8d, 5
lea rdx, [rsp + 0x340]
mov rcx, qword [rsp + 0x630]
call fcn.14000a284
jmp 0x14000a276
xor r8d, r8d
lea rdx, [rsp + 0x340]
mov rcx, qword [rsp + 0x630]
call fcn.14000a284
mov eax, 1
add rsp, 0x620
pop rdi
ret
Function at 0x14000aea8
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x230], 0
je 0x14000aed7
lea rax, [0x140050a80]
mov qword [rsp + 0x38], rax
jmp 0x14000aee3
lea rax, [0x140050a90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x230], 0
je 0x14000af3f
lea rax, str.back
mov qword [rsp + 0x40], rax
jmp 0x14000af4b
lea rax, str.main
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000afae
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000afae
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000afb9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x14000b18c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x8a8
mov qword [rsp + 0x880], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x888], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 1
mov byte [rsp + 0x70], 1
lea rcx, str.wininet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x58], rax
lea rdx, str.InternetOpenW
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.MSIE_6.0
call qword [rsp + 0x68]
mov qword [rsp + 0x880], rax
cmp qword [rsp + 0x880], 0
jne 0x14000b243
cmp qword [rsp + 0x58], 0
je 0x14000b23c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x14000b3f5
lea rdx, str.InternetOpenUrlW
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x8b0]
mov rcx, qword [rsp + 0x880]
call qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14000b2ac
cmp qword [rsp + 0x58], 0
je 0x14000b2a5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x14000b3f5
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x8b8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x14000b3a7
mov r8d, 0x800
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.14002e760
lea rdx, str.InternetReadFile
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x890], rax
lea r9, [rsp + 0x888]
mov r8d, 0x800
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x890]
cmp dword [rsp + 0x44], 0
je 0x14000b35d
movzx eax, word [rsp + 0x80]
cmp eax, 0x5a4d
je 0x14000b35d
mov byte [rsp + 0x70], 0
jmp 0x14000b39c
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x888]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x888], 0
ja 0x14000b2ef
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.InternetCloseHandle
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x48]
mov rcx, qword [rsp + 0x880]
call qword [rsp + 0x48]
cmp qword [rsp + 0x58], 0
je 0x14000b3f1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [rsp + 0x70]
add rsp, 0x8a8
ret
Function at 0x14000b400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000b42a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000b42a
xor eax, eax
jmp 0x14000b42f
mov eax, 1
add rsp, 0x28
ret
Function at 0x14000d4a8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], 0
jmp 0x14000d517
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x30], eax
jge 0x14000d6d8
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jne 0x14000d5f9
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jle 0x14000d5f4
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x88]
mov rdx, qword [rdx + 0x58]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov rax, qword [rsp + 0x88]
call qword [rax + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000d5b0
xor eax, eax
jmp 0x14000d6dd
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 8], eax
movsxd rax, dword [rsp + 0x40]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.14002e760
jmp 0x14000d4ff
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x50]
add eax, dword [rcx + 0x10]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x78]
call fcn.14000d474
test eax, eax
jne 0x14000d622
xor eax, eax
jmp 0x14000d6dd
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x88]
mov rdx, qword [rdx + 0x58]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
mov rax, qword [rsp + 0x88]
call qword [rax + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000d678
xor eax, eax
jmp 0x14000d6dd
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x70]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x38]
call fcn.14002e130
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 8], eax
jmp 0x14000d4ff
mov eax, 1
add rsp, 0x68
ret
Function at 0x14000e9f4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x148]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x60]
add rax, 0x150
xor ecx, ecx
xchg dword [rax], ecx
mov rax, qword [rsp + 0x60]
add rax, 0x138
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x60]
add rax, 0x160
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140008cec
mov rax, qword [rsp + 0x60]
add rax, 0x160
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x360], eax
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x360]
mov rcx, qword [rsp + 0x60]
add rcx, 0x160
mov rdx, qword [rsp + 0x60]
add rdx, 0x160
mov qword [rsp + 0x38], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, rax
call fcn.14002e130
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x360]
add eax, 8
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x364], eax
mov rax, qword [rsp + 0x60]
add rax, 0x370
mov rcx, rax
call fcn.140008ca0
add rax, 8
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 1
movzx r8d, word [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [rax]
mov dword [rsp + 0x34], eax
mov edx, 0xfa0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000eb7e
cmp dword [rsp + 0x48], 0x102
je 0x14000ec09
cmp dword [rsp + 0x48], 0xffffffff
je 0x14000ec21
jmp 0x14000ec37
mov rax, qword [rsp + 0x60]
add rax, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x138]
mov rax, qword [rax + 0x140]
sub rax, rcx
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x60]
pxor xmm1, xmm1
cvtsi2sd xmm1, qword [rax + 0x130]
divsd xmm1, qword [0x140050738]
divsd xmm0, xmm1
mov rax, qword [rsp + 0x60]
movsd qword [rax + 0x128], xmm0
mov rax, qword [rsp + 0x60]
add rax, 0x150
mov ecx, 1
xchg dword [rax], ecx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
jmp 0x14000ec39
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x14000ec39
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x14000ec39
xor al, al
add rsp, 0x58
ret