joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003210
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180003238
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000325e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180003260
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800032b9
test ecx, ecx
jle 0x180003299
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
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 0x1800032b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800032b9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1800032e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180003302
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180003318
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180003334
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003336
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003372
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000340e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800033ad
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1800033ee
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000340e
cmp rbx, rax
ja 0x1800033c0
test rbx, rbx
je 0x18000340e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180003840
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180040030]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000386d
xor eax, eax
jmp 0x1800039d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800038a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800038a7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1800039d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800039cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800038ea
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 0x180003915
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800039d1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
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_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180003984
sub eax, 1
je 0x180003984
cmp eax, 2
jne 0x1800039cc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800039d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800039b2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1800039cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800039d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180030770
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180003f20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180040030]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180003ff3
cmp byte [rcx + 0x71], 0
je 0x180003ff3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180003fef
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_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180003fb4
sub eax, 1
je 0x180003fb8
cmp eax, 2
jne 0x180003fef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180030770
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180003fe6
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 0x180003fef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180003f9c
xor al, al
jmp 0x180003f9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180030770
add rsp, 0x60
pop rbx
ret
Function at 0x1800202e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1800203ac
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1800203ac
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 0x1800203c5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x18002039c
cmp byte [rax], 0x5c
jne 0x180020396
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x180020396
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180020382
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x180020393
test r8b, 0x10
jne 0x180020396
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x180020396
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.18001c610
test edi, edi
jne 0x180020300
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.18001c600
int3

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180023594
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180023580
ret
Function at 0x18002fda4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18002fe28
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180034820]
cmp byte [rcx + rax], 0
je 0x18002fe28
dec r8
sub rdx, 1
jne 0x18002fe0e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400316cc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140031744
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140031744
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140031744
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140031738
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140031756
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031726
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140031746

Function at 0x140033290
Capabilities:
Parse pe header

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

Function at 0x14003c024
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bd88

Function at 0x140045f40
Capabilities:
Parse pe header

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

Function at 0x140cea250
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140cea25a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140cea283
pop rbp
sub rbp, 0x33
sub rbp, 0xcea250
sub rsp, 0x20
jmp 0x140cea2a2
mov rax, 0xcea250
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffbe068923
xor byte [rax], dl
inc rax
dec rcx
jne 0x140cea2c1
jmp 0x140cea2d8
imul ebp, dword [rdx + 0x1faaa8ca], 0x23
and esp, dword [rbx]
imul esp, dword [rdx + 0x23222be2], 0x23
imul esp, dword [rdx], 0xffffffca
imul esp, esp, 0xffffffe3
sub byte [rbx], ah
and esp, dword [rbx]
imul esp, esp, 0xffffffe1
or esp, dword [rbx]
and esp, dword [rbx]
imul edx, esp, 0xffffffc1
imul esp, dword [rdx], 0xffffffe2
test al, 0xa2
invalid
Function at 0x2fc5cb4d0
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 0x2fc5cbed2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc5ee108]
test eax, eax
je 0x2fc5cbf6a
lea rax, [0x2fc5ee0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc5ee110]
mov qword [rbp - 8], rax
jmp 0x2fc5cbf4e
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 0x2fc5cbf42
cmp qword [rbp - 0x10], 0
je 0x2fc5cbf42
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 0x2fc5cbf08
lea rax, [0x2fc5ee0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5cbf6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5cc070
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc5cc098
mov eax, 0
jmp 0x2fc5cc0e6
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 0x2fc5cc0c1
mov eax, 0
jmp 0x2fc5cc0e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc5cc0e1
mov eax, 0
jmp 0x2fc5cc0e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5cc0ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc5cc16a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5cc161
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc5cc161
mov rax, qword [rbp - 8]
jmp 0x2fc5cc17f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc5cc134
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x401408
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rsi
push rdi
push r13
mov rsi, rcx
xor r11d, r11d
xor r10d, r10d
xor ecx, ecx
test r9, r9
mov rbx, r8
mov rdi, rdx
je 0x40153b
lea r13, [0x00444610]
mov rax, r9
sub rax, r10
cmp rax, 2
jb 0x40144a
cmp byte [r10 + r8], 0xd
jne 0x40144a
cmp byte [r10 + r8 + 1], 0xa
je 0x40147e
mov al, byte [r10 + r8]
cmp al, 0xa
je 0x40147e
cmp al, 0x3d
jne 0x401460
add rcx, 1
cmp rcx, 2
ja 0x4014a5
cmp al, 0x7f
ja 0x4014a5
movzx eax, al
cmp byte [rax + r13], 0x7f
je 0x4014a5
cmp byte [rax + r13], 0x40
jae 0x40147a
test rcx, rcx
jne 0x4014a5
add r11, 1
add r10, 1
cmp r10, r9
jb 0x40142f
test r11, r11
je 0x40153b
lea rax, [r11 + r11*2]
lea rax, [rax + rax + 7]
shr rax, 3
cmp qword [rdx], rax
jae 0x4014af
mov qword [rdx], rax
mov eax, 0xffffffff
jmp 0x40153d
xor r9d, r9d
xor r11d, r11d
test r10, r10
mov r8d, 3
mov rdx, rsi
je 0x401535
cmp byte [rbx], 0xd
je 0x40152b
cmp byte [rbx], 0xa
je 0x40152b
movzx eax, byte [rbx]
mov cl, byte [rax + r13]
xor eax, eax
cmp cl, 0x40
sete al
and ecx, 0x3f
add r11, 1
sub r8, rax
mov eax, r9d
mov r9d, ecx
shl eax, 6
or r9d, eax
cmp r11, 4
jne 0x40152b
xor r11d, r11d
test r8, r8
je 0x40150c
mov eax, r9d
shr eax, 0x10
mov byte [rdx], al
add rdx, 1
cmp r8, 1
jbe 0x40151e
mov eax, r9d
shr eax, 8
mov byte [rdx], al
add rdx, 1
cmp r8, 2
jbe 0x40152b
mov byte [rdx], r9b
add rdx, 1
add rbx, 1
sub r10, 1
jne 0x4014c3
sub rdx, rsi
mov qword [rdi], rdx
xor eax, eax
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x401598
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x28
movzx eax, byte [r8 + 2]
mov r11d, dword [rcx]
mov ebp, dword [rcx + 4]
mov r12d, dword [rcx + 8]
mov r13d, dword [rcx + 0xc]
movzx ebx, byte [r8 + 1]
movzx edi, byte [r8 + 5]
shl ebx, 8
mov rsi, rdx
mov edx, dword [rcx + 0x40]
movzx ecx, byte [r8 + 4]
or ebx, eax
movzx eax, byte [r8]
shl edi, 8
shl ebx, 8
shl eax, 0x18
shl ecx, 0x18
mov r10, r8
or ebx, eax
movzx eax, byte [r8 + 3]
or ebx, eax
movzx eax, byte [r8 + 6]
or edi, eax
mov eax, edx
shl edi, 8
cdq
or edi, ecx
movzx ecx, byte [r8 + 7]
sub eax, edx
xor r8d, r8d
or edi, ecx
sar eax, 1
cmp r9d, r8d
je 0x4016ce
mov edx, eax
imul edx, edx, 0x9e3779b9
cmp eax, r8d
jle 0x401661
mov r9d, eax
mov ecx, ebx
mov eax, ebx
shr ecx, 5
shl eax, 4
add ecx, r13d
add eax, r12d
xor ecx, eax
lea eax, [rdx + rbx]
xor ecx, eax
sub edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
shl eax, 4
add ecx, ebp
add eax, r11d
xor ecx, eax
lea eax, [rdx + rdi]
add edx, 0x61c88647
xor ecx, eax
sub ebx, ecx
sub r9, 1
jne 0x401624
mov r9, qword [rsp + 0x80]
cmp r9, r8
je 0x401715
movzx ecx, byte [r9 + 1]
movzx eax, byte [r9 + 2]
movzx edx, byte [r9 + 5]
shl ecx, 8
shl edx, 8
mov r8d, 8
or ecx, eax
movzx eax, byte [r9]
shl eax, 0x18
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 3]
or ecx, eax
movzx eax, byte [r9 + 6]
or edx, eax
movzx eax, byte [r9 + 4]
xor ebx, ecx
shl edx, 8
shl eax, 0x18
mov rcx, r9
or edx, eax
movzx eax, byte [r9 + 7]
or edx, eax
xor edi, edx
mov rdx, r10
call sub.msvcrt.dll_memcpy
jmp 0x401715
cmp eax, r8d
jle 0x401715
mov edx, eax
add r8d, 0x9e3779b9
mov ecx, edi
mov eax, edi
shr ecx, 5
shl eax, 4
add ecx, ebp
add eax, r11d
xor ecx, eax
lea eax, [r8 + rdi]
xor ecx, eax
add ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
shl eax, 4
add ecx, r13d
add eax, r12d
xor ecx, eax
lea eax, [r8 + rbx]
xor ecx, eax
add edi, ecx
sub rdx, 1
jne 0x4016d5
mov eax, ebx
mov byte [rsi + 3], bl
mov byte [rsi + 7], dil
shr eax, 8
mov byte [rsi + 2], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
mov byte [rsi], bl
mov byte [rsi + 1], al
mov eax, edi
shr eax, 8
mov byte [rsi + 6], al
mov eax, edi
shr eax, 0x10
shr edi, 0x18
mov byte [rsi + 4], dil
mov byte [rsi + 5], al
add rsp, 0x28
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x433a0c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x00497080], rdi
je 0x433a65
cmp rax, rdi
jne 0x433a58
mov esi, 1
jmp 0x433a65
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x433a3f
mov eax, dword [0x00497078]
cmp eax, 1
jne 0x433a7a
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x433adf
mov eax, dword [0x00497078]
test eax, eax
jne 0x433ad5
mov dword [0x00497078], 1
lea r12, [0x004444f0]
lea rdi, [0x004444d8]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x433ac7
test eax, eax
jne 0x433ac7
mov rcx, qword [rdi]
test rcx, rcx
je 0x433abc
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x433aa5
test eax, eax
je 0x433adf
mov eax, 0xff
jmp 0x433c29
mov dword [0x00497054], 1
mov eax, dword [0x00497078]
cmp eax, 1
jne 0x433b07
lea rdx, [0x004444d0]
lea rcx, [0x004444c0]
call sub.msvcrt.dll__initterm
mov dword [0x00497078], 2
test esi, esi
jne 0x433b14
xor eax, eax
xchg qword [0x00497080], rax
cmp qword [0x00497088], 0
je 0x433b3d
lea rcx, [0x00497088]
call fcn.00433e08
test eax, eax
je 0x433b3d
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x00497088]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x433bc8
cmp byte [rdi], 0
je 0x433b5e
test esi, esi
jne 0x433bc8
cmp byte [rdi], 0
je 0x433b72
cmp byte [rdi], 0x20
ja 0x433b72
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x433b5e
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x00400000]
call fcn.0040246c
mov dword [0x00497050], eax
cmp dword [0x00497034], 0
jne 0x433bb1
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x00497054], 0
jne 0x433bc6
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x00497050]
jmp 0x433c29
cmp byte [rdi], 0x22
jne 0x433bda
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x433bef
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x433b50
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.00433efc
add rsp, 0x28
jmp 0x433a0c

Function at 0x433e5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x433ea9
cmp rcx, 0xffffffffffffffff
je 0x433ea9
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x433ea1
cmp dword [rcx + 0x3c], edx
jl 0x433ea1
cmp dword [rcx + 0x3c], 0x10000000
jae 0x433ea1
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x433ea9
mov rax, rdx
add rsp, 0x18
ret