joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005b9b8
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 0x14005ba7e
lea rcx, [0x14067fbd0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x14067d4a0]
jmp 0x14005ba42
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x14005ba3f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x14067d4a0]
mov rdx, rsi
call fcn.1400ac158
jmp 0x14005ba42
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14005ba0f
mov rdx, qword [0x1406762e0]
lea rcx, [0x14067d4a0]
mov rdi, rdx
inc rdx
mov qword [0x1406762e0], rdx
lea edx, [rbx + 0x20]
call fcn.1400ac1a0
lea rcx, [0x14067fbd0]
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 0x14005ba98
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14005b948
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateThread]
lea rcx, [0x14067fbd0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x14067d4a0]
jmp 0x14005bad4
cmp qword [rbx + 0x18], rdi
je 0x14005badb
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14005bacb
jmp 0x14005baf5
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x14067d4a0]
call fcn.1400ac158
lea rcx, [0x14067fbd0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
Function at 0x14005c1a0
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x14005c1a0
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 [0x14067d4a8]
mov esi, r8d
xor r14d, r14d
call fcn.1400ab684
mov rbx, rax
test rax, rax
je 0x14005c385
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x14005c286
mov rcx, r15
call fcn.14005c508
jmp 0x14005c204
mov ecx, 0xa
call qword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x14005c1f9
mov rcx, qword [rbx + 0x20]
call fcn.14005cae0
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.14005c0e8
lea rax, [rsp + 0x88]
lea r8, [0x14005c3a0]
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 0x14005c261
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, 0xffffffff
je 0x14005c270
mov edx, esi
mov rcx, r15
call fcn.14005c610
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x14005c331
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x14005c33e
mov rcx, rax
call fcn.14005bee4
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.1400ac1a0
mov rcx, qword [0x14067d4c8]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x14005c385
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 0x14005c31b
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.14005c618
jmp 0x14005c329
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 0x14005c385
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 0x14005c363
mov edx, esi
mov rcx, r15
call fcn.14005c610
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 0x14005c385
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 0x14005d2d8
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14005d34f
movsxd rdx, ecx
lea rcx, [0x14005d234]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x14067d550]
test rbx, rbx
je 0x14005d3c2
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14005d345
cmp byte [rbx + 0x20], 0
je 0x14005d345
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 0x14005d30b
jmp 0x14005d3c2
mov rbx, qword [0x14067d550]
test rbx, rbx
je 0x14005d3c2
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14005d3ba
cmp byte [rbx + 0x21], 0
je 0x14005d37e
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14005d3aa
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, [0x14067d550]
call fcn.1400ac158
mov rbx, rdi
test rdi, rdi
jne 0x14005d35b
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14005da90
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140680100]
call fcn.1400ab684
test rax, rax
je 0x14005dacd
cmp dword [rax + 0x28], 0
je 0x14005dacd
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.14005d6b0
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400acb60
Function at 0x14007ad80
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 [0x140680140]
call fcn.1400ab480
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 0x14007ae7d
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14007add7
add rax, 2
cmp word [rax], 0x20
je 0x14007adcd
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14007ae15
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14007ae55
cmp cx, r9w
je 0x14007ae07
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14007adf5
cmp word [rax], bp
je 0x14007ae55
mov rcx, rax
add rax, 2
jmp 0x14007ae5d
test dx, dx
je 0x14007ae5a
mov rbx, rax
cmp dx, 0x20
je 0x14007ae07
add rax, 2
cmp word [rax], r9w
jne 0x14007ae4b
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14007ae55
cmp cx, r9w
je 0x14007ae4b
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14007ae39
movzx edx, word [rax]
test dx, dx
jne 0x14007ae1d
jmp 0x14007ae07
mov rcx, rax
jmp 0x14007ae5d
mov r8d, ebp
cmp dword [r14], esi
jne 0x14007ae67
test rdi, rdi
jne 0x14007ae87
test r8d, r8d
je 0x14007ae6e
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14007adc7
test rdi, rdi
jne 0x14007ae9c
movsxd rax, esi
jmp 0x14007ae9e
test rbx, rbx
je 0x14007ae9c
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x14007ae9e
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 0x14007aeb4
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140680140]
call fcn.1400ab480
xor ecx, ecx
add rsp, 0x28
jmp fcn.14007ad80

Function at 0x14007af48
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 [0x140680140]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.1400ab480
test ebx, ebx
js 0x14007af77
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.14007ad80
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400aca20
mov ecx, ebp
jmp 0x14007afb3
test edi, edi
je 0x14007afb8
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14007afa6
inc ecx
jmp 0x14007afad
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14007af95
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.1400ace80
Function at 0x14007b6bc
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x14007b8d4
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 0x14007b9eb
cmp edx, 2
je 0x14007b9eb
mov rcx, qword [0x14067c168]
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 0x14007b9d3
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x14007b9cc
test edi, edi
jne 0x14007b98c
mov rcx, qword [0x14067c168]
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 0x14007b9cc
cmp ax, 0xd
je 0x14007b9ac
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 0x14007b961
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.140133540
jmp 0x14007bab3
mov r8, rcx
mov rcx, qword [0x14067c168]
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 0x14007ba94
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x14007ba8c
test edi, edi
jne 0x14007ba52
mov rcx, qword [0x14067c168]
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 0x14007ba8c
cmp al, 0xd
je 0x14007ba6c
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 0x14007ba2a
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 0x14007baae
call fcn.1401335a0
jmp 0x14007bab3
call fcn.140133370
mov rcx, qword [0x14067c168]
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 0x14007b75c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x14007b7c3
mov rcx, qword [rbp + 0x18]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14007b7b5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x14007b7bf
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x14007b7c3
jmp 0x14007b780
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14007b82c
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 0x14007b85a
dec edi
mov edx, ebx
mov ecx, edi
call fcn.1400aca20
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 0x14007b8d4
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x14007b8d4
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 0x14007b9eb
cmp edx, 2
je 0x14007b9eb
mov rcx, qword [0x14067c168]
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 0x14007b9d3
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x14007b9cc
test edi, edi
jne 0x14007b98c
mov rcx, qword [0x14067c168]
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 0x14007b9cc
cmp ax, 0xd
je 0x14007b9ac
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 0x14007b961
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.140133540
jmp 0x14007bab3
mov r8, rcx
mov rcx, qword [0x14067c168]
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 0x14007ba94
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x14007ba8c
test edi, edi
jne 0x14007ba52
mov rcx, qword [0x14067c168]
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 0x14007ba8c
cmp al, 0xd
je 0x14007ba6c
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 0x14007ba2a
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 0x14007baae
call fcn.1401335a0
jmp 0x14007bab3
call fcn.140133370
mov rcx, qword [0x14067c168]
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 0x14007db20
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
cmp word [0x14067d990], bx
jne 0x14007dc13
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
lea edi, [rbx + 1]
mov word [0x14067d990], di
test eax, eax
je 0x14007db61
mov word [0x14067d990], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov qword [0x14067d9c0], rax
test rax, rax
je 0x14007dc13
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x14067d9c0]
lea rdx, str.freeaddrinfo
mov qword [0x14067d9a0], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x14067d9c0]
lea rdx, str.getnameinfo
mov qword [0x14067d9a8], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x14067d9c0]
lea rdx, str.WSAStringToAddressA
mov qword [0x14067d9b0], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp qword [0x14067d9a0], rbx
mov qword [0x14067d9b8], rax
je 0x14007dc13
cmp qword [0x14067d9a8], rbx
je 0x14007dc13
cmp qword [0x14067d9b0], rbx
je 0x14007dc13
mov ecx, dword [0x14067d994]
test rax, rax
cmovne ecx, edi
mov dword [0x14067d994], ecx
movsx rax, word [0x14067d990]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14007e774
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10d, r8d
mov r11, rdx
jne 0x14007e792
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_send]
jmp 0x14007e7d0
cmp byte [rcx + 0x20], 0
lea r8, [rcx + 4]
mov edx, 0x1c
jne 0x14007e7a6
mov edx, 0x10
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14007e7b4
mov rcx, qword [rax]
jmp 0x14007e7b8
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r8
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WSOCK32.DLL_sendto]
cdqe
add rsp, 0x38
ret

Function at 0x14007ebe0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14067d9d0], 0
jne 0x14007ec05
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x14067d9d0], 1
mov dword [0x14067d9d4], eax
mov rcx, qword [0x14067c168]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x14067d9d4]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.14007edc0

Function at 0x14007edc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x14067d9d0], 0
mov ebx, ecx
jne 0x14007ede4
call fcn.14007ebe0
mov ecx, dword [0x14067d9d4]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14007ee0c
call fcn.14007ebe0
mov ecx, dword [0x14067d9d4]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x14007ee20
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x14007ee60
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007eec0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14067d9d0], 0
mov rbx, rcx
jne 0x14007eed7
call fcn.14007ebe0
mov ecx, dword [0x14067d9d4]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x14007eeff
call fcn.14007ebe0
mov ecx, dword [0x14067d9d4]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, 0x10
mov r10d, dword [r9 + r8*4 + 0x4c]
mov r11d, dword [r9 + r8*4 + 8]
ror r10d, 0xd
add r10d, dword [r9 + rdx*4 + 0x4c]
ror r11d, 5
add r11d, dword [r9 + rdx*4 + 8]
mov dword [r9 + r8*4 + 8], r10d
mov dword [r9 + r8*4 + 0x4c], r11d
dec r8d
mov ecx, r11d
cmovs r8d, eax
dec edx
cmovs edx, eax
mov dword [r9], r8d
mov dword [r9 + 4], edx
inc rbx
je 0x14007ef78
mov edx, r10d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r10d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x1400827f8
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 [0x1406802f0]
call fcn.1400ab684
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x140082878
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14008283d
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140082878
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.1400aca20
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.1400ace80
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret