joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024f94
Capabilities:
Log keystrokes via polling

Disassembly:
push r15
xor rax, rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.140057490
push 0xa0
pop rcx
call sub.USER32.dll_GetAsyncKeyState
mov qword [rsp + 0x28], rax
push 0x24
pop rcx
call sub.USER32.dll_GetAsyncKeyState
mov qword [rsp + 0x30], rax
push 0x23
pop rcx
call sub.USER32.dll_GetAsyncKeyState
mov qword [rsp + 0x38], rax
push 0x21
pop rcx
call sub.USER32.dll_GetAsyncKeyState
mov qword [rsp + 0x40], rax
push 0x22
pop rcx
call sub.USER32.dll_GetAsyncKeyState
mov qword [rsp + 0x48], rax
mov r15, qword [rsp + 0x28]
and r15, r15
je 0x140025014
mov r15, qword [rsp + 0x30]
and r15, r15
je 0x140025014
mov rax, 1
jmp 0x140025017
xor rax, rax
and rax, rax
je 0x14002502c
call fcn.14001694d
mov qword [0x140413f38], 0
mov r15, qword [rsp + 0x28]
and r15, r15
je 0x140025049
mov r15, qword [rsp + 0x38]
and r15, r15
je 0x140025049
mov rax, 1
jmp 0x14002504c
xor rax, rax
and rax, rax
je 0x140025061
call fcn.1400158d3
mov qword [0x140413f38], 0
mov r15, qword [rsp + 0x28]
and r15, r15
je 0x14002507e
mov r15, qword [rsp + 0x40]
and r15, r15
je 0x14002507e
mov rax, 1
jmp 0x140025081
xor rax, rax
and rax, rax
je 0x14002508b
call fcn.14001afaa
mov r15, qword [rsp + 0x28]
and r15, r15
je 0x1400250a8
mov r15, qword [rsp + 0x48]
and r15, r15
je 0x1400250a8
mov rax, 1
jmp 0x1400250ab
xor rax, rax
and rax, rax
je 0x1400250b5
call fcn.1400214a4
xor rax, rax
add rsp, 0x50
pop r15
ret

Function at 0x14002a2e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1404100e8]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14002b414
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 0x14002b4da
lea rcx, [0x140417a80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1404143a0]
jmp 0x14002b49e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14002b49b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1404143a0]
mov rdx, rsi
call fcn.140056f10
jmp 0x14002b49e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14002b46b
mov rdx, qword [0x14040ffc0]
lea rcx, [0x1404143a0]
mov rdi, rdx
inc rdx
mov qword [0x14040ffc0], rdx
lea edx, [rbx + 0x20]
call fcn.140056f58
lea rcx, [0x140417a80]
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 0x14002c8f0
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x14002c8f8
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov r14d, r8d
mov qword [rax - 0x28], rdi
mov r15, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14002ca35
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test r14b, 1
je 0x14002c9d6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14002d160
mov rsi, rax
test rax, rax
je 0x14002ca2c
mov rcx, qword [0x140414448]
mov rdx, r15
call fcn.140056488
mov r15d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r15d
mov r14, rax
call fcn.14002d128
mov rcx, rsi
mov rbx, rax
call fcn.14002d100
mov r8d, r15d
mov edx, ebx
mov rcx, rax
call fcn.14002cdec
mov qword [r14], rax
test rax, rax
je 0x14002c9cc
mov qword [r14 + 0x20], rsi
mov rdi, r14
jmp 0x14002ca2c
mov rcx, rsi
call fcn.14002d0f8
jmp 0x14002ca2c
mov rcx, qword [0x140413948]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14002ca2c
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r15
call fcn.14002c0cc
mov rcx, qword [0x140413948]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14002c8f8
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x14002c8f8
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov r14d, r8d
mov qword [rax - 0x28], rdi
mov r15, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14002ca35
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test r14b, 1
je 0x14002c9d6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14002d160
mov rsi, rax
test rax, rax
je 0x14002ca2c
mov rcx, qword [0x140414448]
mov rdx, r15
call fcn.140056488
mov r15d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r15d
mov r14, rax
call fcn.14002d128
mov rcx, rsi
mov rbx, rax
call fcn.14002d100
mov r8d, r15d
mov edx, ebx
mov rcx, rax
call fcn.14002cdec
mov qword [r14], rax
test rax, rax
je 0x14002c9cc
mov qword [r14 + 0x20], rsi
mov rdi, r14
jmp 0x14002ca2c
mov rcx, rsi
call fcn.14002d0f8
jmp 0x14002ca2c
mov rcx, qword [0x140413948]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14002ca2c
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r15
call fcn.14002c0cc
mov rcx, qword [0x140413948]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14002cb0c
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x14002cb0c
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 [0x140414448]
mov esi, r8d
xor r14d, r14d
call fcn.140056428
mov rbx, rax
test rax, rax
je 0x14002ccf1
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x14002cbf2
mov rcx, r15
call fcn.14002bfc4
jmp 0x14002cb70
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x14002cb65
mov rcx, qword [rbx + 0x20]
call fcn.14002d158
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.14002ca54
lea rax, [rsp + 0x88]
lea r8, [0x14002cd0c]
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 0x14002cbcd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x14002cbdc
mov edx, esi
mov rcx, r15
call fcn.14002c544
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x14002cc9d
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x14002ccaa
mov rcx, rax
call fcn.14002c4a0
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.140056f58
mov rcx, qword [0x140414478]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x14002ccf1
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 0x14002cc87
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.14002c54c
jmp 0x14002cc95
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 0x14002ccf1
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 0x14002cccf
mov edx, esi
mov rcx, r15
call fcn.14002c544
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 0x14002ccf1
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 0x14003196c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x1400319e3
movsxd rdx, ecx
lea rcx, [0x1400318c8]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140414730]
test rbx, rbx
je 0x140031a56
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400319d9
cmp byte [rbx + 0x20], 0
je 0x1400319d9
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 0x14003199f
jmp 0x140031a56
mov rbx, qword [0x140414730]
test rbx, rbx
je 0x140031a56
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140031a4e
cmp byte [rbx + 0x21], 0
je 0x140031a12
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140031a3e
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, [0x140414730]
call fcn.140056f10
mov rbx, rdi
test rdi, rdi
jne 0x1400319ef
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400321c4
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r9d, edx
mov edx, 2
je 0x1400321d9
mov edx, 0x18
jmp 0x1400321f1
test dword [rcx + 0x28], 0x100
jne 0x1400321f1
test dword [rcx + 0x28], 0x200
mov eax, 0x19
cmovne edx, eax
mov rcx, qword [rcx + 0x18]
or r8d, 0xffffffff
jmp 0x140032270
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x1400323af
cmp edx, 2
je 0x1400323af
mov rcx, qword [0x140413948]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x140032398
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x140032390
cmp r13d, 0xffffffff
je 0x14003231d
cmp r14d, r13d
jae 0x140032390
add r14d, 2
test edi, edi
jne 0x140032348
mov rcx, qword [0x140413948]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x140032390
cmp ax, 0xd
je 0x140032368
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x14003230b
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.14013f0d0
jmp 0x140032478
mov r8, rcx
mov rcx, qword [0x140413948]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x1400323e2
cmp r14d, r15d
jae 0x14003244c
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003244c
cmp dword [rsp + 0x38], 1
jne 0x14003244c
inc r14d
test edi, edi
jne 0x140032430
mov rcx, qword [0x140413948]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x14003244c
cmp al, 0xd
je 0x1400323d7
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x1400323d7
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x140032473
call fcn.14013f130
jmp 0x140032478
call fcn.14013f470
mov rcx, qword [0x140413948]
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 rbp
pop rbx
ret
Function at 0x140032270
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r9d, edx
mov edx, 2
je 0x1400321d9
mov edx, 0x18
jmp 0x1400321f1
test dword [rcx + 0x28], 0x100
jne 0x1400321f1
test dword [rcx + 0x28], 0x200
mov eax, 0x19
cmovne edx, eax
mov rcx, qword [rcx + 0x18]
or r8d, 0xffffffff
jmp 0x140032270
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x1400323af
cmp edx, 2
je 0x1400323af
mov rcx, qword [0x140413948]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x140032398
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x140032390
cmp r13d, 0xffffffff
je 0x14003231d
cmp r14d, r13d
jae 0x140032390
add r14d, 2
test edi, edi
jne 0x140032348
mov rcx, qword [0x140413948]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x140032390
cmp ax, 0xd
je 0x140032368
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x14003230b
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.14013f0d0
jmp 0x140032478
mov r8, rcx
mov rcx, qword [0x140413948]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x1400323e2
cmp r14d, r15d
jae 0x14003244c
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003244c
cmp dword [rsp + 0x38], 1
jne 0x14003244c
inc r14d
test edi, edi
jne 0x140032430
mov rcx, qword [0x140413948]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x14003244c
cmp al, 0xd
je 0x1400323d7
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x1400323d7
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x140032473
call fcn.14013f130
jmp 0x140032478
call fcn.14013f470
mov rcx, qword [0x140413948]
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 rbp
pop rbx
ret
Function at 0x1400358d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140414758], 0
jne 0x1400358f5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140414758], 1
mov dword [0x14041475c], eax
mov rcx, qword [0x140413948]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14041475c]
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 0x140035ab0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140414758], 0
mov ebx, ecx
jne 0x140035ad4
call fcn.1400358d0
mov ecx, dword [0x14041475c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140035afc
call fcn.1400358d0
mov ecx, dword [0x14041475c]
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 0x140035b10
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 0x140035b50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140035ab0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140414758], 0
jne 0x1400358f5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140414758], 1
mov dword [0x14041475c], eax
mov rcx, qword [0x140413948]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14041475c]
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 0x140035ab0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140414758], 0
mov ebx, ecx
jne 0x140035ad4
call fcn.1400358d0
mov ecx, dword [0x14041475c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140035afc
call fcn.1400358d0
mov ecx, dword [0x14041475c]
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 0x140035b10
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 0x140035b50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140035bb0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140414758], 0
mov rbx, rcx
jne 0x140035bc7
call fcn.1400358d0
mov ecx, dword [0x14041475c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x140035bef
call fcn.1400358d0
mov ecx, dword [0x14041475c]
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 0x140035c68
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 0x140039904
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, 0x10
lea r8, [0x140039818]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.140056550
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x140414998], rax
call fcn.1400562bc
xor ebx, ebx
cmp word [0x140414990], bx
mov qword [0x1404181c0], rax
jne 0x140039a2f
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x140414990], di
test eax, eax
je 0x140039975
mov word [0x140414990], bx
lea rcx, str.ws2_32.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1404149c0], rax
test rax, rax
je 0x140039a2f
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404149c0]
lea rdx, str.freeaddrinfo
mov qword [0x1404149a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404149c0]
lea rdx, str.getnameinfo
mov qword [0x1404149a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404149c0]
lea rdx, str.WSAStringToAddressA
mov qword [0x1404149b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1404149a0], rbx
mov qword [0x1404149b8], rax
je 0x140039a2f
cmp qword [0x1404149a8], rbx
je 0x140039a2f
cmp qword [0x1404149b0], rbx
je 0x140039a2f
mov ecx, dword [0x140414994]
test rax, rax
cmovne ecx, edi
mov dword [0x140414994], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x140039c70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140039cb4
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret