joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006f04
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140006f32
xor eax, eax
jmp 0x140007018
cmp qword [rcx + 0x68], 0
je 0x140006f43
call fcn.140007034
jmp 0x140007018
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140006f5a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006f5c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006f8e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140009f90
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140007012
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140006fc5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140006fee
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140011e28
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140007012
cmp rsi, rbx
ja 0x140006fcc
test rsi, rsi
je 0x140007012
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140011e28
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400070f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140007127
call fcn.1400071b8
jmp 0x14000719e
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14000713e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007140
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007198
test ecx, ecx
jle 0x140007179
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140009f90
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007198
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007198
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.140012388
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140008b94
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000e647
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e647
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e647
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e647
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e647
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e647
cmp dword [rcx + 0xf8], 0
je 0x14000e647
mov ecx, ebx
call fcn.14000e6e8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000e4d8
cmp dword [rbp + 0x20], 0
je 0x14000e694
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000e69c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000e5e0
Function at 0x180001390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x40], 0x41
mov byte [rsp + 0x41], 0x33
mov byte [rsp + 0x42], 0x43
mov byte [rsp + 0x43], 0x38
mov byte [rsp + 0x44], 0x32
mov byte [rsp + 0x45], 0x31
mov byte [rsp + 0x46], 0x37
mov byte [rsp + 0x47], 0x30
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x54], 8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x100
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x100
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
jmp 0x180001436
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x100
jge 0x180001474
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x28]
mov byte [rcx + rax], dl
xor edx, edx
mov eax, dword [rsp + 0x28]
div dword [rsp + 0x54]
mov eax, edx
mov eax, eax
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
movzx eax, byte [rsp + rax + 0x40]
mov byte [rdx + rcx], al
jmp 0x18000142c
mov dword [rsp + 0x2c], 0
jmp 0x180001488
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x100
jge 0x180001511
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20], al
movsxd rax, dword [rsp + 0x2c]
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x30]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x20]
mov byte [rcx + rax], dl
jmp 0x18000147e
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x3c], 0
jmp 0x18000152d
Function at 0x180001564
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x3c], eax
jae 0x18000161f
mov eax, dword [rsp + 0x38]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x24]
and al, 0x24
and al, 0x24
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20], al
movsxd rax, dword [rsp + 0x38]
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x30]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x20]
mov byte [rcx + rax], dl
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x70]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x70]
mov byte [rdx + rcx], al
jmp 0x180001523
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x68
ret
Function at 0x180001950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1800019a9
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1800019a9
mov rax, qword [rsp + 0x38]
jmp 0x180001b17
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x20], 0
jmp 0x180001a5d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x180001b12
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cdqe
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.180001b20
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xa8]
cmp dword [rsp + 0x44], eax
jne 0x180001b0d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
jmp 0x180001b17
jmp 0x180001a53
mov rax, qword [rsp + 0x38]
add rsp, 0x98
ret
Function at 0x180001e10
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [0x180076008]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov byte [rsp + 0x60], 0x2d
mov byte [rsp + 0x61], 0x6b
mov byte [rsp + 0x62], 7
mov byte [rsp + 0x63], 0x77
mov byte [rsp + 0x64], 6
mov byte [rsp + 0x65], 0x46
mov byte [rsp + 0x66], 0xf
mov byte [rsp + 0x67], 0x78
mov byte [rsp + 0x68], 0x22
mov byte [rsp + 0x69], 0x15
mov byte [rsp + 0x6a], 0x75
mov byte [rsp + 0x6b], 0xe2
mov byte [rsp + 0x6c], 0
mov edx, 0xc
lea rcx, [rsp + 0x60]
call fcn.180001390
mov byte [rsp + 0x70], 0x33
mov byte [rsp + 0x71], 0x7d
mov byte [rsp + 0x72], 0x10
mov byte [rsp + 0x73], 0x6b
mov byte [rsp + 0x74], 0x50
mov byte [rsp + 0x75], 0x18
mov byte [rsp + 0x76], 0x12
mov byte [rsp + 0x77], 0x2e
mov byte [rsp + 0x78], 0x60
mov byte [rsp + 0x79], 0x1d
mov byte [rsp + 0x7a], 0
mov edx, 0xa
lea rcx, [rsp + 0x70]
call fcn.180001390
mov edx, 0x1347fdfd
lea rcx, [rsp + 0x60]
call fcn.180001950
mov qword [rsp + 0x20], rax
mov edx, 0x285f1a3d
lea rcx, [rsp + 0x60]
call fcn.180001950
mov qword [rsp + 0x28], rax
mov edx, 0x509bf141
lea rcx, [rsp + 0x70]
call fcn.180001950
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x20], 0
je 0x180001f16
cmp qword [rsp + 0x28], 0
je 0x180001f16
cmp qword [rsp + 0x28], 0
jne 0x180001f1d
xor eax, eax
jmp 0x180002020
call qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180001f39
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x38]
call fcn.180002400
test eax, eax
je 0x180001f54
call fcn.180002340
test eax, eax
je 0x180001f54
call fcn.1800021d0
test eax, eax
jne 0x180001f5a
xor ecx, ecx
call qword [rsp + 0x20]
call fcn.1800041e0
movzx eax, al
test eax, eax
jne 0x180001f6c
xor ecx, ecx
call qword [rsp + 0x20]
call fcn.180003f80
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call fcn.180003160
test eax, eax
je 0x180001f96
cmp qword [rsp + 0x40], 0
je 0x180001f96
call qword [rsp + 0x40]
jmp 0x180001f9c
xor ecx, ecx
call qword [rsp + 0x20]
mov rax, qword [0x18001b930]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x88]
lea rcx, [0x18001b938]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1e
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call qword [sym.imp.KERNEL32.dll_AreFileApisANSI]
test eax, eax
je 0x180001ffc
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180002018
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x88]
call qword [sym.imp.USER32.dll_CharNextW]
xor ecx, ecx
call qword [rsp + 0x20]
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180005c10
add rsp, 0xb8
pop rdi
pop rsi
ret
Function at 0x1800021d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x180076008]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp dword [0x18001b984], 0
je 0x1800021f8
mov eax, 1
jmp 0x180002325
mov byte [rsp + 0x48], 0x28
mov byte [rsp + 0x49], 0x7a
mov byte [rsp + 0x4a], 0x11
mov byte [rsp + 0x4b], 0x75
mov byte [rsp + 0x4c], 0xf
mov byte [rsp + 0x4d], 4
mov byte [rsp + 0x4e], 0x58
mov byte [rsp + 0x4f], 0x26
mov byte [rsp + 0x50], 0x60
mov byte [rsp + 0x51], 0
mov edx, 9
lea rcx, [rsp + 0x48]
call fcn.180001390
mov byte [rsp + 0x58], 0x2d
mov byte [rsp + 0x59], 0x6b
mov byte [rsp + 0x5a], 7
mov byte [rsp + 0x5b], 0x77
mov byte [rsp + 0x5c], 6
mov byte [rsp + 0x5d], 0x46
mov byte [rsp + 0x5e], 0xf
mov byte [rsp + 0x5f], 0x78
mov byte [rsp + 0x60], 0x22
mov byte [rsp + 0x61], 0x15
mov byte [rsp + 0x62], 0x75
mov byte [rsp + 0x63], 0xe2
mov byte [rsp + 0x64], 0
mov edx, 0xc
lea rcx, [rsp + 0x58]
call fcn.180001390
mov edx, 0x6598b3b7
lea rcx, [rsp + 0x48]
call fcn.180001950
mov qword [rsp + 0x28], rax
mov edx, 0x328ad656
lea rcx, [rsp + 0x58]
call fcn.180001950
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x28], 0
je 0x1800022c1
cmp qword [rsp + 0x20], 0
jne 0x1800022c5
xor eax, eax
jmp 0x180002325
call qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0xffffffffc4653600
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [rsp + 0x28]
call qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
cmp rax, 0x186a0
jae 0x180002320
xor eax, eax
jmp 0x180002325
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180005c10
add rsp, 0x70
pop rdi
ret
Function at 0x180004910
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180004974
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180004962
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18000495b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18000492f
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180077e20]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180004984
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x180077e40]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1800049ba
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800049f0
mov eax, 0xa
jmp 0x180004a7c
test esi, esi
je 0x180004a12
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180004a33
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180004a33
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180004a2d
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180004a33
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180004f50
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x180004f67
cmp r8b, 0x90
je 0x180004f67
cmp r8b, 0xcc
jne 0x180004f89
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180004f85
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180004f89
add edx, r10d
cmp edx, r9d
jb 0x180004f75
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1800052f0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18000533a
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180077e38]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x180005378
cmp rbx, r14
jb 0x180005373
cmp rbx, r12
jae 0x180005373
cmp qword [rbx + 8], rsi
jne 0x1800054cf
mov rbx, qword [rbx]
jmp 0x18000535a
mov r15, rdi
cmp rdi, r14
jb 0x1800053fc
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x1800053f3
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800053f3
cmp dword [rbp - 0x10], 0x10000
je 0x1800053c3
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1800053f3
jmp 0x18000538f
test r15, r15
je 0x1800053f3
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180005494
cmp r15, r14
jae 0x180005380
test rbx, rbx
jne 0x180005494
cmp rdi, r12
ja 0x1800054cf
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x1800054cf
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800054cf
cmp dword [rbp - 0x10], 0x10000
je 0x18000546a
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x180005423
test rdi, rdi
je 0x1800054cf
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x1800053f6
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800054a0
mov rax, qword [0x180077e38]
mov qword [rbx], rax
mov qword [0x180077e38], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18000d598
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000d5c8
xor eax, eax
jmp 0x18000d68b
mov rbp, rbx
cmp word [rax], si
je 0x18000d5ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000d5d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000d5d0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000d4e8
movsxd r14, eax
test eax, eax
jne 0x18000d62b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000d5c1
mov rcx, r14
call fcn.18000adc0
mov rdi, rax
test rax, rax
jne 0x18000d644
xor ecx, ecx
call fcn.18000ad84
jmp 0x18000d620
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000d4e8
test eax, eax
jne 0x18000d675
mov rcx, rdi
call fcn.18000ad84
jmp 0x18000d67f
xor ecx, ecx
call fcn.18000ad84
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180012d90
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042e090], 0
je 0x40803e
cmp word [0x0042e3a0], 0xd7b2
jne 0x407fd3
cmp dword [0x0042e3a8], 0
jbe 0x407fd3
lea rcx, [0x0042e398]
call qword [0x0042e3c0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0042a4e0]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00408074]
call fcn.00408f00
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x408060
cmp byte [0x0042903a], 0
jne 0x408060
xor rcx, rcx
lea rdx, [0x0042a4e0]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40a650
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00432c78]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00432ca0], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00432c70], al
cmp byte [0x00432c70], 0
je 0x40a6ef
lea rcx, [0x0040a6f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040a70e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00432c58], rax
lea rcx, [0x0040a6f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040a72c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00432c60], rax
lea rcx, [0x0040a6f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040a74a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00432c68], rax
add rsp, 0x28
ret