joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401cb2c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14023b488]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rsi, rcx
call fcn.1401de510
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401f2fa0
lea rcx, [rsp + 0x20]
test rbp, rbp
je 0x1401cb381
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x1401cb36f
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1401cb39e
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1401cb39e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1401cb39e
call fcn.1401ca990
sub qword [rdi], 1
jne 0x1401cb3ae
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1401cb3be
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f82c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f3050
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x1401f3114
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x1401f3070
not eax
ret
Function at 0x1401f8cac
Capabilities:
Parse pe header

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

Function at 0x140202ec8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140202cc4
Function at 0x1402086a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140208727
mov rsi, rbx
cmp word [rax], bp
je 0x1402086e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402086d0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402086cc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140203ea0
mov rdi, rax
test rax, rax
je 0x140208714
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401f8fd0
mov rbp, rdi
xor ecx, ecx
call fcn.140204854
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14020ad20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14020ad36
mov al, 1
jmp 0x14020ad96
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14020ad47
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14020ad94
mov ecx, dword [rcx + 0x18]
nop
call fcn.140208f60
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14020ad94
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14020ad94
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14020ad94
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14020ad96
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x401550
Capabilities:
Find taskbar

Disassembly:
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov rcx, qword [rbp + 0xf0]
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call rax
mov word [rbp + 0xca], ax
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0x20
mov rdi, rdx
rep stosq qword [rdi], rax
lea rdx, [0x004a3001]
lea rcx, str.Shell_TrayWnd
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xb8], 0x641
mov dword [rbp + 0xcc], 0
cmp dword [rbp + 0xcc], 9
jg 0x40165e
mov dword [rbp + 0xb4], 0x4ea
mov eax, dword [rbp + 0xcc]
cdqe
mov rdx, qword [rbp + 0xb8]
lea rcx, [rax + rdx]
mov edx, dword [rbp + 0xb4]
mov rax, qword [rbp + 0xc0]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_PostMessageA]
call rax
mov dword [rbp + 0xb0], 0x4e9
movzx ecx, word [rbp + 0xca]
mov eax, dword [rbp + 0xcc]
cdqe
mov rdx, qword [rbp + 0xb8]
lea r8, [rax + rdx]
mov edx, dword [rbp + 0xb0]
mov rax, qword [rbp + 0xc0]
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_PostMessageA]
call rax
add dword [rbp + 0xcc], 1
jmp 0x4015c6
lea rdx, [0x004a3010]
mov rcx, qword [0x004a7f70]
call fcn.0049bf70
mov dword [rbp + 0xac], 0x312
mov qword [rbp + 0xb8], 5
mov qword [rbp + 0xa0], 0
mov r8, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0xb8]
mov edx, dword [rbp + 0xac]
mov rax, qword [rbp + 0xc0]
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_PostMessageA]
call rax
nop
add rsp, 0x158
pop rdi
pop rbp
ret
Function at 0x4016c9
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
mov eax, 0x1238
call fcn.0040ce50
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 rcx, str.DownloadAgent
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x11a8], rax
cmp qword [rbp + 0x11a8], 0
jne 0x401732
mov ebx, 0
jmp 0x4018a6
mov rcx, qword [rbp + 0x11d0]
call fcn.00426670
mov rdx, rax
mov rax, qword [rbp + 0x11a8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
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 0x40179f
mov rax, qword [rbp + 0x11a8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0
jmp 0x4018a6
mov rdx, qword [rbp + 0x11d8]
lea rax, [rbp + 0xfc0]
mov r8d, 4
mov rcx, rax
call fcn.0047dc70
lea rax, [rbp + 0xfc0]
mov rcx, rax
call fcn.0047d9e0
xor eax, 1
test al, al
je 0x401801
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 0x401897
lea rdx, [rbp - 0x44]
lea rax, [rbp - 0x40]
mov rcx, qword [rbp + 0x11a0]
mov r9, rdx
mov r8d, 0x1000
mov rdx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x401837
mov eax, dword [rbp - 0x44]
test eax, eax
je 0x401837
mov eax, 1
jmp 0x40183c
mov eax, 0
test al, al
je 0x40185d
mov eax, dword [rbp - 0x44]
mov ecx, eax
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0xfc0]
mov r8, rcx
mov rcx, rax
call fcn.004623e0
jmp 0x401801
lea rax, [rbp + 0xfc0]
mov rcx, rax
call fcn.0047d9a0
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.0047e2a0
mov eax, ebx
jmp 0x4018c7
add rsp, 0x1238
pop rbx
pop rbp
ret
Function at 0x4018d1
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
mov byte [rbp + 0xef], 0
mov qword [rbp + 0xe0], 0
mov dword [rbp - 0x60], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xe0], rax
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xe0]
mov rdx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
setne al
test al, al
je 0x401a04
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0x100]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x4019e3
mov eax, dword [rbp - 0x58]
mov r8d, eax
mov edx, 0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
je 0x4019e3
mov rax, qword [rbp + 0xd8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rdx, str.Terminated_process:
mov rcx, qword [0x004a7f70]
call fcn.0049bf70
mov rdx, qword [rbp + 0x100]
mov rcx, rax
call fcn.0049bf70
mov rdx, qword [0x004a7f80]
mov rcx, rax
call fcn.00463d00
mov byte [rbp + 0xef], 1
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xe0]
mov rdx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
setne al
test al, al
je 0x401a04
jmp 0x401937
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
movzx eax, byte [rbp + 0xef]
add rsp, 0x170
pop rbp
ret
Function at 0x401a27
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x1f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x190], rcx
lea rax, [rbp + 0x100]
lea r8, [0x004a3036]
mov rdx, qword [rbp + 0x190]
mov rcx, rax
call fcn.0049c620
lea rax, [rbp + 0xe0]
mov rcx, rax
call fcn.0048d230
lea rax, [rbp + 0x100]
mov rcx, rax
call fcn.00426670
mov rcx, rax
lea rax, [rbp - 0x60]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x168], rax
cmp qword [rbp + 0x168], 0xffffffffffffffff
jne 0x401aa8
mov ebx, 0
jmp 0x401c65
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, [0x004a3039]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x401bf3
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, [0x004a303b]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x401bf3
lea rax, [rbp + 0x140]
lea r8, [0x004a303e]
mov rdx, qword [rbp + 0x190]
mov rcx, rax
call fcn.0049c620
lea rax, [rbp + 0x120]
lea rdx, [rbp - 0x60]
lea rcx, [rdx + 0x2c]
lea rdx, [rbp + 0x140]
mov r8, rcx
mov rcx, rax
call fcn.0049c520
lea rdx, [rbp + 0x120]
lea rax, [rbp + 0xe0]
mov rcx, rax
call fcn.0048d5b0
lea rax, [rbp + 0x120]
mov rcx, rax
call fcn.0048d570
lea rax, [rbp + 0x140]
mov rcx, rax
call fcn.0048d570
mov eax, dword [rbp - 0x60]
and eax, 0x10
test eax, eax
je 0x401b95
lea rax, [rbp + 0xe0]
mov rcx, rax
call fcn.00401a27
xor eax, 1
test al, al
je 0x401bf3
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov ebx, 0
jmp 0x401c65
lea rax, [rbp + 0xe0]
mov rcx, rax
call fcn.00426670
mov edx, pe_nt_image_headers64
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call rax
lea rax, [rbp + 0xe0]
mov rcx, rax
call fcn.00426670
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
test eax, eax
sete al
test al, al
je 0x401bf3
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov ebx, 0
jmp 0x401c65
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x168]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
setne al
test al, al
je 0x401c18
jmp 0x401aa8
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov rcx, qword [rbp + 0x190]
call fcn.00426670
mov edx, pe_nt_image_headers64
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call rax
mov rcx, qword [rbp + 0x190]
call fcn.00426670
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call rax
test eax, eax
setne bl
lea rax, [rbp + 0xe0]
mov rcx, rax
call fcn.0048d570
lea rax, [rbp + 0x100]
mov rcx, rax
call fcn.0048d570
mov eax, ebx
jmp 0x401cc7
add rsp, 0x1f8
pop rbx
pop rbp
ret
Function at 0x40bef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004cc624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40c078
mov rax, qword [0x004cc628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40bf3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40bfc5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40bf20
mov rcx, rbx
call fcn.0040cb90
test rax, rax
mov r12, rax
je 0x40c0ad
mov rax, qword [0x004cc628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0040ccc0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004cc628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c090
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40bfbe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40c020
add dword [0x004cc624], 1
cmp edi, 8
jae 0x40bff3
test dil, 4
jne 0x40c064
test edi, edi
je 0x40bfe8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40c07f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40bfe8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40c00c
jmp 0x40bfe8
add rsi, qword [0x004cc628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40bfbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0049f4c0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40bfe8
xor esi, esi
jmp 0x40bf47
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40bfe8
mov rax, qword [0x004cc628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0049f4c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0049f4c0
nop
nop dword [rax]

Function at 0x40c800
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004cc900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004cc8e0]
test rbx, rbx
je 0x40c854
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40c84b
test rsi, rsi
je 0x40c84b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40c830
lea rcx, [0x004cc900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40cb90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004a8530]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40cbfd
mov rcx, r8
call fcn.0040ca70
test eax, eax
je 0x40cbfd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40cbfd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40cbf4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40cbff
add rax, 0x28
cmp rax, r9
jne 0x40cbe0
xor eax, eax
add rsp, 0x28
ret
Function at 0x469100
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x469128
call r12
cmp dword [rax], 4
jne 0x469146
mov rcx, rbp
call fcn.00469000
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x469120
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x49eb70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x004a2f20]
jmp 0x40d9b0

Function at 0x49f4c0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
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 fcn.00418090
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00418090
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530

Function at 0x140c307f5
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x20]
call fcn.140d50100
pushfq
and al, 0x4b
invalid

Function at 0x140ccfbb2
Capabilities:
Encode data using xor

Disassembly:
mov rdx, qword [rsp + 0x10]
bswap r10d
test r10d, 0x4b285469
lea r10, [r10*2 + 0x445979e3]
movsx r10w, r10w
jns 0x140ce7f9a
Function at 0x416d80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416f0b
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 [0x00654e80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416de5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416df4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416e13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416e23
cmp rbx, 0x1000
jae 0x416deb
jmp 0x416e8d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416e35
xor edx, edx
jmp 0x416e84
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 [0x00654e80]
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 0x416e19
jmp 0x416e08
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00654e80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004fa13f]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004fa717]
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, [0x004fd31b]
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 0x416f40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417166
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 [0x00654e80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x416fb3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x416fc2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x416fe5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x416ff5
cmp rbx, 0x1000
jae 0x416fb9
nop
jmp 0x417078
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 0x41700d
xor esi, esi
jmp 0x41706a
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 [0x00654e80]
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 0x416feb
jmp 0x416fd6
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00654e80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x417100
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x004fa730]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x004fa717]
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, [0x004f6073]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x4170a0
call sym.runtime.printlock
lea rax, [0x004fa730]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004fa717]
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, [0x004fca7f]
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