joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400849a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400b8d88]
test eax, eax
je 0x140084a3a
lea rax, [0x1400b8d60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400b8d90]
mov qword [rbp - 8], rax
jmp 0x140084a1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140084a12
cmp qword [rbp - 0x10], 0
je 0x140084a12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400849d8
lea rax, [0x1400b8d60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140084a3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140084b40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140084b68
mov eax, 0
jmp 0x140084bb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140084b91
mov eax, 0
jmp 0x140084bb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140084bb1
mov eax, 0
jmp 0x140084bb6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140084bbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140084c3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140084c31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140084c31
mov rax, qword [rbp - 8]
jmp 0x140084c4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140084c04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6110
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d6b12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d6baa
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d6b8e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d6b82
cmp qword [rbp - 0x10], 0
je 0x2fc4d6b82
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6b48
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d6bab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6cb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d6cd8
mov eax, 0
jmp 0x2fc4d6d26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6d01
mov eax, 0
jmp 0x2fc4d6d26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6d21
mov eax, 0
jmp 0x2fc4d6d26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6d2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d6daa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6da1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d6da1
mov rax, qword [rbp - 8]
jmp 0x2fc4d6dbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d6d74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x142436058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1424361df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x142436089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14243606f
add dl, dl
jne 0x142436096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1424360f6
xor eax, eax
add dl, dl
jne 0x1424360a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1424361ad
add dl, dl
jne 0x1424360b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1424360c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1424360d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1424360dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1424360ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14243607e
mov eax, 1
add dl, dl
jne 0x142436106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142436113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1424360fb
sub eax, ebx
mov ebx, 1
jne 0x14243614c
mov ecx, 1
add dl, dl
jne 0x14243612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14243613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142436123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14243607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142436168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142436175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14243615d
cmp eax, 0x7d00
jae 0x14243619b
cmp eax, 0x500
jb 0x142436196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14243607e
cmp eax, 0x7f
ja 0x14243619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14243607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1424361d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14243607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400190f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r11, rdx
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rdi, r11
movzx esi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rsi]
cmp byte [rdi], bpl
jne 0x140019170
cmp r10, rax
jb 0x1400191e4
cmp r10, rdx
ja 0x1400191f8
add rax, r9
xor edi, edi
nop
cmp rsi, rdi
je 0x140019172
lea rbx, [rdi + 1]
cmp byte [rax + rdi], cl
mov rdi, rbx
jne 0x140019150
jmp 0x1400191d3
ja 0x14001917a
mov rax, r10
cmp r11, r8
jne 0x140019122
add r14, r15
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [r15 + 1]
movzx edx, byte [r15]
test dl, dl
js 0x1400191b0
mov r15, rbx
sub ecx, edx
jns 0x1400191ca
jmp 0x1400191d5
cmp rbx, r14
je 0x140019209
movzx ebp, byte [r15 + 1]
add r15, 2
and edx, 0x7f
shl edx, 8
or edx, ebp
sub ecx, edx
js 0x1400191d5
xor al, 1
cmp r15, r14
jne 0x140019190
jmp 0x1400191d5
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, [0x1410578c8]
mov rcx, rax
mov rdx, r10
call fcn.1400518e0
ud2
lea r8, [0x1410578c8]
mov rcx, r10
call fcn.1400516d0
ud2
lea rcx, [0x14105f238]
lea r8, [0x1410578e0]
mov edx, 0x2b
call fcn.1400516e0
ud2
Function at 0x140020ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x140020f42
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x140020f42
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x140020f5d
cmp eax, 0x42
jne 0x140020f42
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x140020f9a
cmp byte [rdi + rcx], 0x5f
jne 0x140020f9a
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140021092
mov rcx, rsi
xor edx, edx
call fcn.14001bfd0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.14001bfd0
test al, al
jne 0x140020f95
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002100c
lea rdx, [0x14105e5c3]
mov r8d, 1
call fcn.140016e80
test al, al
je 0x14002100c
mov dil, 2
jmp 0x140020f51
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x1400210ec
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x140021086
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140020fef
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140020fde
add dl, 0xa9
jmp 0x140020fed
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400210ec
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x1400210ec
movzx edx, bl
add rax, rdx
jae 0x140020fb0
jmp 0x1400210ec
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140020f51
xor ebx, ebx
lea r14, [0x14105e99e]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140021044
cmp byte [rax + rcx], 0x45
je 0x14002114d
sub rbx, 1
jb 0x140021069
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021069
mov r8d, 2
mov rdx, r14
call fcn.140016e80
test al, al
jne 0x140020f95
mov rcx, rsi
call fcn.140021160
test al, al
jne 0x140020f95
mov rax, qword [rsi]
test rax, rax
jne 0x140021030
jmp 0x140020f51
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x1400210ec
cmp rax, r9
jae 0x1400210e9
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14002113d
cmp qword [rsi + 0x20], 0
je 0x140021136
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140020ef0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140020f53
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002112c
lea rax, [0x14105e969]
lea rdx, [0x14105e950]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140016e80
mov dil, 2
test al, al
jne 0x140020f51
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x140020f51
mov bl, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400210f7
jmp 0x14002112c
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140020f51
Function at 0x140028d80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140028db3
test ecx, ecx
jne 0x140028e02
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140028dc0
test ecx, ecx
jne 0x140028e02
mov rcx, rdi
call fcn.140028c60
movzx r10d, al
test bl, bl
jne 0x140028e09
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140028df6.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x140028f7c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140028df6.2
xor r10d, r10d
test bl, bl
je 0x140028dd0
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140028f5e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x140028e3b
xor edi, edi
jmp 0x140028eb8
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140028e80
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x140028e9b
inc rsi
dec rax
cmp rsi, 1
jne 0x140028e60
jmp 0x140028eb8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x140028e9b
cmp ebx, 0x5c
je 0x140028e9b
inc rsi
dec rax
cmp rsi, 1
jne 0x140028e80
jmp 0x140028eb8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x140028f6c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140028ee2
mov al, 9
cmp rdx, 2
je 0x140028ee6
cmp rdx, 1
jne 0x140028ef6
cmp byte [r9], 0x2e
jne 0x140028ef6
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140028ef6
mov al, 0xa
jmp 0x140028ef6
cmp byte [r9], 0x2e
jne 0x140028ef6
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140028df6.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140028df6.2
mov esi, 2
jmp case.0x140028df6.2
lea r8, [0x141060508]
call fcn.1400516c0
ud2
lea r8, [0x141060520]
call fcn.1400516c0
ud2
Function at 0x14003bde0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140043240
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.140044170
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea r13, [0x140031450]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xfc0]
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14003bfe5
mov r14, qword [sym.imp.KERNEL32.dll_SleepEx]
mov r15d, 0xffffffff
lea rbx, [rbp + 0xfc0]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x14003beb0
cmp dword [rbp + 0xfec], 0
jne 0x14003bfeb
mov eax, dword [rbp + 0xff0]
test rax, rax
je 0x14003bfeb
cmp eax, 0x1000
ja 0x14003c036
xor edi, edi
nop
cmp rdi, rax
ja 0x14003c01b
lea rdx, [rdi + rbp]
add rdx, 0xffffffffffffffb0
mov r12, rax
mov r8, rax
sub r8, rdi
cmp r8, r15
cmovae r8, r15
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov rcx, rsi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x14003bfe5
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x14003bf60
cmp dword [rbp + 0xfec], 0
jne 0x14003bfeb
mov eax, dword [rbp + 0xff0]
add rdi, rax
mov rax, r12
cmp rdi, r12
jne 0x14003bef0
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14003beb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x141061740]
mov rcx, rdi
mov qword [rbp + 0xfe0], rax
mov rdx, rax
call fcn.1400518e0
jmp 0x14003c051
lea r8, [0x141061740]
mov edx, 0x1000
mov qword [rbp + 0xfe0], rax
mov rcx, rax
call fcn.1400516d0
ud2
Function at 0x14003c0f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003c12f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14002a130]
mov qword [rbp - 0x28], rax
lea rax, [0x1410618a8]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, [0x1410618e0]
lea rcx, [rbp - 0x60]
call fcn.140051600
ud2

Function at 0x14003de40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003df4d
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14003de77
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003df12
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003df30
sub rax, rdx
add rdx, qword [rbx + 8]
mov rbx, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003dece
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003deeb
jmp 0x14003dee0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003dee6
cmp eax, 0x6d
jne 0x14003df02
mov byte [rsi + 1], 0
jmp 0x14003def6
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14003def8
mov r8d, 0x10
mov rcx, rbx
call fcn.140051470
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003de84
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140051470
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14003de84
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140052780
ud2

Function at 0x14004784c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047648
Function at 0x402ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x402efd
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x402f8b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x402f21
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x402f68
cmp ecx, 0x20b
je 0x402f40
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
cmp dword [rax + 0x84], 0xe
ja 0x402f54
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
cmp dword [rax + 0x74], 0xe
ja 0x402f79
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00406f18], 0xffffffffffffffff
mov qword [0x00406f20], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00406e1c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00406e18]
mov dword [rcx], eax
call fcn.00496000
cmp dword [0x00406740], 0
jne 0x402fe5
lea rcx, [0x00403160]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004042e8]
lea rcx, [0x004042e0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00406e14]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00406e10]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004042d8]
lea rcx, [0x004042c8]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x403086
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x403076
cmp al, 0x22
je 0x403076
jmp 0x403060
cmp byte [r8], 0x22
jne 0x403096
inc r8
mov qword [rsp + 0x30], r8
jmp 0x403096
cmp byte [r8], 0x20
jbe 0x403096
inc r8
mov qword [rsp + 0x30], r8
jmp 0x403086
movzx eax, byte [r8]
test al, al
je 0x4030ac
cmp al, 0x20
ja 0x4030ac
inc r8
mov qword [rsp + 0x30], r8
jmp 0x403096
test byte [rsp + 0x8c], 1
je 0x4030c1
movzx r9d, word [rsp + 0x90]
jmp 0x4030c7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.00401680
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x4030e3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x403107
mov eax, edi
jmp 0x403110
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret