joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14022a5c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x1a0]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
xor r13d, r13d
mov rax, r8
mov r12, r9
shl rax, 5
lea rbx, [rcx + 0x238]
mov r14, qword [rcx + r8*8 + 0x1f0]
add rbx, rax
mov rax, qword [rcx + 0x418]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14022a6e6
lea rax, [0x14022a470]
cmp qword [rcx + r8*8 + 0x218], rax
jne 0x14022a6e6
cmp qword [rbx], r13
je 0x14022a659
test rdi, rdi
je 0x14022a6e6
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.14024ac50
cmp eax, 0xffffffff
je 0x14022a6e6
test al, 1
je 0x14022a6e6
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14022a6b0
mov eax, dword [rbp + 0x71c]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.140299e90]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x14022a6d3
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x14022a6e2
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14022a6e6
add qword [rbx + 0x10], rcx
jmp 0x14022a6e6
mov dword [rsi], SQLFreeHandle
mov rax, 0xffffffffffffffff
jmp 0x14022a751
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], r13d
cmp rbx, 0xffffffffffffffff
jne 0x14022a74e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14022a71e
mov rbx, r13
mov dword [rsi], 0x51
jmp 0x14022a74e
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1401af4d0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.14022a0d0
mov dword [rbp + 0xdcc], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140283120
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14023a910
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x80
mov rbp, r9
call fcn.140285450
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14023a994
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1401af4d0
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14023a9da
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.14023a510
test al, al
jne 0x14023a9e5
call fcn.14029c47c
mov ebx, dword [rax]
call fcn.14029c47c
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1401af4d0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14022a0d0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140283120
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14023c300
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14023c366
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14023c349
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14023c343
shr ax, 8
cmp al, 2
je 0x14023c366
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140283120
add rsp, 0x1e8
ret
mov qword [rsp + 0x200], rsi
lea rcx, [0x1402d8fe8]
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14023c399
mov qword [0x1404526b8], rsi
jmp 0x14023c52d
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x140318960]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, [0x1402f8878]
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1402d29ac]
call fcn.1402a3544
test rax, rax
je 0x14023c3fd
mov rcx, rbx
test rbp, rbp
je 0x14023c3ef
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14023c4ec
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14023c4ec
test rbp, rbp
je 0x14023c42c
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14023c42c
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14023c4ec
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x14023c4e4
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.140299e90]
mov rdi, rax
test rax, rax
je 0x14023c4db
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14023c4db
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14023c480
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x14023c492
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14023c4b0
mov rcx, rdi
test rbp, rbp
je 0x14023c4d2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14023c4d8
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.140299e88]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1404526b8], rsi
test rsi, rsi
je 0x14023c52d
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1404526b0]
test rax, rax
cmovne rcx, rax
mov qword [0x1404526b0], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14025c7a0
test al, al
lea rcx, [0x140454c48]
setne byte [0x140454c42]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140283120
add rsp, 0x1e8
ret
Function at 0x14023e8e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
lea rax, vtable.lrpc_client_impl.0
mov rbx, rcx
mov qword [rcx], rax
lea rax, vtable.lrpc_client_impl.1.0
mov qword [rcx + 8], rax
add rcx, 0x10
call fcn.14001cac0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 0x38], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 0x40], eax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14023edb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor edi, edi
mov rbx, rcx
mov ecx, dword [rcx + 0x38]
mov eax, edi
cmp ecx, 0xffffffff
je 0x14023edea
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0x17], edi
test rax, rax
jne 0x14023ef3e
cmp dword [rbx + 0x38], 0xffffffff
je 0x14023ef45
cmp dword [rbx + 0x3c], 0xffffffff
je 0x14023ef45
cmp dword [rbx + 0x40], 0xffffffff
je 0x14023ef45
lea rcx, [rbx + 0x10]
mov dword [rbp + 0x47], 0x101
mov dword [rbp + 0x2b], edi
mov dword [rbp + 0x3f], reloc.ODBC32.dll_SQLExecute
mov dword [rbp + 0x43], 2
call fcn.14002aa20
test rax, rax
je 0x14023ee5f
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], di
jne 0x14023ee45
add cx, cx
mov word [rbp + 0x27], cx
add cx, 2
mov word [rbp + 0x29], cx
jmp 0x14023ee62
mov dword [rbp + 0x27], edi
mov qword [rbp + 0x2f], rax
lea rdx, [rbp + 0x27]
mov rax, qword [0x140452498]
xor r9d, r9d
test rax, rax
je 0x14023eeb9
lea rcx, [rbp + 0x37]
mov qword [rbp + 0x37], 0xffffffffff676980
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x48], rdi
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call rax
mov dword [rbp + 0x17], 0x148
jmp 0x14023eedf
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x17]
mov qword [rsp + 0x30], rdi
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x20], rdi
call qword [0x140452440]
test eax, eax
js 0x14023ef45
mov rcx, qword [rbp + 0x1f]
call qword [0x140452448]
cmp byte [0x1404526c0], 0
mov eax, gethostname
mov ecx, dword [rbx + 0x38]
mov edi, 0x28
cmovne edi, eax
mov eax, dword [rbp + 0x17]
sub eax, edi
mov dword [rbp + 0x17], eax
cmp ecx, 0xffffffff
je 0x14023ef1e
mov rdx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [rbp + 0x17]
mov ecx, dword [rbx + 0x3c]
cmp ecx, 0xffffffff
je 0x14023ef2e
mov edx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [rbx + 0x40]
cmp ecx, 0xffffffff
je 0x14023ef3e
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
jmp 0x14023ef47
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1402400d0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rdi, rcx
lea rax, vtable.lrpc_server_impl.0
mov qword [rcx], rax
add rcx, 8
mov edx, 0x3e8
call fcn.140031e90
nop
lea rbx, [rdi + 0x40]
mov qword [rsp + 0x48], rbx
xor esi, esi
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov rcx, rbx
call fcn.14003f6d0
mov qword [rbx], rax
lea rcx, [rdi + 0x50]
call fcn.140031ed0
nop
lea rbx, [rdi + 0x88]
mov qword [rsp + 0x48], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov rcx, rbx
call fcn.1400f42b0
mov qword [rbx], rax
lea rcx, [rdi + 0x98]
call fcn.14001cac0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rdi + 0xc0], eax
mov qword [rdi + 0xc8], rsi
mov qword [rdi + 0xd8], rsi
mov dword [rdi + 0xd0], esi
mov qword [rdi + 0xe0], rsi
mov qword [rdi + 0xe8], rsi
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1402402d0
Capabilities:
Terminate thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x190
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
lea rax, vtable.lrpc_server_impl.0
mov qword [rcx], rax
xor edi, edi
mov ebp, edi
xchg qword [rcx + 0xc8], rbp
test rbp, rbp
je 0x140240368
mov esi, edi
cmp dword [rcx + 0xd0], edi
jbe 0x140240368
nop dword [rax]
xor edx, edx
mov r8d, 0x148
lea rcx, [rsp + 0x30]
call fcn.140285450
nop
movzx eax, word [rbx + 0xe0]
mov word [rsp + 0x32], ax
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [0x140452458]
nop
inc esi
cmp esi, dword [rbx + 0xd0]
jb 0x140240330
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
je 0x1402403e9
mov r9d, 0x1388
mov r8d, 1
mov ecx, dword [rbx + 0xd0]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
nop
cmp eax, 0x102
jne 0x1402403dc
mov ecx, dword [rbx + 0xd0]
test ecx, ecx
je 0x1402403c2
nop
mov eax, edi
mov rcx, qword [rbx + 0xd8]
xor edx, edx
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
inc edi
mov ecx, dword [rbx + 0xd0]
cmp edi, ecx
jb 0x1402403a0
mov r9d, 0x1388
mov r8d, 1
mov rdx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
nop
mov rcx, qword [rbx + 0xd8]
call fcn.140283144
nop
test rbp, rbp
je 0x1402403f8
mov rcx, rbp
call qword [0x140452438]
nop
mov ecx, dword [rbx + 0xc0]
call qword [sym.imp.KERNEL32.dll_TlsFree]
nop
lea rcx, [rbx + 0x98]
call fcn.14001d440
nop
mov r9, qword [rbx + 0x88]
mov r8, qword [r9]
lea rdx, [rsp + 0x28]
lea rcx, [rbx + 0x88]
call fcn.140242140
nop
mov edx, gethostname
mov rcx, qword [rbx + 0x88]
call fcn.140283144
nop
lea rcx, [rbx + 0x50]
call fcn.140031f20
nop
lea rcx, [rbx + 0x40]
call fcn.1400432a0
nop
mov edx, 0x30
mov rcx, qword [rbx + 0x40]
call fcn.140283144
nop
lea rcx, [rbx + 8]
call fcn.140031f20
nop
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140283120
nop
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140240670
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r15, r9
mov r12, r8
mov r14, rdx
mov rbp, rcx
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor ebx, ebx
mov esi, ebx
mov edi, dword [rax + 4]
cmp dil, 0xff
je 0x14024079f
and edi, 0xffffff00
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x28]
call fcn.140031dd0
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
cmp rax, rcx
je 0x140240739
cmp dword [rax + 0x20], edi
je 0x140240735
mov rdx, qword [rax + 0x10]
cmp byte [rdx + 0x19], bl
je 0x140240707
mov rdx, qword [rax + 8]
cmp byte [rdx + 0x19], bl
jne 0x140240702
nop dword [rax]
cmp rax, qword [rdx + 0x10]
jne 0x140240702
mov rax, rdx
mov rdx, qword [rdx + 8]
cmp byte [rdx + 0x19], bl
je 0x1402406f0
mov rax, rdx
jmp 0x14024072e
mov rax, rdx
mov r8, qword [rdx]
cmp byte [r8 + 0x19], bl
jne 0x14024072e
nop dword [rax]
nop word [rax + rax]
mov rax, r8
mov rdx, qword [r8]
mov r8, rdx
cmp byte [rdx + 0x19], bl
je 0x140240720
cmp rax, rcx
jne 0x1402406d5
jmp 0x140240739
mov rsi, qword [rax + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140031f00
test rsi, rsi
je 0x14024079f
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x38]
mov ecx, dword [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rsp + 0x88], rbx
lea r9, [rsp + 0x88]
mov r8, r14
mov rdx, rsi
mov rcx, rbp
call fcn.140242100
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor edx, edx
mov ecx, dword [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [rsp + 0x88]
jmp 0x1402407d4
mov ecx, 0x20
call fcn.14028314c
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1402407c3
mov edx, 8
mov rcx, rax
call fcn.14025ce40
mov rbx, rax
mov rax, qword [rbx]
mov edx, 0xc000001c
mov rcx, rbx
call qword [rax + 0x28]
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1402407f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx + 0xc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 8]
add rsp, 0x28
ret

Function at 0x140240810
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx + 0xc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 0x10]
add rsp, 0x28
ret
Function at 0x140242530
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x37], rax
movzx r15d, dl
mov rdi, rcx
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
xor r14d, r14d
mov dword [rbp - 0x5d], r14d
mov dword [rbp - 0x69], r14d
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
lea edx, [rax + 1]
lea rcx, [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
lea rcx, [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea rcx, [rdi + 0x98]
call fcn.14002aa20
test rax, rax
je 0x14024260b
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x1402425f0
add cx, cx
mov word [rbp - 0x61], cx
add cx, 2
mov word [rbp - 0x5f], cx
jmp 0x14024260f
mov dword [rbp - 0x61], r14d
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x51], 0x30
mov qword [rbp - 0x49], r14
mov dword [rbp - 0x39], 0x40
lea rax, [rbp - 0x61]
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 9]
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x29], r14
mov dword [rsp + 0x20], r14d
mov r9d, 0x148
xor r8d, r8d
lea rdx, [rbp - 0x51]
lea rcx, [rdi + 0xc8]
call qword [0x140452460]
test eax, eax
jns 0x140242666
mov eax, 0xffffffff
jmp 0x14024274d
mov dword [rdi + 0xe0], 0x28
mov eax, 0xffffffd8
cmp byte [0x1404526c8], r14b
je 0x14024268d
mov dword [rdi + 0xe0], SQLMoreResults
mov eax, 0xffffffc8
add eax, 0x148
mov dword [rdi + 0xe4], eax
mov rax, qword [rdi + 0xc8]
xchg qword [rdi + 0xc8], rax
mov dword [rdi + 0xd0], 8
mov ecx, 0x40
call fcn.140283754
mov qword [rdi + 0xd8], rax
mov esi, r14d
cmp dword [rdi + 0xd0], r14d
jbe 0x14024271e
nop dword [rax]
mov eax, esi
lea rbx, [rax*8]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9, rdi
lea r8, [0x140242780]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rdi + 0xd8]
mov qword [rbx + rcx], rax
mov rax, qword [rdi + 0xd8]
cmp qword [rbx + rax], r14
je 0x140242776
inc esi
cmp esi, dword [rdi + 0xd0]
jb 0x1402426d0
test r15b, r15b
je 0x14024274b
mov ecx, SQLDescribeColW
call fcn.14028314c
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140242744
mov rdx, rdi
mov rcx, rax
call fcn.14025d020
mov r14, rax
mov qword [rdi + 0xe8], r14
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov eax, 0xfffffffe
jmp 0x14024274d
Function at 0x14024c2b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [rdx], 0
mov r9, r8
cmp dword [rcx + 4], 2
mov r8, rdx
jne 0x14024c2d1
mov rdx, qword [rcx + 0x20]
mov ecx, 2
add rdx, 4
jmp fcn.14025c5a0
ret
Function at 0x1402572b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.14024adf0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140229c20
mov rcx, rdi
mov rsi, rax
call fcn.140229c20
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140257360
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14024adf0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14024ae80
cmp rax, 0x3e8
ja 0x140257391
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140257310
test rsi, rsi
je 0x14025736d
mov rcx, rsi
call fcn.140299e88
test rbx, rbx
je 0x14025737a
mov rcx, rbx
call fcn.140299e88
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14025739e
mov rcx, rsi
call fcn.140299e88
test rbx, rbx
je 0x1402573ab
mov rcx, rbx
call fcn.140299e88
mov eax, 1
jmp 0x14025737c
Function at 0x140257630
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebp, r13d
lea r9, [rsp + 0x68]
mov r14d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r15d, eax
test eax, eax
jne 0x1402577af
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14025778f
mov qword [rsp + 0x58], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14025769e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x140257690
inc rbx
jmp 0x1402576a1
mov rbx, r13
cmp dword [rdi + 4], 2
jne 0x140257739
cmp qword [rdi + 0x20], r13
je 0x140257739
cmp qword [rdi + 0x10], 0x10
jb 0x140257739
lea rcx, [rbx + 0x40]
call qword [fcn.140299e90]
mov rsi, rax
test rax, rax
je 0x140257748
mov ecx, dword [rdi]
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + reloc.ODBC32.dll_SQLFreeStmt], 0x10
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
mov rax, qword [rdi + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
test rbx, rbx
je 0x140257726
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, 0x10
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.140284ff0
test rbp, rbp
cmove rbp, rsi
test r14, r14
je 0x140257736
mov qword [r14 + 0x28], rsi
mov r14, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140257680
jmp 0x14025774e
mov r15d, 8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x140257763
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r15d, r15d
je 0x14025778a
test rbp, rbp
je 0x140257785
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.140299e88]
mov rbp, rbx
test rbx, rbx
jne 0x140257770
mov rbp, r13
jmp 0x14025779e
test rbp, rbp
jne 0x14025779e
mov r15d, 0x2af9
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov qword [r12], rbp
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x1402592f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.14029c570]
mov rdi, rax
test rax, rax
je 0x14025936d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140259398
cmp ebx, esi
je 0x140259398
cmp ebx, 0x8000
ja 0x140259398
cmp ebx, esi
jb 0x140259393
mov edx, ebx
mov rcx, rdi
call qword [fcn.14029c570]
mov rdi, rax
test rax, rax
jne 0x140259330
mov rcx, rbp
call qword [fcn.140299e88]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140259378
mov rcx, rdi
jmp 0x140259370