joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400340c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140080048]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x140083268]
mov rbx, rax
test rax, rax
jne 0x14003424d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14002f6f0
nop
lea r8, [0x140083690]
cmp qword [0x1400836a8], 8
cmovae r8, qword [0x140083690]
mov r9, qword [0x1400836a0]
mov rcx, rax
call fcn.140007100
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x140083470]
cmp qword [0x140083488], 8
cmovae r8, qword [0x140083470]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400341f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400341f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034296
call fcn.140036d00
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140034249
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034244
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034290
call fcn.140036d00
xor al, al
jmp 0x14003426f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140036ce0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14003d874
nop
call fcn.14003d874
nop
int3
Function at 0x140037c10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140037c5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140037c5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140037c5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140037c5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140037c5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140037c5c
xor al, al
add rsp, 0x28
ret

Function at 0x1400419dc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14004186f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004186f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004186f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004186f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004186f
cmp dword [rcx + 0x84], 0xe
jbe 0x14004186f
cmp dword [rcx + 0xf8], 0
je 0x14004186f
mov ecx, ebx
call fcn.140041910
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140041700
cmp dword [rbp + 0x20], 0
je 0x1400418bc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400418c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140041808
Function at 0x1400589f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140058a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140058a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002943c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180024200
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180024228
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180024228
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x18002a830
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002a84d
mov eax, 1
cmp edx, eax
jne 0x18002a8a2
mov qword [0x180075668], rcx
add rsp, 0x28
ret
cmp qword [0x180060a70], 0
je 0x18002a89d
cmp qword [0x180060a78], 8
mov qword [rsp + 0x20], rbx
lea rbx, [0x180060a60]
mov rcx, rbx
cmovae rcx, qword [0x180060a60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [0x180060a78], 8
cmovae rbx, qword [0x180060a60]
xor eax, eax
mov qword [0x180060a70], rax
mov word [rbx], ax
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
Function at 0x1400110a0
Capabilities:
Encode data using base64 via winapi
Terminate process

Disassembly:
jmp 0x140014120
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x14003316c]
call fcn.14001166d
mov rax, qword [rbp + 0x110]
mov dword [rax], 0x3f40
mov rax, qword [rbp + 0x110]
movsxd rax, dword [rax]
mov qword [rbp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0xd8]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 8]
mov r8d, 0x40000001
mov edx, dword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x1400141f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CryptBinaryToStringA_failed_with_error_code__d
call fcn.1400112e9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbp + 8], 0
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400110d7
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x1400198d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x210
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x14002d018]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x140033548]
call fcn.14001166d
mov dword [rbp + 4], 1
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov byte [rbp + 0x64], 0
lea rax, [rbp + 0xb0]
lea rcx, [0x1400289d0]
mov rdi, rax
mov rsi, rcx
mov ecx, WSAGetLastError
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x84], eax
mov eax, 1
imul rax, rax, 0x24
lea rax, [rbp + rax + 0xb0]
mov r8d, 4
lea rdx, [rbp + 0x84]
mov rcx, rax
call fcn.140011311
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rbp + rax + 0xb0]
mov byte [rbp + 0x64], al
movsx eax, byte [rbp + 0x64]
add eax, 4
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x210]
call fcn.1400116a9
mov dword [rbp + 0x24], eax
xor r9d, r9d
mov r8d, 0x2000
mov rdx, qword [rbp + 0x218]
mov rcx, qword [rbp + 0x210]
call fcn.1400111f9
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400272a0]
call fcn.140011582
mov eax, edi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.140011307
lea rsp, [rbp + 0x1f0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011203
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x14001abe0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x210
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x14002d018]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x140033548]
call fcn.14001166d
mov dword [rbp + 4], 1
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov byte [rbp + 0xa4], 0
lea rax, [rbp + 0xd0]
lea rcx, [0x140028970]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x4a
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x64], eax
movzx eax, word [rbp + 0x64]
mov word [rbp + 0x84], ax
mov eax, 1
imul rax, rax, 0x1e
lea rax, [rbp + rax + 0xd0]
mov r8d, 2
lea rdx, [rbp + 0x84]
mov rcx, rax
call fcn.140011311
mov eax, 1
imul rax, rax, 2
lea rax, [rbp + rax + 0xd0]
mov r8d, 2
mov rdx, rax
lea rcx, [rbp + 0x24]
call fcn.140011311
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rbp + rax + 0xd0]
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0xa4]
add eax, 4
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0xd0]
mov rcx, qword [rbp + 0x210]
call fcn.1400116a9
mov dword [rbp + 0x44], eax
xor r9d, r9d
mov r8d, 0x2000
mov rdx, qword [rbp + 0x218]
mov rcx, qword [rbp + 0x210]
call fcn.1400111f9
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140011582
mov eax, edi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.140011307
lea rsp, [rbp + 0x1f0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001122b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
jmp 0x140012490
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x14002d018]
xor rax, rbp
mov qword [rbp + 0x408], rax
lea rcx, [0x14003316c]
call fcn.14001166d
lea rdx, [rbp + 0x70]
mov cx, 0x202
call fcn.1400113bb
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0
je 0x140012515
mov edx, dword [rbp + 0x224]
lea rcx, str.WSAStartup_function_failed_with_error:__d_n
call fcn.140011032
mov eax, 1
jmp 0x140012662
mov r8d, 6
mov edx, 1
mov ecx, 2
call fcn.1400111c7
mov qword [rbp + 0x248], rax
cmp qword [rbp + 0x248], 0xffffffffffffffff
jne 0x14001255d
call fcn.140011636
mov edx, eax
lea rcx, str.socket_function_failed_with_error:__ld_n
call fcn.140011032
call fcn.1400112e4
mov eax, 1
jmp 0x140012662
mov r8d, recv
xor edx, edx
lea rcx, [rbp + 0x38]
call fcn.1400114ec
mov r8d, socket
xor edx, edx
lea rcx, [rbp + 8]
call fcn.1400114ec
mov r8d, socket
mov rdx, qword [rbp + 0x430]
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_wcstombs]
mov eax, 2
mov word [rbp + 0x268], ax
lea rcx, [rbp + 8]
call fcn.140011299
mov dword [rbp + 0x26c], eax
movzx ecx, word [rbp + 0x438]
call fcn.1400115eb
mov word [rbp + 0x26a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x268]
mov rcx, qword [rbp + 0x248]
call fcn.140011348
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0xffffffff
jne 0x140012639
call fcn.140011636
mov edx, eax
lea rcx, str.____ConnectSocket:_connect_function_failed_with_error:__ld_n
call fcn.140011032
mov rcx, qword [rbp + 0x248]
call fcn.140011451
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0xffffffff
jne 0x14001262d
call fcn.140011636
mov edx, eax
lea rcx, str.closesocket_function_failed_with_error:__ld_n
call fcn.140011032
call fcn.1400112e4
mov eax, 1
jmp 0x140012662
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, dword [rbp + 0x438]
lea rdx, [rbp + 8]
lea rcx, str.___Connected_to_the_HTTP_server_with_ip__s_and_port__d_n
call fcn.1400112e9
mov rax, qword [rbp + 0x248]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140011582
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.140011307
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret
Function at 0x140011348
Capabilities:
Connect socket

Disassembly:
jmp 0x14001f576
jmp qword [sym.imp.WS2_32.dll_connect]

Function at 0x140011361
Capabilities:
Decode data using base64 via winapi
Terminate process

Disassembly:
jmp 0x140013ff0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x40]
lea rcx, [0x14003316c]
call fcn.14001166d
mov rax, qword [rbp + 0x110]
mov dword [rax], 0x3f40
mov rax, qword [rbp + 0x110]
movsxd rax, dword [rax]
mov qword [rbp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0xd8]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 8], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rbp + 0x110]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 8]
mov r8d, 1
mov edx, dword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1400140d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CryptStringToBinaryA_failed_with_error_code__d
call fcn.1400112e9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbp + 8], 0
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011398
Capabilities:
Terminate process

Disassembly:
jmp 0x14001b510
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400113d4
Capabilities:
Decode data using base64 via winapi
Terminate process

Disassembly:
jmp 0x140017020
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x40]
lea rcx, [0x140033482]
call fcn.14001166d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rbp + 0xf8]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0xf0]
mov r8d, 1
mov edx, dword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x1400170ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CryptStringToBinaryW_failed_with_error_code__d_n
call fcn.1400112e9
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400113f2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
jmp 0x1400170e0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x14002d018]
xor rax, rbp
mov qword [rbp + 0x408], rax
lea rcx, [0x140033548]
call fcn.14001166d
lea rdx, [rbp + 0x70]
mov cx, 0x202
call fcn.1400113bb
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0
je 0x140017165
mov edx, dword [rbp + 0x224]
lea rcx, str.WSAStartup_function_failed_with_error:__d_n
call fcn.140011032
mov eax, 1
jmp 0x1400172b2
mov r8d, 6
mov edx, 1
mov ecx, 2
call fcn.1400111c7
mov qword [rbp + 0x248], rax
cmp qword [rbp + 0x248], 0xffffffffffffffff
jne 0x1400171ad
call fcn.140011636
mov edx, eax
lea rcx, str.socket_function_failed_with_error:__ld_n
call fcn.140011032
call fcn.1400112e4
mov eax, 1
jmp 0x1400172b2
mov r8d, recv
xor edx, edx
lea rcx, [rbp + 0x38]
call fcn.1400114ec
mov r8d, socket
xor edx, edx
lea rcx, [rbp + 8]
call fcn.1400114ec
mov r8d, socket
mov rdx, qword [rbp + 0x430]
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_wcstombs]
mov eax, 2
mov word [rbp + 0x268], ax
lea rcx, [rbp + 8]
call fcn.140011299
mov dword [rbp + 0x26c], eax
movzx ecx, word [rbp + 0x438]
call fcn.1400115eb
mov word [rbp + 0x26a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x268]
mov rcx, qword [rbp + 0x248]
call fcn.140011348
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0xffffffff
jne 0x140017289
call fcn.140011636
mov edx, eax
lea rcx, str.____ConnectSocket:_connect_function_failed_with_error:__ld_n
call fcn.140011032
mov rcx, qword [rbp + 0x248]
call fcn.140011451
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0xffffffff
jne 0x14001727d
call fcn.140011636
mov edx, eax
lea rcx, str.closesocket_function_failed_with_error:__ld_n
call fcn.140011032
call fcn.1400112e4
mov eax, 1
jmp 0x1400172b2
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, dword [rbp + 0x438]
lea rdx, [rbp + 8]
lea rcx, str.___Connected_to_the_SMB_server_with_ip__s_and_port__d_n
call fcn.1400112e9
mov rax, qword [rbp + 0x248]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140011582
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.140011307
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret
Function at 0x140011474
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001de10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001de30
xor al, al
jmp 0x14001deb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001de43
xor al, al
jmp 0x14001deb1
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 0x14001de6d
xor al, al
jmp 0x14001deb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001de81
xor al, al
jmp 0x14001deb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001de93
xor al, al
jmp 0x14001deb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001deaf
xor al, al
jmp 0x14001deb1
mov al, 1
add rsp, 0x38
ret
Function at 0x416420
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4165ab
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x006530d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416485
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416494
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4164b3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4164c3
cmp rbx, 0x1000
jae 0x41648b
jmp 0x41652d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4164d5
xor edx, edx
jmp 0x416524
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x006530d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4164b9
jmp 0x4164a8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x006530d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x0051a547]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x0051abcf]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0051db1a]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS