joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003d4b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x180290300]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp edx, 1
jne 0x18003d5cb
xor ebx, ebx
mov dword [rbp - 0x40], 0x80aab690
mov edx, ebx
mov dword [rbp - 0x3c], 0xe5afa4a9
mov dword [rbp - 0x38], 0xabb5a9
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 0x40]
add rcx, rax
lea eax, [rdx - 0x3c]
inc edx
xor byte [rcx], al
cmp edx, 0xb
jb 0x18003d4f0
lea rcx, [rbp - 0x40]
mov byte [rbp - 0x35], bl
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18003d5cb
movdqa xmm0, xmmword [0x1800e2ef0]
xor eax, eax
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x16], al
mov edx, ebx
mov dword [rbp - 0x20], 0xbcb8bc98
mov dword [rbp - 0x1c], 0xbeb0bb97
mov word [rbp - 0x18], 0xa9bf
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x30]
add rcx, rax
lea eax, [rdx - 0x3c]
inc edx
xor byte [rcx], al
cmp edx, 0x1a
jb 0x18003d550
mov byte [rbp - 0x16], bl
mov dword [rbp - 0x40], 0xaba2b18a
mov dword [rbp - 0x3c], 0xa7aee7a4
mov word [rbp - 0x38], 0xa0
nop dword [rax]
movsxd rax, ebx
lea rcx, [rbp - 0x40]
add rcx, rax
lea eax, [rbx - 0x3c]
inc ebx
xor byte [rcx], al
cmp ebx, 9
jb 0x18003d580
lea rcx, [rbp - 0x40]
mov byte [rbp - 0x37], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea rcx, [0x18003bf90]
mov eax, dword [rax + 4]
inc eax
mov qword [0x180296000], rax
call fcn.18003d2f0
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18003e100
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x18004b050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18003e160
sub rsp, rax
mov rax, qword [0x180290300]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800568c8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004b09f
mov rax, rbp
jmp 0x18004b1a7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2974d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005a8e4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x2974d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004b1a3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004b1a3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005a8e4
test rax, rax
js 0x18004b1a3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004b1a3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004b195
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004b195
cmp byte [rcx], 0xd
jne 0x18004b17b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004b18a
cmp byte [rcx + 1], 0xa
jne 0x18004b18a
inc rcx
jmp 0x18004b18a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2906a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004b15d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004b1a7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003e100
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180059b1c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1802974d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180059b73
cmp word [rdx], r13w
jne 0x180059b73
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180059b78
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180059c9d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180059cbe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180059bb1
mov rdx, r9
mov word [rbx], cx
jmp 0x180059bd8
cmp r9, r8
jae 0x180059be8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180059b92
jmp 0x180059c9d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180059c92
cmp dword [rsp + 0x80], esi
je 0x180059c92
lea r8, [0x1802974d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180059c6a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180059c3a
mov word [rbx], r13w
jmp 0x180059c9a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180059c47
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180059c9a
cmp word [rsp + 0x70], r13w
jne 0x180059c77
cmp rbx, r14
je 0x180059c34
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005a8ec
cmp word [rsp + 0x70], r13w
je 0x180059c9d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1802974d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180059c97
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180059c9d
Function at 0x18005aa88
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18005aa9e
mov al, 1
jmp 0x18005aafe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18005aaaf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18005aafc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800604d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005aafc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005aafc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18005aafc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18005aafe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005d5ec
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18005d61c
xor eax, eax
jmp 0x18005d6df
mov rbp, rbx
cmp word [rax], si
je 0x18005d641
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005d628
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005d624
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18005d50c
movsxd r14, eax
test eax, eax
jne 0x18005d67f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005d615
mov rcx, r14
call fcn.180055378
mov rdi, rax
test rax, rax
jne 0x18005d698
xor ecx, ecx
call fcn.18005533c
jmp 0x18005d674
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18005d50c
test eax, eax
jne 0x18005d6c9
mov rcx, rdi
call fcn.18005533c
jmp 0x18005d6d3
xor ecx, ecx
call fcn.18005533c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800638ec
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18005a8ec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005a8ec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180063a3c
cmp rax, 0xffffffffffffffff
je 0x180063a3c
xor edi, edi
test rbp, rbp
jle 0x1800639e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180057e98
mov rbx, rax
test rax, rax
jne 0x180063974
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800639dd
mov edx, 0x8000
mov ecx, r14d
call fcn.180063770
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180059814
cmp eax, 0xffffffff
je 0x1800639bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180063984
mov edx, r15d
mov ecx, r14d
call fcn.180063770
jmp 0x1800639dd
cmp byte [rsi + 0x38], dil
je 0x1800639d4
cmp dword [rsi + 0x34], 5
jne 0x1800639d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800639dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18005533c
jmp 0x180063a50
jns 0x180063a50
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005a8ec
cmp rax, 0xffffffffffffffff
jne 0x180063a08
cmp byte [rsi + 0x30], dil
je 0x180063a50
mov edi, dword [rsi + 0x2c]
jmp 0x180063a50
mov ecx, r14d
call fcn.1800604d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180063a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180063a50
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180063a49
mov eax, dword [rsi + 0x2c]
jmp 0x180063a4e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005a8ec
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800644d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800644f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800644f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400013a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140079688]
xor rax, rsp
mov qword [rsp + 0x250], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, [0x14006f4a8]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor esi, esi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rsi
xor edx, edx
mov qword [rsp + 0x30], rsi
mov ecx, 0xfde9
mov dword [rsp + 0x28], esi
lea r9d, [rsi - 1]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.14005dea4
mov qword [rsp + 0x38], rsi
lea r9d, [rsi - 1]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0x40]
call fcn.1400014d0
test al, al
je 0x140001474
mov rcx, rdi
call fcn.140001950
mov edx, 0xad65
lea rcx, str.31.13.33.68
call qword [sym.imp.WLDAP32.dll_Ordinal_145]
mov r9d, 0x486
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.WLDAP32.dll_Ordinal_73]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005de40
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400017b0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140079688]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x28]
mov rdi, rcx
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x30]
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov rbx, 0xffffffffffffffff
mov qword [rdi + 0x18], r14
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140001810
movabs rbp, 0x7ffffffffffffffe
cmp rbx, rbp
ja 0x14000193f
mov qword [rsp + 0x88], rsi
mov qword [rdi + 0x18], 7
cmp rbx, 8
jae 0x140001864
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x30]
add rbx, rbx
mov rcx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r14w
jmp 0x140001916
mov rax, rbx
or rax, 7
cmp rax, rbp
jbe 0x140001880
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1400018b2
mov ecx, 0xa
mov rbp, rax
cmp rax, rcx
movabs rax, 0x7fffffffffffffff
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, rax
ja 0x140001945
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400018e1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001945
mov rcx, rax
call fcn.14005de68
test rax, rax
je 0x1400018da
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400018f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400018f0
call fcn.14005de68
mov rsi, rax
jmp 0x1400018f3
mov rsi, r14
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x30]
add rbx, rbx
mov qword [rdi], rsi
mov r8, rbx
mov qword [rdi + 0x18], rbp
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], r14w
mov rsi, qword [rsp + 0x88]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005de40
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rbp
ret
call fcn.1400011b0
int3
call fcn.140001110
int3
Function at 0x140002e20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140079688]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002e4d
xor eax, eax
jmp 0x140002fb9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002e87
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002e87
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 0x140002fb9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002fac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002eca
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 0x140002ef5
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 0x140002fb1
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 0x140002f64
sub eax, 1
je 0x140002f64
cmp eax, 2
jne 0x140002fac
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 0x140002fb1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002f92
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 0x140002fac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002fb1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005de40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400039e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140079688]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003ab3
cmp byte [rcx + 0x71], 0
je 0x140003ab3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140003aaf
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 0x140003a74
sub eax, 1
je 0x140003a78
cmp eax, 2
jne 0x140003aaf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005de40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003aa6
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 0x140003aaf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003a5c
xor al, al
jmp 0x140003a5c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005de40
add rsp, 0x60
pop rbx
ret
Function at 0x14000b3d0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret

Function at 0x14000b6e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, Ordinal_46
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14000b7bb
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.140016ba0
cmp eax, 4
je 0x14000b738
mov edx, eax
jmp 0x14000b765
cmp byte [0x140079b84], r14b
jne 0x14000b76f
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x14000b7bd
mov eax, dword [rsp + 0x50]
jmp 0x14000b78e
imul eax, dword [0x140079b80], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x140079b80], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x14000b7b2
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x14000b7a0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x14000b710
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000b7d0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x140079688]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
lea r15, [rsp + 0x30]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x14000b97c
test r14b, 1
je 0x14000b97c
mov qword [r11 - 0x28], rbp
dec r14
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 + 0x18], rbx
mov ecx, Ordinal_46
mov qword [r11 - 0x38], r13
je 0x14000b8fb
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.140016ba0
cmp eax, 4
je 0x14000b878
mov ecx, eax
jmp 0x14000b8a5
cmp byte [0x140079b84], r13b
jne 0x14000b8b3
mov r9d, 2
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
mov eax, ecx
test eax, eax
jne 0x14000b93d
mov eax, dword [rsp + 0x20]
jmp 0x14000b8d2
imul eax, dword [0x140079b80], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x140079b80], eax
ror eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x14000b8f2
sub rbp, rbx
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14000b8e0
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x14000b850
mov eax, ecx
test ecx, ecx
jne 0x14000b93d
test r14, r14
je 0x14000b938
lea rdx, [0x140063150]
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x14000b910
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14005de40
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, Ordinal_46
jmp 0x14000b95d
Function at 0x14001ca60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14001cb29
cmp qword [rcx + 0x268], 0
je 0x14001cade
mov qword [rsp + 0x40], rbx
call fcn.14000d490
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14000d7f0
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.14000d7f0
mov rbx, qword [rsp + 0x40]
jmp 0x14001cb29
mov ecx, esi
test edx, edx
je 0x14001caee
sub ecx, 1
je 0x14001caee
cmp ecx, 1
jne 0x14001cb29
mov r9, qword [rdi + 0x1d8]
lea rax, [0x1400645d0]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret