joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180015b00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rcx
movabs rcx, 0x100000001b3
movabs r8, 0xcbf29ce484222325
mov r9, qword [rax + 0x28]
nop dword [rax]
nop dword [rax + rax]
movsx rdx, byte [r9]
lea r9, [r9 + 1]
xor r8, rdx
imul r8, rcx
test dl, dl
jne 0x180015b30
mov rax, qword [0x18006cc10]
mov rcx, qword [0x18006cc08]
mov qword [rsp + 0x50], r8
cmp rcx, rax
je 0x180015b90
nop dword [rax + rax]
cmp qword [rcx], r8
jne 0x180015b6b
cmp qword [rcx + 8], rbx
je 0x180015b74
add rcx, 0x18
cmp rcx, rax
jne 0x180015b60
cmp rcx, rax
je 0x180015b90
lea rdx, [rcx + 0x18]
sub rax, rdx
mov r8, rax
call sub.VCRUNTIME140.dll_memmove
sub qword [0x18006cc10], 0x18
lea rdx, [rsp + 0x50]
lea rcx, [0x18006cc20]
call fcn.1800167f0
mov rcx, qword [rax + 8]
cmp qword [rax], rcx
je 0x180015c11
mov rax, qword [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [0x18006cc10]
cmp rdx, qword [0x18006cc18]
movss xmm0, dword [rax + 0x232c7d8]
movss dword [rsp + 0x30], xmm0
je 0x180015c00
movups xmm0, xmmword [rsp + 0x20]
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
add qword [0x18006cc10], 0x18
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x20]
lea rcx, [0x18006cc08]
call fcn.18001b670
add rsp, 0x40
pop rbx
ret
Function at 0x180016590
Capabilities:
Hide thread from debugger

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtSetInformationThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800165d5
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x11]
mov rcx, rbx
call rax
test eax, eax
sete al
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
ret

Function at 0x180016720
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
je 0x18001673b
xor eax, eax
add rsp, 0x30
pop rbx
ret
xor eax, eax
lea r8, [0x1800165e0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x180016768
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x18001bd90
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd r12, edx
mov r15d, r9d
mov rbp, r8
mov r14, rcx
test rcx, rcx
je 0x18001bef0
test r8, r8
je 0x18001bef0
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x18001bef0
mov qword [rsp + 0x40], rbx
mov ecx, 0x100
mov qword [rsp + 0x48], rsi
call fcn.180056918
xor ecx, ecx
mov r10, rax
mov edx, ecx
mov r8, rax
nop
mov byte [r8], dl
lea r8, [r8 + 1]
inc edx
cmp edx, 0x100
jl 0x18001bdf0
mov r9d, ecx
mov r11d, ecx
mov rbx, r10
nop word [rax + rax]
movzx esi, byte [rbx]
mov eax, r11d
cdq
idiv r15d
movsxd rax, edx
movzx edx, byte [rax + rbp]
add r9d, edx
add r9d, esi
and r9d, 0x800000ff
jge 0x18001be3d
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rdx, r9d
inc r11d
movzx eax, byte [rdx + r10]
mov byte [rbx], al
inc rbx
mov byte [rdx + r10], sil
cmp r11d, 0x100
jl 0x18001be10
mov rsi, qword [rsp + 0x48]
mov r8d, ecx
mov rbx, r12
test r12d, r12d
jle 0x18001bed4
sub r14, rdi
nop dword [rax]
inc ecx
and ecx, 0x800000ff
jge 0x18001be84
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r9, ecx
movzx r11d, byte [r9 + r10]
add r8d, r11d
and r8d, 0x800000ff
jge 0x18001bea5
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rdx, r8d
movzx eax, byte [rdx + r10]
mov byte [r9 + r10], al
mov byte [rdx + r10], r11b
movzx eax, byte [r9 + r10]
add eax, r11d
movzx edx, al
movzx eax, byte [rdx + r10]
xor al, byte [rdi + r14]
mov byte [rdi], al
inc rdi
sub rbx, 1
jne 0x18001be70
mov rax, qword [rsp + 0x68]
mov rcx, r10
mov dword [rax], r12d
call fcn.180056814
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
jmp 0x18001bef2
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x18001e8f0
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 0x18001e94d
lea rbx, [0x18005c000]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18001e934
cmp r10, 2
jb 0x18001e934
cmp byte [r9], r8b
jne 0x18001e934
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 0x18001e910
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18001e98f
lea rbx, [0x18005c000]
cmp r8b, 0x23
jne 0x18001e973
cmp byte [r9], r8b
jne 0x18001e973
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 0x18001e960
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18001ead0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18001eaea
mov qword [r8], 0
lea rdx, [0x180061940]
call fcn.18001e9a0
mov rbx, rax
test rax, rax
jne 0x18001eb0a
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 0x18001ebe1
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 0x18001ebe1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18001ebe1
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 0x18001ebe1
cmp rdi, 0xffffffffffffffff
je 0x18001ebe1
mov rax, qword [0x18006c968]
test rax, rax
je 0x18001eb7e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18001ebe1
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 0x18001ebce
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18006c968]
test rax, rax
je 0x18001ebc3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18001ebea
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18001ebdc
mov qword [r14], rdi
mov rax, rsi
jmp 0x18001ebec
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 0x180020f50
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r10, [0x18005c000]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dl
movzx r8d, bl
shr ebx, 8
xor r8, rax
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r10 + r8*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r10 + rcx*4]
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x180020fdb
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.180032fa0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180024520
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180024570
lea r11, [0x18005c000]
nop dword [rax]
cmp r9b, 0x23
jne 0x180024553
cmp byte [r8], r9b
jne 0x180024553
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180024540
mov rcx, qword [0x18006c968]
not eax
movsxd rdx, dword [rcx + 0x3eb0]
mov r9, qword [rcx + 0x3eb8]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x1800245d1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x1800245c9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x1800245cc
mov rdx, r8
test rdx, rdx
jne 0x1800245a0
cmp r9, r10
je 0x1800245e0
cmp dword [r9], eax
jne 0x1800245e0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x1800316d0
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 + 0x5c60], 0
lea rbx, [rcx + 0x5c68]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180031777
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18003172a
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.180034120
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18001ef30
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c60]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c70]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x18006c960]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18003177f
mov rcx, rbx
call fcn.18001ef30
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180031c00
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18006c968]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180031c63
mov qword [rsp], rbx
lea rbx, [0x18005c000]
nop dword [rax]
cmp r9b, 0x23
jne 0x180031c43
cmp byte [r8], r9b
jne 0x180031c43
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180031c30
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bd8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180031c97
mov r10, qword [r10 + 0x5be0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180031c9e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180031c84
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x18004bac0
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov dword [rsp + 0x60], 8
mov r14, rdx
mov dword [rsp + 0x50], ebx
xor edx, edx
mov dword [rsp + 0x68], ebx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, str.HTTPREAD
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x28], rbx
lea rdx, str.http:__ossweb_img.qq.com_images_lol_img_item_2056.png
mov rcx, rax
mov dword [rsp + 0x20], 0x80000002
xor r9d, r9d
xor r8d, r8d
mov rsi, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea r8, [rsp + 0x50]
mov edx, 0x20000005
mov rdi, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18004bb83
mov ecx, eax
mov qword [r14], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x68]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x18004bb99
xor r8d, r8d
lea rdx, str.http:__ossweb_img.qq.com_images_lol_img_item_2056.png
lea rcx, str._Error_Http:_s__ReadFileLen:_d_n
call fcn.18001cf10
test rdi, rdi
je 0x18004bba7
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rsi, rsi
je 0x18004bbb5
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x18004f0a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x130]
mov rdi, rcx
mov esi, r8d
mov rbx, rdx
movabs rcx, 0x100000001b3
movabs r10, 0xcbf29ce484222325
mov r11, qword [rax + 0x28]
nop word [rax + rax]
movsx r9, byte [r11]
lea r11, [r11 + 1]
xor r10, r9
imul r10, rcx
test r9b, r9b
jne 0x18004f0e0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], r10
lea rcx, [0x18006cc20]
call fcn.1800167f0
mov rdx, qword [rax + 8]
cmp qword [rax], rdx
je 0x18004f1e4
movaps xmmword [rsp + 0x30], xmm6
lea rdx, [rsp + 0x50]
lea rcx, [0x18006cc20]
movaps xmmword [rsp + 0x20], xmm7
call fcn.1800167f0
movsxd rcx, dword [rdi + 0x28]
mov rax, qword [rax]
movss xmm7, dword [rax + rcx*4 - 4]
lea eax, [rsi - 4]
cmp eax, 1
jbe 0x18004f151
movss xmm6, dword [rbx + 0x1cf0]
jmp 0x18004f1a8
xor ecx, ecx
lea rax, [rbx + 0x51ac]
nop word [rax + rax]
cmp dword [rax], 0x209b
je 0x18004f17d
inc rcx
add rax, 4
cmp rcx, 6
jl 0x18004f160
movss xmm6, dword [rsp + 0x50]
jmp 0x18004f18b
movss xmm6, dword [rsp + 0x50]
addss xmm6, dword [0x1800622a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rax + 0x231d990]
cmp dword [rcx + 8], 0xc
jne 0x18004f1a8
addss xmm6, dword [0x1800622cc]
xorps xmm1, xmm1
comiss xmm6, xmm1
jbe 0x18004f1c7
movaps xmm1, xmm6
addss xmm1, dword [0x1800622dc]
divss xmm6, xmm1
mulss xmm6, xmm7
subss xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18004f200
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x130]
mov rdi, rcx
movaps xmmword [rsp + 0x20], xmm7
mov esi, r8d
mov rbx, rdx
movabs rcx, 0x100000001b3
movabs r10, 0xcbf29ce484222325
mov r11, qword [rax + 0x28]
nop dword [rax]
movsx r9, byte [r11]
lea r11, [r11 + 1]
xor r10, r9
imul r10, rcx
test r9b, r9b
jne 0x18004f240
mov rax, qword [0x18006cc08]
mov rcx, qword [0x18006cc10]
movss xmm0, dword [0x180062334]
movaps xmm7, xmm0
cmp rax, rcx
je 0x18004f28d
cmp qword [rax + 8], rbx
jne 0x18004f27d
cmp qword [rax], r10
je 0x18004f288
add rax, 0x18
cmp rax, rcx
jne 0x18004f272
jmp 0x18004f28d
movss xmm7, dword [rax + 0x10]
ucomiss xmm7, xmm0
jp 0x18004f299
jne 0x18004f299
xorps xmm0, xmm0
jmp 0x18004f2d0
xor ecx, ecx
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
movss xmm6, dword [rax + 0x232c7d8]
call fcn.18004f0a0
addss xmm0, xmm7
xorps xmm1, xmm1
subss xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
maxss xmm0, xmm1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
Function at 0x180056170
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r10d, r8d
mov r11, rdx
mov r9, rcx
lea rbx, [rcx + 0x4158]
lea r8, [rcx + 0x1498]
cmp byte [rcx + 0x1494], 0
jne 0x1800561ee
mov word [rcx + 0x1495], 1
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0x30], rax
mov byte [r8], al
movzx eax, byte [rsp + 0x31]
mov edx, 2
mov byte [rcx + 0x1499], al
movzx ecx, byte [rsp + rdx + 0x30]
inc edx
mov byte [r9 + 0x149a], cl
movzx eax, byte [rsp + rdx + 0x30]
mov byte [r9 + 0x149b], al
mov byte [r9 + 0x149c], 0
mov byte [r9 + 0x1494], 1
mov dword [rsp + 0x40], r10d
mov eax, dword [r8]
mov dword [rsp + 0x30], eax
movzx eax, byte [r9 + 0x1495]
test al, al
je 0x180056224
xor ecx, ecx
mov edx, eax
nop word [rax + rax]
mov eax, dword [rsp + rcx + 0x30]
not eax
xor dword [rsp + rcx + 0x40], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180056210
movzx eax, byte [r9 + 0x1496]
mov ecx, 4
sub rcx, rax
cmp rcx, 4
jae 0x180056254
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x30]
not al
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 4
jb 0x180056240
movzx eax, byte [r9 + 0x149c]
inc al
and eax, 3
mov ecx, eax
mov eax, dword [rsp + 0x40]
mov dword [r9 + rcx*4 + 0x14a0], eax
mov byte [r9 + 0x149c], cl
mov dword [rbx + 0x38], r10d
add r9, 0x4158
mov r8, qword [r9 + 0x18]
movabs rdx, 0xcbf29ce484222325
movabs rdi, 0x100000001b3
nop dword [rax]
movsx rcx, byte [r8]
lea r8, [r8 + 1]
xor rdx, rcx
imul rdx, rdi
test cl, cl
jne 0x1800562a0
movabs rax, 0x2374c594f5e76f06
cmp rdx, rax
jne 0x1800562cd
lea eax, [r10 - 0x1d]
cmp eax, 7
jbe 0x180056313
jmp 0x18005633b
movabs rax, 0xf9bdf861cccd5fd1
cmp rdx, rax
jne 0x1800562e7
lea eax, [r10 - 0x1a]
cmp eax, 6
jbe 0x180056313
jmp 0x18005633b
movabs rax, 0xb4d052affec8dc8e
cmp rdx, rax
jne 0x1800562fe
cmp r10d, 0x10
je 0x180056313
jmp 0x18005633b
movabs rax, 0x311a797a90e58f21
cmp rdx, rax
jne 0x18005631d
cmp r10d, 6
jne 0x18005633b
mov byte [r9 + 0x9c], 0
jmp 0x180056376
movabs rcx, 0x2f2959b508f215d2
movabs rax, 0xecc3c7c77aebb7ea
cmp rdx, rcx
je 0x18005635e
cmp rdx, rax
je 0x18005635e
cmp byte [r9 + 0x9c], 0xff
je 0x180056376
movabs rax, 0xeb5bc0df5355fba6
cmp rdx, rax
je 0x180056376
mov byte [r9 + 0x9c], 0xff
jmp 0x180056376
cmp r10d, 7
jne 0x180056397
cmp rdx, rcx
je 0x1800563a2
mov rax, qword [r9]
cmp rax, qword [r9 + 8]
je 0x180056376
mov qword [r9 + 8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add rax, 0x199a80
mov dl, 1
mov rcx, rbx
call rax
nop
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r10d, 6
jne 0x180056369
cmp rdx, rax
jne 0x180056369
mov rax, qword [r9]
cmp rax, qword [r9 + 8]
je 0x1800563af
mov qword [r9 + 8], rax
mov r8d, r10d
mov rdx, r11
mov rcx, r9
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.18004a5e0
Function at 0x14001129e
Capabilities:
Terminate process

Disassembly:
jmp 0x140015730
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011348
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140013e20
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
lea rcx, [0x1400260f3]
call fcn.1400114c4
movzx eax, word [rbp + 0x108]
mov word [rbp + 4], ax
movzx eax, word [rbp + 0x110]
mov word [rbp + 6], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001cd00]
call fcn.140011429
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011366
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016a80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016aa0
xor al, al
jmp 0x140016b21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016ab3
xor al, al
jmp 0x140016b21
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140016add
xor al, al
jmp 0x140016b21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016af1
xor al, al
jmp 0x140016b21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016b03
xor al, al
jmp 0x140016b21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140016b1f
xor al, al
jmp 0x140016b21
mov al, 1
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001bfd0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001bfe0]
mov dword [rax], 1
mov rax, qword [0x14001bff0]
mov dword [rax], 1
mov rax, qword [0x14001bfc0]
mov dword [rax], 1
mov rax, qword [0x14001be60]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001bfb0]
mov dword [0x14001f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001bf70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001bf50]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001bdf0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400019f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]