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

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x140000000], 0x5a4d
je 0x14004219d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x140000000]
jmp 0x14004222b
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x1400421c1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14004222b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x140042208
cmp ecx, 0x20b
je 0x1400421e0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14004222b
cmp dword [rax + 0x84], 0xe
ja 0x1400421f4
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14004222b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x14004222b
cmp dword [rax + 0x74], 0xe
ja 0x140042219
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x14004222b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x1403037e0], 0xffffffffffffffff
mov qword [0x140303800], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x1403014b0]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x1403014b4]
mov dword [rcx], eax
call fcn.140042440
cmp dword [0x140303820], 0
jne 0x140042285
lea rcx, [0x140042450]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x1400dfbb8]
lea rcx, [0x1400dfbb0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x1403014b8]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x1403014bc]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x1400dfba8]
lea rcx, [0x1400dfba0]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x140042326
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x140042316
cmp al, 0x22
je 0x140042316
jmp 0x140042300
cmp byte [r8], 0x22
jne 0x140042336
inc r8
mov qword [rsp + 0x30], r8
jmp 0x140042336
cmp byte [r8], 0x20
jbe 0x140042336
inc r8
mov qword [rsp + 0x30], r8
jmp 0x140042326
movzx eax, byte [r8]
test al, al
je 0x14004234c
cmp al, 0x20
ja 0x14004234c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x140042336
test byte [rsp + 0x8c], 1
je 0x140042361
movzx r9d, word [rsp + 0x90]
jmp 0x140042367
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.14003877b
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x140042383
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x1400423a7
mov eax, edi
jmp 0x1400423b0
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x140042e1c
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 0x140042ee2
lea rcx, [0x140303860]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403014d0]
jmp 0x140042ea6
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140042ea3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1403014d0]
mov rdx, rsi
call fcn.14008f9f4
jmp 0x140042ea6
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140042e73
mov rdx, qword [0x1402fc888]
lea rcx, [0x1403014d0]
mov rdi, rdx
inc rdx
mov qword [0x1402fc888], rdx
lea edx, [rbx + 0x20]
call fcn.14008fa3c
lea rcx, [0x140303860]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x14004310c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140042f88
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140303860]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403014d0]
jmp 0x140043148
cmp qword [rbx + 0x18], rdi
je 0x14004314f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14004313f
jmp 0x140043169
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1403014d0]
call fcn.14008f9f4
lea rcx, [0x140303860]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140043818
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x140043818
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov r15, rcx
mov rdx, rcx
mov rcx, qword [0x1403014e0]
mov esi, r8d
xor r14d, r14d
call fcn.14008efd4
mov rbx, rax
test rax, rax
je 0x1400439fd
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x1400438fe
mov rcx, r15
call fcn.140043b80
jmp 0x14004387c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x140043871
mov rcx, qword [rbx + 0x20]
call fcn.140044174
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.140043760
lea rax, [rsp + 0x88]
lea r8, [0x140043a18]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r14d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400438d9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x1400438e8
mov edx, esi
mov rcx, r15
call fcn.140043c88
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x1400439a9
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x1400439b6
mov rcx, rax
call fcn.1400436bc
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.14008fa3c
mov rcx, qword [0x140301510]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x1400439fd
mov rcx, qword [rsp + 0x30]
mov byte [r14 + 9], bpl
mov byte [r14 + 8], dil
mov qword [r14], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp esi, 0xffffffff
je 0x140043993
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.140043c90
jmp 0x1400439a1
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x1400439fd
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp esi, 0xffffffff
je 0x1400439db
mov edx, esi
mov rcx, r15
call fcn.140043c88
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x1400439fd
mov r14, rdi
mov byte [rbx + 0x2c], dil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140044aa4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140044b1b
movsxd rdx, ecx
lea rcx, [0x140044a00]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140301590]
test rbx, rbx
je 0x140044b8e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140044b11
cmp byte [rbx + 0x20], 0
je 0x140044b11
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140044ad7
jmp 0x140044b8e
mov rbx, qword [0x140301590]
test rbx, rbx
je 0x140044b8e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140044b86
cmp byte [rbx + 0x21], 0
je 0x140044b4a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140044b76
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140301590]
call fcn.14008f9f4
mov rbx, rdi
test rdi, rdi
jne 0x140044b27
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140045140
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140303e20]
call fcn.14008efd4
test rax, rax
je 0x14004517d
cmp dword [rax + 0x28], 0
je 0x14004517d
mov rcx, qword [rax + 0x18]
mov r9d, ebx
mov r8d, dword [rcx + 4]
mov edx, dword [rcx]
mov rcx, qword [rax + 0x10]
add rsp, 0x20
pop rbx
jmp fcn.140044d60
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.140090480
Function at 0x140062b34
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140062f8c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x1400630a3
cmp edx, 2
je 0x1400630a3
mov rcx, qword [0x140300808]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006308b
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x140063084
test edi, edi
jne 0x140063044
mov rcx, qword [0x140300808]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x140063084
cmp ax, 0xd
je 0x140063064
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140063019
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.1400b58c0
jmp 0x14006316b
mov r8, rcx
mov rcx, qword [0x140300808]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006314c
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140063144
test edi, edi
jne 0x14006310a
mov rcx, qword [0x140300808]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x140063144
cmp al, 0xd
je 0x140063124
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400630e2
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x140063166
call fcn.1400b5920
jmp 0x14006316b
call fcn.1400b56f0
mov rcx, qword [0x140300808]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140062bd4
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 0x140062c02
dec edi
mov edx, ebx
mov ecx, edi
call fcn.140090340
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
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 0x140062d38
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140303ec0]
call fcn.14008edd0
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140062e35
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x140062d8f
add rax, 2
cmp word [rax], 0x20
je 0x140062d85
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x140062dcd
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x140062e0d
cmp cx, r9w
je 0x140062dbf
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140062dad
cmp word [rax], bp
je 0x140062e0d
mov rcx, rax
add rax, 2
jmp 0x140062e15
test dx, dx
je 0x140062e12
mov rbx, rax
cmp dx, 0x20
je 0x140062dbf
add rax, 2
cmp word [rax], r9w
jne 0x140062e03
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x140062e0d
cmp cx, r9w
je 0x140062e03
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140062df1
movzx edx, word [rax]
test dx, dx
jne 0x140062dd5
jmp 0x140062dbf
mov rcx, rax
jmp 0x140062e15
mov r8d, ebp
cmp dword [r14], esi
jne 0x140062e1f
test rdi, rdi
jne 0x140062e3f
test r8d, r8d
je 0x140062e26
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x140062d7f
test rdi, rdi
jne 0x140062e54
movsxd rax, esi
jmp 0x140062e56
test rbx, rbx
je 0x140062e54
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140062e56
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140062e6c
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140303ec0]
call fcn.14008edd0
xor ecx, ecx
add rsp, 0x28
jmp fcn.140062d38
Function at 0x140062f00
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
mov rcx, qword [0x140303ec0]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14008edd0
test ebx, ebx
js 0x140062f2f
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140062d38
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.140090340
mov ecx, ebp
jmp 0x140062f6b
test edi, edi
je 0x140062f70
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x140062f5e
inc ecx
jmp 0x140062f65
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x140062f4d
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.1400907a0
Function at 0x140062f8c
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140062f8c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x1400630a3
cmp edx, 2
je 0x1400630a3
mov rcx, qword [0x140300808]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006308b
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x140063084
test edi, edi
jne 0x140063044
mov rcx, qword [0x140300808]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x140063084
cmp ax, 0xd
je 0x140063064
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140063019
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.1400b58c0
jmp 0x14006316b
mov r8, rcx
mov rcx, qword [0x140300808]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006314c
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140063144
test edi, edi
jne 0x14006310a
mov rcx, qword [0x140300808]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x140063144
cmp al, 0xd
je 0x140063124
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400630e2
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x140063166
call fcn.1400b5920
jmp 0x14006316b
call fcn.1400b56f0
mov rcx, qword [0x140300808]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140064850
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, SafeArrayGetLBound
lea r8, [0x140064764]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.14008f0fc
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x1403015c0], rax
call fcn.14008ee68
xor ebx, ebx
cmp word [0x1403015b8], bx
mov qword [0x140303f40], rax
jne 0x140064973
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1403015b8], di
test eax, eax
je 0x1400648c1
mov word [0x1403015b8], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1403015e8], rax
test rax, rax
je 0x140064973
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403015e8]
lea rdx, str.freeaddrinfo
mov qword [0x1403015c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403015e8]
lea rdx, str.getnameinfo
mov qword [0x1403015d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403015e8]
lea rdx, str.WSAStringToAddressA
mov qword [0x1403015d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1403015c8], rbx
mov qword [0x1403015e0], rax
je 0x140064973
cmp qword [0x1403015d0], rbx
je 0x140064973
cmp qword [0x1403015d8], rbx
je 0x140064973
mov ecx, dword [0x1403015bc]
test rax, rax
cmovne ecx, edi
mov dword [0x1403015bc], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14006a824
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 [0x140304020]
call fcn.14008edd0
cmp qword [0x140302140], 0
mov r14, rax
jne 0x14006a8f5
mov ebx, 0x140
lea rcx, [0x140302150]
xor edx, edx
mov r8d, ebx
call fcn.1400420e0
lea rax, [0x14006a298]
mov edx, 0x7f89
mov qword [0x140302158], rax
lea rax, [0x14006f3e4]
xor ecx, ecx
mov qword [0x140302238], rax
lea rax, [0x14006f3c8]
mov dword [0x140302150], 0xa
mov qword [0x140302240], rax
lea rax, [0x14006a2b4]
mov dword [0x140302154], ebx
mov qword [0x140302160], rax
lea rax, [0x14006a2dc]
mov qword [0x140302268], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x140302140], rax
test rax, rax
jne 0x14006a8f5
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x140302140], rax
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call fcn.140076b88
and qword [rsp + 0x58], 0
mov rax, qword [0x140300810]
mov r8, qword [rsp + 0xb8]
mov qword [rsp + 0x50], rax
mov rax, qword [r14]
or rbx, 0xffffffffffffffff
lea rdx, str.STATIC
mov r9d, 0x40000000
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]
xor ecx, ecx
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 0x14006aa2f
mov rcx, qword [0x1403037c0]
mov rdx, rbp
call fcn.14008f034
lea ecx, [rbx + 9]
mov qword [rax + 0x20], rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, eax
lea r8d, [rbx + 0x21]
xor edx, edx
mov qword [rdi + 0x28], rcx
mov rcx, qword [0x140300808]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [r14 + 0x10]
lea r9, [0x140302150]
mov qword [rax], rcx
mov ecx, dword [rsp + 0xc8]
mov byte [rax + 0x1c], 0
mov dword [rax + 8], ecx
mov ecx, dword [rsp + 0xc0]
mov r8, rsi
mov dword [rax + 0x18], ecx
mov rdx, rdi
mov rcx, rbp
mov rbx, rax
mov qword [rdi + 0x38], rax
call fcn.14006f20c
mov rcx, qword [rdi]
lea r8, [0x14006a40c]
mov edx, 0xfffffffc
mov rsi, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edx, 1
mov qword [rbx + 0x10], rax
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 0x14006cb40
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 [0x1403037c0]
call fcn.14008efd4
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14006cbc0
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14006cb85
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14006cbc0
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140090340
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.1400907a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14006d36c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea edi, [rbx + 1]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
lea ecx, [rdi + 1]
test si, ax
cmovne ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x14006d3a4
or ebx, 2
mov ecx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x14006d3b7
or ebx, 4
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret