joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400013fc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
mov rbx, r9
lea rax, [r11 - 0x18]
mov r14, r8
mov r9d, 8
mov r8, rbx
mov rsi, rdx
mov qword [r11 - 0x28], rax
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor edi, edi
test eax, eax
je 0x14000148d
lea rax, [rsp + 0x38]
mov r9, rbx
mov r8, r14
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001468
cmp rbx, qword [rsp + 0x38]
jne 0x140001468
mov dil, 1
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
neg eax
sbb al, al
and al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140004208
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140004070
Function at 0x140031b30
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, gethostbyname
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
lea rcx, [0x14024c02d]
call fcn.1400b51d0
nop
cmp qword [rbp + 0x1b0], 0
jne 0x140031ba3
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x1a0]
call fcn.1400320f0
nop
mov rax, qword [rbp + 0x1a0]
jmp 0x140031d0e
mov qword [rbp + 8], 0
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x1b0]
call fcn.14002ebf0
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140031bf0
mov rcx, qword [rbp + 0x1b0]
call fcn.1400df330
nop
xor r8d, r8d
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x1a0]
call fcn.1400320f0
nop
mov rax, qword [rbp + 0x1a0]
jmp 0x140031d0e
mov qword [rbp + 0x48], 1
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [0x140201010]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140031c48
mov rcx, qword [rbp + 0x1b0]
call fcn.1400df330
nop
xor r8d, r8d
mov edx, 3
mov rcx, qword [rbp + 0x1a0]
call fcn.1400320f0
nop
mov rax, qword [rbp + 0x1a0]
jmp 0x140031d0e
mov r9, qword [rbp + 0x1b0]
mov r8, qword [rbp + 8]
mov edx, 1
mov rcx, qword [rbp + 0x68]
call fcn.1400e0070
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x1b0]
call fcn.1400df330
nop
mov rax, qword [rbp + 8]
cmp qword [rbp + 0x88], rax
je 0x140031cab
mov rcx, qword [rbp + 0x68]
call qword [0x140201018]
nop
xor r8d, r8d
mov edx, 2
mov rcx, qword [rbp + 0x1a0]
call fcn.1400320f0
nop
mov rax, qword [rbp + 0x1a0]
jmp 0x140031d0e
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x1c0]
call fcn.14002eaa0
mov dword [rbp + 0xa4], eax
mov r8d, dword [rbp + 0xa4]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x68]
call fcn.140044b30
mov ecx, dword [rbp + 0xa4]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rbp + 0x1b8]
mov dword [rsp + 0x20], ecx
mov r9, rax
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a8]
call fcn.140031960
nop
mov rax, qword [rbp + 0x1a0]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401ab700]
call fcn.1400b4fa0
mov rax, rdi
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400461e0
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x138]
lea rcx, [0x14024c061]
call fcn.1400b51d0
nop
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0x108]
mov dword [rax + 8], ecx
mov rax, qword [rbp + 0x100]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0x100]
lea r8, [0x140047ca0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbp + 0x100]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x100]
cmp qword [rax + 0x10], 0
jne 0x1400462ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CreateThread___failed_with_error__d
mov edx, 0xff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
xor al, al
jmp 0x1400462b0
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401b4a20]
call fcn.1400b4fa0
mov rax, rdi
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400462d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_shutdown
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140201180]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, [0x14024c061]
call fcn.1400b51d0
nop
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rcx, qword [rbp + 0x130]
mov qword [rcx + 0xd0], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax + 0xd0], 0xffffffffffffffff
jne 0x14004638d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.WSASocket___failed_with_error__d
mov edx, 0xff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
xor al, al
jmp 0x140046443
mov eax, 2
mov word [rbp + 8], ax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0xc], eax
mov rax, qword [rbp + 0x130]
movzx ecx, word [rax + 8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xa], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 8]
mov rax, qword [rbp + 0x130]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rbp + 0x34], eax
cmp dword [rbp + 0x34], 0xffffffff
jne 0x1400463f7
lea rdx, str.BIND_ERROR___Port_in_use_already
lea rcx, [0x14022f400]
call fcn.14004e400
nop
xor al, al
jmp 0x140046443
mov edx, 5
mov rax, qword [rbp + 0x130]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rbp + 0x34], eax
cmp dword [rbp + 0x34], 0xffffffff
jne 0x140046441
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.listen___failed_with_error__d
mov edx, 0xff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
xor al, al
jmp 0x140046443
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401b4a80]
call fcn.1400b4fa0
mov rax, rdi
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.1400b5470
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140046dd0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
lea rcx, [0x14024c061]
call fcn.1400b51d0
nop
mov rax, qword [rbp + 0x150]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbp + 0x158]
mov eax, dword [rax + 8]
mov dword [rbp + 0x24], eax
mov eax, 0x8048
imul rax, rax, 1
mov rcx, qword [rbp + 0x158]
lea rax, [rcx + rax + 0x10]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + 0x8038]
mov eax, dword [rax + 0x8034]
sub eax, ecx
test eax, eax
jge 0x140046e83
mov rax, qword [rbp + 0x150]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
xor al, al
jmp 0x14004700f
mov rax, qword [rbp + 0x48]
movsxd rax, dword [rax + 0x8038]
mov rcx, qword [rbp + 0x48]
lea rax, [rcx + rax + 0x30]
mov rcx, qword [rbp + 0x48]
mov qword [rcx + 0x28], rax
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + 0x8038]
mov eax, dword [rax + 0x8034]
sub eax, ecx
mov rcx, qword [rbp + 0x48]
mov dword [rcx + 0x20], eax
mov rax, qword [rbp + 0x48]
mov dword [rax + 0x803c], 1
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x48]
add rcx, 0x20
movsxd rdx, dword [rbp + 0x24]
imul rdx, rdx, 0x48
mov qword [rbp + 0x118], rdx
lea r8, [0x1402030f0]
mov qword [rbp + 0x120], r8
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, 1
mov rdx, rcx
mov rcx, qword [rbp + 0x120]
mov rax, qword [rbp + 0x118]
mov rcx, qword [rcx + rax + 0x28]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140046fcc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140046fca
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x48
lea rcx, [0x1402030f0]
lea rax, [rcx + rax + 8]
mov qword [rbp + 0x118], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x1402010e4]
add ecx, 0x17
mov rdx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
mov r9d, ecx
lea r8, str.WSASend__d__failed_with_error__d__s
mov edx, 0xff
lea rcx, [0x14022f400]
call fcn.14004c6a0
nop
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x150]
call fcn.140046000
nop
mov rax, qword [rbp + 0x150]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
xor al, al
jmp 0x14004700f
jmp 0x140046fe8
mov rax, qword [rbp + 0x158]
mov eax, dword [rax + 0x100a0]
inc eax
mov rcx, qword [rbp + 0x158]
mov dword [rcx + 0x100a0], eax
mov rax, qword [rbp + 0x48]
mov dword [rax + 0x8040], 1
mov rax, qword [rbp + 0x150]
add rax, 0x98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1401b4c40]
call fcn.1400b4fa0
mov rax, rdi
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x140049150
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2e8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x82
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x308]
mov rax, qword [0x140201180]
xor rax, rbp
mov qword [rbp + 0x2b8], rax
lea rcx, [0x14024c074]
call fcn.1400b51d0
nop
mov eax, 0x202
mov word [rbp + 4], ax
lea rdx, [rbp + 0x30]
movzx ecx, word [rbp + 4]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1e4], eax
cmp dword [rbp + 0x1e4], 0
je 0x1400491e1
mov r9d, 0x40000
lea r8, [0x1401b5870]
lea rdx, str.WINSOCK_STARTUP_FAILED
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
xor eax, eax
jmp 0x14004925e
movzx eax, word [rbp + 0x30]
and eax, 0xff
and eax, 0xff
cmp eax, 2
jne 0x140049205
movzx eax, word [rbp + 0x30]
shr eax, 8
and eax, 0xff
cmp eax, 2
je 0x14004922f
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov r9d, 0x40000
lea r8, [0x1401b5870]
lea rdx, str.WINSOCK_VERSION_INVALID
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
xor eax, eax
jmp 0x14004925e
mov rax, qword [rbp + 0x2e0]
mov qword [rax + 0x10], 0xffffffffffffffff
movzx eax, word [rbp + 0x34]
mov rcx, qword [rbp + 0x2e0]
mov dword [rcx], eax
mov rax, qword [rbp + 0x2e0]
mov dword [rax + 0x20], 0
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1401b5860]
call fcn.1400b4fa0
mov rax, rdi
mov rcx, qword [rbp + 0x2b8]
xor rcx, rbp
call fcn.1400b5470
lea rsp, [rbp + 0x2c8]
pop rdi
pop rbp
ret
Function at 0x14004eed0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
lea rcx, [0x14024c15e]
call fcn.1400b51d0
nop
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x14004ef55
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140050730
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14024c16f]
call fcn.1400b51d0
nop
xor edx, edx
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov rax, qword [rbp + 0xe0]
cmp qword [rax + 0x10], 0
je 0x1400507aa
mov edx, 0xffffffff
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0xe0]
mov qword [rax + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0xe0]
mov r8, qword [rcx + 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rax, qword [rbp + 0xe0]
mov qword [rax + 0x28], 0
mov eax, 1
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400507f0
Capabilities:
Create udp socket

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14024c16f]
call fcn.1400b51d0
nop
mov rax, qword [rbp + 0xe0]
cmp qword [rax + 0x20], 0xffffffffffffffff
je 0x14005083f
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, qword [rbp + 0xe0]
mov qword [rax + 0x20], 0xffffffffffffffff
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rcx, qword [rbp + 0xe0]
mov qword [rcx + 0x20], rax
mov rax, qword [rbp + 0xe0]
cmp qword [rax + 0x20], 0xffffffffffffffff
jne 0x140050882
xor eax, eax
jmp 0x140050887
mov eax, 1
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140050ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x14024c16f]
call fcn.1400b51d0
nop
mov dword [rbp + 0x24], reloc.WS2_32.dll_recv
xor eax, eax
cmp eax, 1
je 0x140050da6
mov rax, qword [rbp + 0x150]
mov ecx, 0x1000
sub ecx, dword [rax + 0x3c]
mov eax, ecx
mov rcx, qword [rbp + 0x150]
movsxd rcx, dword [rcx + 0x3c]
mov rdx, qword [rbp + 0x150]
mov rdx, qword [rdx + 0x28]
add rdx, rcx
mov rcx, rdx
lea rdx, [rbp + 0x24]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0x48]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x150]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x140050d4f
jmp 0x140050da1
cmp dword [rbp + 4], 0
jne 0x140050d57
jmp 0x140050da1
mov rax, qword [rbp + 0x150]
mov ecx, dword [rbp + 4]
mov dword [rax + 0x38], ecx
mov rax, qword [rbp + 0x150]
mov eax, dword [rax + 0x3c]
add eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x150]
mov dword [rcx + 0x3c], eax
mov rax, qword [rbp + 0x150]
add rax, 0x38
mov r8, rax
mov rax, qword [rbp + 0x150]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rbp + 0x150]
call fcn.140050990
nop
jmp 0x140050ce0
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400b4fa0
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140050dc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14024c16f]
call fcn.1400b51d0
nop
mov rax, qword [rbp + 0xe0]
add rax, 0x18
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xe0]
lea r8, [0x1400510e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbp + 0xe0]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0xe0]
cmp qword [rax + 0x10], 0
jne 0x140050e2d
xor eax, eax
jmp 0x140050e32
mov eax, 1
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400b3820
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x30
call fcn.140146080
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400b384c
mov eax, 2
jmp 0x1400b38b9
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 2
lea r8, [rsp + 0x24]
mov edx, 0x22
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x30
je 0x1400b38a2
cmp dword [rsp + 0x20], 0x31
je 0x1400b38a9
cmp dword [rsp + 0x20], 0x32
je 0x1400b38b0
jmp 0x1400b38b7
mov eax, 2
jmp 0x1400b38b9
mov eax, 1
jmp 0x1400b38b9
mov eax, 3
jmp 0x1400b38b9
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400b5b30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400b4bf0
movzx eax, al
test eax, eax
jne 0x1400b5b50
mov ecx, 7
call fcn.1400b67a0
nop
mov byte [rsp + 0x20], 0
call fcn.1400b4a20
mov byte [rsp + 0x21], al
cmp dword [0x140234738], 1
jne 0x1400b5b74
mov ecx, 7
call fcn.1400b67a0
nop
jmp 0x1400b5bcc
cmp dword [0x140234738], 0
jne 0x1400b5bc7
mov dword [0x140234738], 1
lea rdx, [0x1401a87c8]
lea rcx, [0x1401a8788]
call fcn.140156510
test eax, eax
je 0x1400b5ba8
mov eax, 0xff
jmp 0x1400b5cd1
lea rdx, [0x1401a8780]
lea rcx, [0x1401a85e8]
call fcn.1401564b0
mov dword [0x140234738], 2
jmp 0x1400b5bcc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400b4de0
call fcn.1400b75d0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400b5c29
mov rcx, qword [rsp + 0x30]
call fcn.1400b4d50
movzx eax, al
test eax, eax
je 0x1400b5c29
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1401a85c0]
nop
call fcn.1400b75e0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400b5c5d
mov rcx, qword [rsp + 0x38]
call fcn.1400b4d50
movzx eax, al
test eax, eax
je 0x1400b5c5d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140151fa0
nop
call fcn.1400b5ce0
mov dword [rsp + 0x28], eax
call fcn.1400b69c0
movzx eax, al
test eax, eax
jne 0x1400b5c7c
mov ecx, dword [rsp + 0x28]
call fcn.140151ff0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400b5c8b
call fcn.140151f40
nop
xor edx, edx
mov cl, 1
call fcn.1400b4e10
mov eax, dword [rsp + 0x28]
jmp 0x1400b5cd1
add rsp, 0x68
ret
Function at 0x1400d25e0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400d20c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400d261f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a85c0]
jmp 0x1400d2629
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140151cd0
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x140151cf8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.140151e20
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14016b500
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400b5410
sub rsp, rax
mov rax, qword [0x140201180]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140235be0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14016b6fa
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14016b646
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14016b646
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14016b62b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14016b5c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14016b6ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016b719
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x14016b6f5
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016b719
jmp 0x14016b59e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400b5470
add rsp, 0x1498
pop rdi
pop rsi
ret