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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x3a1eb15b2
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x3a1eba708
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x3a1eb2c97
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [fcn.3a1eba010]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x3a1eba708

Function at 0x3a1eb2cd6
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
test rdx, rdx
je 0x3a1eb2c78
add qword [rdx - 0x10], 0x10
mov qword [rcx], rdx
mov rcx, rbx
call fcn.3a1eb2bed
test al, al
je 0x3a1eb2c91
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.3a1eb2c2c
add rsp, 0x20
pop rbx
ret
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x3a1ec1ad8], 0
jne 0x3a1eb2cee
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.3a1eb2c97
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.3a1eb1f96
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x3a1ec1ad8]
test rbx, rbx
je 0x3a1eb2d1f
test byte [rbx + 7], 0x40
jne 0x3a1eb2d1f
mov rcx, rbx
call fcn.3a1eb2393
cmp byte [0x3a1ec1ac0], 0
je 0x3a1eb2d4f
mov rax, qword [0x3a1ec1b38]
xor r8d, r8d
lea rcx, [0x3a1ec1b38]
mov byte [0x3a1ec1ac0], 0
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp 0x3a1eb2c66
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x3a1eb4420
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.3a1eba010
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.3a1eba010
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x3a1eb4490
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3a1ec1c04]
mov rbx, rcx
test esi, esi
jle 0x3a1eb45c0
mov rax, qword [0x3a1ec1c08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3a1eb44db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3a1eb4565
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3a1eb44c0
mov rcx, rbx
call fcn.3a1eb4cf0
mov rdi, rax
test rax, rax
je 0x3a1eb45e2
mov rax, qword [0x3a1ec1c08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3a1eb4e30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3a1ec1c08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3a1eb45c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x3a1eb455e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x3a1eb4570
add dword [0x3a1ec1c04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x3a1ec1c08]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3a1eb455e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3a1eb4420
nop dword [rax]
xor esi, esi
jmp 0x3a1eb44e8
mov rax, qword [0x3a1ec1c08]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3a1eb4420
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.3a1eb4420
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3a1eb4960
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3a1ec1c40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3a1ec1c20]
test rbx, rbx
je 0x3a1eb49bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x3a1eb49b3
test eax, eax
jne 0x3a1eb49b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3a1eb4998
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x3a1eb4cf0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3a1ebcae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3a1eb4d10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3a1eb4d18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3a1eb4d10
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3a1eb4d6d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3a1eb4d64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3a1eb4d10
add rax, 0x28
cmp rax, r9
jne 0x3a1eb4d50
xor eax, eax
ret

Function at 0x3a1eb4d70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a1ebcae0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3a1eb4d8f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3a1eb4d98
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3a1eb4d8f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3a1eb4e30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a1ebcae0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3a1eb4e4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3a1eb4e58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x40133c
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sub.user32.dll_GetForegroundWindow
mov qword [rbp - 8], rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_ShowWindow
mov eax, 0
mov r9, rax
lea rax, str.Error
mov r8, rax
lea rax, str.This_Program_Requires_an_older_version_of_windows._Please_try_again_in_compatiblity_mode.
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_MessageBoxA
call section..text
leave
ret

Function at 0x401347
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sub.user32.dll_GetForegroundWindow
mov qword [rbp - 8], rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_ShowWindow
mov eax, 0
mov r9, rax
lea rax, str.Error
mov r8, rax
lea rax, str.This_Program_Requires_an_older_version_of_windows._Please_try_again_in_compatiblity_mode.
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.user32.dll_MessageBoxA
call section..text
leave
ret
Function at 0x401750
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov eax, 0
mov dword [rbp - 0xc], eax
movabs rax, 0x400
mov r11, rax
movabs rax, 1
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x20], rax
lea rax, [0x00403498]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
jne 0x4017cd
movabs rax, 0
jmp 0x401959
mov eax, 2
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_ftell
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_rewind
mov eax, dword [rbp - 0xc]
add eax, 1
movsxd rax, eax
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 0xc]
movsxd rax, eax
mov rcx, qword [rbp - 8]
mov r9, rcx
movabs rcx, 1
mov r8, rcx
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fread
mov eax, dword [rbp - 0xc]
movsxd rax, eax
mov rcx, qword [rbp - 0x18]
add rcx, rax
mov eax, 0
mov byte [rcx], al
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
lea rax, [0x0040349a]
mov r8, rax
mov eax, dword [rbp - 0xc]
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401668
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x24]
cmp eax, 0xffffffff
jne 0x4018b0
jmp 0x401931
lea rax, str._encrypted_key_:_
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_strlen
mov ecx, dword [rbp - 0x24]
movsxd rcx, ecx
add rcx, rax
mov dword [rbp - 0x24], ecx
mov eax, 0
mov dword [rbp - 0x28], eax
mov eax, dword [rbp - 0x24]
movsxd rax, eax
mov rcx, qword [rbp - 0x18]
add rcx, rax
movsx eax, byte [rcx]
cmp eax, 0x22
je 0x401928
mov eax, dword [rbp - 0x28]
movsxd rax, eax
mov rcx, qword [rbp - 0x20]
add rcx, rax
mov eax, dword [rbp - 0x24]
movsxd rax, eax
mov rdx, qword [rbp - 0x18]
add rdx, rax
movsx eax, byte [rdx]
mov byte [rcx], al
mov eax, dword [rbp - 0x24]
mov rcx, rax
add eax, 1
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x28]
mov rcx, rax
add eax, 1
mov dword [rbp - 0x28], eax
jmp 0x4018d6
mov rax, qword [rbp - 0x20]
jmp 0x401959
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
movabs rax, 0
leave
ret
Function at 0x40175b
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov eax, 0
mov dword [rbp - 0xc], eax
movabs rax, 0x400
mov r11, rax
movabs rax, 1
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x20], rax
lea rax, [0x00403498]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
jne 0x4017cd
movabs rax, 0
jmp 0x401959
mov eax, 2
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_ftell
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_rewind
mov eax, dword [rbp - 0xc]
add eax, 1
movsxd rax, eax
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 0xc]
movsxd rax, eax
mov rcx, qword [rbp - 8]
mov r9, rcx
movabs rcx, 1
mov r8, rcx
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fread
mov eax, dword [rbp - 0xc]
movsxd rax, eax
mov rcx, qword [rbp - 0x18]
add rcx, rax
mov eax, 0
mov byte [rcx], al
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
lea rax, [0x0040349a]
mov r8, rax
mov eax, dword [rbp - 0xc]
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401668
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x24]
cmp eax, 0xffffffff
jne 0x4018b0
jmp 0x401931
lea rax, str._encrypted_key_:_
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_strlen
mov ecx, dword [rbp - 0x24]
movsxd rcx, ecx
add rcx, rax
mov dword [rbp - 0x24], ecx
mov eax, 0
mov dword [rbp - 0x28], eax
mov eax, dword [rbp - 0x24]
movsxd rax, eax
mov rcx, qword [rbp - 0x18]
add rcx, rax
movsx eax, byte [rcx]
cmp eax, 0x22
je 0x401928
mov eax, dword [rbp - 0x28]
movsxd rax, eax
mov rcx, qword [rbp - 0x20]
add rcx, rax
mov eax, dword [rbp - 0x24]
movsxd rax, eax
mov rdx, qword [rbp - 0x18]
add rdx, rax
movsx eax, byte [rdx]
mov byte [rcx], al
mov eax, dword [rbp - 0x24]
mov rcx, rax
add eax, 1
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x28]
mov rcx, rax
add eax, 1
mov dword [rbp - 0x28], eax
jmp 0x4018d6
mov rax, qword [rbp - 0x20]
jmp 0x401959
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
movabs rax, 0
leave
ret
Function at 0x401960
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
lea rax, str.dQw4w9WgXcQ:
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_strlen
mov rcx, qword [rbp + 0x10]
add rcx, rax
mov qword [rbp + 0x10], rcx
mov eax, 0
mov dword [rbp - 4], eax
movabs rax, 0
mov qword [rsp + 0x30], rax
movabs rax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptStringToBinaryA
mov eax, dword [rbp - 4]
mov r11, rax
movabs rax, 1
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rsp + 0x30], rax
movabs rax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x10]
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptStringToBinaryA
movabs rax, 0
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 4]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
mov rax, qword [rbp + 0x18]
mov r11, rax
lea rax, [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00402118
cmp eax, 0
je 0x401aa6
jmp 0x401acc
mov rax, qword [rbp - 0x18]
mov r11, rax
lea rax, str.Gasters_Token_Grabber
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004013a5
mov eax, 0
jmp 0x401ae0
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov eax, 1
leave
ret
Function at 0x40196b
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
lea rax, str.dQw4w9WgXcQ:
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_strlen
mov rcx, qword [rbp + 0x10]
add rcx, rax
mov qword [rbp + 0x10], rcx
mov eax, 0
mov dword [rbp - 4], eax
movabs rax, 0
mov qword [rsp + 0x30], rax
movabs rax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptStringToBinaryA
mov eax, dword [rbp - 4]
mov r11, rax
movabs rax, 1
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rsp + 0x30], rax
movabs rax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x10]
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptStringToBinaryA
movabs rax, 0
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 4]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
mov rax, qword [rbp + 0x18]
mov r11, rax
lea rax, [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00402118
cmp eax, 0
je 0x401aa6
jmp 0x401acc
mov rax, qword [rbp - 0x18]
mov r11, rax
lea rax, str.Gasters_Token_Grabber
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004013a5
mov eax, 0
jmp 0x401ae0
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov eax, 1
leave
ret
Function at 0x401aec
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, 0
mov dword [rbp - 4], eax
movabs rax, 0
mov qword [rsp + 0x30], rax
movabs rax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptStringToBinaryA
mov eax, dword [rbp - 4]
mov r11, rax
movabs rax, 1
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rsp + 0x30], rax
movabs rax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x10]
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptStringToBinaryA
mov rax, qword [rbp - 0x10]
add rax, 5
mov qword [rbp - 0x10], rax
mov eax, dword [rbp - 4]
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
mov eax, 0
mov qword [rsp + 0x28], rax
movabs rax, 0
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
movabs rax, 0
mov r8, rax
movabs rax, 0
mov r11, rax
lea rax, [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptUnprotectData
cmp eax, 0
je 0x401c56
jmp 0x401c5b
jmp 0x401cad
mov rax, qword [rbp + 0x18]
mov ecx, dword [rbp - 0x30]
mov r10, rcx
mov qword [rbp - 0x38], rax
mov rcx, r10
call sub.msvcrt.dll_malloc
mov rcx, qword [rbp - 0x38]
mov qword [rcx], rax
mov rax, qword [rbp + 0x18]
mov ecx, dword [rbp - 0x30]
mov r8, rcx
mov rcx, qword [rbp - 0x28]
mov r11, rcx
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x20]
mov ecx, dword [rbp - 0x30]
mov dword [rax], ecx
mov eax, 0
jmp 0x401cc1
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov eax, 1
leave
ret
Function at 0x401af7
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, 0
mov dword [rbp - 4], eax
movabs rax, 0
mov qword [rsp + 0x30], rax
movabs rax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptStringToBinaryA
mov eax, dword [rbp - 4]
mov r11, rax
movabs rax, 1
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rsp + 0x30], rax
movabs rax, 0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x10]
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptStringToBinaryA
mov rax, qword [rbp - 0x10]
add rax, 5
mov qword [rbp - 0x10], rax
mov eax, dword [rbp - 4]
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
mov eax, 0
mov qword [rsp + 0x28], rax
movabs rax, 0
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
movabs rax, 0
mov r8, rax
movabs rax, 0
mov r11, rax
lea rax, [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.crypt32.dll_CryptUnprotectData
cmp eax, 0
je 0x401c56
jmp 0x401c5b
jmp 0x401cad
mov rax, qword [rbp + 0x18]
mov ecx, dword [rbp - 0x30]
mov r10, rcx
mov qword [rbp - 0x38], rax
mov rcx, r10
call sub.msvcrt.dll_malloc
mov rcx, qword [rbp - 0x38]
mov qword [rcx], rax
mov rax, qword [rbp + 0x18]
mov ecx, dword [rbp - 0x30]
mov r8, rcx
mov rcx, qword [rbp - 0x28]
mov r11, rcx
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x20]
mov ecx, dword [rbp - 0x30]
mov dword [rax], ecx
mov eax, 0
jmp 0x401cc1
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov eax, 1
leave
ret
Function at 0x401cc8
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, 0
mov dword [rbp - 0xc], eax
lea rax, [0x004034d0]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
jne 0x401d1f
mov eax, 1
jmp 0x401ef0
mov eax, 2
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_ftell
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_rewind
mov eax, dword [rbp - 0xc]
add eax, 1
movsxd rax, eax
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 0xc]
movsxd rax, eax
mov rcx, qword [rbp - 8]
mov r9, rcx
movabs rcx, 1
mov r8, rcx
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fread
mov eax, dword [rbp - 0xc]
movsxd rax, eax
mov rcx, qword [rbp - 0x18]
add rcx, rax
mov eax, 0
mov byte [rcx], al
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
lea rax, str.dQw4w9WgXcQ
mov r8, rax
mov eax, dword [rbp - 0xc]
mov r11, rax
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401668
mov dword [rbp - 0x24], eax
cmp eax, 0xffffffff
je 0x401edc
mov eax, 0
mov dword [rbp - 0x28], eax
movabs rax, 0x400
mov r11, rax
movabs rax, 1
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x30], rax
mov eax, dword [rbp - 0x24]
movsxd rax, eax
mov rcx, qword [rbp - 0x20]
add rcx, rax
movsx eax, byte [rcx]
cmp eax, 0x22
je 0x401e85
mov eax, dword [rbp - 0x28]
movsxd rax, eax
mov rcx, qword [rbp - 0x30]
add rcx, rax
mov eax, dword [rbp - 0x24]
movsxd rax, eax
mov rdx, qword [rbp - 0x20]
add rdx, rax
movsx eax, byte [rdx]
mov byte [rcx], al
mov eax, dword [rbp - 0x24]
mov rcx, rax
add eax, 1
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x28]
mov rcx, rax
add eax, 1
mov dword [rbp - 0x28], eax
jmp 0x401e33
mov eax, dword [rbp + 0x20]
mov r8, rax
mov rax, qword [rbp + 0x18]
mov r11, rax
mov rax, qword [rbp - 0x30]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401960
mov rax, qword [rbp - 0x30]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov eax, dword [rbp - 0x24]
movsxd rax, eax
mov rcx, qword [rbp - 0x20]
add rcx, rax
mov qword [rbp - 0x20], rcx
mov eax, dword [rbp - 0xc]
mov ecx, dword [rbp - 0x24]
sub eax, ecx
mov dword [rbp - 0xc], eax
mov eax, 0
mov dword [rbp - 0x24], eax
jmp 0x401dd4
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov eax, 0
leave
ret