joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f90
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x68]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetStartupInfoW
mov eax, dword [rbp - 0x2c]
and eax, 1
cmp eax, 0
je 0x404fc9
movzx eax, word [rbp - 0x28]
mov dword [rbp - 0x7c], eax
jmp 0x404fd1
mov eax, 0xa
mov dword [rbp - 0x7c], eax
movabs rax, 0
mov qword [rbp - 0x70], rax
call sub.kernel32.dll_GetCommandLineW
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
cmp rax, 0
je 0x405013
mov rax, qword [rbp + 0x10]
mov r11, rax
mov rax, qword [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_wcsstr
mov qword [rbp - 0x70], rax
movabs rax, 0
mov rcx, qword [rbp - 0x70]
cmp rax, rcx
jne 0x405045
lea rax, [0x006e1808]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll__wcsdup
mov qword [rbp - 0x70], rax
jmp 0x405076
mov rax, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rax, rcx
jbe 0x405076
mov rax, qword [rbp - 0x70]
add rax, 0xfffffffffffffffe
movzx ecx, word [rax]
cmp ecx, 0x22
jne 0x405076
mov rax, qword [rbp - 0x70]
add rax, 0xfffffffffffffffe
mov qword [rbp - 0x70], rax
mov eax, 0x30000
mov r11, rax
mov eax, 0x10000
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__controlfp
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleW
mov ecx, dword [rbp - 0x7c]
mov r9, rcx
mov rcx, qword [rbp - 0x70]
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00404abe
leave
ret

Function at 0x404f9b
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x68]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetStartupInfoW
mov eax, dword [rbp - 0x2c]
and eax, 1
cmp eax, 0
je 0x404fc9
movzx eax, word [rbp - 0x28]
mov dword [rbp - 0x7c], eax
jmp 0x404fd1
mov eax, 0xa
mov dword [rbp - 0x7c], eax
movabs rax, 0
mov qword [rbp - 0x70], rax
call sub.kernel32.dll_GetCommandLineW
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
cmp rax, 0
je 0x405013
mov rax, qword [rbp + 0x10]
mov r11, rax
mov rax, qword [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_wcsstr
mov qword [rbp - 0x70], rax
movabs rax, 0
mov rcx, qword [rbp - 0x70]
cmp rax, rcx
jne 0x405045
lea rax, [0x006e1808]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll__wcsdup
mov qword [rbp - 0x70], rax
jmp 0x405076
mov rax, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rax, rcx
jbe 0x405076
mov rax, qword [rbp - 0x70]
add rax, 0xfffffffffffffffe
movzx ecx, word [rax]
cmp ecx, 0x22
jne 0x405076
mov rax, qword [rbp - 0x70]
add rax, 0xfffffffffffffffe
mov qword [rbp - 0x70], rax
mov eax, 0x30000
mov r11, rax
mov eax, 0x10000
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__controlfp
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleW
mov ecx, dword [rbp - 0x7c]
mov r9, rcx
mov rcx, qword [rbp - 0x70]
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00404abe
leave
ret
Function at 0x140002ac0
Capabilities:
Get socket status
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x560
mov rax, qword [0x14000d048]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov ebx, ecx
lea rsi, [0x140000000]
xor r9d, r9d
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
xor r8d, r8d
mov qword [rsp + 0x30], 1
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea ecx, [r9 + 0x40]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140002ca8
je 0x140002af2
mov ecx, ebx
call fcn.140003de0
cmp eax, 9
ja case.0x140002b4d.6
cdqe
mov ecx, dword [rsi + rax*4 + 0x2ce4]
add rcx, rsi
jmp rcx
lea r9, [rsp + 0x250]
mov ecx, ebx
lea r8, [rsp + 0x350]
lea rdx, [rsp + 0x450]
call fcn.140003c50
test eax, eax
js case.0x140002b4d.0
mov edx, 1
mov ecx, ebx
call fcn.140003140
jmp 0x140002c6e
lea rdx, [0x14000d340]
mov ecx, ebx
call fcn.140004270
jmp 0x140002c6e
lea r9, str.Clock_capture_server___v1.0
mov ecx, ebx
lea r8, [0x1400099f4]
lea rdx, [0x14000d340]
call fcn.140005160
jmp 0x140002c6e
cmp dword [0x14000d3a4], 0
jne 0x140002c22
mov edx, 8
lea rcx, str.hours
lea r8d, [rdx - 7]
call fcn.1400031b0
mov edx, 8
mov qword [0x14000d3a8], rax
lea rcx, str.minutes
lea r8d, [rdx - 7]
call fcn.1400031b0
mov edx, 8
mov qword [0x14000d3b0], rax
lea rcx, str.seconds
lea r8d, [rdx - 7]
call fcn.1400031b0
mov qword [0x14000d3b8], rax
mov dword [0x14000d3a4], 1
mov dword [rsp + 0x28], 1
xorps xmm3, xmm3
xorps xmm2, xmm2
mov dword [rsp + 0x20], 0x80000
xorps xmm1, xmm1
mov ecx, ebx
call fcn.140003fd0
jmp 0x140002c6e
mov ecx, ebx
call fcn.140002850
mov ecx, ebx
call fcn.140003a10
jmp 0x140002c6e
lea r9, str.Unknown_server_command.
mov edx, 3
lea r8, [0x14000d340]
mov ecx, ebx
call fcn.140003a70
test eax, eax
jns 0x140002af2
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140006930
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x140002c7b
lea r9, str.select_failed
mov edx, 4
lea r8, [0x14000d340]
mov ecx, ebx
call fcn.140003a70
xor r9d, r9d
lea r8, str.select
mov ecx, ebx
lea edx, [r9 + 4]
call fcn.140003a70
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140003360
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x80
cmp dword [0x14000d600], 0
mov rdi, rcx
jne 0x140003383
mov eax, 0xffffffff
add rsp, 0x80
pop rdi
ret
mov qword [rsp + 0x90], rbx
lea rcx, str.MAYA_IP_TYPE
mov qword [rsp + 0x78], rsi
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rsp + 0x70], r14
xor esi, esi
mov qword [rsp + 0x40], 1
mov dword [rsp + 0x6c], esi
movdqu xmmword [rsp + 0x4c], xmm0
mov dword [rsp + 0x48], 1
movdqu xmmword [rsp + 0x5c], xmm1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r14d, [rsi + 2]
mov rbx, rax
test rax, rax
je 0x140003413
mov rdx, rax
lea rcx, str.ipv6
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400033f5
mov dword [rsp + 0x44], reloc.WS2_32.dll_socket
jmp 0x140003413
mov rdx, rbx
lea rcx, str.ipv4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ecx, dword [rsp + 0x44]
test eax, eax
cmove ecx, r14d
mov dword [rsp + 0x44], ecx
mov rax, qword [0x14000d3c8]
test rax, rax
jne 0x14000342d
xor ecx, ecx
call fcn.140005930
mov qword [0x14000d3c8], rax
lea r9, [rsp + 0xa0]
mov rdx, rdi
lea r8, [rsp + 0x40]
xor ecx, ecx
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jns 0x1400034a3
mov qword [rsp + 0x30], rsi
lea rdi, [0x14000dc00]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.getaddrinfo_error::___s__n
mov rcx, rax
call fcn.140002800
mov eax, 0xffffffff
jmp 0x140003574
mov rax, qword [rsp + 0xa0]
mov ebx, 0xffffffff
mov rsi, rax
test rax, rax
je 0x140003593
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test eax, eax
js 0x140003505
mov rdx, qword [rsp + 0xa0]
movsxd rdi, eax
mov rcx, rdi
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14000351e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 0xffffffff
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x1400034c0
test ebx, ebx
js 0x140003593
mov qword [rsp + 0x98], rbp
mov edx, 5
movsxd rbp, ebx
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_listen]
mov edi, eax
mov rax, qword [0x14000d3d8]
test rax, rax
jne 0x140003558
mov ecx, r14d
call fcn.140005930
mov qword [0x14000d3d8], rax
mov rcx, rsi
call rax
test edi, edi
jns 0x14000358f
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov rbp, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x70]
add rsp, 0x80
pop rdi
ret
mov eax, ebx
jmp 0x14000356c
mov rax, qword [0x14000d3d8]
test rax, rax
jne 0x1400035ae
mov ecx, r14d
call fcn.140005930
mov qword [0x14000d3d8], rax
mov rcx, rsi
call rax
mov eax, ebx
jmp 0x140003574
Function at 0x140003980
Capabilities:
Get common file path
Set current directory

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000d048]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140006930
add rsp, 0x148
ret

Function at 0x140003c50
Capabilities:
Get hostname

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x1e8
mov rax, qword [0x14000d048]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp dword [0x14000d3e4], 1
mov rdi, r9
mov rbx, r8
movsxd r14, ecx
mov rsi, rdx
je 0x140003c8e
mov eax, 0xffffffff
jmp 0x140003dba
mov qword [rsp + 0x1e0], rbp
mov rbp, qword [0x14000d3e8]
test rsi, rsi
je 0x140003cbb
mov r8d, 0x100
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [rsi + 0xff], 0
test rbx, rbx
je 0x140003cdd
lea rdx, [rbp + 0x104]
mov r8d, 0x100
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [rbx + 0xff], 0
mov rbp, qword [rsp + 0x1e0]
test rdi, rdi
je 0x140003db8
mov rcx, r14
mov dword [rsp + 0x40], 0x80
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
mov ebx, dword [rsp + 0x40]
test ebx, ebx
jne 0x140003d2e
mov ecx, 1
mov edx, 0x100
mov word [rsp + 0x50], cx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostname]
jmp 0x140003db8
cmp word [rsp + 0x50], 1
jne 0x140003d46
mov edx, 0x100
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostname]
jmp 0x140003db8
mov rax, qword [0x14000d3d0]
test rax, rax
jne 0x140003d61
lea ecx, [rax + 1]
call fcn.140005930
mov qword [0x14000d3d0], rax
xor ecx, ecx
lea r8, [rsp + 0xd0]
mov dword [rsp + 0x30], ecx
mov r9d, 0x100
mov qword [rsp + 0x28], rcx
mov edx, ebx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x140003db5
mov r8d, 0x100
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [rdi + 0xff], bl
jmp 0x140003db8
mov byte [rdi], 0
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140006930
add rsp, 0x1e8
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004360
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0xd8
mov rax, qword [0x14000d048]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov edx, 0x3a
mov rsi, rcx
call sub.VCRUNTIME140.dll_strchr
xor r12d, r12d
test rax, rax
je 0x1400043b0
lea rbx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edx, eax
mov rcx, rbx
call fcn.140003360
mov edi, r12d
jmp 0x1400043bd
mov rcx, rsi
call fcn.1400035c0
mov edi, 1
test eax, eax
js 0x1400045b2
mov qword [rsp + 0xd0], r15
mov edx, 1
movsxd r15, eax
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x1400045aa
mov qword [rsp + 0x110], r13
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x118], r14
mov rcx, r15
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_accept]
mov r14, rax
test eax, eax
jns 0x140004428
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov byte [rsp + 0x30], 1
mov r13d, dword [rax]
test edi, edi
je 0x140004566
xor r9d, r9d
mov qword [rsp + 0x108], rbp
xor edx, edx
lea rax, str.Maya_Unix_Socket_Share
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xe9c
lea r8d, [r9 + 4]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
test rax, rax
je 0x140004534
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000452b
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x14000452b
mov edi, dword [rbx]
lea r12, [rax + 4]
xor eax, eax
mov r10d, 1
mov r9d, eax
nop
test r10d, edi
je 0x1400044f7
movsxd r11, r9d
mov r8, rsi
imul rax, r11, 0x6e
add rax, r12
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400044f3
inc rax
test ecx, ecx
jne 0x1400044e0
test edx, edx
je 0x140004505
add r10d, r10d
inc r9d
cmp r9d, 0x20
jl 0x1400044c0
jmp 0x140004534
cmp r9d, 0x20
jge 0x140004522
imul rax, r11, 0x6e
xor ecx, ecx
not r10d
mov byte [rax + r12], 0
mov word [rax + r12 + 0x6c], cx
and dword [rbx], r10d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 6
movsxd rcx, r14d
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 1
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbp, qword [rsp + 0x108]
jmp 0x14000458e
mov edx, 6
movsxd rcx, r14d
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 1
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], r13d
mov eax, r14d
mov r14, qword [rsp + 0x118]
mov r13, qword [rsp + 0x110]
mov r15, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140006930
add rsp, 0xd8
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005930
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x280
mov rax, qword [0x14000d048]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x14000d3c0], 0
lea rax, [0x1400052f0]
mov qword [rsp + 0x28], rax
lea rbx, str.getaddrinfo
lea rax, str.getnameinfo
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rax
movzx ebp, cx
lea rax, [0x1400056f0]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [fcn.140005290]
mov qword [rsp + 0x48], rax
jne 0x140005b09
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140005aff
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140005a26
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140005a88
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140005af7
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140005a88
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140005af7
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop word [rax + rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x140005ae6
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x140005aa0
mov rax, qword [rsp + 0x28]
mov qword [0x14000d018], rax
mov rax, qword [rsp + 0x38]
mov qword [0x14000d028], rax
mov rax, qword [rsp + 0x48]
mov qword [fcn.140005290], rax
jmp 0x140005aef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x14000d3c0], 1
movzx eax, bp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140006930
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x140005b40
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov rax, qword [0x14000d048]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r12, qword [rsp + 0x8c8]
mov rbx, rcx
mov dword [rsp + 0x24], r8d
xor ebp, ebp
mov dword [rsp + 0x28], edx
mov r8d, 0x401
mov qword [rsp + 0x30], rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x20], r9w
mov r15d, ebp
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x400
lea rcx, [rsp + 0x40]
mov r8, rbx
lea r13, [rsp + 0x40]
lea rsi, [rsp + 0x450]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov rcx, rbx
mov qword [r12], rbp
mov rdi, r12
mov byte [rsi], bpl
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
je 0x140005d03
cmp word [rax + 0x10], 2
jne 0x140005c57
cmp word [rax + 0x12], 4
jne 0x140005c57
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x140005c52
nop word [rax + rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.140005d70
mov qword [rdi], rax
test rax, rax
je 0x140005cce
add rbx, 8
lea rdi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x140005c20
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rsi
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
cmp qword [r12], rbp
jne 0x140005cd5
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rsi + rax], bpl
jne 0x140005c80
test rax, rax
je 0x140005d1d
mov r8, rsi
mov rax, r13
sub r8, r13
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140005cb3
inc rax
test ecx, ecx
jne 0x140005ca0
test edx, edx
je 0x140005d1d
inc r15d
cmp r15d, 0x10
je 0x140005d1d
mov rax, r13
mov r13, rsi
mov rsi, rax
jmp 0x140005be1
mov ebp, 8
jmp 0x140005d30
cmp dword [rsp + 0x8c0], ebp
je 0x140005d30
mov rcx, rsi
call fcn.140005e10
mov rcx, rax
mov rax, qword [r12]
mov qword [rax + 0x18], rcx
mov ecx, 8
mov rax, qword [r12]
cmp qword [rax + 0x18], rbp
cmove ebp, ecx
jmp 0x140005d30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x140005d2b
sub ecx, 1
je 0x140005d24
sub ecx, 1
jne 0x140005d2b
mov ebp, 0x2afb
jmp 0x140005d30
mov ebp, 0x2afa
jmp 0x140005d30
mov ebp, 0x2af9
mov eax, ebp
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140006930
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140006210
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rdi, rdx
mov ebx, r8d
test r8d, r8d
je 0x140006262
movsxd rbp, ecx
nop word [rax + rax]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x140006266
je 0x140006262
movsxd rcx, eax
add rdi, rcx
sub ebx, eax
jne 0x140006240
sub esi, ebx
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rdi, rdx
mov ebx, r8d
test r8d, r8d
je 0x1400064f1
movsxd rbp, ecx
nop word [rax + rax]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400064f5
sub ebx, eax
cdqe
add rdi, rax
test ebx, ebx
jne 0x1400064d0
sub esi, ebx
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000fc44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000fcbb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000fcbb
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18000fca8
cmp rbx, rcx
jae 0x18000fcbb
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18000fc93
cmp rbx, rcx
jae 0x18000fcbb
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x18000fcbd
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180025184
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
sub rsp, 0x118
mov rax, qword [0x180104020]
xor rax, rsp
mov qword [rsp + 0x100], rax
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x64
lea rax, [rsp + 0x30]
mov r8, rcx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
jmp 0x1800251fe
mov rcx, qword [rax + 0x60]
lea r8, [rsp + 0x30]
sub r8, rcx
movzx edx, word [rcx]
movzx r9d, word [rcx + r8]
sub edx, r9d
jne 0x1800251f7
add rcx, 2
test r9d, r9d
jne 0x1800251e1
test edx, edx
je 0x18002521f
mov rax, qword [rax]
cmp qword [rax + 0x30], 0
jne 0x1800251d5
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1800cac90
add rsp, 0x118
ret
mov rax, qword [rax + 0x30]
jmp 0x180025207

Function at 0x180025228
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x180104020]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov dword [rbp - 0x30], 0x64616f4c
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x2c], 0x7262694c
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x28], 0x41797261
mov byte [rbp - 0x24], 0
mov dword [rbp - 0x20], 0x4e52454b
mov dword [rbp - 0x1c], 0x41424c45
mov dword [rbp - 0x18], 0x642e4553
mov word [rbp - 0x14], 0x6c6c
mov byte [rbp - 0x12], 0
call fcn.1800252a8
mov rcx, rbx
call rax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800cac90
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x1800252e8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x1801747c8]
xor ebp, ebp
test rax, rax
je 0x18002535e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002535e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002535e
movzx ebx, word [rcx + 0x14]
movzx edi, bp
movzx esi, word [rcx + 6]
add rbx, 0x18
add rbx, rcx
cmp bp, si
jae 0x180025359
lea rdx, str..text
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x180025359
add rbx, 0x28
inc di
cmp di, si
jb 0x18002533a
mov rax, rbx
jmp 0x180025360
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret