joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004440]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x1400043f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004430]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001540
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], rcx
lea rax, [rbp + 0x80]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x80], 0x18
mov dword [rbp + 0x90], 1
mov qword [rbp + 0x88], 0
lea rcx, [rbp + 0x80]
lea rdx, [rbp + 0x70]
lea rax, [rbp + 0x78]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
jne 0x1400015c2
mov ecx, 1
call sym.exit
mov rax, qword [rbp + 0x78]
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rax
test eax, eax
jne 0x1400015eb
mov ecx, 1
call sym.exit
mov rax, rbp
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp], 0x68
lea rax, [rbp - 0x20]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x3c]
or ah, 1
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0xc0]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x48], rdx
mov rdx, rbp
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x140001695
mov ecx, 1
call sym.exit
mov rax, qword [rbp + 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xa0], 0
jmp 0x140001716
mov eax, dword [rbp - 0x24]
mov edx, eax
mov rax, qword [rbp + 0xa0]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.strlen
mov edx, dword [rbp - 0x24]
mov edx, edx
add rax, rdx
lea rdx, [rax + 1]
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.realloc
mov qword [rbp + 0xa8], rax
mov rdx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.strcat
mov rax, qword [rbp + 0x78]
lea rcx, [rbp - 0x24]
mov rdx, qword [rbp + 0xa0]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x140001752
mov eax, dword [rbp - 0x24]
test eax, eax
jne 0x1400016bd
mov rax, qword [rbp - 0x20]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x78]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0xa8]
add rsp, 0x130
pop rbp
ret
Function at 0x140001a90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008104]
mov rbx, rcx
test esi, esi
jle 0x140001c30
mov rax, qword [0x140008108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001bd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b30
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c52
mov rax, qword [0x140008108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001bce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001be0
add dword [0x140008104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140008108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001b58
mov rax, qword [0x140008108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008140]
test rbx, rbx
je 0x14000221c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002213
test rsi, rsi
je 0x140002213
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002430
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002448
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002450
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002460
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400024ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400024a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400024af
add rax, 0x28
cmp rax, r9
jne 0x140002490
xor eax, eax
ret

Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002540
mov rdx, qword [0x1400043f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000252e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000252e
cmp word [rax + 0x18], 0x20b
jne 0x14000252e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002540
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002519
add rbx, 0x28
cmp rbx, rdi
je 0x140002540
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002510
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002550
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002570
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002578
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002570
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400025cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400025c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002570
add rax, 0x28
cmp rax, r9
jne 0x1400025b0
xor eax, eax
ret

Function at 0x1400025d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400025ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400025f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002610
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002630
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002638
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002630
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002680
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002677
test rcx, rcx
je 0x140002630
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002668
xor eax, eax
ret

Function at 0x140002690
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400026af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400026b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400026d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026f0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400026f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002744
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002750
add rdx, 0x28
cmp r9, rdx
jne 0x140002730
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002760
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002782
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002790
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002782
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002782
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002782
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400027e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400027f8
add rdx, 0x28
cmp rdx, r10
jne 0x1400027d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002807
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002817
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027ee
test ecx, ecx
jg 0x140002800
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180001000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov r10, rdx
mov r12, rcx
mov rax, qword [0x180034008]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov edx, 0x32a9edd9
xor r14d, r14d
mov r15d, 0xd6f7c82c
jmp 0x1800010f0
mov eax, dword [rsp + 0x3c]
lea edx, [rax + 1]
lea ebp, [rax + 0x100]
test edx, edx
cmovns ebp, edx
and ebp, 0xffffff00
neg ebp
lea r13d, [rax + rbp]
add r13d, 1
movsxd rax, r13d
movzx edx, byte [rsp + rax + 0x150]
movzx ebp, dl
mov edi, dword [rsp + 0x38]
lea esi, [rdi + rbp]
add esi, 0xff
add edi, ebp
cmovns esi, edi
and esi, 0xffffff00
sub edi, esi
movsxd rbp, edi
movzx ecx, byte [rsp + rbp + 0x150]
mov byte [rsp + rax + 0x150], cl
mov byte [rsp + rbp + 0x150], dl
movzx eax, byte [rsp + rax + 0x150]
add eax, edx
movzx eax, al
movzx eax, byte [rsp + rax + 0x150]
movsxd rcx, dword [rsp + 0x30]
xor byte [r12 + rcx], al
mov esi, dword [rsp + 0x30]
add esi, 1
mov edx, 0x977c64de
nop dword [rax]
cmp edx, 0xff2f315d
jle 0x180001140
cmp edx, 0x2b72f8f2
jle 0x180001170
cmp edx, 0x2b72f8f3
je 0x18000105f
cmp edx, 0x32a9edd9
jne 0x180001295
mov dword [rsp + 0x28], r14d
mov edx, dword [rsp + 0x28]
cmp edx, 0x100
mov edx, 0x988832c2
cmovl edx, r15d
jmp 0x1800010f0
cmp edx, 0xcde345a4
jg 0x1800011f0
cmp edx, 0x977c64de
je 0x180001239
cmp edx, 0x988832c2
jne 0x1800010f0
mov edx, 0xcde345a5
xor ebx, ebx
xor r11d, r11d
jmp 0x1800010f0
cmp edx, 0xff2f315e
je 0x18000125f
cmp edx, 0x2439b8fd
jne 0x1800010f0
movsxd rcx, dword [rsp + 0x2c]
movzx edx, byte [rsp + rcx + 0x150]
mov ebx, edx
add ebx, dword [rsp + 0x34]
movzx ebp, byte [rsp + rcx + 0x50]
lea r11d, [rbx + rbp]
add r11d, 0xff
add ebx, ebp
cmovns r11d, ebx
and r11d, 0xffffff00
sub ebx, r11d
movsxd rbp, ebx
movzx eax, byte [rsp + rbp + 0x150]
mov byte [rsp + rcx + 0x150], al
mov byte [rsp + rbp + 0x150], dl
mov r11d, dword [rsp + 0x2c]
add r11d, 1
mov edx, 0xcde345a5
jmp 0x1800010f0
cmp edx, 0xcde345a5
je 0x180001270
cmp edx, 0xd6f7c82c
jne 0x1800010f0
mov eax, dword [rsp + 0x28]
movsxd rbp, dword [rsp + 0x28]
mov byte [rsp + rbp + 0x150], al
mov eax, dword [rsp + 0x28]
xor edx, edx
div r9d
movzx eax, byte [r10 + rdx]
mov byte [rsp + rbp + 0x50], al
mov r14d, dword [rsp + 0x28]
add r14d, 1
mov edx, 0x32a9edd9
jmp 0x1800010f0
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x3c], r13d
mov eax, dword [rsp + 0x30]
cmp eax, r8d
mov edx, 0x777fa7b0
mov eax, 0x2b72f8f3
cmovb edx, eax
jmp 0x1800010f0
mov edx, 0x977c64de
xor esi, esi
xor edi, edi
xor r13d, r13d
jmp 0x1800010f0
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x2c], r11d
mov edx, dword [rsp + 0x2c]
cmp edx, 0x100
mov edx, 0xff2f315e
mov eax, 0x2439b8fd
cmovl edx, eax
jmp 0x1800010f0
cmp edx, 0x777fa7b0
jne 0x1800010f0
mov rax, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180004580
mov rax, r12
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180001530
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8, rcx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov ecx, 0xedb082d9
mov eax, 0x980af643
nop word cs:[rax + rax]
nop
cmp ecx, 0x9d94c7bc
je 0x18000158e
cmp ecx, 0xedb082d9
je 0x18000157a
cmp ecx, 0x980af643
jne 0x180001560
jmp 0x180001593
mov ecx, dword [rsp + 0x24]
cmp ecx, 0xb7
mov ecx, 0x9d94c7bc
cmove ecx, eax
jmp 0x180001560
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800015a0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x20a
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov eax, 0x4205395
mov rdi, qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r15d, 0x8bf27d9f
mov r12d, 0xba04fab2
nop word cs:[rax + rax]
nop dword [rax]
cmp eax, 0x4205394
jle 0x180001650
cmp eax, 0x75097350
je 0x180001667
cmp eax, 0x712308f
je 0x1800016c6
cmp eax, 0x4205395
jne 0x180001610
cmp qword [rsp + 0x38], 0
mov eax, 0x712308f
cmove eax, r12d
xor r13d, r13d
jmp 0x180001610
cmp eax, 0x8bf27d9f
je 0x1800016e5
cmp eax, 0xba04fab2
jne 0x180001610
jmp 0x180001708
mov rcx, qword [rsp + 0x38]
lea rdx, [0x18001708e]
call rdi
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call rdi
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
cmp rax, 0xffffffffffffffff
sete bl
mov rcx, rax
call rbp
mov eax, 0x8bf27d9f
jmp 0x180001610
mov rdx, qword [rsp + 0x38]
mov ecx, 0x104
call r14
test eax, eax
mov eax, 0x75097350
cmove eax, r15d
xor ebx, ebx
jmp 0x180001610
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x40]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xba04fab2
mov r13d, ebx
jmp 0x180001610
mov eax, r13d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180001720
Capabilities:
Delete file
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x20a
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, 0x628bdd6b
mov r15, qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r13d, 0x8174cd51
lea rdi, [0x18001708e]
mov rbx, qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rbp, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r14d, 0x28134d77
cmp eax, 0x28134d76
jle 0x1800017d0
cmp eax, 0x28134d77
je 0x18000183a
cmp eax, 0x62f90fdf
je 0x1800017f8
cmp eax, 0x628bdd6b
jne 0x180001790
cmp qword [rsp + 0x28], 0
mov eax, 0xe7889ddb
cmove eax, r14d
jmp 0x180001790
cmp eax, 0x8174cd51
je 0x18000181d
cmp eax, 0xe7889ddb
jne 0x180001790
mov rdx, qword [rsp + 0x28]
mov ecx, 0x104
call r12
test eax, eax
mov eax, 0x62f90fdf
cmove eax, r13d
jmp 0x180001790
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call rbx
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call rbx
mov rcx, qword [rsp + 0x28]
call rbp
mov eax, 0x8174cd51
jmp 0x180001790
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x30]
mov rcx, rax
xor edx, edx
call r15
mov eax, 0x28134d77
jmp 0x180001790
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18000c9b0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000c9e0
xor eax, eax
jmp 0x18000caa3
mov rbp, rbx
cmp word [rax], si
je 0x18000ca05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000c9ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000c9e8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000c8d0
movsxd r14, eax
test eax, eax
jne 0x18000ca43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000c9d9
mov rcx, r14
call fcn.18000d060
mov rdi, rax
test rax, rax
jne 0x18000ca5c
xor ecx, ecx
call fcn.18000aa94
jmp 0x18000ca38
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000c8d0
test eax, eax
jne 0x18000ca8d
mov rcx, rdi
call fcn.18000aa94
jmp 0x18000ca97
xor ecx, ecx
call fcn.18000aa94
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000160c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x18004b8d8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rdx
xor edx, edx
mov r11, rcx
mov qword [rbp - 0x28], rcx
lea r9, [rbp - 0x20]
lea ebx, [rdx + 1]
lea edi, [rdx + 4]
xor r8d, r8d
lea r10, [rdx + r15]
mov al, byte [r10]
add r10, rdi
mov byte [r9 + r8], al
add r8, rbx
cmp r8, rdi
jl 0x180001656
add rdx, rbx
add r9, rdi
cmp rdx, rdi
jl 0x18000164f
lea rax, [rbp - 0x20]
mov r8, rcx
xor edx, edx
sub r8, rax
lea rcx, [rbp + rdx - 0x20]
mov r9, rdi
mov al, byte [r8 + rcx + 0x2a8]
xor byte [rcx], al
add rcx, rdi
sub r9, rbx
jne 0x180001687
add rdx, rbx
cmp rdx, rdi
jl 0x18000167f
lea r12d, [r9 + 9]
lea r14, [r8 + 0x298]
mov rcx, rdi
mov r9d, 3
xor edx, edx
mov r8d, r9d
mov eax, r8d
and eax, 0x80000003
jge 0x1800016cb
sub eax, ebx
or eax, 0xfffffffc
add eax, ebx
cdqe
add r8d, ebx
add rax, rcx
mov al, byte [rbp + rax - 0x20]
mov byte [rbp + rdx - 0x2c], al
add rdx, rbx
cmp rdx, rdi
jl 0x1800016ba
mov eax, dword [rbp - 0x2c]
sub r9d, ebx
mov dword [rbp + rcx - 0x20], eax
add rcx, rdi
cmp rcx, 0x10
jl 0x1800016b5
lea rdx, [rbp - 0x20]
mov r9, rdi
mov r8, rdi
movzx eax, byte [rdx]
mov cl, byte [rax + r11 + 0x108]
mov byte [rdx], cl
add rdx, rbx
sub r8, rbx
jne 0x180001700
sub r9, rbx
jne 0x1800016fd
xor edx, edx
lea rcx, [rbp + rdx - 0x20]
mov r8, rdi
mov al, byte [r14 + rcx]
xor byte [rcx], al
add rcx, rdi
sub r8, rbx
jne 0x180001724
add rdx, rbx
cmp rdx, rdi
jl 0x18000171c
test r12, r12
je 0x180001807
xor r11d, r11d
lea rsi, [rbp + r11 - 0x20]
xor ecx, ecx
mov rdx, rsi
mov al, byte [rdx]
add rdx, rdi
mov byte [rbp + rcx - 0x30], al
add rcx, rbx
cmp rcx, rdi
jl 0x180001750
xor r13d, r13d
lea ebx, [r13 + 3]
lea eax, [rbx - 2]
and eax, 0x80000003
jge 0x180001779
dec eax
or eax, 0xfffffffc
inc eax
cdqe
mov cl, inet_ntoa
mov dl, byte [rbp + rax - 0x30]
call fcn.18000186c
lea ecx, [rbx - 1]
and ecx, 0x80000003
mov dil, al
jge 0x18000179b
dec ecx
or ecx, 0xfffffffc
inc ecx
movsxd rax, ecx
mov cl, 0xd
mov dl, byte [rbp + rax - 0x30]
call fcn.18000186c
xor dil, al
mov eax, ebx
and eax, 0x80000003
jge 0x1800017bc
dec eax
or eax, 0xfffffffc
inc eax
cdqe
mov cl, 9
mov dl, byte [rbp + rax - 0x30]
call fcn.18000186c
mov dl, byte [rbp + r13 - 0x30]
mov cl, 0xe
xor dil, al
call fcn.18000186c
inc r13
xor dil, al
inc ebx
mov byte [rsi], dil
mov edi, 4
add rsi, rdi
cmp r13, rdi
jl 0x180001768
lea ebx, [rdi - 3]
add r11, rbx
cmp r11, rdi
jl 0x180001746
mov r11, qword [rbp - 0x28]
sub r14, 0x10
sub r12, rbx
jns 0x1800016ac
xor edx, edx
lea r9, [rbp - 0x20]
xor r8d, r8d
lea r10, [rdx + r15]
mov cl, byte [r9 + r8]
add r8, rbx
mov byte [r10], cl
add r10, rdi
cmp r8, rdi
jl 0x180001821
add rdx, rbx
add r9, rdi
cmp rdx, rdi
jl 0x18000181a
mov rax, r15
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18001bbd0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret