joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400130b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 8]
mov rsi, rcx
mov rbp, rdx
lea rcx, [rdi + 1]
call fcn.140026ab4
mov rbx, rax
test rax, rax
jne 0x14001310b
lea ecx, [rax + 2]
call fcn.14001df44
mov rdx, qword [str.allocation_of__d_bytes_failed_n]
lea r8d, [rdi + 1]
mov rcx, rax
call fcn.140001040
cmp byte [0x14005038c], bl
je 0x1400131d3
jmp 0x1400131c2
mov rdi, qword [rsi + 8]
mov qword [rsi], rax
test rdi, rdi
je 0x14001313d
nop word [rax + rax]
mov ecx, dword [rsi + 0x18]
mov r8d, edi
mov rdx, rbx
call fcn.14001edec
movsxd rcx, eax
test eax, eax
jle 0x14001315c
add rbx, rcx
sub rdi, rcx
jne 0x140013120
mov byte [rbx], 0
mov dword [rsi + 0x20], 0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14002439c
mov ecx, dword [rax]
mov dword [rsi + 0x20], ecx
call fcn.14002439c
mov ebx, dword [rax]
call fcn.14002439c
mov ecx, ebx
mov rdi, rax
call fcn.14002680c
mov ecx, 2
mov rbx, rax
call fcn.14001df44
mov r9d, dword [rdi]
lea r8, str.libopts
mov rdx, qword [str._s_error__d___s__calling__s_for__s_n]
mov rcx, rax
lea rax, str.read
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140001040
mov rcx, qword [rsi]
call fcn.1400249fc
jmp 0x140013147
mov edx, 1
lea rcx, str._nexit__d_n
call fcn.140001090
mov ecx, 1
call fcn.14001d7a0
int3

Function at 0x140015170
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140015190
call fcn.140024468
jmp 0x1400151f2
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400151a0
call fcn.140024468
jmp 0x1400151f2
mov qword [rsp + 0x30], rsi
mov rsi, qword [rbx + 0x60]
test rsi, rsi
je 0x1400151ed
mov edx, 0xa
mov rcx, rsi
call fcn.14001c370
mov rcx, rsi
test rax, rax
jne 0x1400151cd
mov rdx, rdi
call fcn.140024468
jmp 0x1400151e0
sub rax, rsi
mov r9, rdi
mov r8, rax
mov edx, 1
call fcn.140024260
mov rdx, rdi
mov ecx, 0xa
call fcn.140024e08
mov rsi, qword [rsp + 0x30]
cmp dword [rbx], 0x22000
jl 0x14001522a
cmp qword [rbx + 0xe0], 0
je 0x14001522a
mov rdx, rdi
mov ecx, 0xa
call fcn.140024e08
mov rcx, qword [rbx + 0xe0]
mov rdx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140024468
cmp qword [rbx + 0x80], 0
je 0x140015257
mov rdx, rdi
mov ecx, 0xa
call fcn.140024e08
mov r8, qword [rbx + 0x80]
mov rcx, rdi
mov rdx, qword [str._nPlease_send_bug_reports_to:____s__n]
call fcn.140001040
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140015630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
test rcx, rcx
jne 0x14001566a
lea ecx, [rsi + 2]
call fcn.14001df44
mov rcx, qword [str.AutoOpts_function_called_without_option_descriptor_n]
mov rdx, rax
call fcn.140024468
or eax, 0xffffffff
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov ecx, dword [rcx + 0x10]
mov eax, ecx
shr eax, 0x15
and al, 1
mov qword [rsp + 0x50], r14
mov byte [0x14005038c], al
bt ecx, 0xd
jae 0x1400156b1
mov rdx, qword [rsi + 0xa0]
test rdx, rdx
je 0x1400156b1
cmp dword [0x14004e390], 0
je 0x1400156b1
mov eax, ecx
and eax, 0x30000
cmp eax, 0x20000
jne 0x1400156af
bts ecx, 0x10
mov dword [rsi + 0x10], ecx
call rdx
mov r14d, dword [rsi]
lea eax, [r14 - 0x19000]
cmp eax, 0x11001
jbe 0x140015778
mov qword [rsp + 0x40], rbx
mov ecx, 2
mov ebx, r14d
mov qword [rsp + 0x48], rdi
mov edi, r14d
sar ebx, 7
and ebx, 0x1f
sar r14d, 0xc
and edi, 0x7f
call fcn.14001df44
mov rdx, qword [str.Automated_Options_Processing_Error__n_t_s_called_AutoOpts_function_with_structure_version__d:_d:_d._n]
mov rcx, rax
mov r9d, r14d
mov dword [rsp + 0x28], edi
mov r8, rbp
mov dword [rsp + 0x20], ebx
call fcn.140001040
cmp dword [rsi], 0x2a001
mov ecx, 2
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jle 0x14001572f
call fcn.14001df44
mov rcx, qword [str._tThis_exceeds_the_compiled_library_version:]
jmp 0x14001573b
call fcn.14001df44
mov rcx, qword [str._tThis_is_less_than_the_minimum_library_version:]
mov rdx, rax
call fcn.140024468
mov ecx, 2
call fcn.14001df44
mov edx, 8
lea rcx, str.42:1:17_n
mov r9, rax
lea r8d, [rdx - 7]
call fcn.140024260
mov r14, qword [rsp + 0x50]
or eax, 0xffffffff
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
cmp qword [rsi + 0x28], 0
jne 0x1400157e2
mov edx, 0x5c
mov rcx, rbp
call fcn.14001ca3c
test rax, rax
je 0x14001579a
inc rax
mov qword [rsi + 0x28], rax
jmp 0x14001579e
mov qword [rsi + 0x28], rbp
lea rcx, str.PATH
call fcn.140026aa4
mov rcx, rbp
call fcn.14002560c
test rax, rax
lea rcx, [0x1400404b0]
lea rdx, [0x14004e6f0]
cmovne rbp, rax
mov al, 0x2d
mov qword [rsi + 0x20], rbp
nop dword [rax]
movzx eax, al
lea rcx, [rcx + 1]
mov byte [rax + rdx], 0x2d
movzx eax, byte [rcx]
test al, al
jne 0x1400157d0
mov r14, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x140015a90
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x478
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, ecx
lea rax, [rsp + 0x60]
mov r8, rdx
mov qword [rsp + 0x50], rax
mov edx, 0x400
lea rcx, [rsp + 0x60]
lea r9, [r11 + 0x18]
call fcn.140018550
mov rcx, qword [0x140050418]
mov edi, 1
test rcx, rcx
jne 0x140015b02
mov edx, edi
lea rcx, [0x14004eaf8]
call fcn.140015b90
mov rcx, qword [0x140050418]
xor r8d, r8d
lea r9, [rsp + 0x50]
cmp ebx, 4
je 0x140015b45
lea eax, [rbx - 5]
cmp eax, 2
ja 0x140015b2f
xor eax, eax
lea edx, [r8 + 4]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, 0x40000003
jmp 0x140015b5c
xor eax, eax
mov edx, edi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, 0xc0000001
jmp 0x140015b5c
xor eax, eax
mov edx, 2
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, 0x80000002
mov dword [rsp + 0x30], eax
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14001b620
add rsp, 0x478
pop rdi
pop rbx
ret
Function at 0x14001b580
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 2
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
jne 0x14001b5ca
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14001b620
add rsp, 0x1d0
pop rbx
ret
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.No_usable_winsock:__m_n
call fcn.14001a750
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.No_usable_winsock:__m
mov ecx, 3
call fcn.14001a7c0
mov ecx, 1
call fcn.14001d7a0
int3

Function at 0x14001d7a0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14001d574
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d574
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d574
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d574
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d574
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d574
cmp dword [rcx + 0xf8], esi
je 0x14001d574
mov ecx, r14d
call fcn.14001d6bc
mov ecx, 2
call fcn.140028b80
nop
cmp byte [0x14004f840], 0
jne 0x14001d63e
mov r15d, 1
mov eax, r15d
xchg dword [0x14004f830], eax
test ebx, ebx
jne 0x14001d5e7
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14004f838]
cmp rcx, rax
je 0x14001d5de
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14001c364]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14004f9d8]
jmp 0x14001d5f3
cmp ebx, r15d
jne 0x14001d5f9
lea rcx, [0x14004f9f0]
call fcn.1400287d4
nop
test ebx, ebx
jne 0x14001d610
lea rdx, [0x1400354a8]
lea rcx, [0x140035480]
call fcn.140028214
lea rdx, [0x1400354b8]
lea rcx, [0x1400354b0]
call fcn.140028214
movzx eax, byte [0x14004f840]
test esi, esi
cmove eax, r15d
mov byte [0x14004f840], al
jmp 0x14001d63e
mov ecx, 2
call fcn.140028bd4
test esi, esi
jne 0x14001d655
mov ecx, r14d
call fcn.14001d670
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001d504
Function at 0x14002c35c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14002c1fc
call fcn.14002439c
mov dword [rax], socket
call fcn.140029600
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002c1e4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14002c1e4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14002c22e
lock or dword [rax + 0x14], 0x10
jmp 0x14002c1e4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14002c24b
mov rcx, qword [rbp + 0x10]
call fcn.14003236c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140023f68
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14001edec
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14002c2a2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14002c1e4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14002c30e
mov rcx, qword [rbp + 0x10]
call fcn.140023f68
cmp eax, 0xffffffff
je 0x14002c2f5
mov rcx, qword [rbp + 0x10]
call fcn.140023f68
cmp eax, 0xfffffffe
je 0x14002c2f5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140023f68
movsxd rdi, eax
lea rsi, [0x14004fdd0]
mov rcx, rbx
sar rdi, 6
call fcn.140023f68
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14002c2fc
lea rax, [0x14004c270]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002c30e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14002c344
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14002c340
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14002c340
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14002c1e7
jmp 0x14002c1b4

Function at 0x14002cb5c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002cb7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002432c
or eax, 0xffffffff
jmp 0x14002cb7e
xor eax, eax
add rsp, 0x28
ret
Function at 0x4016d0
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
sub rsp, 0x298
mov rax, qword [0x0040f058]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
lea rcx, [r11 - 0x127]
xor edx, edx
mov r8d, 0x103
mov qword [r11 + 0x20], rdi
mov byte [rsp + 0x170], 0
call fcn.00406a70
lea r9, str.TEMP
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
xor esi, esi
mov r8d, 0x104
mov qword [rsp + 0x20], 0x104
mov ebx, esi
call fcn.00401e10
lea r8, [0x0040cdcc]
lea rcx, [rsp + 0x170]
mov edx, 0x104
call fcn.00401f70
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x401780
lea eax, [rsi + 1]
jmp 0x4017ae
test byte [rsp + 0x30], 0x10
jne 0x40178a
add ebx, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401780
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x1e
setl sil
mov eax, esi
mov rdi, qword [rsp + 0x2b8]
mov rsi, qword [rsp + 0x2b0]
mov rbx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.00401a30
add rsp, 0x298
ret

Function at 0x4023a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0040f058]
jne 0x401a4a
rol rcx, 0x10
test cx, 0xffff
jne 0x401a46
repz ret
ror rcx, 0x10
jmp 0x402300
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00410240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00410338]
mov qword [rsp + 0x58], rax
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 0x402385
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, [0x00410240]
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 0x4023a7
mov rax, qword [rsp + 0x88]
mov qword [0x00410338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x004102d8], rax
mov rax, qword [0x00410338]
mov qword [0x004101b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x004102c0], rax
mov dword [0x004101a0], 0xc0000409
mov dword [0x004101a4], 1
mov rax, qword [0x0040f058]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0040f060]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00410238], eax
mov ecx, 1
call fcn.004051c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0040b2d8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00410238], 0
jne 0x40242e
mov ecx, 1
call fcn.004051c0
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 0x407830
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.00402890
xor ebx, ebx
cmp qword [0x00410eb8], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x407961
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x407893
xor eax, eax
jmp 0x407a41
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x40788c
mov rcx, rax
call fcn.00402820
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x00410eb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00402820
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x00410ec0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00402820
lea rcx, [rsp + 0x30]
mov qword [0x00410ec8], rax
call fcn.00403190
test eax, eax
je 0x407917
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004036e0
cmp dword [rsp + 0x30], 2
jne 0x407961
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00402820
test rax, rax
mov qword [0x00410ed8], rax
je 0x407961
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00402820
mov qword [0x00410ed0], rax
mov rcx, qword [0x00410ed0]
cmp rcx, rsi
je 0x4079f3
cmp qword [0x00410ed8], rsi
je 0x4079f3
call fcn.004028f0
call rax
test rax, rax
mov rbp, rax
je 0x4079be
mov rcx, qword [0x00410ed8]
call fcn.004028f0
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x4079be
test byte [rsp + 0x48], 1
jne 0x4079f3
lea rcx, [rsp + 0x34]
call fcn.004031e0
test eax, eax
je 0x4079e0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004036e0
cmp dword [rsp + 0x34], 4
jb 0x4079ed
bts edi, 0x15
jmp 0x407a27
bts edi, 0x12
jmp 0x407a27
mov rcx, qword [0x00410ec0]
cmp rcx, rsi
je 0x407a27
call fcn.004028f0
call rax
test rax, rax
mov rbx, rax
je 0x407a27
mov rcx, qword [0x00410ec8]
cmp rcx, rsi
je 0x407a27
call fcn.004028f0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00410eb8]
call fcn.004028f0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140f63180
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6318a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f631b3
pop rbp
sub rbp, 0x33
sub rbp, 0xf63180
sub rsp, 0x20
jmp 0x140f631d2
mov rax, 0xf63180
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff8a0b05c8
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f631f1
jmp 0x140f63208
add byte [rcx + 0x21], 0x43
hlt
Function at 0x140001000
Capabilities:
Get hostname
Get session user name

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x10
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rdx, [rsp + 0x28]
lea rcx, str.hostname:__s
call fcn.140001130
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], 0x101
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x40]
lea rcx, str.username:__s
call fcn.140001130
call fcn.140001310
mov ecx, 0x4e20
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001310
sub eax, ebx
mov ecx, eax
movabs rax, 0xd6bf94d5e57a42bd
mul rcx
lea rcx, str.interval_is:__llu_n
shr rdx, 0x17
call fcn.140001130
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001530
add rsp, 0x160
pop rbx
ret

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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0xf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.1400010c0
mov qword [rsp + 0x28], rdi
lea rdx, [0x140024c90]
xor edi, edi
mov r9, rbx
mov r8d, 0x3e8
mov qword [rsp + 0x20], rdi
mov rcx, qword [rax]
call fcn.140008748
lea rcx, [0x140024c90]
call fcn.1400010d0
lea rcx, [0x140020598]
call fcn.1400010d0
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
lea rdx, str.Softwareheloword
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov rcx, qword [rsp + 0x50]
lea rax, [0x140020596]
mov dword [rsp + 0x28], edi
lea r9d, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140024c90]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xorps xmm0, xmm0
mov dword [rsp + 0x60], 0x68
xor eax, eax
lea r8, [0x140024c90]
lea rdx, str.cmd__c__s
mov dword [rsp + 0xc4], eax
lea rcx, [0x140025080]
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
call fcn.1400012b0
lea rax, [rsp + 0xd0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [0x140025080]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140001530
add rsp, 0xf8
pop rdi
pop rbx
ret
Function at 0x140001310
Capabilities:
Delete file
Query environment variable

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov qword [r11 + 0x10], rsi
lea rcx, [r11 - 0x128]
xor edx, edx
mov qword [r11 + 0x18], rdi
mov r8d, 0x104
call fcn.1400169e0
xor ecx, ecx
call fcn.1400088a0
mov rcx, rax
call fcn.140008888
mov eax, dword [0x140020608]
lea rdx, [rsp + 0x80]
movups xmm0, xmmword [str.QAZWSXEDCRFVTGBYHNUJMIKOLP1234567890]
mov dword [rsp + 0x78], eax
mov r8d, 0x104
movups xmm1, xmmword [0x1400205f8]
movzx eax, byte [0x14002060c]
lea rcx, str.temp
movups xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x7c], al
movups xmmword [rsp + 0x68], xmm1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea r8, [0x140020618]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140008914
lea rax, [rsp + 0x80]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400013d0
lea eax, [rbx + 0x2d]
movsxd rdi, ebx
movsxd rsi, eax
cmp rdi, rsi
jge 0x140001439
mov eax, esi
mov qword [rsp + 0x1b0], rbp
sub eax, edi
movabs rbp, 0xe38e38e38e38e38f
add ebx, eax
nop
call fcn.14000885c
movsxd rcx, eax
mov rax, rbp
mul rcx
shr rdx, 5
lea rax, [rdx + rdx*8]
shl rax, 2
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x58]
mov byte [rsp + rdi + 0x80], al
inc rdi
cmp rdi, rsi
jl 0x140001400
mov rbp, qword [rsp + 0x1b0]
movsxd rax, ebx
lea r8, str..tmp
mov edx, 0x104
lea rcx, [rsp + 0x80]
mov byte [rsp + rax + 0x80], 0
call fcn.140008914
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, qword [rsp + 0x1c0]
mov rbx, rax
mov rsi, qword [rsp + 0x1b8]
cmp rax, 0xffffffffffffffff
jne 0x1400014c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_open_file_0x_x
call fcn.140001130
xor eax, eax
jmp 0x140001503
lea r9, [rsp + 0x48]
mov rcx, rbx
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, dword [rsp + 0x40]
lea rcx, str.create_time:__lld
call fcn.140001130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140001530
add rsp, 0x1a0
pop rbx
ret

Function at 0x140001f10
Capabilities:
Parse pe header

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

Function at 0x14000969c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009498