joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800039c0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x20
xor edi, edi
lea rdx, [rsp + 0x58]
mov r12d, edi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, edi
mov r13d, edi
mov r15, rax
test rax, rax
je 0x180003b49
cmp dword [rsp + 0x58], esi
jle 0x180003b49
mov rcx, qword [rax]
lea rdx, [0x1800311d4]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], r14
call fcn.18000a27c
mov rbx, rax
test rax, rax
je 0x180003a7e
mov rdx, rax
lea ecx, [rdi + 0x40]
sub rdx, qword [r15]
sar rdx, 1
lea rdx, [rdx*2 + 2]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180003a79
mov rdx, qword [r15]
mov r8, rbx
sub r8, rdx
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rdx + rcx*2], di
jne 0x180003a50
lea rax, [r8 + 4]
sar rax, 1
mov eax, eax
cmp rax, rcx
jae 0x180003a6b
lea r13, [rbx + 4]
sar r8, 1
mov rcx, rsi
add r8, r8
call fcn.1800214d0
movzx ebx, di
jmp 0x180003a83
mov r13, qword [r15]
mov ebx, edi
lea r14, [0x18002cc10]
nop word [rax + rax]
cmp bx, 2
jae 0x180003b28
test rsi, rsi
je 0x180003aba
movzx edx, bx
mov rcx, rsi
mov rdx, qword [r14 + rdx*8]
mov rdx, qword [rdx]
call fcn.18000da0c
test eax, eax
je 0x180003aba
inc bx
jmp 0x180003a90
test r13, r13
je 0x180003b28
movzx eax, bx
mov qword [rsp + 0x60], rbp
lea r14, [r14 + rax*8]
nop dword [rax + rax]
mov rdx, qword [r14]
cmp di, word [rdx + 0x18]
jae 0x180003b23
mov rdx, qword [rdx + 0x20]
movzx eax, di
lea rcx, [rax + rax*2]
mov rdx, qword [rdx + rcx*8 + 8]
lea rbp, [rcx*8]
mov rcx, r13
call fcn.18000da0c
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
je 0x180003b1c
mov rax, qword [r14]
lea rdx, [r15 + 8]
mov ecx, dword [rsp + 0x58]
dec ecx
mov r8, qword [rax + 0x20]
call qword [r8 + rbp]
mov r12d, eax
inc di
test ebx, ebx
je 0x180003ad0
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
test rsi, rsi
je 0x180003b40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r12d
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x180003b60
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 1
mov dword [rsp + 0x40], 0
mov rbx, r8
call fcn.18000dd8c
mov r8, rax
lea rdx, [0x1800311dc]
lea rcx, str.CONOUT_
call fcn.18000ebe4
mov ecx, 2
call fcn.18000dd8c
mov r8, rax
lea rdx, [0x1800311dc]
lea rcx, str.CONOUT_
call fcn.18000ebe4
xor ecx, ecx
call fcn.18000dd8c
mov r8, rax
lea rdx, [0x1800311e8]
lea rcx, str.CONIN_
call fcn.18000ebe4
test rbx, rbx
je 0x180003c26
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x180003c26
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
je 0x180003c2b
mov ecx, 1
call fcn.18000dd8c
mov rcx, qword [rbx]
lea rdx, [0x1800311f4]
mov r8, rax
call fcn.18000ebb4
call fcn.1800036a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x20
pop rbx
ret
call fcn.1800036a0
add rsp, 0x20
pop rbx
ret
Function at 0x180009b30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180009bc1
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180009bc1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180009bc1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180009ba5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180009b9f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180009ba7
add rdx, 0x28
jmp 0x180009b84
xor edx, edx
test rdx, rdx
jne 0x180009bb0
xor al, al
jmp 0x180009bc7
test dword [rdx + 0x24], 0x80000000
je 0x180009bbd
xor al, al
jmp 0x180009bc7
mov al, 1
jmp 0x180009bc7
xor al, al
jmp 0x180009bc7
add rsp, 0x18
ret
Function at 0x180003bf0
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 0x180003c4d
lea rbx, [0x1800296f0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180003c34
cmp r10, 2
jb 0x180003c34
cmp byte [r9], r8b
jne 0x180003c34
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 0x180003c10
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180003c8f
lea rbx, [0x1800296f0]
cmp r8b, 0x23
jne 0x180003c73
cmp byte [r9], r8b
jne 0x180003c73
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 0x180003c60
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180003de0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180003dfa
mov qword [r8], 0
lea rdx, [0x18002d7a8]
call fcn.180003ca0
mov rbx, rax
test rax, rax
jne 0x180003e1a
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 0x180003f05
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 0x180003f05
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180003f05
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 0x180003f05
cmp rdi, 0xffffffffffffffff
je 0x180003f05
mov rax, qword [0x1800338c0]
test rax, rax
je 0x180003e96
inc dword [rax + 0x3bc]
mov rdx, qword [0x1800338b8]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x180003f05
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 0x180003ef2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800338c0]
test rax, rax
je 0x180003ee1
dec dword [rax + 0x3bc]
mov rdx, qword [0x1800338b8]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x180003f0e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180003f00
mov qword [r14], rdi
mov rax, rsi
jmp 0x180003f10
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 0x180008100
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x18002d6fd]
mov dword [rsp + 0x2c], eax
lea r11, [0x1800296f0]
mov qword [rsp + 0x48], rax
mov r10d, 0xffffffff
lea rax, str.Window
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov edx, r10d
mov r9b, 0x57
nop
cmp r9b, 0x23
jne 0x180008153
cmp byte [r8], r9b
jne 0x180008153
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x180008140
mov ecx, dword [rbx + 0x2f14]
lea rax, [0x180012890]
mov edi, dword [rbx + 0x2f10]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x180012940]
mov qword [rsp + 0x38], rax
lea rax, [0x180012a20]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x180008261
inc edi
test ecx, ecx
je 0x1800081bf
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1800081c4
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x180008261
mov rax, qword [0x1800338c0]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x1800081e8
inc dword [rax + 0x3bc]
mov rdx, qword [0x1800338b8]
movsxd rax, edi
lea rcx, [rax + rax*2]
shl rcx, 4
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdx, qword [rbx + 0x2f18]
mov rsi, rax
test rdx, rdx
je 0x18000824f
movsxd rcx, dword [rbx + 0x2f10]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x2f18]
test rcx, rcx
je 0x180008243
mov rax, qword [0x1800338c0]
test rax, rax
je 0x180008243
dec dword [rax + 0x3bc]
mov rdx, qword [0x1800338b8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2f18], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2f14], edi
movsxd rax, dword [rbx + 0x2f10]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x2f18]
add rcx, rcx
movups xmmword [rax + rcx*8], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8 + 0x20], xmm0
inc dword [rbx + 0x2f10]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x180008ea0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180008ef0
lea r11, [0x1800296f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180008ed3
cmp byte [r8], r9b
jne 0x180008ed3
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 0x180008ec0
mov r11, qword [0x1800338c0]
not eax
movsxd rcx, dword [r11 + 0x1a00]
mov r9, qword [r11 + 0x1a08]
mov r10, rcx
mov rdx, rcx
mov r8, r9
test ecx, ecx
je 0x180008f58
nop dword [rax]
nop dword [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180008f49
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180008f4c
mov rdx, r8
test rdx, rdx
jne 0x180008f20
mov r8, qword [r11 + 0x1a08]
shl r10, 4
add r10, r8
cmp r9, r10
je 0x180008f6e
cmp dword [r9], eax
jne 0x180008f6e
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180012040
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x1800338c0]
cmp byte [rbx + 0x2f30], 0
je 0x18001212c
cmp qword [rbx + 0x2f38], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f40]
je 0x180012114
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x1800120bb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180013780
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.1800045c0
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f38]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f48]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x180033899]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.1800045c0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x1800124e0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push r13
sub rsp, 0x38
mov r13, qword [0x1800338c0]
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov qword [rsp + 0x30], r12
test rdx, rdx
jne 0x18001251e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x180012515
test r13, r13
je 0x18001252a
inc dword [r13 + 0x3bc]
mov rdx, qword [0x1800338b8]
lea rcx, [rbx + 1]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rbx
mov qword [rsp + 0x58], rax
mov rdx, rdi
mov rcx, rax
mov rsi, rax
lea r12, [rax + rbx]
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
mov byte [r12], 0
xor edi, edi
mov rcx, rsi
cmp rsi, r12
jae 0x1800126f3
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
movzx eax, byte [rcx]
cmp al, 0xa
je 0x18001273d
cmp al, 0xd
je 0x18001273d
mov rbx, rcx
cmp rcx, r12
jae 0x1800125a3
nop
movzx eax, byte [rbx]
cmp al, 0xa
je 0x1800125a3
cmp al, 0xd
je 0x1800125a3
inc rbx
cmp rbx, r12
jb 0x180012590
mov byte [rbx], 0
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x1800126d7
cmp al, 0x5b
jne 0x1800126be
cmp rbx, rcx
jbe 0x1800126be
cmp byte [rbx - 1], 0x5d
lea rsi, [rbx - 1]
jne 0x1800126be
lea r14, [rcx + 1]
mov byte [rsi], 0
mov r8, rsi
mov rcx, r14
sub r8, r14
mov edx, 0x5d
call sub.VCRUNTIME140.dll_memchr
mov r15, rax
test rax, rax
je 0x1800126d7
lea rcx, [rax + 1]
mov edx, 0x5b
sub rsi, rcx
mov r8, rsi
call sub.VCRUNTIME140.dll_memchr
mov r11, rax
test rax, rax
je 0x1800126d7
mov r10, qword [0x1800338c0]
lea r8, [r14 + 1]
mov byte [r15], 0
mov esi, 0xffffffff
movzx r9d, byte [r14]
mov ecx, esi
test r9b, r9b
je 0x18001266a
cmp r9b, 0x23
jne 0x180012647
cmp byte [r8], r9b
jne 0x180012647
cmp byte [r8 + 1], r9b
cmove ecx, esi
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
lea rax, [0x1800296f0]
inc r8
xor ecx, dword [rax + rdx*4]
test r9b, r9b
jne 0x180012635
mov r8d, dword [r10 + 0x2f10]
xor eax, eax
not ecx
test r8d, r8d
jle 0x180012694
mov r9, qword [r10 + 0x2f18]
lea rdx, [r9 + 8]
cmp dword [rdx], ecx
je 0x18001269a
inc eax
add rdx, 0x30
cmp eax, r8d
jl 0x180012685
xor edi, edi
xor ebp, ebp
jmp 0x1800126d7
cdqe
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, r9
je 0x180012696
mov rax, qword [rdi + 0x10]
lea r8, [r11 + 1]
mov rdx, rdi
mov rcx, r13
call rax
mov rbp, rax
jmp 0x1800126d7
test rdi, rdi
je 0x1800126d7
test rbp, rbp
je 0x1800126d7
mov r9, rcx
mov r8, rbp
mov rcx, r13
mov rdx, rdi
call qword [rdi + 0x18]
lea rcx, [rbx + 1]
cmp rcx, r12
jb 0x180012573
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
test rsi, rsi
je 0x18001271e
mov rax, qword [0x1800338c0]
test rax, rax
je 0x18001271e
dec dword [rax + 0x3bc]
mov rdx, qword [0x1800338b8]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov byte [r13 + 0x2ef4], 1
add rsp, 0x38
pop r13
pop rsi
ret
inc rcx
jmp 0x180012573
Function at 0x180012750
Capabilities:
Write file on windows

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x1800338c0]
xor r15d, r15d
mov r14, rcx
mov dword [rdi + 0x2ef8], r15d
test rcx, rcx
je 0x18001287b
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2f00]
mov dword [rdi + 0x2ef8], r15d
mov r8d, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
test r8d, r8d
jns 0x1800127b8
mov eax, r8d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, r8d
test eax, eax
cmovg edx, eax
call fcn.180013780
mov eax, r15d
mov dword [rbx], r15d
cmp dword [rbx + 4], eax
jne 0x1800127d2
mov edx, 8
mov rcx, rbx
call fcn.180013780
mov eax, dword [rbx]
movsxd rcx, eax
mov ebp, r15d
mov rax, qword [rbx + 8]
mov byte [rcx + rax], r15b
inc dword [rbx]
mov ecx, dword [rbx]
cmp dword [rdi + 0x2f10], r15d
jle 0x180012817
mov rsi, r15
mov r9, qword [rdi + 0x2f18]
mov r8, rbx
add r9, rsi
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add rsi, 0x30
cmp ebp, dword [rdi + 0x2f10]
jl 0x1800127f0
mov ecx, dword [rbx]
test ecx, ecx
lea eax, [rcx - 1]
lea rdx, [0x18002d7ac]
mov rcx, r14
cmove eax, r15d
movsxd rsi, eax
mov rax, qword [rdi + 0x2f08]
lea rdi, [0x180033899]
test rax, rax
cmovne rdi, rax
call fcn.180003ca0
mov rbp, qword [rsp + 0x48]
mov rbx, rax
test rax, rax
je 0x180012871
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18001d210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x18001d3a1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x18001d280
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.18001cc40
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.18001c290
mov dword [rbx + 0x80], 0
jmp 0x18001d38d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.18001b1f0
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180026490
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x60
mov rax, qword [0x180033010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [0x180033998]
xor esi, esi
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r14
mov r14, rcx
mov qword [r11 - 0x28], r15
mov r15, rdx
test rax, rax
jne 0x18002658c
mov rax, qword gs:[0x60]
mov qword [r11 - 0x10], rbp
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rbp, qword [rax]
mov r11, rbp
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x180026568
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x180026568
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x180026563
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x180026540
cmp edx, 0xe463da3c
je 0x18002665c
test r8d, r8d
jne 0x180026520
mov rax, qword [r11]
mov r11, rax
cmp rax, rbp
je 0x18002657d
cmp qword [rax + 0x30], rsi
jne 0x1800264f0
mov rax, rsi
mov rbp, qword [rsp + 0x58]
mov qword [0x180033998], rax
mov rcx, r14
call rax
mov rdi, rax
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov r8, r15
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rax + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm0
call fcn.1800266b0
mov r10, qword [rsp + 0x28]
mov r9d, esi
mov r11, qword [rsp + 0x20]
mov r15, qword [rsp + 0x40]
sub r10, r11
mov r14, qword [rsp + 0x48]
sar r10, 2
sub rbx, r10
je 0x180026616
nop dword [rax + rax]
mov edx, esi
test r10, r10
je 0x180026610
mov rax, rsi
nop word [rax + rax]
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rdi]
cmp eax, r8d
je 0x180026607
cmp r8d, 0xffffffff
jne 0x180026678
inc edx
mov eax, edx
cmp rax, r10
jb 0x1800265f0
mov esi, r9d
add rsi, rdi
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
test r11, r11
je 0x180026691
mov rdx, qword [rsp + 0x30]
mov rax, r11
sub rdx, r11
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180026689
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180026689
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180026580
inc r9d
mov eax, r9d
cmp rax, rbx
jb 0x1800265e0
jmp 0x180026616
mov rcx, r11
call fcn.1800270d8
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180026a00
add rsp, 0x60
pop rsi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140006440]
mov dword [rax], 1
mov rax, qword [0x140006450]
mov dword [rax], 1
mov rax, qword [0x140006460]
mov dword [rax], 1
mov rax, qword [0x1400063f0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001ac0
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 0x140002792
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x14000282a
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x14000280e
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 0x140002802
cmp qword [rbp - 0x10], 0
je 0x140002802
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 0x1400027c8
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000282b
nop
add rsp, 0x30
pop rbp
ret