joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140171541
Capabilities:
Resolve dns

Disassembly:
jmp 0x14026aad0
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x14026ac94
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x14026ac74
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14026ab2d
lea ebp, [rax + 0xe]
jmp 0x14026ab39
cmp eax, 0x17
jne 0x14026abe1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x14026abe1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14026abe1
cmp rax, rbp
jb 0x14026abe1
mov ecx, Ordinal_50
call qword [fcn.140171393]
mov rdi, rax
test rax, rax
je 0x14026ac1c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.140171393]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14026ac0b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140170452
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14026abce
call qword [case.0x140242fb9.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14026abf0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x14026abde
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14026ab20
jmp 0x14026ac22
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.14016f1e7]
mov rcx, rdi
call qword [fcn.14016f1e7]
jmp 0x14026ac22
mov rcx, rdi
mov r14d, 8
call qword [fcn.14016f1e7]
jmp 0x14026ac22
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x14026ac37
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14026ac6f
test rbx, rbx
je 0x14026ac6a
mov rcx, qword [rbx + 0x20]
call qword [fcn.14016f1e7]
mov rcx, qword [rbx + 0x18]
call qword [fcn.14016f1e7]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14016f1e7]
mov rbx, rdi
test rdi, rdi
jne 0x14026ac41
mov rbx, r13
jmp 0x14026ac83
test rbx, rbx
jne 0x14026ac83
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1401719ab
Capabilities:
Get geographical location

Disassembly:
jmp 0x1402cfc50
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1402cfc8d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140174d09
add rsp, 0x58
ret

Function at 0x140171b18
Capabilities:
Set environment variable

Disassembly:
jmp 0x1404365d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x14017208b
Capabilities:
Parse pe header

Disassembly:
jmp 0x14031f3e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14031f400
xor al, al
jmp 0x14031f481
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14031f413
xor al, al
jmp 0x14031f481
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14031f43d
xor al, al
jmp 0x14031f481
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14031f451
xor al, al
jmp 0x14031f481
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14031f463
xor al, al
jmp 0x14031f481
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14031f47f
xor al, al
jmp 0x14031f481
mov al, 1
add rsp, 0x38
ret

Function at 0x140172432
Capabilities:
Get common file path

Disassembly:
jmp 0x140424980
push rdi
sub rsp, 0x270
mov rax, qword [0x1405033c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x104
ja 0x1404249d9
lea rcx, [rsp + 0x50]
call fcn.140424770
jmp 0x140424aac
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov dword [rsp + 0x20], Ordinal_41
lea r9, [0x1404c1480]
mov r8d, 2
mov edx, 2
mov ecx, eax
call fcn.1401759a7
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14016f499
lea rcx, [rsp + 0x38]
call fcn.140174bba
test rax, rax
jne 0x140424a41
call fcn.14016f2e1
mov dword [rax], ntohs
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.14017308f
mov eax, dword [rsp + 0x40]
jmp 0x140424aac
lea rcx, [rsp + 0x38]
call fcn.140174bba
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140424a88
call fcn.14016f2e1
mov dword [rax], ntohs
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.14017308f
mov eax, dword [rsp + 0x48]
jmp 0x140424aac
lea rcx, [rsp + 0x38]
call fcn.140174bba
mov rcx, rax
call fcn.140424770
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.14017308f
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401703e9
add rsp, 0x270
pop rdi
ret
Function at 0x140172ad6
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1402a5030
mov r10, rcx
test rdx, rdx
je 0x1402a5095
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
and r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1402a5040
ret

Function at 0x140172eb4
Capabilities:
Terminate process

Disassembly:
jmp 0x140342b70
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140342b9e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140174313
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140173837
Capabilities:
Create directory

Disassembly:
jmp 0x1402d9bc0
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1405033c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1402d9bfd
mov byte [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x24]
jmp 0x1402d9c72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xb7
jne 0x1402d9c60
mov edx, 1
mov ecx, 2
call fcn.14016c46a
mov r9d, 0xffffffff
mov r8d, eax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.14016e841
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1402d9c60
mov edx, reloc.WS2_32.dll_recv
mov ecx, dword [rsp + 0x48]
call fcn.14016d126
movzx eax, al
test eax, eax
jne 0x1402d9c60
mov dword [rsp + 0x20], 0xb7
mov byte [rsp + 0x2c], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401703e9
add rsp, 0x68
ret
Function at 0x140173dbe
Capabilities:
Get common file path

Disassembly:
jmp 0x140258a10
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x14048a5b8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140258a3a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14048a5dc]
mov rcx, rbx
mov r14, rax
call fcn.14016ed3c
test rax, rax
je 0x140258a9d
mov rcx, rbx
test r14, r14
je 0x140258a87
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140258ad5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140258ad5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140258b98
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140258b00
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.140171393]
mov rdi, rax
test rax, rax
je 0x140258b8a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140258b8a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140258b30
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140258b44
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140258b60
mov rcx, rdi
test r14, r14
je 0x140258b81
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140258b87
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14016f1e7]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1401742d7
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140256a60
push rbx
sub rsp, 0x30
mov eax, dword [0x140506c0c]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140256abd
xor edx, edx
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
call fcn.1401728ba
test al, al
je 0x140256ab1
mov dword [0x140506c0c], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140506c0c], 1
jmp 0x140256ac2
cmp eax, 2
je 0x140256b14
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140256af3
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140256b14
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1401743e0
Capabilities:
Print debug messages

Disassembly:
jmp 0x14040c1e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140174615
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140341be0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140341530
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140341c29
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140533020]
jmp 0x140341c38
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1401747f0
Capabilities:
Set environment variable

Disassembly:
jmp 0x140446cd0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14016f41c
lea rcx, [rsp + 0x48]
call fcn.14016f41c
call fcn.140170b50
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14016ee9f
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140446d3f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14016fcc8
lea rcx, [rsp + 0x78]
call fcn.14016fcc8
mov eax, dword [rsp + 0x24]
jmp 0x140446dd0
call fcn.140170b50
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14016ee9f
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140446d86
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14016fcc8
lea rcx, [rsp + 0x78]
call fcn.14016fcc8
mov eax, dword [rsp + 0x2c]
jmp 0x140446dd0
lea rcx, [rsp + 0x48]
call fcn.14016f237
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14016f237
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14016fcc8
lea rcx, [rsp + 0x78]
call fcn.14016fcc8
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140174c5a
Capabilities:
Create thread

Disassembly:
jmp 0x1403dec00
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x1403dec2c
mov dword [rsp + 0x30], 1
jmp 0x1403dec34
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1403dec7d
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x140497658]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, reloc.WLDAP32.dll_Ordinal_200
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.14016cfb9
cmp eax, 1
jne 0x1403dec7d
int3
cmp dword [rsp + 0x34], 0
jne 0x1403decbf
call fcn.14016f2e1
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
mov qword [rsp + 0x20], 0
mov r9d, reloc.WLDAP32.dll_Ordinal_200
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.1401738c3
xor eax, eax
jmp 0x1403dedc7
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1403de6f0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1403de4f0
lea rcx, [rsp + 0x40]
call fcn.1403de560
movzx eax, al
test eax, eax
jne 0x1403ded0f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.1403de540
mov rax, qword [rsp + 0x50]
jmp 0x1403dedc7
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
call fcn.1403de8a0
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x1403de2c0]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1403ded8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e959
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.1403de540
mov rax, qword [rsp + 0x58]
jmp 0x1403dedc7
cmp qword [rsp + 0xa8], 0
je 0x1403deda4
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.1403de860
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.1403de540
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x14017572c
Capabilities:
Move file

Disassembly:
jmp 0x1402db360
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, 3
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1402db38c
xor eax, eax
jmp 0x1402db392
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
ret
Function at 0x1401cc160
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x1405033c0]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x140531136]
call fcn.140174d6d
nop
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x18]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x1a8]
call fcn.14016f05c
lea rcx, [rbp + 0x98]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1401cc24d
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14017345e
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1401703e9
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x14027a5c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1405033c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x260]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14027a63a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140172cd4
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x14027a65f
lea rdx, str.Error_accept__ing_server_connect
call fcn.1401759e8
lea eax, [rbx + 0x1f]
jmp 0x14027a6d8
lea rdx, str.Connection_accepted_from_server_n
call fcn.140174052
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.14016db1c
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x14027a6d6
mov dl, 1
mov rcx, rsi
call fcn.140173373
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140173373
test ebx, ebx
je 0x14027a6d6
mov rcx, rdi
call fcn.14027af00
mov eax, Ordinal_45
jmp 0x14027a6d8
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401703e9
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14027c5e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xe99], 0
jne 0x14027c605
cmp dword [rax + 0x9f0], 0
je 0x14027c631
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14027c631
lea rdx, str.MDTM__s
call fcn.14016e4ea
test eax, eax
jne 0x14027c63e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027dd30
add rsp, 0x20
pop rbx
ret
Function at 0x14027d110
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x14027d148
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x850], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027d2b0
cmp byte [rcx + 0xe9e], 0
je 0x14027d160
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027e320
cmp byte [rcx + 0xea1], 0
je 0x14027d201
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x14027d1bb
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x14027d19e
cmp byte [rcx + 0xe9d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.14016e4ea
test eax, eax
je 0x14027d1f1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x14027d1e1
lea rdx, str.PRET_STOR__s
call fcn.14016e4ea
test eax, eax
je 0x14027d1f1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.14016e4ea
test eax, eax
jne 0x14027d20e
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027e270
add rsp, 0x20
pop rbx
ret

Function at 0x14027d640
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x14027d68d
cmp qword [rcx + 0x820], 0
je 0x14027d68d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.14016e4ea
test eax, eax
jne 0x14027d697
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14027d110
add rsp, 0x20
pop rbx
ret

Function at 0x14027d9f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x14027da3c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14027da3c
lea rdx, str.SIZE__s
call fcn.14016e4ea
test eax, eax
jne 0x14027da49
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027d640
add rsp, 0x20
pop rbx
ret

Function at 0x14027dd30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x14027dd88
cmp qword [rcx + 0x820], 0
je 0x14027dd88
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x14027dd88
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.14027b2e0
jmp fcn.14027d9f0