joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100009020
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
xor ecx, ecx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rsi, rbx
je 0x1000091d9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x1000091d9
lea ebp, [rbx + 4]
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x100009083
xor eax, eax
jmp 0x1000091de
mov r8d, dword [rsp + 0x40]
mov edi, 1
xor edx, edx
lea ecx, [rdi + 0xd]
mov r9d, edi
call fcn.100005ec4
mov r12, rax
cmp rax, rbx
jne 0x1000090b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x10000907c
lea ecx, [rdi + 7]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10000907c
lea r8, [rsp + 0x40]
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, ebx
je 0x10000907c
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call fcn.10000799c
cmp eax, ebx
jne 0x1000090e7
mov eax, edi
jmp 0x1000091de
mov rcx, rsi
call fcn.1000092f4
xor edx, edx
mov dword [rsp + 0x40], ebx
lea r8, [rsp + 0x40]
cmp eax, edi
jne 0x10000917d
xor r9d, r9d
mov rcx, rsi
call fcn.1000095b4
cmp eax, ebx
je 0x10000907c
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov r9d, edi
lea ecx, [rdx + 0xf]
call fcn.100005ec4
mov rbp, rax
cmp rax, rbx
je 0x10000907c
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rax
mov rcx, rsi
call fcn.1000095b4
cmp eax, ebx
je 0x10000907c
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, r12
call fcn.10000799c
cmp eax, ebx
je 0x1000090e0
lea rdx, [0x100001688]
mov r8d, edi
xor r9d, r9d
mov rcx, rbp
call fcn.10000799c
cmp eax, ebx
sete bl
mov eax, ebx
jmp 0x1000091de
mov r12d, 7
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10000907c
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov r9d, edi
lea ecx, [rdx + 0xe]
call fcn.100005ec4
mov rbp, rax
cmp rax, rbx
je 0x10000907c
lea r8, [rsp + 0x40]
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, ebx
je 0x10000907c
mov rdx, rsi
jmp 0x100009166
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x1000095b4
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa80
mov rax, qword [0x10000e110]
xor rax, rsp
mov qword [rsp + 0xa70], rax
xor ebx, ebx
mov rsi, r8
mov rdi, rcx
mov rbp, rdx
lea rcx, [rsp + 0x4c]
lea r8d, [rbx + 0x2c]
xor edx, edx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
call sub.msvcrt.dll_memset
mov word [rsp + 0xa62], bx
cmp rdi, rbx
je 0x10000973a
cmp rsi, rbx
je 0x10000973a
cmp dword [rsi], ebx
je 0x100009629
cmp dword [rsi], 2
jb 0x10000973a
cmp rbp, rbx
je 0x10000973a
cmp dword [0x10000e6f4], ebx
jne 0x10000965f
lea rdx, [rsp + 0x80]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x100009655
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x100009749
mov dword [0x10000e6f4], 1
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, ebx
jne 0x10000974f
mov rdi, qword [rsp + 0x40]
jmp 0x1000096dc
mov word [rsp + 0x260], bx
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 0x20]
lea rax, [rsp + 0x220]
mov dword [rsp + 0x30], 4
lea r8, [rsp + 0x260]
mov r9d, 0x401
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
cmp eax, ebx
je 0x1000096e3
cmp eax, 0x2afc
jne 0x1000096d8
cmp word [rsp + 0x260], bx
jne 0x1000096e3
mov rdi, qword [rdi + 0x28]
cmp rdi, rbx
jne 0x100009683
jmp 0x10000972b
lea rdx, [0x1000016d8]
lea rcx, [rsp + 0x260]
call qword [sym.imp.msvcrt.dll_wcstok]
mov rdi, rax
cmp rax, rbx
je 0x10000970b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [rbx + 1]
cmp dword [rsi], eax
jae 0x10000971b
mov dword [rsi], eax
mov ebx, 1
jmp 0x10000972b
mov r8d, dword [rsi]
mov rdx, rdi
mov rcx, rbp
call fcn.1000077f8
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, ebx
jmp 0x100009751
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x10000974f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.10000c0f0
mov rbx, qword [rsp + 0xab8]
add rsp, 0xa80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140ba50b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ba5237
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 0x140ba50e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba50c7
add dl, dl
jne 0x140ba50ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba514e
xor eax, eax
add dl, dl
jne 0x140ba50fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba5205
add dl, dl
jne 0x140ba510e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba511b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba5128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba5135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ba5142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ba50d6
mov eax, 1
add dl, dl
jne 0x140ba515e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba516b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba5153
sub eax, ebx
mov ebx, 1
jne 0x140ba51a4
mov ecx, 1
add dl, dl
jne 0x140ba5186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ba5193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba517b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba50d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ba51c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ba51cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba51b5
cmp eax, 0x7d00
jae 0x140ba51f3
cmp eax, 0x500
jb 0x140ba51ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba50d6
cmp eax, 0x7f
ja 0x140ba51f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba50d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ba522a
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 0x140ba50d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800220bc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x1800220c9
mov rax, rdx
ret

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

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 8
jb 0x1800220f9
mov rax, rdx
ret
Function at 0x18007ed30
Capabilities:
Hash data with crc32

Disassembly:
movsxd r9, dword [rcx + 0xe8]
mov r10, r8
mov r8, qword [rcx + 0xf0]
mov r11, rdx
mov rax, r10
mov rcx, r11
sub rax, rdx
neg r10
mov r8d, dword [r8 + r9*4 - 4]
sbb rdx, rdx
and rdx, rax
jmp fcn.18007fb4c

Function at 0x18007fb14
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x18007fb42
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1800cc5e0]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x18007fb1f
not r8d
mov eax, r8d
ret

Function at 0x18007fb4c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18007fba6
mov r11b, 0x23
lea rdi, [0x1800cc5e0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18007fb90
cmp rdx, 2
jb 0x18007fb90
cmp byte [r10], r11b
jne 0x18007fb90
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18007fb6e
jmp 0x18007fbe7
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18007fbe7
mov r11b, 0x23
lea rdi, [0x1800cc5e0]
cmp dl, r11b
jne 0x18007fbcb
cmp byte [r10], r11b
jne 0x18007fbcb
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x18007fbb9
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x1800b2338
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov bl, r8b
xor edx, edx
call fcn.1800c2734
mov r8b, bl
mov edx, edi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800c28c4

Function at 0x1800c1528
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rdx
xor ebp, ebp
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x1800c1578
movzx edi, word [rdx + 0x38]
shr edi, 1
cmp edi, ecx
ja 0x1800c1578
mov rdx, qword [rdx + 0x40]
lea rbx, [rdi + rdi]
mov r8, rbx
mov rcx, rsi
call fcn.1800c22e8
mov eax, edi
mov word [rbx + rsi], bp
jmp 0x1800c157a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800c2734
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword gs:[0x30]
mov bpl, dl
mov esi, ecx
mov r8, qword [rax + 0x60]
mov rdi, qword [r8 + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x1800c27ed
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x64]
call fcn.1800c230c
movzx r11d, word [rbx + 0x48]
xor r10d, r10d
shr r11, 1
add r11, 0xfffffffffffffffc
je 0x1800c27be
mov r9, qword [rbx + 0x50]
movzx edx, word [r9]
lea r9, [r9 + 2]
movzx r8d, dl
sub dx, 0x41
cmp dx, 0x19
lea eax, [r8 + 0x20]
movzx ecx, al
cmova ecx, r8d
mov byte [rsp + r10 + 0x20], cl
inc r10
cmp r10, r11
jne 0x1800c2792
test esi, esi
je 0x1800c2811
mov al, byte [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov ecx, 0x84222325
jmp 0x1800c27e2
movsx eax, al
xor eax, ecx
imul ecx, eax, 0x1b3
inc rdx
mov al, byte [rdx]
test al, al
jne 0x1800c27d2
cmp esi, ecx
je 0x1800c2811
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1800c276d
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
test bpl, bpl
je 0x1800c2842
mov rcx, qword [rbx - 0x10]
mov rax, qword [rbx - 8]
mov qword [rcx + 8], rax
mov rcx, qword [rbx - 8]
mov rax, qword [rbx - 0x10]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rax, qword [rbx + 0x20]
jmp 0x1800c27f8
Function at 0x1800c2848
Capabilities:
Access peb ldr_data

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 rax, qword gs:[0x30]
mov bpl, r8b
mov rsi, rdx
mov r14d, ecx
mov r9, qword [rax + 0x60]
mov rdi, qword [r9 + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1800c28a5
mov rcx, qword [rbx + 0x20]
cmp rsi, rcx
je 0x1800c28a0
mov r8b, bpl
mov edx, r14d
call fcn.1800c28c4
test rax, rax
jne 0x1800c28a7
mov rbx, qword [rbx]
jmp 0x1800c2882
xor eax, eax
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 0x1800c2c58
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
test rcx, rcx
je 0x1800c2c7b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800c2c7b
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
cmovne rax, rdx
ret
xor eax, eax
ret
Function at 0x140003db0
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 case.default.0x140003dd1
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 0x140003dfe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003e00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003e59
test ecx, ecx
jle 0x140003e39
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 0x140003e59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003e59
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
cmp ecx, 0xffffffff
jne 0x1400135ae
lea ebx, [rcx + 2]
jmp 0x140013601
cmp ecx, r15d
jne 0x1400135f3
mov r14b, 1
mov byte [rsp + 0x88], r14b
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rsi + 0x48]
mov rax, qword [rcx + 0x38]
cmp qword [rax], 0
je 0x1400135eb
mov rdx, qword [rcx + 0x50]
mov eax, dword [rdx]
test eax, eax
jle 0x1400135eb
dec eax
mov dword [rdx], eax
mov rax, qword [rcx + 0x38]
inc qword [rax]
jmp 0x140013605
mov rax, qword [rcx]
call qword [rax + 0x38]
jmp 0x140013605
mov rdx, qword [rdi + 0x10]
cmp rdx, r13
jb 0x140013607
mov ebx, 2
mov dword [rsp + 0x20], ebx
jmp 0x14001367b
mov r8, qword [rdi + 0x18]
cmp rdx, r8
jae case.0x140003dd1.0
lea rax, [rdx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r8, 0x10
jb 0x140013624
mov rax, qword [rdi]
mov byte [rax + rdx], cl
mov byte [rax + rdx + 1], 0
jmp 0x140013641
movzx r9d, cl
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call 0x140012ec0
mov r14b, 1
mov byte [rsp + 0x88], r14b
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rsi + 0x48]
call 0x140013820
mov ecx, eax
jmp 0x1400135a4
Function at 0x140003e80
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 0x140003ea2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140003eb1
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 0x140003ed4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003ed6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003f12
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 0x140003fae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003f4d
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 0x140003f8e
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 0x140003fae
cmp rbx, rax
ja 0x140003f60
test rbx, rbx
je 0x140003fae
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 0x140004410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000443d
xor eax, eax
jmp 0x1400045a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004477
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004477
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 0x1400045a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000459c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400044ba
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 0x1400044e5
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 0x1400045a1
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 0x140004554
sub eax, 1
je 0x140004554
cmp eax, 2
jne 0x14000459c
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 0x1400045a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004582
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 0x14000459c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400045a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006170
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004a90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004b63
cmp byte [rcx + 0x71], 0
je 0x140004b63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004b5f
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 0x140004b24
sub eax, 1
je 0x140004b28
cmp eax, 2
jne 0x140004b5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006170
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004b56
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 0x140004b5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004b0c
xor al, al
jmp 0x140004b0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006170
add rsp, 0x60
pop rbx
ret

Function at 0x140005d0c
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 0x140005d46
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140005d4b
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 0x140005d94
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400084c0]
cmp byte [rcx + rax], 0
je 0x140005d94
dec r8
sub rdx, 1
jne 0x140005d7a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140006014
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.140005dac
mov ebx, eax
test eax, eax
jne 0x140006044
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400060a7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000609e
test al, 0x10
je 0x14000609e
bt eax, 0xa
jae 0x140006097
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400060b8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140006093
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140006093
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14000609e
and dword [rsp + 0x3c], 0
jmp 0x1400060a3
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 0x140006ba0
Capabilities:
Parse pe header

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

Function at 0x182c14b88
Capabilities:
Encode data using xor

Disassembly:
jmp 0x182c14b92
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 0x182c14bbb
pop rbp
sub rbp, 0x33
sub rbp, 0x2c14b88
cmp edx, 1
je 0x182c14bfe
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x182c14c0e
mov rax, 0x2c14b88
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0xffffffff97a61d74
xor byte [rax], dl
inc rax
dec rcx
jne 0x182c14c2d
jmp 0x182c14c44
cmp al, 0xfd
popfq
invalid