joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002bc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002c1d
lea rbx, [0x140059d10]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002c04
cmp r10, 2
jb 0x140002c04
cmp byte [r9], r8b
jne 0x140002c04
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002be0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002c5f
lea rbx, [0x140059d10]
cmp r8b, 0x23
jne 0x140002c43
cmp byte [r9], r8b
jne 0x140002c43
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002c30
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002da0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140002dba
mov qword [r8], 0
lea rdx, [0x140059a6c]
call fcn.140002c70
mov rbx, rax
test rax, rax
jne 0x140002dda
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140002eb1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002eb1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002eb1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002eb1
cmp rdi, 0xffffffffffffffff
je 0x140002eb1
mov rax, qword [0x1403cab00]
test rax, rax
je 0x140002e4e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002eb1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140002e9e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1403cab00]
test rax, rax
je 0x140002e93
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002eba
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140002eac
mov qword [r14], rdi
mov rax, rsi
jmp 0x140002ebc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400050f0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xc8]
mov rax, qword [rcx + 0xd0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140059d10]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x1403cab00]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x3e74], ebx
jne 0x14000517d
mov dword [rax + 0x3e78], ebx
cmp dword [rax + 0x3ec0], ebx
jne 0x14000518c
mov byte [rax + 0x3ec4], 1
cmp dword [rax + 0x3e5c], ebx
jne 0x1400051a3
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140017690
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400051b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
vmovss xmm3, dword [rcx + 0xe8]
vmovss xmm0, dword [rdx]
mov rax, qword [rcx + 0xd0]
lea r8, [0x140059d10]
vmovss xmm4, dword [rcx + 0xec]
vmovss xmm2, dword [rdx + 4]
movsxd rcx, dword [rcx + 0xc8]
vsubss xmm1, xmm0, xmm3
vmovss dword [rsp], xmm1
vmovss xmm1, dword [rdx + 8]
vsubss xmm0, xmm2, xmm4
vmovss dword [rsp + 4], xmm0
vmovss xmm0, dword [rdx + 0xc]
mov edx, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not edx
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 1]
vsubss xmm2, xmm1, xmm3
vmovss dword [rsp + 8], xmm2
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 2]
vsubss xmm1, xmm0, xmm4
vmovss dword [rsp + 0xc], xmm1
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 3]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 4]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 5]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 6]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 7]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 8]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 9]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0xa]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0xb]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0xc]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0xd]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0xe]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0xf]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x1403cab00]
xor edx, dword [r8 + rcx*4]
not edx
cmp dword [rax + 0x3e74], edx
jne 0x14000534f
mov dword [rax + 0x3e78], edx
cmp dword [rax + 0x3ec0], edx
jne 0x14000535e
mov byte [rax + 0x3ec4], 1
mov eax, edx
add rsp, 0x18
ret
Function at 0x14000f4a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [0x1403cab00]
lea r10, [0x140059d10]
movsxd r9, ecx
mov rbx, qword [r8 + 0x3e28]
add rbx, 0xc8
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
not edi
cmp dword [r8 + 0x3e5c], edi
jne 0x14000f545
mov r8, r9
mov edx, 4
mov ecx, edi
call fcn.140017690
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x14000f579
inc r8d
test ecx, ecx
je 0x14000f562
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14000f567
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.140018730
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140010fa0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1403ca010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1403cab00]
mov edi, ecx
cmp byte [rbx + 0x41cd], 0
jne 0x140011001
cmp byte [rbx + 0x41ce], 0
jne 0x140011001
movsx r9d, word [rbx + 0x52ae]
lea r8, [0x1400599f0]
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002b40
test dil, 1
je 0x14001111f
jmp 0x140011087
vmovss xmm1, dword [rbx + 0x3830]
vmulss xmm0, xmm1, dword [0x1403c0e84]
vaddss xmm2, xmm0, dword [rbx + 0xd0c]
vmulss xmm1, xmm1, dword [0x1403c0e70]
vaddss xmm0, xmm1, dword [rbx + 0xd10]
movsx r9d, word [rbx + 0x52ae]
lea r8, [0x1400599f0]
xor eax, eax
mov dword [rbx + 0x3f34], 1
vmovss dword [rbx + 0x3f44], xmm0
vmovss dword [rbx + 0x3f40], xmm2
mov qword [rbx + 0x3f48], rax
lea rcx, [rsp + 0x20]
vmovss xmm0, dword [rbx + 0x388c]
vmulss xmm1, xmm0, dword [0x1403c0d44]
or dword [rbx + 0x3f30], 0x41
lea edx, [rax + 0x10]
vmovss dword [rbx + 0x3f90], xmm1
call fcn.140002b40
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400110d7
lea r11, [0x140059d10]
cmp r9b, 0x23
jne 0x1400110ba
cmp byte [r8], r9b
jne 0x1400110ba
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400110a7
not ecx
call fcn.14000a240
test rax, rax
je 0x14001111f
cmp byte [rax + 0x8e], 0
je 0x14001111f
mov byte [rax + 0x95], 1
lea r8, [0x1400599f0]
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x52ae]
mov edx, 0x10
movsx r9d, word [rbx + 0x52ae]
call fcn.140002b40
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000c920
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140055620
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400163e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5360], 0
lea rbx, [rcx + 0x5368]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140016487
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001643a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140018500
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003510
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5360]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5370]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1403caaf8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001648f
mov rcx, rbx
call fcn.140003510
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140051260
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1403ca010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov edx, 0x100
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x28], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x38], xmm1
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400512b3
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140053d90
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400537a0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140051321
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005131c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005131c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055710
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140055620
add rsp, 0x260
pop rbx
ret

Function at 0x140051570
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403ca010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x40], ebp
jb 0x1400515a1
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140051642
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140051614
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14005160f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400516eb
mov rcx, r8
call fcn.140055710
mov al, 1
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140055620
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140051687
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140051683
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14005167e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400516eb
mov rcx, r8
call fcn.140055710
xor al, al
jmp 0x140051616
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x59c00
mov qword [rsp + 0x20], rbp
lea rdx, [0x140363cf0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x1400516d4
cmp rax, 8
jb 0x140051683
lea rdx, [rax*2 + 2]
jmp 0x14005165a
cmp rax, 8
jb 0x140051614
lea rdx, [rax*2 + 2]
jmp 0x1400515e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140051700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403ca010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x40], ebp
jb 0x140051731
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1400517d2
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400517a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14005179f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005187b
mov rcx, r8
call fcn.140055710
mov al, 1
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140055620
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140051817
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140051813
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14005180e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005187b
mov rcx, r8
call fcn.140055710
xor al, al
jmp 0x1400517a6
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2000
mov qword [rsp + 0x20], rbp
lea rdx, [0x1403bd8f0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140051864
cmp rax, 8
jb 0x140051813
lea rdx, [rax*2 + 2]
jmp 0x1400517ea
cmp rax, 8
jb 0x1400517a4
lea rdx, [rax*2 + 2]
jmp 0x140051777
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140051890
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403ca010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x40], ebp
jb 0x1400518c1
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140051962
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140051934
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14005192f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051a0b
mov rcx, r8
call fcn.140055710
mov al, 1
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140055620
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x1400519a7
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400519a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14005199e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051a0b
mov rcx, r8
call fcn.140055710
xor al, al
jmp 0x140051936
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0xff800
mov qword [rsp + 0x20], rbp
lea rdx, [0x1402644a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x1400519f4
cmp rax, 8
jb 0x1400519a3
lea rdx, [rax*2 + 2]
jmp 0x14005197a
cmp rax, 8
jb 0x140051934
lea rdx, [rax*2 + 2]
jmp 0x140051907
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140056108
Capabilities:
Parse pe header

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

Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0xdd
add al, 0x71
xor al, 0x3a
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
fmul st(4), st(0)
fcom qword [r15]
mov bh, 0x63
sbb eax, 0xc8df69a6
or esi, dword [rcx + 0x34]
xchg ebx, eax
invalid
Function at 0x401030
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push rsi
mov esi, ecx
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x401073
movzx edx, word [rbx + 0x58]
mov rcx, qword [rbx + 0x60]
call fcn.00401370
cmp eax, esi
jne 0x40106e
mov rax, qword [rbx + 0x30]
jmp 0x401075
mov rbx, qword [rbx]
jmp 0x401052
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x40107d
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x401097
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x401097
xor eax, eax
ret

Function at 0x401200
Capabilities:
Get number of processors

Disassembly:
push r13
xor eax, eax
push r12
mov r12, rcx
mov ecx, 0x18
push rdi
push rsi
sub rsp, 0xb8
lea rdi, [rsp + 0x50]
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x40], 0
rep stosd dword [rdi], eax
mov rdi, rsi
mov qword [rsp + 0x48], 0
mov ecx, 0x60
mov dword [rsp + 0x3c], 0
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov r13, qword [rax + 0x30]
call fcn.00401016
mov qword [rsp + 0x50], rax
call fcn.00402010
mov rdx, qword [rsp + 0x50]
mov ecx, 0x70e61753
mov qword [rsp + 0x48], 8
sub rax, rdx
add rdx, qword [0x00401410]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x40], rdx
call fcn.00401030
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x4012ca
lea rax, [rsp + 0x3c]
or rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
call qword [rsp + 0x68]
test eax, eax
jns 0x4012ff
jmp 0x401356
mov rcx, rax
mov edx, 0x3be94c5a
call fcn.00401098
mov qword [rsp + 0x60], rax
test rax, rax
je 0x401356
mov rcx, qword [rsp + 0x90]
mov edx, 0x50e92888
call fcn.00401098
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x40129f
jmp 0x401356
mov rdi, qword [rsp + 0x40]
mov r8d, 0x60
mov edx, 8
mov rcx, r13
call qword [rsp + 0x60]
mov qword [rdi], rax
test rax, rax
je 0x401356
mov rax, qword [rsp + 0x40]
mov ecx, 0x18
mov rax, qword [rax]
mov rdi, rax
xor eax, eax
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x50]
mov ecx, 0x60
rep stosb byte [rdi], al
mov rsi, qword [rsp + 0x40]
mov ecx, 0x18
lea rdi, [rsi + 8]
rep stosb byte [rdi], al
mov rcx, r12
call fcn.00401130
add rsp, 0xb8
pop rsi
pop rdi
pop r12
pop r13
ret

Function at 0x401370
Capabilities:
Hash data using djb2

Disassembly:
xor r9d, r9d
test rcx, rcx
je 0x4013bf
mov r8, rcx
mov r9d, 0x1505
mov al, byte [r8]
test rdx, rdx
jne 0x40138f
test al, al
jne 0x4013a3
jmp 0x4013bf
mov r10, r8
sub r10, rcx
cmp r10, rdx
jae 0x4013bf
test al, al
jne 0x4013a3
inc r8
jmp 0x4013aa
cmp al, 0x60
jbe 0x4013aa
sub eax, 0x20
mov r10d, r9d
movzx eax, al
inc r8
shl r10d, 5
add eax, r10d
add r9d, eax
jmp 0x401381
mov eax, r9d
ret
Function at 0x1400010e0
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400010fa
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov edx, 1
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r11d, r11d
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], r11
mov dword [rdi + 0x10], r11d
add rsp, 0x20
pop rdi
ret

Function at 0x140001470
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 8
mov r11d, edx
mov r10, rcx
test rcx, rcx
je 0x1400014b4
test edx, edx
jle 0x1400014b4
lea eax, [rdx + 2]
mov edx, 2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1402a89a8]
cvttss2si eax, xmm0
shl eax, 2
sub edx, eax
lea eax, [rdx - 1]
cmp eax, dword [r9]
jle 0x1400014be
test r8, r8
je 0x1400014b6
mov byte [r8], 0
xor edx, edx
mov dword [r9], edx
add rsp, 8
ret
lea eax, [rdx - 2]
lea ecx, [r11 - 2]
xor edx, edx
mov qword [rsp], rdi
lea rdi, [0x14029cff0]
mov dword [r9], eax
test ecx, ecx
jle 0x140001572
dec ecx
mov eax, 0xaaaaaaab
mov qword [rsp + 0x10], rbx
lea rbx, [r10 + 1]
mul ecx
shr edx, 1
inc edx
mov r9d, edx
lea edx, [rdx + rdx*2]
nop dword [rax]
movzx eax, byte [rbx - 1]
add r8, 4
add rbx, 3
shr rax, 2
movzx eax, byte [rax + rdi]
mov byte [r8 - 4], al
movsx eax, byte [rbx - 4]
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [rbx - 3]
shr eax, 4
or rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [r8 - 3], al
movsx eax, byte [rbx - 3]
and eax, 0xf
shl eax, 2
movsxd rcx, eax
movzx eax, byte [rbx - 2]
shr rax, 6
or rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [r8 - 2], al
movsx rax, byte [rbx - 2]
and eax, 0x3f
sub r9, 1
movzx eax, byte [rax + rdi]
mov byte [r8 - 1], al
jne 0x140001500
mov rbx, qword [rsp + 0x10]
cmp edx, r11d
jge 0x14000160d
movsxd r9, edx
movzx eax, byte [r9 + r10]
shr rax, 2
movzx eax, byte [rax + rdi]
mov byte [r8], al
lea eax, [r11 - 1]
cmp edx, eax
jne 0x1400015c9
movsx eax, byte [r9 + r10]
add r8, 3
and eax, 3
shl eax, 4
inc r8
cdqe
movzx eax, byte [rax + rdi]
mov rdi, qword [rsp]
mov byte [r8 - 3], al
mov byte [r8 - 2], 0x3d
mov byte [r8 - 1], 0x3d
mov byte [r8], 0
add rsp, 8
ret
movsx eax, byte [r9 + r10]
add r8, 3
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [r9 + r10 + 1]
shr eax, 4
or rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [r8 - 2], al
movsx eax, byte [r9 + r10 + 1]
and eax, 0xf
shl eax, 2
inc r8
cdqe
movzx eax, byte [rax + rdi]
mov byte [r8 - 2], al
mov byte [r8 - 1], 0x3d
mov byte [r8], 0
mov rdi, qword [rsp]
add rsp, 8
ret