joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001aa30
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax], 0
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x5be0cd19
ret

Function at 0x14003dcd4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14003db67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003db67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003db67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003db67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003db67
cmp dword [rcx + 0x84], 0xe
jbe 0x14003db67
cmp dword [rcx + 0xf8], 0
je 0x14003db67
mov ecx, ebx
call fcn.14003dc08
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14003d9f8
cmp dword [rbp + 0x20], 0
je 0x14003dbb4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003dbbc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003db00
Function at 0x1400528d4
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x140098088]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xe8]
call fcn.1400274f8
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.14001ea10
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
xor ecx, ecx
call fcn.140054034
nop
mov r9d, 1
mov r8d, eax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x140]
call fcn.1400541d4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xe8]
call fcn.140021af0
nop
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax + 0x20]
test eax, eax
je 0x140052b19
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
bts eax, 0x1a
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
bts eax, 0x13
mov dword [rsp + 0x44], eax
xor edx, edx
lea rcx, [rsp + 0x108]
call fcn.140053e34
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 0x10
jb 0x140052a33
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
jmp 0x140052a3d
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str.HTTP_1.0
lea r8, [0x140086060]
mov rdx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax + 0x30]
call fcn.14001ad8c
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x108]
call fcn.140021af0
nop
cmp qword [rsp + 0x50], 0
je 0x140052b0f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14006ba34
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
mov edx, 0x20000013
mov rcx, qword [rsp + 0x50]
call fcn.1400078c4
cmp dword [rsp + 0x48], 0xc8
jne 0x140052b0f
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x50]
call fcn.14000766c
mov rcx, qword [rsp + 0x140]
call fcn.140054168
mov al, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140031030
add rsp, 0x138
ret
Function at 0x14006582c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 4], 0
mov dword [rsp], 0xffffffff
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1400658bf
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov dword [rsp + 8], 7
jmp 0x14006588a
mov eax, dword [rsp + 8]
dec eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0
jl 0x1400658b3
mov eax, dword [rsp]
and eax, 1
neg eax
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov ecx, dword [rsp + 0x10]
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp], eax
jmp 0x140065880
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
jmp 0x140065844
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret

Function at 0x1400672e4
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax], 0
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x10325476
ret
Function at 0x14000a3b6
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.1400292c0
push qword [rsp + 0x50]
push 0
push 1
pop rcx
pop rdx
pop r8
call sub.KERNEL32.DLL_OpenProcess
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
je 0x14000a41a
push 1
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.KERNEL32.DLL_TerminateProcess
and rax, rax
je 0x14000a410
mov qword [rsp + 0x30], 1
push qword [rsp + 0x28]
pop rcx
call sub.KERNEL32.DLL_CloseHandle
mov rax, qword [rsp + 0x30]
jmp 0x14000a424
add rsp, 0x40
pop r15
ret

Function at 0x14000eb50
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 [0x1402cba60]
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 0x14000f92c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000f874
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateThread]
lea rcx, [0x1402d11c0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1402cfc40]
jmp 0x14000f968
cmp qword [rbx + 0x18], rdi
je 0x14000f96f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000f95f
jmp 0x14000f989
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1402cfc40]
call fcn.140028db4
lea rcx, [0x1402d11c0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]

Function at 0x14000f9a4
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 0x14000fa6a
lea rcx, [0x1402d11c0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1402cfc40]
jmp 0x14000fa2e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x14000fa2b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1402cfc40]
mov rdx, rsi
call fcn.140028db4
jmp 0x14000fa2e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000f9fb
mov rdx, qword [0x1402cb9e0]
lea rcx, [0x1402cfc40]
mov rdi, rdx
inc rdx
mov qword [0x1402cb9e0], rdx
lea edx, [rbx + 0x20]
call fcn.140028dfc
lea rcx, [0x1402d11c0]
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 0x14000fc14
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14000fc8b
movsxd rdx, ecx
lea rcx, [0x14000fb70]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1402cfc48]
test rbx, rbx
je 0x14000fcfe
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000fc81
cmp byte [rbx + 0x20], 0
je 0x14000fc81
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 0x14000fc47
jmp 0x14000fcfe
mov rbx, qword [0x1402cfc48]
test rbx, rbx
je 0x14000fcfe
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000fcf6
cmp byte [rbx + 0x21], 0
je 0x14000fcba
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14000fce6
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, [0x1402cfc48]
call fcn.140028db4
mov rbx, rdi
test rdi, rdi
jne 0x14000fc97
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000fdcc
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 [0x1402d1260]
call fcn.140028190
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 0x14000fec9
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14000fe23
add rax, 2
cmp word [rax], 0x20
je 0x14000fe19
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14000fe61
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14000fea1
cmp cx, r9w
je 0x14000fe53
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14000fe41
cmp word [rax], bp
je 0x14000fea1
mov rcx, rax
add rax, 2
jmp 0x14000fea9
test dx, dx
je 0x14000fea6
mov rbx, rax
cmp dx, 0x20
je 0x14000fe53
add rax, 2
cmp word [rax], r9w
jne 0x14000fe97
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14000fea1
cmp cx, r9w
je 0x14000fe97
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14000fe85
movzx edx, word [rax]
test dx, dx
jne 0x14000fe69
jmp 0x14000fe53
mov rcx, rax
jmp 0x14000fea9
mov r8d, ebp
cmp dword [r14], esi
jne 0x14000feb3
test rdi, rdi
jne 0x14000fed3
test r8d, r8d
je 0x14000feba
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14000fe13
test rdi, rdi
jne 0x14000fee8
movsxd rax, esi
jmp 0x14000feea
test rbx, rbx
je 0x14000fee8
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x14000feea
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 0x14000ff00
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1402d1260]
call fcn.140028190
xor ecx, ecx
add rsp, 0x28
jmp fcn.14000fdcc

Function at 0x14000ff94
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 [0x1402d1260]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.140028190
test ebx, ebx
js 0x14000ffc3
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.14000fdcc
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.140029680
mov ecx, ebp
jmp 0x14000ffff
test edi, edi
je 0x140010004
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14000fff2
inc ecx
jmp 0x14000fff9
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14000ffe1
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.1400297c0
Function at 0x14001079c
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140010934
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 0x140010a4b
cmp edx, 2
je 0x140010a4b
mov rcx, qword [0x1402cf4e8]
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 0x140010a33
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x140010a2c
test edi, edi
jne 0x1400109ec
mov rcx, qword [0x1402cf4e8]
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 0x140010a2c
cmp ax, 0xd
je 0x140010a0c
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 0x1400109c1
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.1400614a0
jmp 0x140010b13
mov r8, rcx
mov rcx, qword [0x1402cf4e8]
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 0x140010af4
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140010aec
test edi, edi
jne 0x140010ab2
mov rcx, qword [0x1402cf4e8]
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 0x140010aec
cmp al, 0xd
je 0x140010acc
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 0x140010a8a
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 0x140010b0e
call fcn.140061500
jmp 0x140010b13
call fcn.140061850
mov rcx, qword [0x1402cf4e8]
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 0x140010934
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140010934
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 0x140010a4b
cmp edx, 2
je 0x140010a4b
mov rcx, qword [0x1402cf4e8]
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 0x140010a33
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x140010a2c
test edi, edi
jne 0x1400109ec
mov rcx, qword [0x1402cf4e8]
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 0x140010a2c
cmp ax, 0xd
je 0x140010a0c
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 0x1400109c1
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.1400614a0
jmp 0x140010b13
mov r8, rcx
mov rcx, qword [0x1402cf4e8]
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 0x140010af4
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140010aec
test edi, edi
jne 0x140010ab2
mov rcx, qword [0x1402cf4e8]
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 0x140010aec
cmp al, 0xd
je 0x140010acc
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 0x140010a8a
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 0x140010b0e
call fcn.140061500
jmp 0x140010b13
call fcn.140061850
mov rcx, qword [0x1402cf4e8]
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 0x1400117c0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x1400116d4]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.1400284bc
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x1402cfc68], rax
call fcn.140028228
xor ebx, ebx
cmp word [0x1402cfc60], bx
mov qword [0x1402d1320], rax
jne 0x1400118e3
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1402cfc60], di
test eax, eax
je 0x140011831
mov word [0x1402cfc60], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov qword [0x1402cfc90], rax
test rax, rax
je 0x1400118e3
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x1402cfc90]
lea rdx, str.freeaddrinfo
mov qword [0x1402cfc70], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x1402cfc90]
lea rdx, str.getnameinfo
mov qword [0x1402cfc78], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x1402cfc90]
lea rdx, str.WSAStringToAddressA
mov qword [0x1402cfc80], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp qword [0x1402cfc70], rbx
mov qword [0x1402cfc88], rax
je 0x1400118e3
cmp qword [0x1402cfc78], rbx
je 0x1400118e3
cmp qword [0x1402cfc80], rbx
je 0x1400118e3
mov ecx, dword [0x1402cfc64]
test rax, rax
cmovne ecx, edi
mov dword [0x1402cfc64], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x140012350
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1402cfc98], 0
jne 0x140012375
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x1402cfc98], 1
mov dword [0x1402cfc9c], eax
mov rcx, qword [0x1402cf4e8]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x1402cfc9c]
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 0x140012530
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1402cfc98], 0
mov ebx, ecx
jne 0x140012554
call fcn.140012350
mov ecx, dword [0x1402cfc9c]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14001257c
call fcn.140012350
mov ecx, dword [0x1402cfc9c]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElemsize
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 0x140012590
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 0x1400125d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret