joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400712cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400a6950]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140071323
cmp word [rdx], r13w
jne 0x140071323
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140071328
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14007144d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14007146e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140071361
mov rdx, r9
mov word [rbx], cx
jmp 0x140071388
cmp r9, r8
jae 0x140071398
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140071342
jmp 0x14007144d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140071442
cmp dword [rsp + 0x80], esi
je 0x140071442
lea r8, [0x1400a6950]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14007141a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400713ea
mov word [rbx], r13w
jmp 0x14007144a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400713f7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007144a
cmp word [rsp + 0x70], r13w
jne 0x140071427
cmp rbx, r14
je 0x1400713e4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140071f34
cmp word [rsp + 0x70], r13w
je 0x14007144d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400a6950]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140071447
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14007144d
Function at 0x140072d70
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140072d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400693d0
or eax, 0xffffffff
jmp 0x140072d92
xor eax, eax
add rsp, 0x28
ret
Function at 0x140075c80
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140075cb0
xor eax, eax
jmp 0x140075d73
mov rbp, rbx
cmp word [rax], si
je 0x140075cd5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140075cbc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140075cb8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140074390
movsxd r14, eax
test eax, eax
jne 0x140075d13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140075ca9
mov rcx, r14
call fcn.14006e9b4
mov rdi, rax
test rax, rax
jne 0x140075d2c
xor ecx, ecx
call fcn.14006d9e8
jmp 0x140075d08
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140074390
test eax, eax
jne 0x140075d5d
mov rcx, rdi
call fcn.14006d9e8
jmp 0x140075d67
xor ecx, ecx
call fcn.14006d9e8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140078ee8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006d610
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140078f89
cmp ebx, dword [rsp + 0x30]
je 0x140078f82
test esi, esi
je 0x140078f82
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140078f5d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140078f6a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140078f47
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140078f6e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140078f8b
mov eax, 1
jmp 0x140078f8b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007c814
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400612b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007c89e
cmp byte [rbp - 0x21], r15b
je 0x14007c899
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14007c8d4
call fcn.14006dcec
test eax, eax
jne 0x14007c8c0
cmp byte [rbp - 0x21], r15b
je 0x14007c8b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14007c8d4
cmp byte [rbp - 0x21], r15b
je 0x14007c8d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140068160
test eax, eax
jne 0x14007c974
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400612b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007c913
cmp byte [rbp - 0x21], r15b
je 0x14007c948
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14007c948
call fcn.14006dcec
test eax, eax
jne 0x14007c934
cmp byte [rbp - 0x21], r15b
je 0x14007c92d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14007c948
cmp byte [rbp - 0x21], r15b
je 0x14007c945
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140068160
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007c974
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007c977
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007c985
mov rcx, rdi
call fcn.14006d9e8
cmp byte [rbp + 0x3f], r15b
je 0x14007c994
mov rcx, qword [rbp + 0x27]
call fcn.14006d9e8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14007d6fc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140071f34
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140071f34
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007d84c
cmp rax, 0xffffffffffffffff
je 0x14007d84c
xor edi, edi
test rbp, rbp
jle 0x14007d7f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006d970
mov rbx, rax
test rax, rax
jne 0x14007d784
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007d7ed
mov edx, 0x8000
mov ecx, r14d
call fcn.14006aca0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400709ec
cmp eax, 0xffffffff
je 0x14007d7cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007d794
mov edx, r15d
mov ecx, r14d
call fcn.14006aca0
jmp 0x14007d7ed
cmp byte [rsi + 0x38], dil
je 0x14007d7e4
cmp dword [rsi + 0x34], 5
jne 0x14007d7e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007d7ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006d9e8
jmp 0x14007d860
jns 0x14007d860
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140071f34
cmp rax, 0xffffffffffffffff
jne 0x14007d818
cmp byte [rsi + 0x30], dil
je 0x14007d860
mov edi, dword [rsi + 0x2c]
jmp 0x14007d860
mov ecx, r14d
call fcn.140076994
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007d860
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14007d860
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007d859
mov eax, dword [rsi + 0x2c]
jmp 0x14007d85e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140071f34
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14007e660
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007e688
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007e688
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180a3e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180a3e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180a3e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a3e06f
add dl, dl
jne 0x180a3e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a3e0f6
xor eax, eax
add dl, dl
jne 0x180a3e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a3e1ad
add dl, dl
jne 0x180a3e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a3e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a3e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a3e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180a3e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180a3e07e
mov eax, 1
add dl, dl
jne 0x180a3e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a3e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a3e0fb
sub eax, ebx
mov ebx, 1
jne 0x180a3e14c
mov ecx, 1
add dl, dl
jne 0x180a3e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a3e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a3e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a3e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180a3e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a3e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a3e15d
cmp eax, 0x7d00
jae 0x180a3e19b
cmp eax, 0x500
jb 0x180a3e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a3e07e
cmp eax, 0x7f
ja 0x180a3e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a3e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180a3e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180a3e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001718
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 0x1400017dc
lea rcx, [0x1401d3920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401d3910]
jmp 0x1400017a2
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000179f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1401d3910]
mov rdx, rsi
call fcn.140017f30
jmp 0x1400017a2
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000176f
mov rdi, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x1401d3910]
lea rdx, [rdi + 1]
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.140017eec
lea rcx, [0x1401d3920]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140004ec0
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x140004a0c
Function at 0x140005928
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1401d3be0]
call fcn.1400188b0
test rax, rax
je 0x140005956
mov r8, qword [rax]
mov edx, ebx
mov rcx, qword [rax + 8]
add rsp, 0x20
pop rbx
jmp qword [r8 + 0x48]
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400196e0

Function at 0x140006d70
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
mov r15, r8
mov rcx, qword [0x1401d4068]
mov ebp, edx
xor ebx, ebx
call fcn.140014218
mov r14, rax
test rsi, rsi
je 0x140006d54
mov rcx, qword [0x1401d3638]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rsi
mov rdi, rax
or dword [rax + 4], 0xffffffff
mov dword [rax], 1
call fcn.140037078
mov rcx, r15
mov qword [rdi + 8], rax
call fcn.140037078
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ebp
mov eax, dword [r14]
mov dword [rdi + 0x44], eax
mov eax, dword [r14 + 4]
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x90], 1
test bpl, 1
je 0x140006d41
lea rax, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140006c5c]
mov edx, 0x10000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140006d36
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006d3c
cmp dword [rsp + 0x50], ebx
je 0x140006d4c
mov rbx, rdi
jmp 0x140006d54
mov rcx, rdi
call fcn.140006a88
mov rbx, rax
mov rcx, rdi
call fcn.1400370fc
mov rbp, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor edx, edx
jmp 0x140006c6c
Function at 0x140006e64
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140006d80]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140018a00
xor r8d, r8d
mov qword [0x1401d4098], rax
xor edx, edx
mov ecx, ebx
call fcn.1400142b0
xor ebx, ebx
mov qword [0x1401d40a8], rax
cmp word [0x1401d4090], bx
jne 0x140006f87
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140006ecc
movzx eax, di
jmp 0x140006ece
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1401d4090], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401d40a0], rax
test rax, rax
je 0x140006f87
lea rdx, [0x140166650]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401d40a0]
lea rdx, [0x140166660]
mov qword [0x1401d4070], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401d40a0]
lea rdx, str.getnameinfo
mov qword [0x1401d4078], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401d40a0]
lea rdx, str.WSAStringToAddressA
mov qword [0x1401d4080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1401d4070], rbx
mov qword [0x1401d4088], rax
je 0x140006f87
cmp qword [0x1401d4078], rbx
je 0x140006f87
cmp qword [0x1401d4080], rbx
je 0x140006f87
mov ecx, dword [0x1401d4094]
test rax, rax
cmovne ecx, edi
mov dword [0x1401d4094], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x140008160
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1401d44b0]
call fcn.1400188b0
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x1400081e0
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400081a5
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400081e0
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.1400186c0
lea r8d, [rdi + 1]
mov rdx, rax
mov rbx, rax
mov word [rax], bp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call fcn.140018218
sub edi, eax
mov ecx, edi
call fcn.140018770
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140008250
Capabilities:
Hide graphical window

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbp, rcx
mov rcx, qword [0x1401d44b8]
call fcn.140014218
cmp qword [0x1401d4658], 0
mov r14, rax
jne 0x140008321
mov ebx, 0x148
lea rcx, [0x1401d4510]
mov r8d, ebx
xor edx, edx
call fcn.140001390
lea rax, [0x1400088a8]
mov dword [0x1401d4510], 0xa
mov qword [0x1401d4518], rax
mov edx, 0x7f89
lea rax, [0x140038290]
mov dword [0x1401d4514], ebx
mov qword [0x1401d45f8], rax
xor ecx, ecx
lea rax, [0x140009644]
mov qword [0x1401d4600], rax
lea rax, [0x140008880]
mov qword [0x1401d4520], rax
lea rax, [0x1400088c4]
mov qword [0x1401d4628], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x1401d4658], rax
test rax, rax
jne 0x140008321
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x1401d4658], rax
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call fcn.140037314
and qword [rsp + 0x58], 0
lea rdx, str.STATIC
mov rax, qword [0x1401d3640]
or rbx, 0xffffffffffffffff
mov r8, qword [rsp + 0xb8]
mov r9d, 0x40010000
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov rax, qword [r14]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
test rax, rax
je 0x14000845b
mov rcx, qword [0x1401d44b0]
mov rdx, rbp
call fcn.1400187e0
lea ecx, [rbx + 9]
mov rdi, rax
mov qword [rax + 0x20], rbx
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, eax
xor edx, edx
mov qword [rdi + 0x28], rcx
lea r8d, [rbx + 0x21]
mov rcx, qword [0x1401d3638]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [r14 + 0x10]
lea r9, [0x1401d4510]
mov r8, rsi
mov rdx, rdi
mov rbx, rax
mov qword [rax], rcx
mov ecx, dword [rsp + 0xc8]
mov dword [rax + 8], ecx
mov ecx, dword [rsp + 0xc0]
mov dword [rax + 0x18], ecx
mov rcx, rbp
mov byte [rax + 0x1c], 0
mov qword [rdi + 0x38], rax
call fcn.1400373a8
mov rcx, qword [rdi]
lea r8, [0x14000846c]
mov edx, 0xfffffffc
mov rsi, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [rbx + 0x10], rax
mov edx, 1
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, rsi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ade0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x1401d4d28], 0
jne 0x14000ae46
lea rcx, [0x1401d4d28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000ae32
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1401d4d30]
imul qword [0x1401d4d28]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1401d4d28], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1401d4d28], 0
jne 0x14000ae46
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x14000ae6c
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1401d4d30]
cqo
idiv qword [0x1401d4d28]
add rsp, 0x28
ret

Function at 0x14000d620
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x14000d6aa
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14001866c
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.140018218
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14000d696
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x14000d696
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x14000d696
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000d668
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x14000d6ac
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x14000d6b8
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000d6e3
test dl, 2
je 0x14000d6d6
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x14000d6e5
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000d7e0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x1401d4ec8]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x14000d832
lea r8, [fcn.14000d79c]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.140018a00
mov qword [0x1401d4ec8], rax
mov rdx, rdi
mov rcx, rax
call fcn.1400187e0
mov rbx, rax
test rax, rax
je 0x14000d935
test r14, r14
lea r15, [0x1401616e8]
cmovne r15, r14
test rbp, rbp
je 0x14000d863
cmp word [rbp], r13w
jne 0x14000d86a
lea rbp, [0x140177b30]
mov rcx, r15
call fcn.140018218
mov rcx, rbp
mov r12, rax
call fcn.140018218
mov rcx, qword [0x1401d3638]
add eax, 2
add eax, r12d
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000d91e
mov rdx, r15
mov rcx, rax
call fcn.1400181fc
test r12d, r12d
je 0x14000d8cb
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x14000d8cb
lea rdx, [0x140161668]
mov rcx, r14
call fcn.1400181d0
mov rdx, rbp
mov rcx, r14
call fcn.1400181d0
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14000d8f2
mov dword [rbx + 8], r13d
jmp 0x14000d904
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000d907
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x1401d3638]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x14000d935
mov rcx, qword [0x1401d4ec8]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.140018994
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret