joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400116c2
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400211e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140021200
xor al, al
jmp 0x140021281
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140021213
xor al, al
jmp 0x140021281
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 0x14002123d
xor al, al
jmp 0x140021281
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140021251
xor al, al
jmp 0x140021281
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140021263
xor al, al
jmp 0x140021281
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002127f
xor al, al
jmp 0x140021281
mov al, 1
add rsp, 0x38
ret
Function at 0x140011965
Capabilities:
Write file on windows

Disassembly:
jmp 0x140019300
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140030018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x14003a068]
call fcn.140011983
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140019366
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001936d
mov al, 1
jmp 0x1400194c7
call fcn.14001129e
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.14001129e
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140011802
movzx eax, al
test eax, eax
je 0x1400193c8
xor al, al
jmp 0x1400194c7
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14001942d
cmp dword [rbp + 0x194], 1
je 0x140019438
cmp dword [rbp + 0x194], 3
je 0x1400194b6
jmp 0x1400194c5
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140019488
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140019488
xor al, al
jmp 0x1400194c7
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400194a3
mov dword [rbp + 0x194], 1
jmp 0x1400194ad
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x1400194c7
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400194c7
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002aa00]
call fcn.1400117e4
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.140011492
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140003638
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x140001250]
mov r8d, 0x40
mov byte [0x14000deae], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400036ab
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x20]
test ecx, ecx
je 0x1400036a9
mov r9d, dword [0x14000e0c0]
and ecx, 0x1f
lea r8, [r8 + 2]
mov edx, 1
shl edx, cl
movzx ecx, word [r8]
or r9d, edx
test ecx, ecx
jne 0x140003689
mov dword [0x14000e0c0], r9d
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14000a880
add rsp, 0xb8
ret

Function at 0x140005f90
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r14d, r14d
cmp dword [0x14000c024], 0xffffffff
mov ebx, eax
jne 0x140006089
lea rax, [rsp + 0x30]
lea rdx, [0x140001480]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x14000c024], r14d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006089
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x1400014e0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x48], 0x28
mov dword [rsp + 0x38], 0x50
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000606c
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
and ecx, 3
mov dword [0x14000c024], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0x28
jle 0x140006089
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x14000c024]
and eax, 3
test al, al
je 0x1400060ec
lea rcx, [rbp - 0x5e]
xor edx, edx
mov r8d, 0x800
mov word [rbp - 0x60], r14w
call sub.msvcrt.dll_memset
mov edx, 0x401
lea rcx, [rbp - 0x60]
test edi, edi
je 0x1400060cf
lea r8, [0x1400014f0]
mov r9d, edi
mov qword [rsp + 0x20], rsi
call fcn.1400028f0
jmp 0x1400060de
lea r8, [0x140001518]
mov r9, rsi
call fcn.1400028f0
test eax, eax
js 0x1400060ec
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.14000a880
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140006a94
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x140006ae9
cmp al, 6
jb 0x140006ae9
lea rcx, [0x140001638]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006ae9
lea rdx, [0x140001658]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140006ae9
mov rcx, rax
call qword [0x140010410]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14000a160
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], di
call sub.msvcrt.dll_memset
lea ebp, [rdi + 0x5c]
test rbx, rbx
je 0x14000a1d8
cmp word [rbx], di
je 0x14000a1d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x14000a1d8
cmp word [rbx], 0x7f
jae 0x14000a1cd
cmp word [rbx + 2], 0x3a
je 0x14000a23a
cmp word [rbx], bp
jne 0x14000a1d8
cmp word [rbx + 2], bp
je 0x14000a23a
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000a23a
lea ecx, [rax + 2]
cmp ecx, esi
ja 0x14000a23a
mov ecx, eax
inc eax
mov r8, rbx
mov word [rsp + rcx*2 + 0x20], bp
lea rcx, [rsp + 0x20]
mov edx, esi
mov word [rsp + rax*2 + 0x20], di
call fcn.1400027ac
test eax, eax
js 0x14000a23a
lea r8, [0x140002438]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.1400027ac
test eax, eax
js 0x14000a23a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x14000a23c
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000a880
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000a968
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000ad2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000ad78
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ad70
cmp dword [rcx + 0x3c], edx
jl 0x14000ad70
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000ad70
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000ad78
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001210
Capabilities:
Create thread
Create udp socket
Resume thread
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor eax, eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_setsockopt
mov edi, 2
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov dword [rsp + 0x20], ebx
lea r8d, [rax + 0x11]
mov edx, edi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [0x140026f40], rax
cmp rax, 0xffffffffffffffff
je 0x140001442
lea r9, [rsp + 0x54]
mov dword [rsp + 0x54], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rbx + 4]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 0x5ccf
mov word [rsp + 0x60], di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov rcx, qword [0x140026f40]
lea r9d, [rbx + 4]
mov qword [rsp + 0x40], rbx
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov edx, 0x8800000a
mov qword [0x140026f80], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x58], 1
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [0x140026f40]
lea r9, [rsp + 0x54]
mov edx, 0xffff
mov dword [rsp + 0x54], ebx
lea r8d, [rbx + 0xb]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [0x140026f40]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x50], 0xc800
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000138d
nop
mov eax, dword [rsp + 0x50]
cmp eax, 0x2800
jl 0x14000138d
mov rcx, qword [0x140026f40]
lea r9, [rsp + 0x50]
sub eax, 0x2800
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov dword [rsp + 0x50], eax
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140001350
lea rcx, str.230.179.128.235
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [0x140026f40]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x64], eax
lea r8d, [r9 + 0x10]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAJoinLeaf]
lea rcx, str.230.179.128.235
mov word [0x140026f68], di
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x5ccf
mov dword [0x140026f6c], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x140026f6a], ax
lea r9, [0x140026f30]
lea rax, [0x140026f78]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r8, [0x140001530]
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140026f60], rax
test rax, rax
je 0x140001442
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140001455
mov rax, qword [0x140026f30]
lea rcx, [0x140026f30]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007140
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400016d0
Capabilities:
Encode data using xor
Hash data with crc32
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xb8], rdi
mov r11, rdx
mov edi, dword [rdx + 4]
mov rbx, rcx
mov r8d, 0xffffffff
lea eax, [rdi + 4]
test eax, eax
je 0x140001749
mov qword [rsp + 0xb0], rsi
lea r9, [rdx + 0xc]
lea rsi, [0x140021240]
mov r10d, eax
nop
movzx ecx, byte [r9]
lea r9, [r9 + 1]
mov eax, r8d
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rsi + rdx*4]
xor r8d, eax
sub r10, 1
jne 0x140001720
mov rsi, qword [rsp + 0xb0]
not r8d
mov qword [rsp + 0x58], r11
mov dword [r11 + 8], r8d
lea eax, [rdi + 0x10]
mov rcx, qword [rbx + 0x50]
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rcx
lea rax, [rbx + 0x38]
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x80]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r8d, 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_WSASendTo]
mov rdi, qword [rsp + 0xb8]
cmp eax, 0xffffffff
jne 0x1400017dd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x1400017dd
mov rcx, qword [rbx + 0x50]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140007140
add rsp, 0x90
pop rbx
ret

Function at 0x140002b00
Capabilities:
Get routing table
Send icmp echo request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov esi, 1
lea rdx, [rsp + 0x40]
xor r14d, r14d
mov r8d, esi
xor ecx, ecx
mov dword [rsp + 0x40], r14d
call qword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
cmp eax, 0x7a
jne 0x140002bb6
mov eax, dword [rsp + 0x40]
add eax, 0x400
mov ecx, eax
mov dword [rsp + 0x40], eax
call fcn.14000b3c8
mov rbx, rax
test rax, rax
je 0x140002bb6
mov r8d, esi
lea rdx, [rsp + 0x40]
mov rcx, rax
Function at 0x1400033f0
Capabilities:
Connect socket
Get socket status
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa88
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0xa70], rax
mov rax, qword [rsp + 0xaf0]
mov rsi, r8
mov qword [rsp + 0x38], rax
movzx edi, dx
mov qword [rsp + 0x30], r9
mov rbx, rcx
xor r14d, r14d
xor r12d, r12d
xor ebp, ebp
mov r15d, 0xffffffff
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400036cc
mov rax, qword [rax + 0x18]
mov r13d, 2
mov qword [rsp + 0x50], rbp
movzx ecx, di
mov word [rsp + 0x48], r13w
mov rdx, qword [rax]
mov eax, dword [rdx]
mov dword [rsp + 0x4c], eax
call qword [sym.imp.WS2_32.dll_htons]
lea edx, [rbp + 1]
mov ecx, r13d
lea r8d, [r14 + 6]
mov word [rsp + 0x4a], ax
call qword [sym.imp.WS2_32.dll_socket]
Function at 0x140003710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x258
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, qword [rsp + 0x2c0]
mov rdi, r9
mov qword [rsp + 0x30], r8
mov r13d, edx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.14000d5e0
xor ebx, ebx
test rsi, rsi
je 0x1400038a5
test r13d, r13d
jle 0x1400038a5
mov esi, ebx
call fcn.14000d5b4
mov r15d, dword [rsp + 0x2c8]
mov r12d, eax
test r15d, r15d
jle 0x1400038a5
mov ecx, 0x50
movzx ebp, cx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, qword [rsp + 0x30]
lea r8, str.__s_v_d
mov edx, 0x100
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x140]
call fcn.140002d70
mov eax, r12d
lea rcx, [rsp + 0x40]
cdq
idiv r13d
mov rax, qword [rsp + 0x38]
movsxd r8, edx
mov edx, 0x100
mov r8, qword [rax + r8*8]
call fcn.14000db14
lea rdx, [0x140021794]
inc r12d
lea rcx, [rsp + 0x40]
call fcn.1400088b0
test rax, rax
je 0x140003805
lea rcx, [rax + 1]
mov byte [rax], bl
call fcn.14000db74
mov ebp, eax
mov r9, rdi
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x140]
movzx edx, bp
lea rcx, [rsp + 0x40]
call fcn.1400033f0
test eax, eax
je 0x140003889
mov r11d, dword [r14]
mov eax, 0xffffffff
lea ecx, [r11 - 4]
test ecx, ecx
je 0x140003878
mov r9, qword [rdi]
lea r15, [0x140021240]
add r9, 4
mov r10d, ecx
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov ecx, eax
xor rdx, rcx
shr ecx, 8
movzx r8d, dl
mov eax, dword [r15 + r8*4]
xor eax, ecx
sub r10, 1
jne 0x140003850
mov r15d, dword [rsp + 0x2c8]
mov rcx, qword [rdi]
not eax
cmp eax, dword [rcx]
je 0x1400038d1
call fcn.14000b3b4
mov qword [rdi], rbx
inc esi
mov eax, esi
imul eax, esi
imul ecx, eax, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, r15d
jl 0x14000378d
mov qword [rdi], rbx
xor eax, eax
mov dword [r14], ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140007140
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test r11d, r11d
je 0x1400038f3
mov rcx, rbx
nop dword [rax]
mov rax, qword [rdi]
lea rcx, [rcx + 1]
inc ebx
xor byte [rax + rcx - 1], 0xbe
cmp ebx, dword [r14]
jb 0x1400038e0
mov eax, 1
jmp 0x1400038ad
Function at 0x140003900
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push rbx
sub rsp, 0x990
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x980], rax
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x50]
lea rdx, str._echo_off_r_n:Repeat_r_ndel__F__Q___s__r_nif_exist___s__goto_Repeat_r_n:Repeat2_r_ndel__F__Q____0__r_nif_exist____0__goto_Repeat2_r_n
lea rcx, [rsp + 0x580]
call fcn.1400027e0
lea rax, [rsp + 0x580]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003960
lea rdx, [rsp + 0x260]
mov qword [rsp + 0x9a0], rdi
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140003a9d
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [0x140021818]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x140003a9d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x50]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400039c4
mov eax, dword [str..bat]
xor r9d, r9d
mov dword [rcx], eax
mov edx, 0x40000000
movzx eax, byte [0x140021820]
mov byte [rcx + 4], al
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140003a9d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, ebx
lea rdx, [rsp + 0x580]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003a94
cmp ebx, dword [rsp + 0x40]
jne 0x140003a94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x50]
lea rdx, str.__s_
lea rcx, [rsp + 0x370]
call fcn.1400027e0
xor edx, edx
lea rcx, [rsp + 0x370]
call qword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x140003a87
mov eax, 1
jmp 0x140003a9f
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x140003a9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x9a0]
mov rcx, qword [rsp + 0x980]
xor rcx, rsp
call fcn.140007140
add rsp, 0x990
pop rbx
ret
Function at 0x140006740
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor r15d, r15d
mov r14d, r8d
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x20], r15
jne 0x14000683d
xor eax, eax
xor ecx, ecx
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
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [rbp - 0x49], r15d
mov rdi, rax
mov qword [rbp - 0x39], r15
lea rax, [0x140006d50]
mov qword [rbp - 0x31], rdi
xorps xmm1, xmm1
mov qword [rbp - 0x41], rax
lea r12, str.TCPClientMsgWnd
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x49]
movdqa xmmword [rbp - 0x19], xmm1
mov qword [rbp - 9], r12
call qword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x14000693c
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], r15
mov rdx, r12
mov qword [rsp + 0x40], r15
xor ecx, ecx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x14000693c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov dword [rsp + 0x28], 1
mov edi, 2
mov qword [rbp + 7], rax
xor r9d, r9d
mov qword [rbp + 0xf], rax
mov ecx, edi
mov dword [rsp + 0x20], r15d
lea edx, [rax + 1]
lea r8d, [rax + 6]
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x140006933
mov rdx, qword [rbx + 0x20]
lea r9d, [rdi + 0x31]
mov r8d, 0x591
mov rcx, rax
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x140006933
xor ecx, ecx
mov dword [rbp + 7], edi
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x30]
lea r8d, [rdi + 0xe]
lea rdx, [rbp + 7]
mov dword [rbp + 0xb], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140006933
xor eax, eax
movzx ecx, r14w
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rsi
mov word [rbp + 7], di
mov word [rbp + 9], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [rbx + 0x30]
lea r8d, [rdi + 0xe]
mov qword [rsp + 0x30], r15
lea rdx, [rbp + 7]
mov qword [rsp + 0x28], r15
xor r9d, r9d
mov dword [rbp + 0xb], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x140006925
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140006933
mov dword [rbx + 0x28], 1
mov eax, 1
jmp 0x14000693e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140007140
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret