joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b800
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b84a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b84a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b84a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b84a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b84a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b84c
xor al, al
add rsp, 0x28
ret

Function at 0x1400101a4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140010213
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010213
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010213
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010213
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010213
cmp dword [rcx + 0x84], 0xe
jbe 0x140010213
cmp dword [rcx + 0xf8], 0
je 0x140010213
mov ecx, ebx
call fcn.140010318
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000ffd8
nop
cmp dword [rbp + 0x20], 0
je 0x140010261
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001026c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400101a4

Function at 0x140010404
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400101a4
Function at 0x14001bf98
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.140012248
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 0x14001c039
cmp ebx, dword [rsp + 0x30]
je 0x14001c032
test esi, esi
je 0x14001c032
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001c00d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001c01a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001bff7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001c01e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001c03b
mov eax, 1
jmp 0x14001c03b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d2d0
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 0x14001d300
xor eax, eax
jmp 0x14001d3c3
mov rbp, rbx
cmp word [rax], si
je 0x14001d325
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001d30c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001d308
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.14001d5c8
movsxd r14, eax
test eax, eax
jne 0x14001d363
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001d2f9
mov rcx, r14
call fcn.140012ccc
mov rdi, rax
test rax, rax
jne 0x14001d37c
xor ecx, ecx
call fcn.140010ffc
jmp 0x14001d358
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.14001d5c8
test eax, eax
jne 0x14001d3ad
mov rcx, rdi
call fcn.140010ffc
jmp 0x14001d3b7
xor ecx, ecx
call fcn.140010ffc
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 0x14001d3e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001d467
mov rsi, rbx
cmp word [rax], bp
je 0x14001d426
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001d410
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001d40c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140012ccc
mov rdi, rax
test rax, rax
je 0x14001d454
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002b6c0
mov rbp, rdi
xor ecx, ecx
call fcn.140010ffc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140025608
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.1400161f0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140025692
cmp byte [rbp - 0x21], r15b
je 0x14002568d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400256c8
call fcn.140013f6c
test eax, eax
jne 0x1400256b4
cmp byte [rbp - 0x21], r15b
je 0x1400256ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400256c8
cmp byte [rbp - 0x21], r15b
je 0x1400256c5
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.140017290
test eax, eax
jne 0x140025768
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400161f0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140025707
cmp byte [rbp - 0x21], r15b
je 0x14002573c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002573c
call fcn.140013f6c
test eax, eax
jne 0x140025728
cmp byte [rbp - 0x21], r15b
je 0x140025721
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002573c
cmp byte [rbp - 0x21], r15b
je 0x140025739
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.140017290
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140025768
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002576b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140025779
mov rcx, rdi
call fcn.140010ffc
cmp byte [rbp + 0x3f], r15b
je 0x140025788
mov rcx, qword [rbp + 0x27]
call fcn.140010ffc
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 0x140027d28
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, [0x140366f30]
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 0x140027d7f
cmp word [rdx], r13w
jne 0x140027d7f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140027d84
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140027ea9
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140027eca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140027dbd
mov rdx, r9
mov word [rbx], cx
jmp 0x140027de4
cmp r9, r8
jae 0x140027df4
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 0x140027d9e
jmp 0x140027ea9
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 0x140027e9e
cmp dword [rsp + 0x80], esi
je 0x140027e9e
lea r8, [0x140366f30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140027e76
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140027e46
mov word [rbx], r13w
jmp 0x140027ea6
mov ecx, reloc.WS2_32.dll_listen
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 0x140027e53
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140027ea6
cmp word [rsp + 0x70], r13w
jne 0x140027e83
cmp rbx, r14
je 0x140027e40
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400292c4
cmp word [rsp + 0x70], r13w
je 0x140027ea9
mov ecx, reloc.WS2_32.dll_listen
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, [0x140366f30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140027ea3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140027ea9
Function at 0x14003a554
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x14003a560
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov ebp, r8d
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x14003a75c
cmp word [rdx], di
je 0x14003a75c
mov qword [r11 - 0x38], rdi
lea r12d, [rdi + 1]
mov r8d, r12d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14003a757
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd r15, eax
test eax, eax
jle 0x14003a74e
mov ecx, ebp
call fcn.14003b724
mov rsi, rax
test rax, rax
je 0x14003a74e
lea edx, [rdi + 2]
cmp ebp, 0xffffffff
mov rcx, r14
cmovne edx, ebp
call fcn.14003bd28
mov rbx, rax
test rax, rax
je 0x14003a743
mov qword [rax + 0x40], rsi
lea r8, [r15 + 0x10]
mov qword [rbx + 0x60], rdi
cmp r14, 0xffffffffffffffff
mov dword [rbx + 0x68], edi
cmove r14, rax
mov dword [rbx + 0x20], edi
mov qword [rax + 0x48], r14
xor edx, edx
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x140366088]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
mov rcx, rax
test rax, rax
je 0x14003a673
lea eax, [r15 + 0x10]
mov dword [rcx + 8], eax
mov rax, qword [rbx + 0x38]
mov qword [rax], rdi
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x14003a67c
mov dword [rbx + 0x50], r12d
mov rdx, rbx
mov rcx, rsi
call fcn.1400b0b00
mov ebp, edi
mov r14d, 0x4000
lea eax, [r14 + rbp]
cmp eax, r15d
jle 0x14003a69e
mov r14d, r15d
sub r14d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1400afce0
mov r12, rax
test rax, rax
je 0x14003a72d
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, r14d
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
cmp edx, r14d
jne 0x14003a719
add ebp, edx
cmp dword [rbx + 0x20], edi
jne 0x14003a6e9
mov rcx, r12
call fcn.14003b808
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rsi
cmp ebp, r15d
jl 0x14003a6f9
mov r8d, 1
jmp 0x14003a6fc
xor r8d, r8d
call fcn.1400b0340
test eax, eax
je 0x14003a70c
cmp ebp, r15d
jl 0x14003a68f
jmp 0x14003a73f
mov rcx, rsi
call fcn.1400b0020
mov dword [rbx + 0x24], eax
jmp 0x14003a734
lea rax, str.file_read_error
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x14003a73f
mov dword [rbx + 0x24], 1
mov rdx, rsi
mov rcx, rbx
call fcn.14003b8dc
mov qword [rbx + 0x40], rdi
mov rcx, rsi
call fcn.1400b04d0
mov rdi, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x14003a75e
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003d590
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 0x14003d654
lea rcx, [0x14036ebe0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140367758]
jmp 0x14003d61a
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14003d617
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140367758]
mov rdx, rsi
call fcn.1400815d0
jmp 0x14003d61a
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14003d5e7
mov rdi, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x140367758]
lea rdx, [rdi + 1]
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.14008158c
lea rcx, [0x14036ebe0]
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 0x1400441d8
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140044254
movsxd rdx, ecx
lea rcx, [0x140044138]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140367768]
test rbx, rbx
je 0x1400442c7
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14004424a
cmp byte [rbx + 0x20], 0
je 0x14004424a
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140044210
jmp 0x1400442c7
mov rbx, qword [0x140367768]
test rbx, rbx
je 0x1400442c7
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400442bf
cmp byte [rbx + 0x21], 0
je 0x140044283
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400442af
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140367768]
call fcn.1400815d0
mov rbx, rsi
test rsi, rsi
jne 0x140044260
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140044ca0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x14036ed20]
call fcn.140080884
mov rcx, qword [rax]
test rcx, rcx
je 0x140044cc8
mov edx, ebx
add rsp, 0x20
pop rbx
jmp fcn.14023e9f0
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.140083410
Function at 0x1400629a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x1400629ce
dec edi
mov edx, ebx
mov ecx, edi
call fcn.140083360
lea r8d, [rdi + 1]
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140062b0c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x14036ed40]
call fcn.140080884
mov rsi, rax
or edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebp, ebp
mov rdx, rax
movzx r8d, word [rax]
test r8w, r8w
je 0x140062c43
mov rcx, qword [rsp + 0x30]
jmp 0x140062b5d
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x140062b55
mov r11d, 1
cmp r8w, 0x22
jne 0x140062bac
add rdx, 2
mov r9, rdx
movzx r8d, word [rdx]
test r8w, r8w
je 0x140062c0b
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x140062ba6
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140062b8a
test r8w, r8w
jmp 0x140062c0b
test r8w, r8w
je 0x140062c1b
mov r9, rdx
movzx r10d, r8w
cmp r8w, 0x20
je 0x140062c07
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x22
jne 0x140062bfd
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
je 0x140062bfd
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x140062bfd
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140062be1
movzx r10d, r8w
test r8w, r8w
jne 0x140062bb5
test r10w, r10w
lea rax, [rdx + 2]
mov rcx, rdx
cmove rax, rdx
mov rdx, rax
jmp 0x140062c21
mov r11d, ebp
mov r9, rbp
cmp dword [rsi], edi
jne 0x140062c2a
test rbx, rbx
jne 0x140062c4d
movzx r8d, word [rdx]
lea eax, [rdi + 1]
test r11d, r11d
cmove eax, edi
mov edi, eax
test r8w, r8w
jne 0x140062b5d
test rbx, rbx
jne 0x140062c61
movsxd rax, edi
jmp 0x140062c66
test r9, r9
je 0x140062c61
sub rcx, r9
mov rax, r9
sar rcx, 1
mov dword [rbx], ecx
inc dword [rsi]
jmp 0x140062c66
mov dword [rbx], ebp
mov rax, rdx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140062d10
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
xor ebp, ebp
mov rcx, qword [0x14036ed40]
mov esi, edx
mov dword [rax + 8], ebp
call fcn.140080884
test ebx, ebx
js 0x140062d3f
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140062b0c
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.140083360
mov ecx, ebp
jmp 0x140062d7b
test edi, edi
je 0x140062d80
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x140062d6e
inc ecx
jmp 0x140062d75
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x140062d5d
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140083440
Function at 0x140064518
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140064434]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140080bbc
xor r8d, r8d
mov qword [0x140367bc8], rax
xor edx, edx
mov ecx, ebx
call fcn.14008091c
xor ebx, ebx
mov qword [0x14036eec0], rax
cmp word [0x140367bc0], bx
jne 0x14006463b
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140064580
movzx eax, di
jmp 0x140064582
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140367bc0], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140367bd0], rax
test rax, rax
je 0x14006463b
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140367bd0]
lea rdx, str.freeaddrinfo
mov qword [0x140367ba0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140367bd0]
lea rdx, str.getnameinfo
mov qword [0x140367ba8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140367bd0]
lea rdx, str.WSAStringToAddressA
mov qword [0x140367bb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140367ba0], rbx
mov qword [0x140367bb8], rax
je 0x14006463b
cmp qword [0x140367ba8], rbx
je 0x14006463b
cmp qword [0x140367bb0], rbx
je 0x14006463b
mov ecx, dword [0x140367bc4]
test rax, rax
cmovne ecx, edi
mov dword [0x140367bc4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x140067b88
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
or r15, 0xffffffffffffffff
mov rbp, rax
cmp rax, r15
je 0x140067c48
mov rcx, qword [rsi]
lea edx, [r15 - 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
test al, 1
jne 0x140067c48
xor r14d, r14d
cmp qword [rsi + 0x30], r14
jne 0x140067c48
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [0x140366088]
xor edx, edx
movsxd rbx, eax
lea r8, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r8d, [rbx + 1]
mov rdx, rax
mov rdi, rax
mov word [rax], r14w
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rsi]
mov r9, rdi
mov r8, r15
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140366088]
mov r8, rdi
cmp rax, r15
cmove rbp, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400693e0
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 [0x14036ef00]
call fcn.140080a8c
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x140069460
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140069425
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140069460
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.140083360
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.14001b3c8
sub edi, eax
mov ecx, edi
call fcn.140083440
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14006d224
Capabilities:
Check for time delay via queryperformancecounter

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