joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033590
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1400335d3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x1400306b0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003ed20
ud2

Function at 0x140036b80
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x140036ba1
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x140036bd7
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140036bd2
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140036bd7
call fcn.140033590
mov r8d, dword [0x140062248]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0x18], 1
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rdx
add rsp, 0x38
ret

Function at 0x14003e318
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x004044d0]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404390]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404490]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404450]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404340]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401560
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call dbg.__main
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
lea r9, str.LabApps
lea r8, str.nw.exe
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x401a60
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x4024a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x4024f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4024eb
test r12, r12
je 0x4024eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024d0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402720
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402730
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402740
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402785
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40277c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402787
add rax, 0x28
cmp rax, r9
jne 0x402768
xor eax, eax
ret

Function at 0x402830
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00404390]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4028a9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028a9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x4028a6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40289d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4028a9
add r8, 0x28
cmp r8, r9
jne 0x402888
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402990
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404390]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x4029ff
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x4029fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4029f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a08
add rax, 0x28
cmp rax, r9
jne 0x4029e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402a20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402a98
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a98
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402a98
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402a98
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402a8c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402aa0
add rdx, 0x28
cmp rdx, r10
jne 0x402a78
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402ab0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402abe
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402a95
test r8d, r8d
jg 0x402aa8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x140130000
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
jne 0x140131cd9
mov eax, dword [rbx + 1]
cmp eax, 0x74616469
jne 0x140131cc4
cmp byte [rbx + 5], 0x61
jne 0x140131cd9
jmp 0x1401319e7
mov qword [rbp + 0x1a8], rax
mov qword [rbp + 0xe0], rdi
lea r8, [rbp + 0xd8]
mov eax, dword [r15 + 0x54]
lea rdx, [rbp + 0xe0]
jmp 0x140131afe
mov eax, dword [r15 + 0xa4]
mov dword [rbp + 0x124], eax
cmp rdx, rdi
jae 0x14013163e
jne 0x14013154d
je 0x14013154d
call rax
lea r14d, [rdx - 0xc1ff]
xor edx, 0x2073ae6
lea ebp, [rcx + 0xc353]
test esi, 0x411240bf
push rdi
dec r14
jmp rcx
jmp 0x140131633
lea rax, [rdx + rdi]
invalid
invalid
invalid

Function at 0x1401316c9
Capabilities:
Contain obfuscated stackstrings
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rdi
out dx, al
cmp esp, 0x72547d7e
jmp 0x140131b1b
push rcx
lea r12d, [rcx - 0x4f4d]
div r10
and r11d, 0x7cb9b3df
jge 0x14013121b
cmp r15d, 0x90cd2f7d
je 0x140131962
jne 0x140131962
popfq
neg r12
ret
jmp 0x140131a92
test r9d, 0x566521c3
jle 0x140130095
jmp rcx
cmp rcx, rbx
lea ecx, [rcx - 0xe587]
sub edx, 0x7e9c0dba
syscall
jmp 0x140131903
Function at 0x1800016c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rax, qword [0x18002e020]
xor rax, rsp
mov qword [rbp + 0x150], rax
movdqa xmm0, xmmword [0x180024850]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x180024860]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [0x180024830]
movdqa xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0x5263063
mov dword [rsp + 0x64], 0x37292b30
mov word [rsp + 0x68], 0x496d
mov byte [rsp + 0x6a], 0x44
xor edx, edx
mov r8d, 0xc9
lea rcx, [rsp + 0x6b]
call sub.MSVCR110.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rcx, [rbp + 0x40]
movzx edx, byte [rsp + 0x30]
cmp dl, 0x44
je 0x180001792
lea r8, [rsp + 0x30]
lea rax, [rbp + 0x40]
sub r8, rax
nop word [rax + rax]
xor dl, 0x44
mov byte [rcx], dl
inc rcx
movzx edx, byte [r8 + rcx]
cmp dl, 0x44
jne 0x180001780
mov byte [rcx], 0
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_1495]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.accore.dll_int___cdecl_ads_queueexpr_wchar_t_const____ptr64_]
xor ebx, ebx
cmp eax, 0x13ec
sete bl
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.180014920
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rbp
ret
Function at 0x180002460
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
movzx edi, dl
mov rbx, rcx
lea rdx, str.SOFTWARE_sunkingmenu
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
mov rdx, qword [rbp - 0x10]
lea r8, [rbp - 0x18]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1800025ca
mov rcx, qword [rbp - 0x18]
lea rdx, str.SideMenu
test dil, dil
je 0x1800024e4
mov eax, dword [rbx + 0x10]
mov r9d, 4
xor r8d, r8d
and eax, 1
mov dword [rsp + 0x28], 4
mov dword [rbp + 0x20], eax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1800025ca
lea rax, [rbp + 0x28]
lea r9, [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov dword [rbp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edi, edi
test eax, eax
jne 0x180002528
cmp dword [rbp - 0x20], 4
jne 0x180002528
and dword [rbx + 0x10], 0xfffffffe
mov eax, edi
cmp dword [rbp + 0x20], eax
setne al
and eax, 1
or dword [rbx + 0x10], eax
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x28]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, str.Debug
xor r8d, r8d
mov dword [rbp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180002578
cmp dword [rbp - 0x20], 4
jne 0x180002578
and dword [rbx + 0x10], 0xffffffbf
mov eax, edi
cmp dword [rbp + 0x20], eax
setne al
and eax, 1
shl eax, 6
or dword [rbx + 0x10], eax
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x28]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, str.MenuText
xor r8d, r8d
mov dword [rbp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800025ca
cmp dword [rbp - 0x20], 4
jne 0x1800025ca
and dword [rbx + 0x10], 0xffffff7f
cmp dword [rbp + 0x20], edi
setne dil
and edi, 1
shl edi, 7
or dword [rbx + 0x10], edi
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x180002e10
Capabilities:
Parse pe header

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x18002e020]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r15, rcx
xor ecx, ecx
mov rdi, r8
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9, rax
test rax, rax
jne 0x180002e4f
xor eax, eax
jmp 0x180002f85
mov eax, 0x5a4d
cmp word [r9], ax
jne 0x180002e48
movsxd rax, dword [r9 + 0x3c]
cmp dword [rax + r9], 0x4550
jne 0x180002e48
mov qword [rsp + 0x1a8], rbx
mov ecx, Ordinal_527
mov qword [rsp + 0x168], rbp
xor ebp, ebp
cmp word [rax + r9 + 0x18], cx
mov qword [rsp + 0x160], rsi
mov ebx, ebp
mov dword [rsp + 0x20], ebp
sete bl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rsp + 0x20]
test ebx, ebx
jne 0x180002eb8
mov esi, ebp
test eax, eax
je 0x180002ebd
mov esi, 1
test r14, r14
je 0x180002ec5
mov dword [r14], esi
test rdi, rdi
je 0x180002ecc
mov dword [rdi], eax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_285
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [rsp + 0x14a], 1
mov ebx, dword [rsp + 0x34]
setne bpl
shl ebx, 8
or ebx, dword [rsp + 0x38]
cmp ebx, 0x602
jb 0x180002f4d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x180002f4d
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002f44
lea r8, [rsp + 0x2c]
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x28]
call rax
mov ebx, dword [rsp + 0x28]
shl ebx, 8
or ebx, dword [rsp + 0x24]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
mov rbp, qword [rsp + 0x168]
je 0x180002f65
cmp ebx, 0x600
jb 0x180002f65
bts ebx, 0x14
test esi, esi
mov rsi, qword [rsp + 0x160]
je 0x180002f75
bts ebx, 0x10
mov dword [r15], ebx
mov rbx, qword [rsp + 0x1a8]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180014920
add rsp, 0x170
pop r15
pop r14
pop rdi
ret
Function at 0x180004180
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rdx + 0x18]
cmp dword [rax - 0x10], 0
je 0x1800042e3
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
mov ecx, dword [rbx]
dec ecx
je 0x180004241
cmp ecx, 3
jne 0x1800042d8
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rbx + 0x18]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800042d8
cmp dword [rsp + 0x70], 4
jne 0x1800042d8
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov rdx, rax
mov ecx, dword [rsp + 0x78]
call fcn.1800043d0
test eax, eax
je 0x1800042d8
mov rcx, qword [rbx + 8]
mov eax, dword [rsp + 0x78]
mov dword [rcx], eax
jmp 0x1800042d8
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1492]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rbx + 0x18]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800042d8
cmp dword [rsp + 0x70], 1
jne 0x1800042d8
mov edx, dword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_4828]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rbx + 0x18]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800042d8
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_12073]
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 8]
call qword [sym.imp.mfc110u.dll_Ordinal_1492]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800042f0
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rsi, rdx
mov rbp, rcx
mov rax, qword [rdx + 0x18]
cmp dword [rax - 0x10], 0
je 0x1800043ad
cmp dword [rdx + 0x10], 0
jne 0x1800043ad
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
mov ecx, dword [rsi]
dec ecx
je 0x180004359
cmp ecx, 3
jne 0x1800043a2
mov dword [rsp + 0x28], 4
mov rax, qword [rsi + 8]
lea r9d, [rcx + 1]
mov rdx, qword [rsi + 0x18]
jmp 0x180004390
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_1492]
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax - 0x10]
lea ebx, [rcx*2 + 2]
mov rdi, qword [rsi + 0x18]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_4829]
mov dword [rsp + 0x28], ebx
mov r9d, dword [rsi]
mov rdx, rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x180004820
Capabilities:
Create process on windows
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x180004880
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, rbx
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
xor eax, eax
jmp 0x180004907
mov rcx, qword [rbx]
mov eax, dword [rcx - 0x10]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.LastKey
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Regedit.exe
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x58]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, rbx
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x180006fc0
Capabilities:
Connect socket
Get socket status
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x698
mov rax, qword [0x18002e020]
xor rax, rsp
mov qword [rsp + 0x680], rax
xor r8d, r8d
mov r15d, edx
mov rdi, rcx
mov ebx, 2
lea edx, [r8 + 1]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000700c
mov eax, 0x81010541
jmp 0x18000720e
mov eax, dword [rdi + 0x2044]
movzx ecx, word [rdi + 0x2048]
mov qword [rsp + 0x6d8], r12
xor r12d, r12d
mov qword [rsp + Ordinal_1685], r14
mov dword [rsp + 0x5c], eax
mov r14d, r12d
mov word [rsp + 0x58], bx
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, rsi
mov word [rsp + 0x5a], ax
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1800071c3
lea r8d, [r12 + 0x10]
lea rdx, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x6d0], rbp
mov ebp, r12d
call qword [sym.imp.WS2_32.dll_connect]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x18000711a
lea rax, [rsp + 0x50]
lea ecx, [rsi + 1]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x54], 0x3d090
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x70], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x180007115
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rsi
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], ebx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x180007108
mov ebp, 0x81010553
jmp 0x18000711a
cmp dword [rsp + 0x44], ebp
je 0x18000711a
mov ebp, 0x81010554
jmp 0x18000711a
mov ebp, 0x81010552
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, rsi
mov dword [rsp + 0x40], r12d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test ebp, ebp
mov rbp, qword [rsp + 0x6d0]
jne 0x1800071c3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, r15d
lea rdx, [rdi + 0x2160]
neg ecx
mov ecx, dword [rdi + 0x2058]
mov r8d, eax
mov dword [rsp + 0x30], ecx
mov ecx, dword [rdi + 0x2038]
mov qword [rsp + 0x28], rdx
sbb r9d, r9d
mov dword [rsp + 0x20], ecx
lea rdx, str._Sign_____08X____Mode_____08X____AID_____08X____Name_____s____Port_____08X_
lea rcx, [rsp + 0x280]
add r9d, 2
call qword [sym.imp.MSVCR110.dll_sprintf]
lea rax, [rsp + 0x280]
cmp byte [rax + rbx + 1], r12b
lea rbx, [rbx + 1]
jne 0x180007194
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x280]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1800071d8
mov r14d, 0x81010543
jmp 0x1800071c9
mov r14d, 0x81010542
mov dword [rdi], r14d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rdi + 0x2034], eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test r15d, r15d
jne 0x1800071fb
mov dword [rdi + 0x203c], r12d
mov dword [rdi + Ordinal_8262], r12d
mov dword [rdi + 0x2030], r12d
mov r12, qword [rsp + 0x6d8]
mov eax, r14d
mov r14, qword [rsp + 0x690]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.180014920
add rsp, 0x698
pop r15
pop rdi
pop rsi
pop rbx
ret