joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140089bd0
Capabilities:
Delete file
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x3e8]
sub rsp, 0x4c0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r12, rcx
mov qword [rbp - 0x68], rcx
mov rax, qword [rcx - 0x28]
movsxd rdx, dword [rax + 4]
lea rax, vtable.CNetManager.0
mov qword [rdx + rcx - 0x28], rax
mov rax, qword [rcx - 0x28]
movsxd rdx, dword [rax + 8]
lea rax, vtable.CNetManager.1.0
mov qword [rdx + rcx - 0x28], rax
mov rax, qword [rcx - 0x28]
movsxd rdx, dword [rax + 4]
lea ecx, [rdx - 0x28]
mov dword [rdx + r12 - 0x2c], ecx
lea rcx, [r12 - 0x28]
call fcn.14008aeb0
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
or rbx, 0xffffffffffffffff
xor r13d, r13d
mov esi, 0x200
mov r14d, 0x414
cmp eax, esi
jbe 0x140089c80
test eax, eax
je 0x140089d03
lea r8, str._WF.tmp
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.1400d9a0c
xor eax, eax
mov rcx, rbx
lea rdi, [rbp - 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8, rsi
sub r8, rcx
lea rcx, [rbp + rcx*2 - 0x50]
xor edx, edx
call fcn.1400dd9f0
mov qword [rsp + 0x28], r13
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 3
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x4c], r13d
mov word [rsp + 0x48], r14w
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
jbe 0x140089d1a
test eax, eax
je 0x140089d99
lea r8, str._WB.tmp
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.1400d9a0c
xor eax, eax
mov rcx, rbx
lea rdi, [rbp - 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
sub rsi, rcx
lea rcx, [rbp + rcx*2 - 0x50]
mov r8, rsi
xor edx, edx
call fcn.1400dd9f0
mov qword [rsp + 0x60], r13
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x68], 3
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x7c], r13d
mov word [rbp - 0x80], r14w
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
lea rax, [r12 - 0x18]
mov qword [rsp + 0x20], rax
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140089dc1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
lea rax, [r12 - 0x20]
mov qword [rsp + 0x20], rax
mov rdx, qword [rax]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140089de6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x14008f700
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x2a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14008f752
mov rcx, qword [rbx + 0x2a8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r11d, r11d
lea r8, [0x14008f8f0]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call fcn.1400d86a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
pop rbx
ret

Function at 0x14008f760
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [0x140183308]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x14008f796
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400d4d90
add rsp, 0x68
ret
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov word [rsp + 0x3e], bx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm1, qword [rsp + 0x20]
test eax, eax
je 0x14008f7f6
movzx eax, word [rsp + 0x4e]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140132ba8]
addsd xmm1, xmm0
movsd qword [rsp + 0x20], xmm1
cmp dword [reloc.WS2_32.dll_accept], ebx
je 0x14008f889
movsd xmm0, qword [0x140183778]
comisd xmm0, xmm1
ja 0x14008f889
comisd xmm1, xmmword [0x140183780]
ja 0x14008f889
cmp qword [0x140183768], rbx
jne 0x14008f849
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140090760]
lea ecx, [r9 + 0xd]
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140183768], rax
cmp qword [0x140183770], rbx
jne 0x14008f878
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140090810]
lea ecx, [r9 + 0xe]
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140183770], rax
lea rcx, [0x140183308]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x14008f8ca
mov rcx, qword [0x140183768]
test rcx, rcx
je 0x14008f8a2
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x140183768], rbx
mov rcx, qword [0x140183770]
test rcx, rcx
je 0x14008f8bb
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x140183770], rbx
lea rcx, [0x140183308]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400d4d90
add rsp, 0x68
ret
Function at 0x140091120
Capabilities:
Get session user name

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100f0]
mov eax, 0x101f0
call fcn.1400e2af0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10220], rbx
mov qword [rsp + 0x10228], rsi
mov qword [rsp + 0x10230], rdi
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x100e0], rax
mov rsi, qword [0x140183760]
mov rax, qword [rsi + 0x298]
mov edi, dword [rax]
add edi, dword [rsi + 0x288]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, edi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov r8d, dword [rsi + 0x288]
mov rdx, qword [rsi + 0x290]
mov rcx, rax
call fcn.1400d5d30
mov rdx, qword [rsi + 0x298]
mov r8d, dword [rdx]
mov ecx, dword [rsi + 0x288]
add rcx, r14
call fcn.1400d5d30
xor r15d, r15d
mov r12, qword [0x1401835c8]
test r12, r12
jne 0x140091208
lea ecx, [r15 + 0x70]
call fcn.1400d5224
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400911fe
mov rcx, rax
call fcn.140037830
mov r12, rax
jmp 0x140091201
mov r12, r15
mov qword [0x1401835c8], r12
lea rcx, [rsp + 0x40]
call fcn.14001f830
nop
lea rax, vtable.CKBDLogEntry.0
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r15
lea rcx, [rbp + 0x90]
call fcn.14002d2b0
nop
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
mov rax, qword [rsi + 0x298]
mov edi, dword [rax]
add edi, dword [rsi + 0x288]
mov dword [rsp + 0x30], edi
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140091286
call fcn.1400d6134
mov qword [rbp + 0x80], r15
mov ebx, r15d
mov dword [rbp + 0x88], ebx
mov dword [rbp + 0x8c], r15d
jmp 0x14009128c
mov ebx, dword [rbp + 0x88]
test edi, edi
je 0x1400912c4
mov r13d, edi
mov ecx, edi
call fcn.1400d886c
mov qword [rbp + 0x80], rax
test rax, rax
je 0x1400912b4
mov dword [rbp + 0x8c], edi
mov ebx, edi
mov dword [rbp + 0x88], ebx
mov edx, ebx
mov r9, r13
mov r8, r14
mov rcx, rax
call fcn.1400d4e34
mov eax, dword [rsi + 0x284]
mov dword [rbp + 0x78], eax
mov dword [rsp + 0x20], 0x7fff
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xe0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x48]
call fcn.140002120
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.140037b70
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 0x284], r15
mov qword [rsi + 0x2a0], r15
mov rcx, qword [rsi + 0x298]
mov r8d, dword [rcx]
xor edx, edx
call fcn.1400dd9f0
nop
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x90]
call fcn.140032aa0
nop
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140091387
call fcn.1400d6134
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r15
lea rcx, [rsp + 0x40]
call fcn.14001f9e0
mov rcx, qword [rbp + 0x100e0]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x101f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140093da0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r12, rcx
xor edi, edi
mov eax, dword [0x1401929e0]
test al, 1
jne 0x140093e14
or eax, 1
mov dword [0x1401929e0], eax
xor edx, edx
lea rbx, [0x1401929b8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x140093e05
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140093dfe
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.1400022b0
lea rcx, [0x14011aaa0]
call fcn.1400d8538
nop
jmp 0x140093e1b
lea rbx, [0x1401929b8]
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x48], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
cmp qword [0x1401929e8], 0
jne 0x140093eb2
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401929e8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140093eb2
mov dword [rsp + 0x20], 8
lea r9d, [rax + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401929e8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esi, edi
test eax, eax
setne sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140093e99
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x140093eb2
mov dword [rsp + 0x30], eax
lea rdx, [0x140176950]
lea rcx, [rsp + 0x30]
call fcn.1400de560
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x48], 0
mov r8, r12
mov edx, 4
mov rcx, qword [0x1401929e8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, edi
test eax, eax
setne cl
test ecx, ecx
jne 0x140093efa
mov dword [rsp + 0x34], 0x80004005
lea rdx, [0x140176950]
lea rcx, [rsp + 0x34]
call fcn.1400de560
nop
jmp 0x140093f00
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140093f20
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r12, rcx
xor edi, edi
mov eax, dword [0x1401929b0]
test al, 1
jne 0x140093f94
or eax, 1
mov dword [0x1401929b0], eax
xor edx, edx
lea rbx, [0x140192988]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x140093f85
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140093f7e
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.1400022b0
lea rcx, [0x14011aab0]
call fcn.1400d8538
nop
jmp 0x140093f9b
lea rbx, [0x140192988]
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x48], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
cmp qword [0x1401929f0], 0
jne 0x140094032
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401929f0]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140094032
mov dword [rsp + 0x20], 8
lea r9d, [rax + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401929f0]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esi, edi
test eax, eax
setne sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140094019
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x140094032
mov dword [rsp + 0x30], eax
lea rdx, [0x140176950]
lea rcx, [rsp + 0x30]
call fcn.1400de560
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x48], 0
mov r8, r12
mov edx, 2
mov rcx, qword [0x1401929f0]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, edi
test eax, eax
setne cl
test ecx, ecx
jne 0x14009407a
mov dword [rsp + 0x34], 0x80004005
lea rdx, [0x140176950]
lea rcx, [rsp + 0x34]
call fcn.1400de560
nop
jmp 0x140094080
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x1400940a0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r12, rcx
xor edi, edi
mov eax, dword [0x140192980]
test al, 1
jne 0x140094114
or eax, 1
mov dword [0x140192980], eax
xor edx, edx
lea rbx, [0x140192958]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x140094105
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400940fe
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.1400022b0
lea rcx, [0x14011aac0]
call fcn.1400d8538
nop
jmp 0x14009411b
lea rbx, [0x140192958]
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x48], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x48], 1
cmp qword [0x1401929f8], 0
jne 0x1400941b2
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401929f8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400941b2
mov dword [rsp + 0x20], 8
lea r9d, [rax + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401929f8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esi, edi
test eax, eax
setne sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140094199
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x1400941b2
mov dword [rsp + 0x30], eax
lea rdx, [0x140176950]
lea rcx, [rsp + 0x30]
call fcn.1400de560
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x48], 0
mov r8, r12
mov edx, 1
mov rcx, qword [0x1401929f8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, edi
test eax, eax
setne cl
test ecx, ecx
jne 0x1400941fa
mov dword [rsp + 0x34], 0x80004005
lea rdx, [0x140176950]
lea rcx, [rsp + 0x34]
call fcn.1400de560
nop
jmp 0x140094200
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140095db0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rcx
lea rax, vtable.CFileReadThread.0
mov qword [rcx], rax
add rcx, 0x60
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
lea rcx, [rdi + 0x88]
call fcn.140097050
nop
lea rcx, [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
cmp qword [rdi + 0x40], 8
jb 0x140095e08
mov rcx, qword [rdi + 0x28]
call fcn.1400d4d78
mov qword [rdi + 0x40], 7
xor eax, eax
mov qword [rdi + 0x38], rax
mov word [rdi + 0x28], ax
lea rax, vtable.CCopyThread.0
mov qword [rdi], rax
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.140094450
Function at 0x140097290
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebp, edx
mov rbx, rcx
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
test dil, dil
jne 0x1400972bd
lock inc dword [rbx + 0x10]
xor eax, eax
lock cmpxchg dword [rbx], ebp
je 0x140097329
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x3e8
jae 0x140097325
mov rcx, qword [rbx + 8]
mov edx, 0x3e8
sub edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140097320
cmp eax, 0x102
je 0x14009731b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x40]
mov edx, 0xc0000025
mov r11d, eax
mov r8d, 1
mov ecx, 0xc20a018e
mov qword [rsp + 0x40], r11
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov dil, 1
jmp 0x1400972b4
xor dil, dil
jmp 0x1400972b4
xor al, al
jmp 0x14009732b
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140097b60
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov r12, r9
mov rbp, r8
mov rsi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
test edi, edi
jns 0x140097b9f
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov rax, qword [rbp + 0x28]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x140097bbf
lea rcx, [rbp + 0x28]
mov edx, edi
call fcn.1400020c0
mov rdx, qword [rbp + 0x28]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
cmp eax, 0xffffffff
jne 0x140097bec
mov rcx, qword [rbp + 0x28]
test rcx, rcx
jne 0x140097be3
mov eax, edi
jmp 0x140097bf0
movsxd rdx, dword [rcx - 0xc]
call fcn.1400d4f10
test eax, eax
js 0x140097c2e
mov rcx, qword [rbp + 0x28]
cmp eax, dword [rcx - 0xc]
jg 0x140097c2e
mov edx, dword [r12]
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbp + 0x28]
mov r8, rbp
mov word [rax + rcx*2], di
mov rcx, r13
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
jmp fcn.140030bb0
mov ecx, 0x80070057
call fcn.1400022b0
int3
Function at 0x14009bbc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push r12
push r13
sub rsp, 0x70
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, rdx
mov rsi, rcx
xor r13d, r13d
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14009bc2c
mov edx, dword [rsi + 4]
mov rcx, rax
call fcn.14009bdf0
test eax, eax
je 0x14009bc37
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14009bdc0
mov r10d, dword [rsi + 4]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x60], rdi
mov ebx, r13d
test r10d, r10d
je 0x14009bd4d
lea rdi, [rsi + 0x28]
nop dword [rax + rax]
movzx eax, byte [rdi - 0x20]
mov byte [rsp + 0x4b], r13b
mov byte [rsp + 0x48], al
movzx eax, byte [rdi - 0x1c]
mov byte [rsp + 0x49], al
mov rax, qword [rdi]
movzx ecx, word [rax + 0xc]
mov word [rsp + 0x4c], cx
movzx eax, word [rax + 0xe]
mov edx, eax
mov word [rsp + 0x4e], ax
imul edx, ecx
cmp edx, 8
jl 0x14009bc9b
mov byte [rsp + 0x4a], r13b
jmp 0x14009bca8
mov ecx, edx
mov eax, 1
shl al, cl
mov byte [rsp + 0x4a], al
mov eax, dword [rdi - 8]
shl r10d, 4
mov r8d, r13d
add r10d, 6
mov dword [rsp + 0x50], eax
mov r9d, r13d
mov rax, r13
mov r11d, r13d
cmp ebx, 2
jl 0x14009bcf0
lea eax, [rbx - 2]
lea rcx, [rsi + 0x58]
shr eax, 1
inc eax
mov edx, eax
lea r11d, [rax + rax]
add rax, rax
nop dword [rax]
add r8d, dword [rcx - 0x38]
add r9d, dword [rcx]
add rcx, 0x70
dec rdx
jne 0x14009bce0
cmp r11d, ebx
jae 0x14009bcfe
imul rax, rax, 0x38
add r10d, dword [rax + rsi + 0x20]
lea eax, [r8 + r9]
lea rdx, [rsp + 0x48]
lea r9, [rsp + 0x40]
add eax, r10d
mov r8d, reloc.WS2_32.dll_recv
mov rcx, r12
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009bdd7
cmp dword [rsp + 0x40], 0x10
jne 0x14009bdd7
mov r10d, dword [rsi + 4]
inc ebx
add rdi, 0x38
cmp ebx, r10d
jb 0x14009bc60
mov qword [rsp + 0x68], rbp
mov edi, r13d
cmp dword [rsi + 4], r13d
jbe 0x14009bda3
lea rbx, [rsi + 0x28]
nop
mov rax, qword [rbx]
lea r9, [rsp + 0x40]
mov rcx, r12
mov ebp, dword [rax + 0x14]
mov dword [rax + 0x14], r13d
mov r8d, dword [rbx - 8]
mov rdx, qword [rbx - 0x10]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009bddf
mov eax, dword [rbx - 8]
cmp dword [rsp + 0x40], eax
jne 0x14009bddf
mov rax, qword [rbx]
inc edi
add rbx, 0x38
mov dword [rax + 0x14], ebp
cmp edi, dword [rsi + 4]
jb 0x14009bd60
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d4d90
add rsp, 0x70
pop r13
pop r12
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14009bdb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14009bdae
Function at 0x14009bdf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov edi, edx
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x50]
lea r8d, [rsi + 2]
mov rbx, rcx
mov word [rsp + 0x50], si
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14009be3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x58], 2
jne 0x14009be28
mov eax, 1
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x50]
lea r8d, [rax + 1]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x50], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009be28
cmp dword [rsp + 0x58], 2
jne 0x14009be28
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov r8d, 2
mov rcx, rbx
mov word [rsp + 0x50], di
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009be28
cmp dword [rsp + 0x58], 2
jne 0x14009be28
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x14009c260
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea rax, [rsp + 0x48]
lea rdx, str.Net_DF
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14009c2a3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret

Function at 0x14009c2b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rdx, str.Net_SH
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14009c2fb
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret