joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140084ee4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x140084f98
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x14009cd70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1400976d0
nop
mov rax, qword [rsp + 0x90]
lea rcx, vtable.asio::detail::win_iocp_io_context.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x90]
add rax, 0x28
mov rcx, rax
call fcn.140013c20
nop
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x30], 0
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x34], 0
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x38], 0
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x3c], 0
call fcn.1400bfd74
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x40], eax
mov rax, qword [rsp + 0x90]
add rax, 0x48
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.14000b1bc
nop
mov rax, qword [rsp + 0x90]
add rax, 0x50
mov rcx, rax
call fcn.140013c20
nop
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x58], 0
mov rax, qword [rsp + 0x90]
add rax, 0x60
mov rcx, rax
call fcn.14009d0e0
nop
mov rax, qword [rsp + 0x90]
add rax, 0x88
mov rcx, rax
call fcn.140013c20
mov rax, qword [rsp + 0x90]
add rax, 0x90
mov rcx, rax
call fcn.14003e91c
nop
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0xa0], ecx
mov rax, qword [rsp + 0x90]
add rax, 0xa8
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.14000b1bc
nop
cmp dword [rsp + 0xa0], 0
jl 0x14009cee4
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
jmp 0x14009ceec
mov dword [rsp + 0x20], 0xffffffff
mov r9d, dword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x28], 0
jne 0x14009cf4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
call fcn.14003f954
mov r8, rax
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x68]
call fcn.1400149d8
lea rdx, str.iocp
lea rcx, [rsp + 0x68]
call fcn.1400401d4
movzx eax, byte [rsp + 0xa8]
test eax, eax
je 0x14009cfee
mov rax, qword [rsp + 0x90]
add rax, 0x30
lock inc dword [rax]
mov rax, qword [rsp + 0x90]
add rax, 0xa8
mov qword [rsp + 0x58], rax
mov ecx, 0x18
call fcn.140181f6c
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14009cfcb
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.14000b1bc
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.140070598
mov qword [rsp + 0x30], rax
jmp 0x14009cfd4
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.1400d5b2c
nop
mov rax, qword [rsp + 0x90]
add rsp, 0x88
ret

Function at 0x1400a0800
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x28
ret
Function at 0x1400b3cc0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0x90], 0xffffffffffffffff
je 0x1400b3e65
movzx eax, byte [rsp + 0xa0]
test eax, eax
je 0x1400b3d66
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax]
and eax, 8
test eax, eax
je 0x1400b3d66
xor eax, eax
mov word [rsp + 0x48], ax
xor eax, eax
mov word [rsp + 0x4a], ax
lea rcx, [rsp + 0x50]
call fcn.14003ebd4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x80
mov r8d, 0xffff
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1400da72c
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1400b3d86
mov byte [rsp + 0x40], 1
jmp 0x1400b3d8b
mov byte [rsp + 0x40], 0
mov dl, byte [rsp + 0x40]
mov rcx, qword [rsp + 0xa8]
call fcn.1400c0128
cmp dword [rsp + 0x44], 0
je 0x1400b3e65
mov edx, 0x2733
lea rcx, [rsp + 0x60]
call fcn.140072fa8
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
call fcn.140017134
movzx eax, al
test eax, eax
jne 0x1400b3df7
mov edx, 0x4d5
lea rcx, [rsp + 0x70]
call fcn.140072fa8
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xa8]
call fcn.140017134
movzx eax, al
test eax, eax
je 0x1400b3e65
mov dword [rsp + 0x4c], 0
lea r8, [rsp + 0x4c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax]
and eax, 0xfffffffc
mov rcx, qword [rsp + 0x98]
mov byte [rcx], al
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1400b3e4f
mov byte [rsp + 0x41], 1
jmp 0x1400b3e54
mov byte [rsp + 0x41], 0
mov dl, byte [rsp + 0x41]
mov rcx, qword [rsp + 0xa8]
call fcn.1400c0128
mov eax, dword [rsp + 0x44]
add rsp, 0x88
ret

Function at 0x1400c91ec
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400dcd10
movzx eax, al
test eax, eax
je 0x1400c9258
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400c9285
xor r8d, r8d
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 8]
lea rcx, [fcn.140008d64]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x38
ret
Function at 0x1400cba08
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x10325476
ret

Function at 0x1400d83b4
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x4c], eax
mov dl, 1
mov rcx, qword [rsp + 0x80]
call fcn.1400c0128
mov rcx, qword [rsp + 0x80]
call fcn.140008258
cmp eax, 0x40
jne 0x1400d8451
mov edx, 0x2746
mov rcx, qword [rsp + 0x80]
call fcn.140073638
jmp 0x1400d8477
mov rcx, qword [rsp + 0x80]
call fcn.140008258
cmp eax, 0x4d2
jne 0x1400d8477
mov edx, 0x274d
mov rcx, qword [rsp + 0x80]
call fcn.140073638
cmp dword [rsp + 0x4c], 0
je 0x1400d8485
mov eax, 0xffffffff
jmp 0x1400d84a8
mov rcx, qword [rsp + 0x80]
call fcn.14001ff98
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.1400b0480
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1400daeb0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400daf00
mov byte [rsp + 0x30], 1
jmp 0x1400daf05
mov byte [rsp + 0x30], 0
mov dl, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.1400c0128
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400daf22
mov rax, qword [rsp + 0x38]
jmp 0x1400daf59
cmp dword [rsp + 0x50], 0x17
jne 0x1400daf54
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x1400db720
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140007b28
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call fcn.1400de998
movzx eax, byte [rsp + 0xa8]
test eax, eax
je 0x1400db798
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call fcn.1400cd078
jmp 0x1400db8d2
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400c913c
movzx eax, al
test eax, eax
jne 0x1400db7e5
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
call fcn.1400cd078
jmp 0x1400db8d2
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x4c], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x40
jne 0x1400db85d
mov dword [rsp + 0x40], 0x2746
jmp 0x1400db86f
cmp dword [rsp + 0x40], 0x4d2
jne 0x1400db86f
mov dword [rsp + 0x40], 0x274d
cmp dword [rsp + 0x4c], 0
je 0x1400db8af
cmp dword [rsp + 0x40], 0x3e5
je 0x1400db8af
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x60]
call fcn.1400cd078
jmp 0x1400db8d2
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x68]
call fcn.1400cd138
add rsp, 0x78
ret
Function at 0x1400db8d8
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140007b28
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call fcn.1400de998
movzx eax, byte [rsp + 0xa8]
test eax, eax
je 0x1400db950
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call fcn.1400cd078
jmp 0x1400dba6f
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400c913c
movzx eax, al
test eax, eax
jne 0x1400db99d
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
call fcn.1400cd078
jmp 0x1400dba6f
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x48], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x4d2
jne 0x1400dba0c
mov dword [rsp + 0x40], 0x274d
cmp dword [rsp + 0x48], 0
je 0x1400dba4c
cmp dword [rsp + 0x40], 0x3e5
je 0x1400dba4c
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x60]
call fcn.1400cd078
jmp 0x1400dba6f
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x68]
call fcn.1400cd138
add rsp, 0x78
ret
Function at 0x1400e6998
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x78]
call fcn.1400e68f8
nop
lea rcx, [rsp + 0x58]
call fcn.140012ea4
nop
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140025c7c
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x48]
call fcn.1400e667c
mov qword [rsp + 0x50], rax
jmp 0x1400e6a2b
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x38], rax
je 0x1400e6b45
mov rax, qword [rsp + 0x38]
mov al, byte [rax]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2c]
cdq
mov ecx, 3
idiv ecx
mov eax, edx
shl eax, 3
mov ecx, 0x10
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov cl, al
mov eax, dword [rsp + 0x40]
shl eax, cl
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x28], 0x10
jne 0x1400e6ab0
mov eax, dword [rsp + 0x20]
shr eax, 0x12
and eax, 0x3f
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400e66a0
mov dl, byte [rax]
lea rcx, [rsp + 0x58]
call fcn.140018638
cmp dword [rsp + 0x28], 8
jne 0x1400e6adb
mov eax, dword [rsp + 0x20]
shr eax, 0xc
and eax, 0x3f
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400e66a0
mov dl, byte [rax]
lea rcx, [rsp + 0x58]
call fcn.140018638
cmp dword [rsp + 0x28], 0
jne 0x1400e6b36
cmp dword [rsp + 0x2c], 3
je 0x1400e6b36
mov eax, dword [rsp + 0x20]
shr eax, 6
and eax, 0x3f
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400e66a0
mov dl, byte [rax]
lea rcx, [rsp + 0x58]
call fcn.140018638
mov eax, dword [rsp + 0x20]
and eax, 0x3f
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400e66a0
mov dl, byte [rax]
lea rcx, [rsp + 0x58]
call fcn.140018638
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
jmp 0x1400e6a1e
cmp dword [rsp + 0x28], 0x10
jne 0x1400e6b81
mov eax, dword [rsp + 0x20]
shr eax, 0xc
and eax, 0x3f
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400e66a0
mov dl, byte [rax]
lea rcx, [rsp + 0x58]
call fcn.140018638
lea rdx, [0x1401e14c4]
lea rcx, [rsp + 0x58]
call fcn.14003ae14
cmp dword [rsp + 0x28], 8
jne 0x1400e6bb8
mov eax, dword [rsp + 0x20]
shr eax, 6
and eax, 0x3f
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400e66a0
mov dl, byte [rax]
lea rcx, [rsp + 0x58]
call fcn.140018638
mov dl, 0x3d
lea rcx, [rsp + 0x58]
call fcn.140018638
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
call fcn.1400126c8
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x58]
call fcn.140015f78
nop
lea rcx, [rsp + 0x78]
call fcn.140015f78
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0xa8
ret
Function at 0x1400ebdbc
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x58]
call fcn.1400f536c
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0xa8]
call fcn.1400399e8
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140025c98
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0xa8]
call fcn.140015fa0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ebee0
mov r9d, 0x28
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x1400ebee0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xa0]
and eax, 0x10
test eax, eax
jne 0x1400ebea4
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0xa0]
and eax, 0x10
test eax, eax
je 0x1400ebeba
mov dword [rsp + 0x68], 1
mov rcx, qword [rsp + 0x80]
call fcn.1400f13e8
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400f13e8
mov qword [rsp + 0x78], rax
jmp 0x1400ebee8
mov dword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x58]
mov rdi, qword [rsp + 0xf0]
mov rsi, rax
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0xd8
pop rdi
pop rsi
ret

Function at 0x1400fb57c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.1400399e8
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140025c98
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rsp + 0x38]
call fcn.140015fa0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0x68
ret
Function at 0x14010ac88
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x58
mov eax, dword [0x14024de98]
mov dword [rsp + 0x44], eax
mov eax, dword [0x14024de9c]
mov dword [rsp + 0x40], eax
call fcn.140108050
movzx eax, al
test eax, eax
jne 0x14010acd3
movzx eax, byte [0x14024de12]
test eax, eax
je 0x14010acd3
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.14010ab18
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x40], eax
xor edx, edx
mov rcx, qword [0x14024dd88]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [0x14024dd60]
mov r8d, dword [rax]
mov edx, 0xffffffec
mov rcx, qword [0x14024dd88]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
xor edx, edx
mov rcx, qword [0x14024dd88]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 5
mov rcx, qword [0x14024dd88]
call qword [sym.imp.USER32.dll_ShowWindow]
add rsp, 0x58
ret
Function at 0x140114a50
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0
mov rcx, qword [0x14024df08]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x40]
call fcn.1400665e4
nop
mov eax, dword [rsp + 0x24]
inc eax
cdqe
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140067c4c
lea rcx, [rsp + 0x40]
call fcn.1400286b0
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x40]
call fcn.140025c98
mov qword [rsp + 0x30], rax
mov rax, qword [0x14024df08]
mov qword [rsp + 0x38], rax
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140116560
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x40]
call fcn.140015fa0
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0x78
ret

Function at 0x140115364
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetMessageW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140115418
cmp qword [rsp + 0x40], 0
je 0x1401153af
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14011536d
cmp dword [rsp + 0x48], 0x8000
jne 0x140115400
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.1400181c4
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401153f5
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.140111150
mov qword [rsp + 0x38], rax
jmp 0x1401153fe
mov qword [rsp + 0x38], 0
jmp 0x140115413
cmp dword [rsp + 0x48], 0x12
jne 0x140115413
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x14011536d
add rsp, 0x78
ret

Function at 0x1401172e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x1401172f9
xor al, al
jmp 0x140117346
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x140117313
xor al, al
jmp 0x140117346
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x140117323
mov byte [rsp + 0x21], 1
jmp 0x140117342
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x140117335
mov byte [rsp + 0x20], 0
jmp 0x14011733a
mov byte [rsp + 0x20], 1
mov al, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
mov al, byte [rsp + 0x21]
add rsp, 0x38
ret