joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140cdb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cdb1df
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 0x140cdb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cdb06f
add dl, dl
jne 0x140cdb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cdb0f6
xor eax, eax
add dl, dl
jne 0x140cdb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cdb1ad
add dl, dl
jne 0x140cdb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cdb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cdb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cdb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cdb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cdb07e
mov eax, 1
add dl, dl
jne 0x140cdb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cdb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cdb0fb
sub eax, ebx
mov ebx, 1
jne 0x140cdb14c
mov ecx, 1
add dl, dl
jne 0x140cdb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cdb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cdb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cdb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cdb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cdb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cdb15d
cmp eax, 0x7d00
jae 0x140cdb19b
cmp eax, 0x500
jb 0x140cdb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cdb07e
cmp eax, 0x7f
ja 0x140cdb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cdb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cdb1d2
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 0x140cdb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400022fc
Capabilities:
Parse pe header

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

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

Function at 0x140007f30
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007d2c
Function at 0x14000d278
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 0x14000d2a8
xor eax, eax
jmp 0x14000d36b
mov rbp, rbx
cmp word [rax], si
je 0x14000d2cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d2b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d2b0
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.14000d198
movsxd r14, eax
test eax, eax
jne 0x14000d30b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d2a1
mov rcx, r14
call fcn.140009a2c
mov rdi, rax
test rax, rax
jne 0x14000d324
xor ecx, ecx
call fcn.140008db4
jmp 0x14000d300
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.14000d198
test eax, eax
jne 0x14000d355
mov rcx, rdi
call fcn.140008db4
jmp 0x14000d35f
xor ecx, ecx
call fcn.140008db4
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 0x14001168c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400116a2
mov al, 1
jmp 0x140011702
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400116b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011700
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000db98
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011700
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011700
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011700
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011702
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012740
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c268
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400127ca
cmp byte [rbp - 0x21], r15b
je 0x1400127c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012800
call fcn.140009004
test eax, eax
jne 0x1400127ec
cmp byte [rbp - 0x21], r15b
je 0x1400127e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012800
cmp byte [rbp - 0x21], r15b
je 0x1400127fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000b848
test eax, eax
jne 0x1400128a0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c268
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001283f
cmp byte [rbp - 0x21], r15b
je 0x140012874
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012874
call fcn.140009004
test eax, eax
jne 0x140012860
cmp byte [rbp - 0x21], r15b
je 0x140012859
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012874
cmp byte [rbp - 0x21], r15b
je 0x140012871
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b848
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400128a0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400128a3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400128b1
mov rcx, rdi
call fcn.140008db4
cmp byte [rbp + 0x3f], r15b
je 0x1400128c0
mov rcx, qword [rbp + 0x27]
call fcn.140008db4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140014e30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014e58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014e58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1406e6a8a
Capabilities:
Encode data using xor

Disassembly:
ja 0x1408b9c6f
or dword [rax], eax
invalid
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x20]
call fcn.140e786c0
mov edx, 0x5567f75e
xor al, 0x33
push rbp
xor bh, byte [rsp + rax*2 + 0x384da2e1]
invalid
Function at 0x14000ffc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x138
mov rsi, rcx
mov rdi, qword [rdx + 0x40]
mov rbx, qword [rdx + 0x48]
lea r14, [rsp + 0x40]
mov rcx, r14
call fcn.1400ce8e0
lea rcx, [rsp + 0xe0]
mov rdx, r14
mov r8, rdi
mov r9, rbx
call fcn.1400ce830
cmp dword [rsp + 0xf8], 2
jne 0x140010011
movzx eax, byte [rsp + 0xe0]
jmp 0x140010143
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0x80], xmm0
movups xmm0, xmmword [rsp + 0xe0]
movups xmm1, xmmword [rsp + 0xf0]
movups xmm2, xmmword [rsp + 0x100]
movups xmm3, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0x70], xmm3
movaps xmmword [rsp + 0x60], xmm2
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.1400ceac0
test rax, rax
je 0x140010127
movzx eax, byte [rsp + 0x40]
movups xmm0, xmmword [rsp + 0x41]
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x2f], rcx
mov ecx, dword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x5c]
movaps xmmword [rsp + 0xa0], xmm0
movups xmm0, xmmword [rsp + 0x6c]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm0, xmmword [rsp + 0x7c]
movaps xmmword [rsp + 0xc0], xmm0
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rsp + 0xcc], xmm0
cmp ecx, 2
je 0x140010143
mov rdx, qword [rsp + 0x2f]
mov qword [rsi + 0x10], rdx
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi + 1], xmm0
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movaps xmm2, xmmword [rsp + 0xc0]
movups xmmword [rsi + 0x1c], xmm0
movups xmmword [rsi + 0x2c], xmm1
movups xmmword [rsi + 0x3c], xmm2
movups xmm0, xmmword [rsp + 0xcc]
movups xmmword [rsi + 0x48], xmm0
mov byte [rsi], al
mov dword [rsi + 0x18], ecx
mov dword [rsi + 0xc0], 3
jmp 0x14001020e
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140010141
mov rcx, qword [rsp + 0x48]
mov r8d, 1
call fcn.14000dae0
xor eax, eax
mov byte [rsp + 0x20], al
lea rax, [rsp + 0x20]
mov qword [rsp + 0xa0], rax
lea rax, [0x1400d64c0]
mov qword [rsp + 0xa8], rax
lea rax, str.failed_to_parse_URL:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rcx, [rsp + 0xe0]
lea rdx, [rsp + 0x40]
call fcn.1400feb80
movzx ebx, byte [rsp + 0x20]
mov ecx, 1
mov edx, 1
call fcn.14000dad0
test rax, rax
je 0x14001021e
mov byte [rax], bl
movups xmm0, xmmword [rsp + 0xe0]
movups xmm1, xmmword [rsp + 0xf0]
movups xmm2, xmmword [rsp + 0x100]
movups xmmword [rsi + 0x30], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
mov dword [rsi + 0x40], 2
mov byte [rsi + 0x80], 0
mov qword [rsi], rax
lea rax, fcn.1400054d0
mov qword [rsi + 8], rax
mov dword [rsi + 0xc0], 2
mov rax, rsi
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 1
mov edx, 1
call fcn.1401309a0
ud2
Function at 0x14005d240
Capabilities:
Encode data using xor
Encrypt data using speck

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx]
xor eax, eax
cmp rbx, 2
sete al
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rsi
call fcn.1400052a0
cmp rbx, 2
jne 0x14005d2c9
movzx ebx, byte [rdi + 8]
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rsi
call fcn.1400052a0
add rdi, 9
test rbx, rbx
je 0x14005d395
mov qword [rsp + 0x20], 0x10
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rsi
call fcn.1400052a0
mov r8d, 0x10
jmp 0x14005d3b7
test rbx, rbx
mov rbx, qword [rdi + 0x10]
mov r14, qword [rdi + 8]
cmovne r14, rbx
cmovne rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14005d38b
add rbx, r14
lea rdi, [rsp + 0x20]
jmp 0x14005d31b
inc r14
lea ecx, [rax - 0x41]
mov edx, eax
xor edx, 0x20
cmp ecx, 0x1a
cmovae edx, eax
mov dword [rsp + 0x20], edx
mov r8d, 4
mov rcx, rsi
mov rdx, rdi
call fcn.1400052a0
cmp r14, rbx
je 0x14005d38b
movzx eax, byte [r14]
test al, al
jns 0x14005d2f0
mov ecx, eax
and ecx, 0x1f
movzx r8d, byte [r14 + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x14005d36a
movzx edx, byte [r14 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x14005d37b
movzx eax, byte [r14 + 3]
and ecx, 7
shl ecx, 0x12
shl edx, 6
and eax, 0x3f
or eax, edx
or eax, ecx
cmp eax, 0x110000
je 0x14005d38b
add r14, 4
jmp 0x14005d2f3
add r14, 2
shl ecx, 6
or ecx, r8d
mov eax, ecx
jmp 0x14005d2f3
add r14, 3
shl ecx, 0xc
or edx, ecx
mov eax, edx
jmp 0x14005d2f3
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x20], 4
lea rdx, [rsp + 0x20]
mov r8d, 8
mov rcx, rsi
call fcn.1400052a0
mov r8d, 4
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400052a0
Function at 0x1400c88b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
cmp rdx, r9
jne 0x1400c8a60
lea r9, [rcx + rdx]
add rdx, r8
nop word cs:[rax + rax]
mov al, 1
cmp rcx, r9
je 0x1400c8a62
movzx r10d, byte [rcx]
test r10b, r10b
js 0x1400c8900
inc rcx
cmp r8, rdx
jne 0x1400c8990
jmp 0x1400c8a62
mov r11d, r10d
and r11d, 0x1f
movzx edi, byte [rcx + 1]
and edi, 0x3f
cmp r10b, 0xdf
jbe 0x1400c895b
movzx esi, byte [rcx + 2]
shl edi, 6
and esi, 0x3f
or esi, edi
cmp r10b, 0xf0
jb 0x1400c8973
movzx r10d, byte [rcx + 3]
and r11d, 7
shl r11d, 0x12
shl esi, 6
and r10d, 0x3f
or r10d, esi
or r10d, r11d
cmp r10d, 0x110000
je 0x1400c8a62
add rcx, 4
cmp r8, rdx
jne 0x1400c8990
jmp 0x1400c8a62
add rcx, 2
shl r11d, 6
or r11d, edi
mov r10d, r11d
cmp r8, rdx
jne 0x1400c8990
jmp 0x1400c8a62
add rcx, 3
shl r11d, 0xc
or esi, r11d
mov r10d, esi
cmp r8, rdx
je 0x1400c8a62
nop word [rax + rax]
movzx r11d, byte [r8]
test r11b, r11b
js 0x1400c89b0
inc r8
cmp r10d, 0x110000
jne 0x1400c8a40
jmp 0x1400c8a62
mov esi, r11d
and esi, 0x1f
movzx ebx, byte [r8 + 1]
and ebx, 0x3f
cmp r11b, 0xdf
jbe 0x1400c8a07
movzx edi, byte [r8 + 2]
shl ebx, 6
and edi, 0x3f
or edi, ebx
cmp r11b, 0xf0
jb 0x1400c8a1e
movzx r11d, byte [r8 + 3]
and esi, 7
shl esi, 0x12
shl edi, 6
and r11d, 0x3f
or r11d, edi
or r11d, esi
cmp r11d, 0x110000
je 0x1400c8a62
add r8, 4
cmp r10d, 0x110000
jne 0x1400c8a40
jmp 0x1400c8a62
add r8, 2
shl esi, 6
or esi, ebx
mov r11d, esi
cmp r10d, 0x110000
jne 0x1400c8a40
jmp 0x1400c8a62
add r8, 3
shl esi, 0xc
or edi, esi
mov r11d, edi
cmp r10d, 0x110000
je 0x1400c8a62
nop word cs:[rax + rax]
cmp r10d, 0x7f
ja 0x1400c8a60
lea eax, [r10 - 0x41]
mov esi, r10d
xor esi, 0x20
cmp eax, 0x1a
cmovae esi, r10d
cmp esi, r11d
je 0x1400c88d0
xor eax, eax
pop rbx
pop rdi
pop rsi
ret
Function at 0x14011e474
Capabilities:
Parse pe header

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

Function at 0x140122f44
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140122d40
Function at 0x461fb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x461fcf
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00474ad8

Function at 0x462320
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00474b60]
mov r8d, 0x4b
mov edx, 1
lea rcx, [0x013e3568]
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call fcn.00474ad8
mov ecx, 1
call sub.msvcrt.dll_exit
nop
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ecx, ecx
mov rdi, qword [fcn.00474b60]
call rdi
mov rsi, qword [sym.imp.msvcrt.dll__fileno]
mov rcx, rax
call rsi
mov edx, 0x8000
mov rbx, qword [sym.imp.msvcrt.dll__setmode]
mov ecx, eax
call rbx
mov ecx, 1
call rdi
mov rcx, rax
call rsi
mov edx, 0x8000
mov ecx, eax
call rbx
mov ecx, 2
call rdi
mov rcx, rax
call rsi
mov edx, 0x8000
mov ecx, eax
call rbx
mov rax, qword [0x013e5d00]
mov ecx, 0xfde9
call qword [rax]
mov rax, qword [0x013e5d10]
mov ecx, 0xfde9
call qword [rax]
lea rcx, [0x013e4130]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x4623f6
lea rdx, [0x013e35b4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [0x013e6200]
mov rax, qword [rdx]
cmp rax, 0xdab
jg 0x46247a
mov rcx, qword [0x013e61f0]
lea r8, [rax + 1]
lea rbx, [0x00465b70]
cmp r8, 0xdac
mov qword [rdx], r8
mov qword [rcx + rax*8], rbx
je 0x46247a
lea rsi, [0x00465b60]
mov qword [rcx + r8*8], rsi
lea r8, [rax + 2]
cmp r8, 0xdac
mov qword [rdx], r8
je 0x46247a
lea rdi, [0x00465940]
mov qword [rcx + r8*8], rdi
lea r8, [rax + 3]
cmp r8, 0xdac
mov qword [rdx], r8
je 0x46247a
lea rdi, [0x00465930]
add rax, 4
mov qword [rcx + r8*8], rdi
mov qword [rdx], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.00462320
nop

Function at 0x46af80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x158
mov byte [rsp + 0x3f], 1
movzx eax, byte [rsp + 0x3f]
mov rbx, rcx
mov qword [rsp + 0x178], rdx
test al, al
jne 0x46afb0
add rsp, 0x158
pop rbx
pop rsi
ret
mov ecx, 2
call qword [fcn.00474b60]
mov rdx, qword [rsp + 0x178]
mov rcx, rbx
mov rsi, rax
mov r9, rax
mov r8, rdx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
call fcn.00474ad8
jmp 0x46afa2

Function at 0x46b100
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov eax, 0x10
mov r8, qword [rcx + 0x18]
mov r9, qword [r8 + 8]
test r9, r9
je 0x46b128
mov rax, r9
add r9, 0xf
neg rax
and rax, r9
mov r10, rdx
imul r10, qword [r8]
jo 0x46b154
add rax, r10
jo 0x46b154
movq xmm6, rdx
mov rdx, rax
call fcn.004650a0
punpcklqdq xmm6, xmm6
movups xmmword [rax], xmm6
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
ret
call fcn.0046b060
nop
nop word [rax + rax]
Function at 0x470c90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [fcn.00474b60]
mov rsi, qword [rcx]
mov ecx, 1
call rbx
mov rcx, rax
mov rdx, rsi
call fcn.00470b90
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x013e424f]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00474ad8
Function at 0x473ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x013fb2e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x473c68
mov rax, qword [0x013fb2e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x473b2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x473bb5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x473b10
mov rcx, rbx
call fcn.00474780
test rax, rax
mov r12, rax
je 0x473c9d
mov rax, qword [0x013fb2e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004748b0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x013fb2e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x473c80
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x473bae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x473c10
add dword [0x013fb2e4], 1
cmp edi, 8
jae 0x473be3
test dil, 4
jne 0x473c54
test edi, edi
je 0x473bd8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x473c6f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x473bd8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x473bfc
jmp 0x473bd8
add rsi, qword [0x013fb2e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x473bae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x013e5bb8]
mov edx, eax
call fcn.004760f0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x473bd8
xor esi, esi
jmp 0x473b37
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x473bd8
mov rax, qword [0x013fb2e8]
lea rcx, [0x013e5b80]
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004760f0
lea rcx, [0x013e5b60]
mov rdx, rbx
call fcn.004760f0
nop
nop dword [rax]

Function at 0x4743f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x013fb5c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x013fb5a0]
test rbx, rbx
je 0x474444
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x47443b
test rsi, rsi
je 0x47443b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x474420
lea rcx, [0x013fb5c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x474780
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x013e5fa0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4747ed
mov rcx, r8
call fcn.00474660
test eax, eax
je 0x4747ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4747ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4747e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4747ef
add rax, 0x28
cmp rax, r9
jne 0x4747d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4760f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sub.msvcrt.dll__onexit
test rax, rax
sete al
movzx eax, al
neg eax
add rsp, 0x28
ret
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00474b60
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x013e5b40]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00474b60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530