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

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

Function at 0x140090778
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400907af
call fcn.14008638c
mov dword [rax], SafeArrayUnaccessData
call fcn.140085ec4
xor eax, eax
jmp 0x14009083d
mov rdx, r9
mov rcx, r8
call fcn.140090714
mov rbx, rax
test rax, rax
je 0x14009083a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140090640]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140090827
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140086300
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009080e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009081d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140095828
jmp 0x14009083a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140090837
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140090e24
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140090c8f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140090c8f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140090c8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140090c8f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140090c8f
cmp dword [rcx + 0x84], 0xe
jbe 0x140090c8f
cmp dword [rcx + 0xf8], 0
je 0x140090c8f
mov ecx, ebx
call fcn.140090d40
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140090b1c
nop
cmp dword [rbp + 0x20], 0
je 0x140090cdd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140090ce8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140090c20
Function at 0x14009d6e4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140095024
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14009d785
cmp ebx, dword [rsp + 0x30]
je 0x14009d77e
test esi, esi
je 0x14009d77e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009d759
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009d766
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14009d743
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009d76a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009d787
mov eax, 1
jmp 0x14009d787
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009e478
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14009e4ff
mov rsi, rbx
cmp word [rax], bp
je 0x14009e4be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009e4a8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009e4a4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140095a68
mov rdi, rax
test rax, rax
je 0x14009e4ec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400816b0
mov rbp, rdi
xor ecx, ecx
call fcn.140095828
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a21f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a2218
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a2218
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000b4c0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000b500
mov eax, 0xff
jmp 0x14000b6ab
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x14000b51c
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x14001acc8], r9d
mov dword [0x14001acd0], ecx
mov dword [0x14001acd4], edx
mov dword [0x14001acd8], eax
mov dword [0x14001accc], r8d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000b593
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000b593
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000b593
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x14000b595
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x14000b595
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.14000d244
test eax, eax
jne 0x14000b5cb
cmp dword [0x14001a71c], 2
je 0x14000b5b7
call fcn.14000d028
mov ecx, 0x1c
call fcn.14000d074
mov ecx, 0xff
call fcn.14000cc40
call fcn.14000cb0c
test eax, eax
jne 0x14000b5f7
cmp dword [0x14001a71c], 2
je 0x14000b5e2
call fcn.14000d028
mov ecx, 0x10
call fcn.14000d074
mov ecx, 0xff
call fcn.14000cc40
nop
call fcn.14000d2b8
test eax, eax
jns 0x14000b60a
mov ecx, 0x1b
call fcn.14000cc5c
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14001c8d0], rax
call fcn.14000da58
mov qword [0x14001a720], rax
call fcn.14000d554
test eax, eax
jns 0x14000b635
mov ecx, 8
call fcn.14000cc5c
call fcn.14000d834
test eax, eax
jns 0x14000b648
mov ecx, 9
call fcn.14000cc5c
mov ecx, edi
call fcn.14000cccc
test eax, eax
je 0x14000b65a
mov ecx, eax
call fcn.14000cc5c
mov r8, qword [0x14001acb8]
mov qword [0x14001ace8], r8
mov rdx, qword [0x14001acb0]
mov ecx, dword [0x14001acac]
call fcn.1400070f4
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14000b68b
mov ecx, eax
call fcn.14000d018
call fcn.14000ccb8
jmp 0x14000b6a9
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000b710
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call fcn.140185000
add rsp, 0x28
jmp 0x14000b4c0

Function at 0x14000c1ac
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 0x14000423c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10d, dword [section..data]
lea rsi, sym.MZ_pC_1K_PPeiWHklufKpiDrLsX_a0lwJ7Ut1b_G_5
xor r10d, dword [rcx + 4]
mov ebx, 2
mov r11d, dword [rcx + 8]
mov dword [rcx + 4], r10d
lea edi, [rbx + 6]
mov eax, r10d
shr rax, 0x10
movzx edx, al
mov eax, r10d
shr rax, 0x18
mov r9d, dword [rsi + rdx*4 + 0xb7830]
add r9d, dword [rsi + rax*4 + 0xb7430]
mov eax, r10d
shr rax, 8
movzx edx, al
movzx eax, r10b
xor r9d, dword [rsi + rdx*4 + 0xb7c30]
add r9d, dword [rsi + rax*4 + 0xb8030]
lea eax, [rbx - 1]
xor r9d, dword [rsi + rax*4 + 0xb7000]
xor r11d, r9d
mov dword [rcx + 8], r11d
mov eax, r11d
shr rax, 0x10
movzx edx, al
mov eax, r11d
shr rax, 0x18
mov r9d, dword [rsi + rdx*4 + 0xb7830]
add r9d, dword [rsi + rax*4 + 0xb7430]
mov eax, r11d
shr rax, 8
movzx edx, al
movzx eax, r11b
xor r9d, dword [rsi + rdx*4 + 0xb7c30]
add r9d, dword [rsi + rax*4 + 0xb8030]
mov eax, ebx
add ebx, 2
xor r9d, dword [rsi + rax*4 + 0xb7000]
xor r9d, r10d
mov dword [rcx + 4], r9d
mov r10d, r9d
sub rdi, 1
jne 0x140002ae1
xor r11d, dword [0x1400b7044]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov dword [rcx + 4], r11d
mov dword [rcx + 8], r9d
ret

Function at 0x140002bc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rsi, r8d
xor r14d, r14d
mov eax, esi
mov rdi, r9
mov rbx, rdx
and eax, 0x80000007
jge 0x140002bf1
dec eax
or eax, 0xfffffff8
inc eax
cmp byte [rsp + 0x50], r14b
je 0x140002c07
test eax, eax
jne 0x140002ca0
mov dword [r9], esi
mov eax, esi
jmp 0x140002c2b
movzx ecx, byte [rsp + 0x58]
mov edx, esi
sub edx, eax
add edx, 8
test eax, eax
lea eax, [rcx + 1]
cmove edx, esi
lea eax, [rdx + rax*8]
mov dword [r9], eax
test cl, cl
je 0x140002c2b
mov r14d, 8
movsxd rcx, eax
call fcn.1400128b0
mov r9d, r14d
mov r10, rax
test esi, esi
jle 0x140002c60
mov eax, r9d
mov rdx, rsi
sub rax, rbx
add rax, r10
nop dword [rax]
movzx ecx, byte [rbx]
mov byte [rax + rbx], cl
lea rbx, [rbx + 1]
sub rdx, 1
jne 0x140002c50
lea edx, [r14 + rsi]
cmp edx, dword [rdi]
jge 0x140002c87
movsxd r8, edx
add r9, rsi
add r8, r10
movzx eax, byte [r9 + r10 - 1]
lea r8, [r8 + 1]
xor al, 0xcc
inc edx
mov byte [r8 - 1], al
cmp edx, dword [rdi]
jl 0x140002c71
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov r14d, 8
lea rdx, [0x1400b4c40]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
call fcn.14005f2e4
int3
Function at 0x140010a40
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400fbb78]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 1]
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_58.0.3029.110_Safari_537.36
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbp, rax
lea rcx, str.Accept:___r_n_r_n

Function at 0x140010ca0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400fbb78]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010d28
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140010d28
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call fcn.140069fcc
test eax, eax
je 0x140010d24
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140010d00
jmp 0x140010d28
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140012950
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400110f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140011174
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140011174
dec r8
sub rdx, 1
jne 0x14001115a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140013384
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 rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140013788
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400137d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400137d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400137d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400137d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400137d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400137d4
xor al, al
add rsp, 0x28
ret
Function at 0x140029a10
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14007d9d4
cdqe
add rsp, 0x28
ret

Function at 0x140029d00
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140093930]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140029d2a
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, [0x140093950]
mov rcx, rbx
mov r14, rax
call fcn.140078820
test rax, rax
je 0x140029d8d
mov rcx, rbx
test r14, r14
je 0x140029d77
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 [0x14008f0c8]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140029dc5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029dc5
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 0x140029e88
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140029df0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.14006a398]
mov rdi, rax
test rax, rax
je 0x140029e7a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140029e7a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140029e20
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140029e34
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 0x140029e50
mov rcx, rdi
test r14, r14
je 0x140029e71
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140029e77
call qword [0x14008f0c8]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14006500c]
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 0x140041850
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x240]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400418af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400271f0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400413d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x140041c0d
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1f8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140041aae
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
jmp 0x140041ab1
mov rax, rsi
cmp rax, rbx
jae 0x140041aca
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140041aca
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
Function at 0x140078188
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140013160
sub rsp, rax
mov rax, qword [0x1400fbb78]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14007beb4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400781d7
mov rax, rbp
jmp 0x1400782df
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, sym.MZ_pC_1K_PPeiWHklufKpiDrLsX_a0lwJ7Ut1b_G_5
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xfea70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140079514
mov r13, rax
lea rax, sym.MZ_pC_1K_PPeiWHklufKpiDrLsX_a0lwJ7Ut1b_G_5
mov rcx, qword [rax + rbx*8 + 0xfea70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400782db
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400782db
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140079514
test rax, rax
js 0x1400782db
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400782db
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400782cd
lea r8, sym.MZ_pC_1K_PPeiWHklufKpiDrLsX_a0lwJ7Ut1b_G_5
cmp rcx, rdx
jae 0x1400782cd
cmp byte [rcx], 0xd
jne 0x1400782b3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400782c2
cmp byte [rcx + 1], 0xa
jne 0x1400782c2
inc rcx
jmp 0x1400782c2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xfc060]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140078295
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400782df
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012950
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008d05c
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.14007951c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14007951c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008d1ac
cmp rax, 0xffffffffffffffff
je 0x14008d1ac
xor edi, edi
test rbp, rbp
jle 0x14008d157
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007afa4
mov rbx, rax
test rax, rax
jne 0x14008d0e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008d14d
mov edx, 0x8000
mov ecx, r14d
call fcn.14007255c
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.14007ce74
cmp eax, 0xffffffff
je 0x14008d12d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008d0f4
mov edx, r15d
mov ecx, r14d
call fcn.14007255c
jmp 0x14008d14d
cmp byte [rsi + 0x38], dil
je 0x14008d144
cmp dword [rsi + 0x34], 5
jne 0x14008d144
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14008d14d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14007a280
jmp 0x14008d1c0
jns 0x14008d1c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14007951c
cmp rax, 0xffffffffffffffff
jne 0x14008d178
cmp byte [rsi + 0x30], dil
je 0x14008d1c0
mov edi, dword [rsi + 0x2c]
jmp 0x14008d1c0
mov ecx, r14d
call fcn.14007fef0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008d1c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14008d1c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008d1b9
mov eax, dword [rsi + 0x2c]
jmp 0x14008d1be
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14007951c
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 0x140173018
Capabilities:
Encode data using xor

Disassembly:
and sil, 0xc1
xor sil, bpl
push r10
add qword [rsp + 0x10], 0xfffffffffff30e85
add si, si
mov rax, rsi
push r8
push rdx
call fcn.1402f07d6

Function at 0x140180b75
Capabilities:
Read data from internet
Receive data

Disassembly:
neg cl
xchg qword [rsp + rcx*4 - 0x162c0], rdx
test dword [rsp + 0x28], 0x126a4257
bswap r13d
not qword [rsp + 0x28]
jl 0x140276d90
xor r9b, byte [rsp + 0x4f]
mov rcx, qword [rsp + 0x50]
and r9b, r9b
sete byte [rsp + 0x18]
jg 0x140263f57
mov r9, qword [rsp + 8]
call fcn.140258c9d
push rdx
call fcn.140309c68