joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cf9ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400c0ee8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400cfa8d
cmp ebx, dword [rsp + 0x30]
je 0x1400cfa86
test esi, esi
je 0x1400cfa86
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400cfa61
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400cfa6e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400cfa4b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400cfa72
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400cfa8f
mov eax, 1
jmp 0x1400cfa8f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d4c90
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400c602c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400c602c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400d4de0
cmp rax, 0xffffffffffffffff
je 0x1400d4de0
xor edi, edi
test rbp, rbp
jle 0x1400d4d8b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400c4968
mov rbx, rax
test rax, rax
jne 0x1400d4d18
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400d4d81
mov edx, 0x8000
mov ecx, r14d
call fcn.1400bef40
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400c33a0
cmp eax, 0xffffffff
je 0x1400d4d61
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400d4d28
mov edx, r15d
mov ecx, r14d
call fcn.1400bef40
jmp 0x1400d4d81
cmp byte [rsi + 0x38], dil
je 0x1400d4d78
cmp dword [rsi + 0x34], 5
jne 0x1400d4d78
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400d4d81
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400c1428
jmp 0x1400d4df4
jns 0x1400d4df4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400c602c
cmp rax, 0xffffffffffffffff
jne 0x1400d4dac
cmp byte [rsi + 0x30], dil
je 0x1400d4df4
mov edi, dword [rsi + 0x2c]
jmp 0x1400d4df4
mov ecx, r14d
call fcn.1400cd4d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400d4df4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400d4df4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400d4ded
mov eax, dword [rsi + 0x2c]
jmp 0x1400d4df2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400c602c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400d5280
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d52a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d52a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401b3a
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x23
mov edx, 1
lea rcx, str.An_error_occurred_in_the_program.__n
call sym.fwrite
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r8, qword [rbp + 0x10]
lea rdx, [0x004050f4]
mov rcx, rax
call sym.fprintf
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov eax, dword [rbp + 0x18]
mov r8d, eax
lea rdx, str.Error_number__x._n
call sym.fprintf
nop
add rsp, 0x20
pop rbp
ret

Function at 0x401bbc
Capabilities:
Delete file

Disassembly:
push rbp
push rdi
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rax, qword [0x00408048]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov rax, qword [0x00408048]
mov rcx, rax
call sym.strdup
mov rdx, rax
mov rax, rdx
mov rcx, 0xffffffffffffffff
mov r8, rax
mov eax, 0
mov rdi, r8
repne scasb al, byte [rdi]
mov rax, rcx
not rax
sub rax, 1
add rax, rdx
mov dword [rax], 0x706d742e
mov byte [rax + 4], 0
mov rcx, rdx
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov rax, qword [0x00408048]
mov rcx, rax
call sym.free
movzx eax, word [0x00408038]
movzx eax, ax
mov rcx, qword [0x00408060]
mov edx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
nop
add rsp, 0x28
pop rdi
pop rbp
ret
Function at 0x401c5c
Capabilities:
Get common file path
Get file attributes

Disassembly:
push rbp
push rdi
push rbx
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov ebx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
imul eax, ebx
mov ecx, eax
call sym.srand
mov qword [rbp - 0x18], 0xa
mov qword [rbp - 8], 0
cmp qword [rbp - 0x18], 0
je 0x401d29
mov rax, qword [rbp - 0x18]
add rax, 1
mov rcx, rax
call sym.malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x401d29
mov dword [rbp - 0xc], 0
mov eax, dword [rbp - 0xc]
cdqe
cmp qword [rbp - 0x18], rax
jbe 0x401d1b
call sym.rand
mov ecx, eax
mov edx, 0x7a44c6b
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
imul eax, eax, 0x43
sub ecx, eax
mov eax, ecx
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0xc]
cdqe
mov rdx, qword [rbp - 8]
add rdx, rax
mov eax, dword [rbp - 0x1c]
cdqe
lea rcx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.__
movzx eax, byte [rax + rcx]
mov byte [rdx], al
add dword [rbp - 0xc], 1
jmp 0x401cc1
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov byte [rax], 0
mov ecx, 0x400
call sym.malloc
mov qword [0x00408048], rax
mov rax, qword [0x00408048]
mov rdx, rax
mov ecx, 0x400
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
mov rax, qword [0x00408048]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x18]
add rax, rdx
lea rdx, [rax + 0xa]
mov rax, qword [0x00408048]
mov rcx, rax
call sym.realloc
mov qword [0x00408048], rax
mov rax, qword [rbp - 8]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
add rax, rdx
mov dword [rax], 0x7461622e
mov byte [rax + 4], 0
mov rdx, qword [rbp - 8]
mov rax, qword [0x00408048]
mov rcx, rax
call sym.strcat
mov rdx, rax
mov rax, qword [0x00408048]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
mov rax, qword [0x00408048]
mov rcx, rax
call sym.strlen
lea rdx, [rax + 1]
mov rax, qword [0x00408048]
mov rcx, rax
call sym.realloc
mov qword [0x00408048], rax
mov rax, qword [0x00408048]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
add rsp, 0x40
pop rbx
pop rdi
pop rbp
ret
Function at 0x401e2d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
sub rsp, 0x28
lea rbp, [rsp + 0x80]
lea rcx, [sym.clean__]
call sym.atexit
call sym.gettemp__
cmp eax, 0xffffffff
je 0x401e9e
mov rdx, qword [0x00408048]
mov rax, rdx
mov rcx, 0xffffffffffffffff
mov r8, rax
mov eax, 0
mov rdi, r8
repne scasb al, byte [rdi]
mov rax, rcx
not rax
sub rax, 1
add rax, rdx
mov dword [rax], 0x706d742e
mov byte [rax + 4], 0
mov rcx, rdx
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
je 0x401e9e
mov eax, 1
jmp 0x401ea3
mov eax, 0
test al, al
je 0x401eb8
mov rax, qword [0x00408048]
mov rcx, rax
call sym.free
jmp 0x401e47
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call rax
mov rax, qword [0x00408060]
lea rdx, [0x00408030]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
lea rdx, [0x0040510a]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SetWindowTextA]
call rax
nop
add rsp, 0x28
pop rdi
pop rbp
ret
Function at 0x4021ea
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
lea rax, [rbp - 0x90]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x90], 0x68
lea rax, [rbp - 0x20]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rdx, qword [0x00408050]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
sete al
test al, al
je 0x4022b7
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Unable_To_Create_Child_Process:_Error_number__d_n
call sym.printf
mov eax, dword [0x00408058]
add eax, 0x64
mov dword [0x00408058], eax
mov rax, qword [0x00408050]
mov rcx, rax
call sym.free
mov eax, dword [0x00408058]
test eax, eax
je 0x4022f8
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [0x00408058]
jmp 0x40234a
mov rax, qword [rbp - 0x20]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x94]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x94]
add rsp, 0xf0
pop rbp
ret
Function at 0x402ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408664]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402c58
mov rax, qword [0x00408668]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x402b1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402ba5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402b00
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402c8d
mov rax, qword [0x00408668]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408668]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402c70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x402b9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402c00
add dword [0x00408664], 1
cmp edi, 8
jae 0x402bd3
test dil, 4
jne 0x402c44
test edi, edi
je 0x402bc8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x402c5f
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 0x402bc8
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 0x402bec
jmp 0x402bc8
add rsi, qword [0x00408668]
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 0x402b9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402bc8
xor esi, esi
jmp 0x402b27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402bc8
mov rax, qword [0x00408668]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4033e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408920]
test rbx, rbx
je 0x403434
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 0x40342b
test rsi, rsi
je 0x40342b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403410
lea rcx, [0x00408940]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403670
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x403680
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x403690
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4036d1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4036c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4036d3
add rax, 0x28
cmp rax, r9
jne 0x4036b4
xor eax, eax
ret

Function at 0x403770
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405540]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4037dd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4037dd
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 0x4037dd
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 0x4037d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4037df
add rax, 0x28
cmp rax, r9
jne 0x4037c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4038e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405540]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403900
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4038f8
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 0x40395d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403954
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403964
add rax, 0x28
cmp rax, r9
jne 0x403940
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403980
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405540]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4039ee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4039ee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4039ee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4039ee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4039e5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4039f5
add rcx, 0x28
cmp rcx, rax
jne 0x4039d0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403a08
jmp 0x4039ee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403a16
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4039ee
test r9d, r9d
jg 0x403a00
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403db0
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
nop
nop
nop
nop
nop
nop
Function at 0x401863
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
movabs rax, 0
mov qword [rbp - 8], rax
lea rax, [0x004146a9]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleA
lea rcx, str.VirtualAllocExNuma
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetProcAddress
mov qword [rbp - 0x10], rax
call sub.kernel32.dll_GetCurrentProcess
mov ecx, 0
mov qword [rsp + 0x28], rcx
mov ecx, 0x40
mov qword [rsp + 0x20], rcx
mov ecx, 0x3000
mov r9, rcx
movabs rcx, 0x3e8
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
mov r11, qword [rbp - 0x10]
call r11
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
mov eax, 0
sete al
leave
ret

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
movabs rax, 0
mov qword [rbp - 8], rax
lea rax, [0x004146a9]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleA
lea rcx, str.VirtualAllocExNuma
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetProcAddress
mov qword [rbp - 0x10], rax
call sub.kernel32.dll_GetCurrentProcess
mov ecx, 0
mov qword [rsp + 0x28], rcx
mov ecx, 0x40
mov qword [rsp + 0x20], rcx
mov ecx, 0x3000
mov r9, rcx
movabs rcx, 0x3e8
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
mov r11, qword [rbp - 0x10]
call r11
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
mov eax, 0
sete al
leave
ret

Function at 0x40190b
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
lea rax, [0x004146c9]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleA
mov qword [rbp - 0x80], rax
lea rax, str.GlobalMemoryStatusEx
mov r11, rax
mov rax, qword [rbp - 0x80]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetProcAddress
mov qword [rbp - 0x88], rax
mov rax, qword [rbp - 0x88]
cmp rax, 0
je 0x401965
jmp 0x401981
lea rax, str.Could_not_find_GlobalMemoryStatusEx_n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401a20
lea rax, [rbp - 0x30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rbp - 0x10]
mov dword [rbp - 0x74], eax
mov eax, dword [rbp - 0x74]
cmp eax, 2
ja 0x4019ac
mov eax, 0
jmp 0x401a20
mov eax, 0x40
mov dword [rbp - 0x70], eax
lea rax, [rbp - 0x70]
mov r10, rax
mov rcx, r10
mov r11, qword [rbp - 0x88]
call r11
cmp eax, 0
je 0x4019d6
jmp 0x4019f2
lea rax, str.GlobalMemoryStatusEx_failed_n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401a20
mov rax, qword [rbp - 0x68]
shr rax, 0xa
shr rax, 0xa
shr rax, 0xa
mov dword [rbp - 0x78], eax
mov eax, dword [rbp - 0x78]
cmp eax, 4
ja 0x401a1b
mov eax, 0
jmp 0x401a20
mov eax, 1
leave
ret
Function at 0x401916
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
lea rax, [0x004146c9]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleA
mov qword [rbp - 0x80], rax
lea rax, str.GlobalMemoryStatusEx
mov r11, rax
mov rax, qword [rbp - 0x80]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetProcAddress
mov qword [rbp - 0x88], rax
mov rax, qword [rbp - 0x88]
cmp rax, 0
je 0x401965
jmp 0x401981
lea rax, str.Could_not_find_GlobalMemoryStatusEx_n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401a20
lea rax, [rbp - 0x30]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rbp - 0x10]
mov dword [rbp - 0x74], eax
mov eax, dword [rbp - 0x74]
cmp eax, 2
ja 0x4019ac
mov eax, 0
jmp 0x401a20
mov eax, 0x40
mov dword [rbp - 0x70], eax
lea rax, [rbp - 0x70]
mov r10, rax
mov rcx, r10
mov r11, qword [rbp - 0x88]
call r11
cmp eax, 0
je 0x4019d6
jmp 0x4019f2
lea rax, str.GlobalMemoryStatusEx_failed_n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401a20
mov rax, qword [rbp - 0x68]
shr rax, 0xa
shr rax, 0xa
shr rax, 0xa
mov dword [rbp - 0x78], eax
mov eax, dword [rbp - 0x78]
cmp eax, 4
ja 0x401a1b
mov eax, 0
jmp 0x401a20
mov eax, 1
leave
ret
Function at 0x402ba2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x402c5c
jmp 0x402bdf
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x402bc1
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x402c57
jmp 0x402c05
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x402be7
mov rax, qword [rbp + 0x18]
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
add rax, rcx
mov ecx, dword [rbp + 0x10]
shl ecx, 2
shl ecx, 2
movzx edx, byte [rbp - 1]
shl edx, 2
add ecx, edx
movzx edx, byte [rbp - 2]
add ecx, edx
movsxd rcx, ecx
mov rdx, qword [rbp + 0x20]
add rdx, rcx
movzx ecx, byte [rax]
mov qword [rbp - 0x10], rax
movzx eax, byte [rdx]
xor ecx, eax
mov rax, qword [rbp - 0x10]
mov byte [rax], cl
jmp 0x402bf9
jmp 0x402bd3
leave
ret

Function at 0x402bad
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x402c5c
jmp 0x402bdf
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x402bc1
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x402c57
jmp 0x402c05
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x402be7
mov rax, qword [rbp + 0x18]
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
add rax, rcx
mov ecx, dword [rbp + 0x10]
shl ecx, 2
shl ecx, 2
movzx edx, byte [rbp - 1]
shl edx, 2
add ecx, edx
movzx edx, byte [rbp - 2]
add ecx, edx
movsxd rcx, ecx
mov rdx, qword [rbp + 0x20]
add rdx, rcx
movzx ecx, byte [rax]
mov qword [rbp - 0x10], rax
movzx eax, byte [rdx]
xor ecx, eax
mov rax, qword [rbp - 0x10]
mov byte [rax], cl
jmp 0x402bf9
jmp 0x402bd3
leave
ret

Function at 0x402c5e
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x402d0d
jmp 0x402c93
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x402c75
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x402d08
jmp 0x402cb9
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x402c9b
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, str.cw
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x402cad
jmp 0x402c87
leave
ret