joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003da00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003da0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003da1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003da05
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003da35
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003da22
sub eax, 3
jb 0x14003da4f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003da86
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003da76
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003da74
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003da63
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003d9c2
jmp 0x14003da0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003dad2
cmp rsi, rcx
jae 0x14003dada
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003dab9
cmp al, 0x8f
ja 0x14003dab9
cmp byte [rsi - 2], 0xf
je 0x14003dabf
sub al, 0xe8
cmp al, 1
ja 0x14003daa3
cmp rsi, rcx
jae 0x14003dada
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003daa9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003dada
lodsb al, byte [rsi]
jmp 0x14003dab9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3a000]
mov eax, dword [rdi]
or eax, eax
je 0x14003db43
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x42058]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003dae7
jns 0x14003db1c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14003db26
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003db3d
mov qword [rbx], rax
add rbx, 8
jmp 0x14003db07
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003db9b
sub rsp, 0xffffffffffffff80
jmp 0x1400242ac
Function at 0x1800015a0
Capabilities:
Parse pe header

Disassembly:
dec ecx
cmp ecx, 0xbf
ja case.0x1800015ca.3
movsxd rax, ecx
lea rdx, [0x180000000]
movzx eax, byte [rdx + rax + 0x1868]
mov ecx, dword [rdx + rax*4 + 0x175c]
add rcx, rdx
jmp rcx
mov eax, 7
ret
mov eax, 8
ret
mov eax, 9
ret
mov eax, 0xa
ret
mov eax, 0xb
ret
mov eax, 0xc
ret
mov eax, 0xd
ret
mov eax, 0xe
ret
mov eax, 0xf
ret
mov eax, 0x10
ret
mov eax, 0x11
ret
mov eax, 0x12
ret
mov eax, 0x13
ret
mov eax, 0x14
ret
mov eax, 0x15
ret
mov eax, 0x16
ret
mov eax, 0x17
ret
mov eax, 0x18
ret
mov eax, 0x19
ret
mov eax, 0x1a
ret
mov eax, 0x1b
ret
mov eax, 0x1c
ret
mov eax, 0x41
ret
mov eax, 0x42
ret
mov eax, 0x43
ret
mov eax, 0x44
ret
mov eax, 0x45
ret
mov eax, 0x46
ret
mov eax, 0x47
ret
mov eax, 0x48
ret
mov eax, 0x49
ret
mov eax, 0x4a
ret
mov eax, 0x4b
ret
mov eax, 0x4c
ret
mov eax, 0x4d
ret
mov eax, 0x4e
ret
mov eax, 0x4f
ret
mov eax, 0x1e
ret
mov eax, 0x20
ret
mov eax, 0x3d
ret
mov eax, 0x39
ret
mov eax, 0x27
ret
mov eax, 0x2a
ret
mov eax, 0x50
ret
mov eax, 0x51
ret
mov eax, 0x52
ret
mov eax, 0x53
ret
mov eax, 0x54
ret
mov eax, 0x55
ret
mov eax, 0x56
ret
mov eax, 0x57
ret
mov eax, 0x58
ret
mov eax, 0x59
ret
mov eax, 0x5a
ret
mov eax, 0x5b
ret
mov eax, 0x5c
ret
mov eax, 0x5d
ret
mov eax, 0x5e
ret
mov eax, 0x5f
ret
mov eax, 0x60
ret
mov eax, 0x61
ret
mov eax, 0x62
ret
mov eax, 0x63
ret
mov eax, 0x64
ret
mov eax, 0x65
ret
mov eax, 0x6d
ret
xor eax, eax
ret
Function at 0x18001e610
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov rax, qword gs:[0x30]
mov rbx, rcx
mov rdx, qword [rax + 0x60]
mov rdi, qword [rdx + 0x18]
add rdi, 0x20
mov r10, qword [rdi]
cmp r10, rdi
je 0x18001e6a1
nop word [rax + rax]
test rbx, rbx
je 0x18001e6ae
mov r9, qword [r10 + 0x50]
mov r11, rbx
test r9, r9
je 0x18001e699
nop dword [rax]
nop word [rax + rax]
movsx edx, byte [r11]
lea r11, [r11 + 1]
movzx r8d, word [r9]
lea r9, [r9 + 2]
lea ecx, [rdx - 0x41]
cmp cx, 0x19
lea eax, [rdx + 0x20]
lea ecx, [r8 - 0x41]
cmova ax, dx
cmp cx, 0x19
lea edx, [r8 + 0x20]
cmova dx, r8w
test ax, ax
je 0x18001e6ae
cmp ax, dx
je 0x18001e660
mov r10, qword [r10]
cmp r10, rdi
jne 0x18001e640
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov rax, qword [r10 + 0x20]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x18001e6c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
movsxd rax, dword [rcx + 0x3c]
xor r11d, r11d
mov rdi, rdx
mov rbx, rcx
mov esi, dword [rax + rcx + 0x88]
add rsi, rcx
mov ebp, dword [rsi + 0x18]
test ebp, ebp
je 0x18001e774
mov r15d, dword [rsi + 0x24]
mov r12d, dword [rsi + 0x20]
lea rax, [r15 + r11*2]
movzx r14d, word [rax + rbx]
lea rax, [r12 + r11*4]
mov r9d, dword [rax + rbx]
add r9, rbx
test rdi, rdi
je 0x18001e76c
test r9, r9
je 0x18001e76c
mov r10, rdi
sub r10, r9
nop dword [rax]
nop dword [rax + rax]
movsx ecx, byte [r10 + r9]
movsx edx, byte [r9]
lea r9, [r9 + 1]
lea eax, [rcx - 0x41]
cmp ax, 0x19
lea r8d, [rcx + 0x20]
lea eax, [rdx + 0x20]
cmova r8w, cx
lea ecx, [rdx - 0x41]
cmp cx, 0x19
cmova ax, dx
test r8w, r8w
jne 0x18001e766
test ax, ax
je 0x18001e791
cmp r8w, ax
je 0x18001e730
inc r11d
cmp r11d, ebp
jb 0x18001e700
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + r14*4]
add rax, rbx
jmp 0x18001e776
Function at 0x1400010f4
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [0x140003030]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, section..data
mov byte [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x140001170
lea rdx, section..data
lea rcx, [0x140003010]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x140001157
mov rcx, qword [0x140003030]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x140001170
mov rax, qword [0x140003030]
or dword [rax + 0x30], 0x10
mov rax, qword [0x140003030]
btr dword [rax + 0x30], 7
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x14000121c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r14, r8
mov r15, rdx
mov rdi, rcx
cmp word [rcx], ax
jne 0x1400012bd
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
jne 0x1400012bd
movzx eax, word [rbx + 0x14]
lea r12, [rbx + 0x18]
xor r13d, r13d
add r12, rax
movzx esi, r13w
cmp r13w, word [rbx + 6]
jae 0x1400012bd
movzx eax, si
lea rdx, [0x140001660]
lea rcx, [rax + rax*4]
lea rbp, [r12 + rcx*8]
mov rcx, rbp
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x14000129b
cmp dword [rbp], 0x45474150
jne 0x1400012b4
mov ecx, dword [rbp + 0xc]
mov r9, r14
mov edx, dword [rbp + 8]
add rcx, rdi
mov r8, r15
call fcn.1400011a0
test rax, rax
jne 0x1400012bf
inc si
cmp si, word [rbx + 6]
jb 0x140001273
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400012dc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
lea r9, [rax + 0x20]
mov r14, r8
mov dword [rax + 0x20], ebx
mov r15, rdx
mov r12, rcx
xor r8d, r8d
lea rdx, [rax + 0x20]
lea esi, [rbx + 0xb]
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp dword [rsp + 0x68], ebx
je 0x140001399
mov edx, dword [rsp + 0x68]
xor ecx, ecx
mov r8d, 0x564d4f4e
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140001399
mov r8d, dword [rsp + 0x68]
xor r9d, r9d
mov rdx, rax
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x140001387
mov ebp, ebx
cmp qword [rdi], rbx
jbe 0x140001385
mov rsi, rdi
lea rcx, [rsi + 0x30]
mov rdx, r12
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140001378
inc rbp
add rsi, 0x128
cmp rbp, qword [rdi]
jb 0x140001356
jmp 0x140001385
mov rax, qword [rsi + 0x18]
mov qword [r15], rax
mov eax, dword [rsi + 0x20]
mov dword [r14], eax
mov bl, 1
mov edx, 0x564d4f4e
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
jmp 0x14000139b
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400010d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x680
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor ebp, ebp
mov qword [rsp + 0x20], 0x238
mov r13, r8
mov dword [rsp + 0x28], ebp
mov r12, rdx
mov qword [rsp + 0x30], rbp
mov r15, rcx
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r8d, 0x20c
mov dword [rsp + 0x48], ebp
lea rcx, [rsp + 0x4c]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140001163
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateToolhelp32Snapshot_Failed_With_Error_:__d__n
call fcn.140001070
jmp 0x140001277
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001190
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Process32First_Failed_With_Error_:__d__n
jmp 0x14000126b
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea rdi, [rsp + 0x260]
xor eax, eax
mov ecx, 0x208
mov esi, ebp
rep stosb byte [rdi], al
cmp edx, 0x208
jae 0x1400011f9
test edx, edx
je 0x1400011e0
mov rdi, rbp
mov ebx, edx
mov esi, edx
movzx ecx, word [rsp + rdi + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rsp + rdi + 0x260], ax
lea rdi, [rdi + 2]
sub rbx, 1
jne 0x1400011c3
mov eax, esi
add rax, rax
cmp rax, 0x410
jae 0x1400012bf
mov word [rsp + rax + 0x260], bp
lea rax, [rsp + 0x260]
mov rdi, r15
sub rdi, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x140001223
add rax, 2
test ecx, ecx
jne 0x140001210
test edx, edx
je 0x14000123f
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001190
jmp 0x140001272
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
mov dword [r12], r8d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [r13], rax
test rax, rax
jne 0x140001272
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____OpenProcess_Failed_With_Error_:__d__n
mov edx, eax
call fcn.140001070
test r14, r14
je 0x140001280
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [r12], ebp
je 0x140001292
cmp qword [r13], rbp
setne bpl
mov eax, ebp
jmp 0x140001294
xor eax, eax
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.1400016a0
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x680
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400017c8
int3
Function at 0x1400020d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400045e0], rbx
je 0x14000211c
cmp rax, rbx
jne 0x14000210f
mov ebx, 1
mov esi, ebx
jmp 0x140002121
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400020f4
mov ebx, 1
mov eax, dword [0x1400045e8]
cmp eax, ebx
jne 0x140002137
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000219c
mov eax, dword [0x1400045e8]
test eax, eax
jne 0x140002196
mov dword [0x1400045e8], ebx
lea r15, [0x1400032b0]
lea rdi, [0x140003298]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002188
test eax, eax
jne 0x14000218c
cmp qword [rdi], 0
je 0x14000217d
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000215e
test eax, eax
je 0x14000219c
mov eax, 0xff
jmp 0x140002278
mov dword [0x140004024], ebx
mov eax, dword [0x1400045e8]
cmp eax, ebx
jne 0x1400021c3
lea rdx, [0x140003290]
lea rcx, [0x140003280]
call sub.msvcrt.dll__initterm
mov dword [0x1400045e8], 2
test esi, esi
jne 0x1400021d0
xor eax, eax
xchg qword [0x1400045e0], rax
cmp qword [0x1400045f0], 0
je 0x140002204
lea rcx, [0x1400045f0]
call fcn.140002630
test eax, eax
je 0x140002204
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400045f0]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x140004038]
mov rdx, qword [0x140004030]
mov ecx, dword [0x140004028]
call fcn.14000116c
mov dword [0x140004020], eax
cmp dword [0x140004040], 0
jne 0x140002234
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004024], 0
jne 0x140002249
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004020]
jmp 0x140002278
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140094000
add rsp, 0x28
jmp 0x1400020d0

Function at 0x14000251c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002568
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002560
cmp dword [rcx + 0x3c], edx
jl 0x140002560
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002560
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002568
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140040360
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140331ed8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov rcx, rax
call fcn.140040850
mov r8, rax
mov edx, 0x2712
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:13.0__Gecko_20100101_Firefox_13.0.1
lea rcx, [rsp + 0x28]
call fcn.140040750
nop
lea rcx, [rsp + 0x28]
call fcn.140040850
mov r8, rax
mov edx, 0x2722
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
mov r8d, 5
mov edx, 0x44
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
mov r8d, 1
mov edx, 0x34
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
mov r8d, 1
mov edx, 0x63
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
xor r8d, r8d
mov edx, Ordinal_50
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
lea r8, [0x1400405e0]
mov edx, 0x4e2b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
mov r8, qword [rsp + 0x70]
mov edx, 0x2711
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
xor r8d, r8d
mov edx, 0x40
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
xor r8d, r8d
mov edx, 0x51
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14020c880
nop
lea rcx, [rsp + 0x28]
call fcn.1400407c0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401ed9f0
add rsp, 0x68
ret

Function at 0x140040630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.1401efdf8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14004c450
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x140331ed8]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, [0x14027143e]
mov rcx, qword [rsp + 0x198]
call fcn.140087bb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004c4ac
xor r8d, r8d
xor edx, edx
lea rcx, str.123
call fcn.14009649c
xor eax, eax
jmp 0x14004c5c9
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x20]
call fcn.140087d70
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x14004c4f1
xor r8d, r8d
xor edx, edx
lea rcx, [0x140271444]
call fcn.14009649c
mov rcx, qword [rsp + 0x20]
call fcn.140087df0
xor eax, eax
jmp 0x14004c5c9
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x20]
call fcn.140087be0
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x14004c538
xor r8d, r8d
xor edx, edx
lea rcx, [0x140271448]
call fcn.14009649c
mov rcx, qword [rsp + 0x20]
call fcn.140087df0
xor eax, eax
jmp 0x14004c5c9
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x168], 0
jmp 0x14004c560
mov eax, dword [rsp + 0x168]
inc eax
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x164]
cmp dword [rsp + 0x168], eax
jge 0x14004c5ac
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.140087be0
mov dword [rsp + 0x160], eax
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.140087d30
mov dword [rsp + 0x160], eax
jmp 0x14004c550
mov rcx, qword [rsp + 0x20]
call fcn.140087df0
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401ed9f0
add rsp, 0x188
ret

Function at 0x14004c5f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x70]
call fcn.14004c410
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0x34], eax
lea rdx, [0x14027144c]
mov rcx, qword [rsp + 0x70]
call fcn.1401efc60
mov qword [rsp + 0x28], rax
lea rdx, [0x140271450]
mov rcx, qword [rsp + 0x78]
call fcn.1401efc60
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x28]
call fcn.1401f0454
test eax, eax
jne 0x14004c6ee
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1401f0434
mov rcx, qword [rsp + 0x28]
call fcn.1401f0454
test eax, eax
jne 0x14004c6e9
mov eax, dword [rsp + 0x24]
cdq
idiv dword [rsp + 0x34]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x30]
xor eax, ecx
mov byte [rsp + 0x20], al
mov r9, qword [rsp + 0x58]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1401efdf8
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x14004c662
mov rcx, qword [rsp + 0x28]
call fcn.1401efb20
mov rcx, qword [rsp + 0x58]
call fcn.1401efb20
add rsp, 0x60
pop rdi
ret
Function at 0x140082aa0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx eax, byte [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
xor ecx, eax
mov eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x14027c7a0]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
imul eax, eax, 0x8088405
inc eax
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
shr eax, 0x18
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x14027c7a0]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx + 8]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
ret

Function at 0x140083f30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x68]
imul rax, qword [rsp + 0x70]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
test eax, eax
je 0x140083fad
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140083fa0
mov rax, qword [rsp + 0x78]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x68]
jmp 0x140084021
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
cmp eax, dword [rcx + 0x28]
jbe 0x140083fd9
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x2c]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rsp + 0x78]
add rcx, qword [rdx + 0x20]
mov rdi, qword [rsp + 0x60]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x30]
xor edx, edx
div qword [rsp + 0x68]
add rsp, 0x48
pop rdi
pop rsi
ret