joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400641f0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x2c0
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r8, [0x140075918]
lea rcx, [rsp + 0x28]
call fcn.140069230
cmp qword [rax + 0x18], 7
jbe 0x140064242
mov rax, qword [rax]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140064298
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064293
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064293
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072de4
movdqa xmm0, xmmword [0x140076390]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x50], r14
cmp rbp, 0xffffffffffffffff
je 0x140064380
nop dword [rax]
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x140064361
mov rax, qword [rsp + 0x74]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x8c]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140064310
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x140064351
mov rsi, rdi
cmp rax, 7
jbe 0x14006432f
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x8c]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi], r14w
jmp 0x140064361
lea r9, [rsp + 0x8c]
mov rcx, rdi
call fcn.140069a10
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400642e0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, rdi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140072b40
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140067d10
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140067d41
xor eax, eax
jmp 0x140067e8b
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140067d7e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x140067d7e
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x140067e8b
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140067e80
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140067dc5
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140067dd3
movzx ecx, di
jmp 0x140067e27
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140067e40
sub eax, 1
je 0x140067e40
cmp eax, 2
jne 0x140067e80
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x140067e83
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140067e6e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140067e80
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140072b40
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140068214
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140068200
ret
Function at 0x140068930
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140068a05
cmp byte [rcx + 0x72], 0
je 0x140068a05
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140068a01
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400689c6
sub eax, 1
je 0x1400689ca
cmp eax, 2
jne 0x140068a01
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072b40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400689f8
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140068a01
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400689ae
xor al, al
jmp 0x1400689ae
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072b40
add rsp, 0x60
pop rbx
ret
Function at 0x1400703b0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x140070493
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140070493
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400704b1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140070483
cmp word [rcx], 0x5c
jne 0x14007047c
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x14007047c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140070467
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x140070479
test r8b, 0x10
jne 0x14007047c
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x14007047c
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.14006b720
test edi, edi
jne 0x1400703e0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14006b710
int3

Function at 0x140073704
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007374e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007374e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007374e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007374e
cmp dword [rcx + 0x84], 0xe
jbe 0x14007374e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140073750
xor al, al
add rsp, 0x28
ret
Function at 0x140001c60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x90
mov dword [rsp + 0x74], edx
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x88]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x68]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x48]
cmp eax, dword [rcx + 0x14]
jae 0x140001e31
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x20]
add rax, rcx
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x84], 0xc817
mov eax, dword [rsp + 0x84]
ror eax, 6
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
cmp eax, 0x61
jl 0x140001d91
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
sub eax, 0x20
add eax, dword [rsp + 0x84]
mov dword [rsp + 0x84], eax
jmp 0x140001daa
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
add eax, dword [rsp + 0x84]
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0x88]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x88], rcx
cmp byte [rax + 1], 0
jne 0x140001d4b
mov eax, dword [rsp + 0x84]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
cmp eax, dword [rsp + 0x74]
jne 0x140001e1c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x24]
movzx ecx, word [rcx + rdx*2]
mov eax, dword [rax + rcx*4]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x68]
add rax, qword [rsp + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x78], rax
jmp 0x140001e3a
jmp 0x140001e21
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x140001cf6
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
add rsp, 0x90
ret
Function at 0x1400110f0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp], 0
mov rax, qword [rsp]
cmp rax, qword [rsp + 0x18]
jae 0x140011157
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp]
movzx eax, byte [rax + rcx]
xor rax, qword [rsp + 8]
mov qword [rsp + 8], rax
movabs rax, 0x100000001b3
imul rax, qword [rsp + 8]
mov qword [rsp + 8], rax
mov rax, qword [rsp]
add rax, 1
mov qword [rsp], rax
jmp 0x14001110b
mov rax, qword [rsp + 8]
add rsp, 0x20
ret

Function at 0x140034c00
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
call fcn.140003ee0
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x50]
call fcn.14000daa0
mov r8d, dword [rsp + 0x2c]
mov rdx, rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
lea r9, [rsp + 0x40]
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x3c], eax
add rsp, 0x58
ret

Function at 0x140052950
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], rcx
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x20]
call fcn.140052a30
mov rax, qword [rbp - 0x30]
lea rcx, [0x140052ab0]
mov qword [rbp - 0x28], rcx
add rax, 8
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x20]
call fcn.14000b180
mov r9, rax
mov rax, qword [rbp - 0x38]
xor ecx, ecx
xor edx, edx
lea r8, [0x140052ab0]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call fcn.1400e1958
mov rcx, rax
mov rax, qword [rbp - 0x30]
mov qword [rax], rcx
cmp qword [rax], 0
je 0x1400529f0
lea rcx, [rbp - 0x20]
call fcn.14000ca40
lea rcx, [rbp - 0x20]
call fcn.140052b30
nop
add rsp, 0x70
pop rbp
ret
mov rax, qword [rbp - 0x30]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400540e4
jmp 0x140052a0a
int3
Function at 0x1400548cc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1401450c0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140054907
xor eax, eax
jmp 0x140054a2c
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140054941
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140054941
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140054a2c
cmp qword [rbx + 0x80], 0
je 0x140054a2a
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14005497c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14005499c
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.1400eb5ec
cmp eax, edi
jmp 0x140054a27
lea r8, [rbp + 0xf]
mov byte [rbp + 7], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 8]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x14015c010]
test eax, eax
je 0x1400549f1
sub eax, 1
je 0x1400549f1
cmp eax, 2
jne 0x140054a2a
movsx ecx, byte [rbp + 7]
jmp 0x140054989
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x140054a1b
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.1400ec1d8
cmp r14, rax
jne 0x140054a2a
lea rax, [rbp + 7]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x17], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14006b8d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140054da8
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140054dd6
xor eax, eax
jmp 0x140054ebc
cmp qword [rcx + 0x68], 0
je 0x140054de7
call fcn.14002eda0
jmp 0x140054ebc
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140054dfe
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140054e00
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140054e32
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140100930
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140054eb6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140054e69
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140054e92
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400eb984
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140054eb6
cmp rsi, rbx
ja 0x140054e70
test rsi, rsi
je 0x140054eb6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400eb984
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140054ed8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140054f07
call fcn.14002eee0
jmp 0x140054f7e
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140054f1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140054f20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140054f78
test ecx, ecx
jle 0x140054f59
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140100930
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140054f78
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140054f78
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.1400ec1d8
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400698e0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x140149490], 0
jne 0x140069987
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x140149490], ecx
jne 0x140069987
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x140149478]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x1401494a8], rdi
mov qword [0x1401494a0], rdi
mov qword [0x140149498], rdi
test rbx, rbx
je 0x140069970
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140069968
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140069940
jmp 0x140069970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x140149494], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x140069fa0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x140149494]
mov rdi, rcx
test eax, eax
jne 0x14006a043
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x140069fca
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, reloc.WS2_32.dll_recv
mov qword [rsp + 0x30], rbx
call fcn.1400534b0
mov rbx, rax
test rax, rax
jne 0x140069fe6
lea edi, [rax + 8]
jmp 0x14006a009
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x14006a027
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.1400534f4
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x140149494], edi
mov qword [0x140149498], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1401494a0]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x1401494a0], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006a5f0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x14006a61e
xor al, al
jmp 0x14006a660
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x14006a62f
xor al, al
jmp 0x14006a660
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x14006a656
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x14006a656
mov al, 1
jmp 0x14006a660
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret

Function at 0x14006a8b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x14006a8d2
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x14006a98d
nop dword [rax + rax]
cmp rbx, qword [0x140145050]
jb 0x14006a8fe
cmp rbx, qword [0x140145058]
ja 0x14006a8fe
add rbx, 0x8000000
jmp 0x14006a984
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14006a98d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x14006a969
cmp rcx, 0x10000
jb 0x14006a969
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x14006a98f
add rbx, 0x10000
jmp 0x14006a984
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14006a984
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x14006a8e0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14006a9a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14006aa7b
nop dword [rax]
cmp rbx, qword [0x140145050]
jb 0x14006a9ee
cmp rbx, qword [0x140145058]
ja 0x14006a9ee
sub rbx, 0x8000000
jmp 0x14006aa72
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14006aa7b
cmp dword [rsp + 0x40], 0x10000
jne 0x14006aa56
cmp qword [rsp + 0x38], 0x10000
jb 0x14006aa56
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x14006aa7d
sub rbx, 0x10000
jmp 0x14006aa72
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x14006a9d0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret