joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d6a50
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400d6a6c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d6ac0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d6be5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400d6be5
test rax, rax
je 0x1400d6be5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400d6be5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400d6b5a
lea rax, [0x1400d6c40]
jmp 0x1400d6bb3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400d6be5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d6bd3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400d6b80
lea rax, [0x1400d6c10]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400d6bfa
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400d81d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400d81db
xor eax, eax
ret
lea r11, [0x1400fe5e0]
not ecx
cmp r8d, 8
jb 0x1400d82b1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400d8200
test r8d, r8d
je 0x1400d82dd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400d82c0
not ecx
mov eax, ecx
ret
Function at 0x1400dce60
Capabilities:
Parse pe header

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

Function at 0x1400dd0a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400dd0da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400dd0df
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400dd128
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400fedc0]
cmp byte [rcx + rax], 0
je 0x1400dd128
dec r8
sub rdx, 1
jne 0x1400dd10e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400dd8ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400dd1b8
mov ebx, eax
test eax, eax
jne 0x1400dd91c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400dd97f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400dd976
test al, 0x10
je 0x1400dd976
bt eax, 0xa
jae 0x1400dd96f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400dd990
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400dd96b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400dd96b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400dd976
and dword [rsp + 0x3c], 0
jmp 0x1400dd97b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180009100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x98
mov dword [rsp + 0x94], edx
mov qword [rsp + 0x88], rcx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
add rax, 0x70
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx]
mov ecx, edx
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov edx, dword [rcx + 0x1c]
mov ecx, edx
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov edx, dword [rcx + 0x20]
mov ecx, edx
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov edx, dword [rcx + 0x24]
mov ecx, edx
add rax, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x24], 0xaca81200
mov eax, dword [rsp + 0x24]
mov ecx, eax
sub ecx, 0xa023694f
mov dword [rsp + 0x20], eax
je 0x180009326
jmp 0x180009207
mov eax, dword [rsp + 0x20]
sub eax, 0xaca81200
je 0x180009270
jmp 0x18000921b
mov eax, dword [rsp + 0x20]
sub eax, 0xb78fcd2
je 0x18000933e
jmp 0x18000922f
mov eax, dword [rsp + 0x20]
sub eax, 0x54aad11e
je 0x1800092db
jmp 0x180009243
mov eax, dword [rsp + 0x20]
sub eax, 0x755bd8b9
je 0x180009292
jmp 0x180009257
mov eax, dword [rsp + 0x20]
sub eax, 0x7ed7b3ce
je 0x180009319
jmp 0x18000926b
jmp 0x18000934b
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
cmp eax, dword [rcx + 0x18]
mov eax, 0x755bd8b9
mov edx, 0xb78fcd2
cmovb edx, eax
mov dword [rsp + 0x24], edx
jmp 0x18000934b
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 0x34]
mov r8d, edx
mov edx, dword [rcx + r8*4]
mov ecx, edx
add rax, rcx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.180010cc0
cmp eax, dword [rsp + 0x94]
mov eax, 0x54aad11e
mov edx, 0x7ed7b3ce
cmove edx, eax
mov dword [rsp + 0x24], edx
jmp 0x18000934b
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x34]
mov r9d, r8d
movzx r8d, word [rdx + r9*2]
mov edx, r8d
mov r8d, dword [rcx + rdx*4]
mov ecx, r8d
add rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0xb78fcd2
jmp 0x18000934b
mov dword [rsp + 0x24], 0xa023694f
jmp 0x18000934b
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x24], 0xaca81200
jmp 0x18000934b
mov rax, qword [rsp + 0x38]
add rsp, 0x98
ret
jmp 0x1800091ec
Function at 0x1888058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.018881df
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 0x1888089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x188806f
add dl, dl
jne 0x1888096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18880f6
xor eax, eax
add dl, dl
jne 0x18880a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18881ad
add dl, dl
jne 0x18880b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18880c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18880d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18880dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18880ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x188807e
mov eax, 1
add dl, dl
jne 0x1888106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1888113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18880fb
sub eax, ebx
mov ebx, 1
jne 0x188814c
mov ecx, 1
add dl, dl
jne 0x188812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x188813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1888123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x188807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1888168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1888175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x188815d
cmp eax, 0x7d00
jae 0x188819b
cmp eax, 0x500
jb 0x1888196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x188807e
cmp eax, 0x7f
ja 0x188819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x188807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18881d2
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 0x188807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001f90
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
movdqa xmm0, xmmword [rdx]
aeskeygenassist xmm0, xmm0, 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x140024f50
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140024ff0
jmp 0x140024fdf
jae 0x1400250af
cmp r8, 0x201
jae 0x140024ff0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140025047
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002501f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14003cdf0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140025070
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002511b
mov r8d, r13d
cmp r12, r8
jne 0x140024fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002514f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140024fdf
jmp 0x140024ff0
cmp r14, r8
jb 0x140025169
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140027770
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140025104
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140013f40
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1400250ef
jmp 0x140025104
lea rcx, str.internal_error:_entered_unreachable_code_rustc_129f3b9964af4d4a709d1383930ade12dfe7c081library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14003dbe0
jmp 0x14002517e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14003df30
ud2
Function at 0x14002c980
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14008cf88]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14002c9b8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002ca16
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14002ca43
test eax, eax
js 0x14002ca22
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14002ca39
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140027430
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140023530
mov ecx, 7
int 0x29
ud2
Function at 0x14003ace0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14003ad6a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14003ad60
cmp r11, r10
ja 0x14003ade6
cmp r10, rdx
ja 0x14003adf8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14003ad62
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14003ad40
jmp 0x14003adc7
ja 0x14003ad6a
mov r11, r10
cmp rax, r8
jne 0x14003ad07
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14003adcb
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14003ada0
mov r8, r10
sub ecx, r9d
jns 0x14003adbe
jmp 0x14003adcd
cmp r10, rdx
je 0x14003adda
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003adcd
xor al, 1
cmp r8, rdx
jne 0x14003ad80
jmp 0x14003adcd
xor eax, eax
jmp 0x14003adcd
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14003dae0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003df40
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003df30
int3

Function at 0x14003c6bc
Capabilities:
Parse pe header

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

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001ce24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ce24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002997c
cmp rax, 0xffffffffffffffff
je 0x14002997c
xor edi, edi
test rbp, rbp
jle 0x140029927
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f738
mov rbx, rax
test rax, rax
jne 0x1400298b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002991d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a758
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001db00
cmp eax, 0xffffffff
je 0x1400298fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400298c4
mov edx, r15d
mov ecx, r14d
call fcn.14001a758
jmp 0x14002991d
cmp byte [rsi + 0x38], dil
je 0x140029914
cmp dword [rsi + 0x34], 5
jne 0x140029914
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002991d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b4ec
jmp 0x140029990
jns 0x140029990
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ce24
cmp rax, 0xffffffffffffffff
jne 0x140029948
cmp byte [rsi + 0x30], dil
je 0x140029990
mov edi, dword [rsi + 0x2c]
jmp 0x140029990
mov ecx, r14d
call fcn.140018c10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029990
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029989
mov eax, dword [rsi + 0x2c]
jmp 0x14002998e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ce24
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002aa80
Capabilities:
Parse pe header

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

Function at 0x181a82000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x181a8200a
jmp 0x181a8400f
jmp fcn.18168a058
Function at 0x30af615a0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push rbp
sub rsp, 0x210
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x188], 0xffffffffffffffff
mov qword [rbp - 0x28], 0
mov qword [rbp + 0x180], 0
lea rax, [rbp - 0x20]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rbp + 0x17c], eax
cmp dword [rbp + 0x17c], 0
je 0x30af615fc
mov eax, 1
jmp 0x30af61786
lea rax, [rbp - 0x60]
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x5c], 0
mov dword [rbp - 0x58], 1
mov dword [rbp - 0x54], 6
lea rdx, [rbp - 0x28]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8, rax
lea rax, str.7870
mov rdx, rax
lea rax, str.127.0.0.1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getaddrinfo]
call rax
mov dword [rbp + 0x17c], eax
cmp dword [rbp + 0x17c], 0
je 0x30af61675
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x30af61786
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x180], rax
mov rax, qword [rbp + 0x180]
mov ecx, dword [rax + 0xc]
mov rax, qword [rbp + 0x180]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 4]
mov r8d, ecx
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x188], rax
cmp qword [rbp + 0x188], 0xffffffffffffffff
jne 0x30af616e0
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x30af61786
mov rax, qword [rbp + 0x180]
mov rax, qword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp + 0x180]
mov rdx, qword [rax + 0x20]
mov rax, qword [rbp + 0x188]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov dword [rbp + 0x17c], eax
cmp dword [rbp + 0x17c], 0xffffffff
jne 0x30af6173b
mov rax, qword [rbp + 0x188]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov qword [rbp + 0x188], 0xffffffffffffffff
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
cmp qword [rbp + 0x188], 0xffffffffffffffff
jne 0x30af61765
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x30af61786
mov rax, qword [rbp + 0x188]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 0
add rsp, 0x210
pop rbp
ret

Function at 0x30af61a30
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