joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006bab4
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.14005fb18
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005fb18
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14006bc04
cmp rax, 0xffffffffffffffff
je 0x14006bc04
xor edi, edi
test rbp, rbp
jle 0x14006bbaf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005a754
mov rbx, rax
test rax, rax
jne 0x14006bb3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006bba5
mov edx, 0x8000
mov ecx, r14d
call fcn.140057fac
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.14005be88
cmp eax, 0xffffffff
je 0x14006bb85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006bb4c
mov edx, r15d
mov ecx, r14d
call fcn.140057fac
jmp 0x14006bba5
cmp byte [rsi + 0x38], dil
je 0x14006bb9c
cmp dword [rsi + 0x34], 5
jne 0x14006bb9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006bba5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005a7cc
jmp 0x14006bc18
jns 0x14006bc18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005fb18
cmp rax, 0xffffffffffffffff
jne 0x14006bbd0
cmp byte [rsi + 0x30], dil
je 0x14006bc18
mov edi, dword [rsi + 0x2c]
jmp 0x14006bc18
mov ecx, r14d
call fcn.140063e74
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006bc18
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 0x14006bc18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14006bc11
mov eax, dword [rsi + 0x2c]
jmp 0x14006bc16
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005fb18
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 0x14006c3a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006c3c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006c3c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140006c90]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140006ca0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140003690
jmp 0x14000123c
mov rax, qword [0x140006ca0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140006ca0]
mov dword [rax], 1
mov rax, qword [0x140006ce0]
mov rdx, rax
mov rax, qword [0x140006cd0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14000b024], 1
mov rax, qword [0x140006ca0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140006cc0]
mov rdx, rax
mov rax, qword [0x140006cb0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x140006ca0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140006c90]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140006be0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140006be0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140002918
mov rax, qword [0x140006d20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140006c80]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140002110
mov eax, dword [0x14000b004]
lea rdx, [0x14000b008]
mov ecx, eax
call fcn.14000147c
call fcn.140001ea7
mov rax, qword [0x140006c10]
mov rax, qword [rax]
mov rdx, qword [0x14000b010]
mov qword [rax], rdx
mov rcx, qword [0x14000b010]
mov rdx, qword [0x14000b008]
mov eax, dword [0x14000b004]
mov r8, rcx
mov ecx, eax
call fcn.1400039a0
mov dword [0x14000b01c], eax
mov eax, dword [0x14000b020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000b01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14000b024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000b01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140006c40]
mov dword [rax], 1
mov rax, qword [0x140006c50]
mov dword [rax], 1
mov rax, qword [0x140006c60]
mov dword [rax], 1
mov rax, qword [0x140006c00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001c8e
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r8w, word [rdx + rax]
xor word [rcx + rax], r8w
add rax, 2
cmp rax, 0x10
jne 0x140001c90
ret

Function at 0x140001ca5
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
mov rdi, rdx
mov rsi, r8
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
xor r9d, r9d
mov rcx, rax
mov rax, r9
xor edx, edx
div rcx
mov al, byte [rdi + rdx]
xor byte [rbx + r9], al
inc r9
cmp rsi, r9
jne 0x140001cc3
mov byte [rbx + rsi], 0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002120
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140003480
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x140002df2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000b168]
test eax, eax
je 0x140002e8a
lea rax, [0x14000b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000b170]
mov qword [rbp - 8], rax
jmp 0x140002e6e
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 0x140002e62
cmp qword [rbp - 0x10], 0
je 0x140002e62
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 0x140002e28
lea rax, [0x14000b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002e8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002f90
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 0x140002fb8
mov eax, 0
jmp 0x140003006
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 0x140002fe1
mov eax, 0
jmp 0x140003006
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 0x140003001
mov eax, 0
jmp 0x140003006
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000300c
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 0x14000308a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003081
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 0x140003081
mov rax, qword [rbp - 8]
jmp 0x14000309f
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 0x140003054
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002560
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor eax, eax
mov r10, rcx
mov r9d, eax
test r8d, r8d
jle 0x180002639
cmp r8d, 8
jb 0x180002639
mov qword [rsp + 0x10], rbx
lea r11, [rdx + 4]
mov qword [rsp], rdi
sub rcx, rdx
movsxd rbx, r8d
mov rdi, 0xfffffffffffffffc
and rbx, 0xfffffffffffffff8
xorps xmm4, xmm4
sub rdi, rdx
xorps xmm3, xmm3
nop word [rax + rax]
movd xmm2, dword [rcx + r11 - 4]
xorps xmm0, xmm0
movd xmm1, dword [r11 - 4]
lea r11, [r11 + 8]
punpcklbw xmm2, xmm0
lea rax, [rdi + r11]
punpcklwd xmm2, xmm0
add r9d, 8
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [r11 - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + r11 - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp rax, rbx
jl 0x1800025b0
mov rdi, qword [rsp]
por xmm3, xmm4
mov rbx, qword [rsp + 0x10]
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
movsxd r11, r9d
movsxd r9, r8d
cmp r11, r9
jge 0x180002668
sub r10, rdx
lea rcx, [r11 + rdx]
sub r9, r11
nop
movzx r8d, byte [rcx + r10]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
xor r8d, edx
or eax, r8d
sub r9, 1
jne 0x180002650
add rsp, 8
ret
Function at 0x180010c80
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x180055010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, r8
mov dword [r11 - 0x2c], 0x67452301
mov r8d, edx
mov dword [r11 - 0x28], 0xefcdab89
xor edi, edi
mov dword [r11 - 0x24], 0x98badcfe
mov rdx, rcx
mov dword [r11 - 0x20], 0x10325476
mov qword [r11 - 0x78], rdi
lea rcx, [r11 - 0x78]
mov dword [rsp + 0x48], edi
call fcn.1800293e0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.180029490
movzx ecx, byte [rsp + 0x21]
movzx eax, byte [rsp + 0x20]
shl eax, 8
or eax, ecx
mov dword [rbx], edi
movzx ecx, byte [rsp + 0x22]
shl eax, 8
or eax, ecx
movzx ecx, byte [rsp + 0x23]
shl eax, 8
or eax, ecx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.18002d8d0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xb0
pop rdi
ret
Function at 0x180010d40
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
push rbp
push r12
sub rsp, 0xe8
mov rax, qword [0x180055010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx eax, word [rcx + 0x2f8]
xor r12d, r12d
mov rbp, rdx
mov rdx, rcx
test al, 8
jne 0x180010f65
bt ax, 0xc
jae 0x180010f65
mov rcx, qword [rcx + 0x10]
lea rax, [rdx + 0x180]
mov qword [r11 + 0x18], rbx
lea r8d, [r12 + 0x20]
mov qword [r11 - 0x18], rsi
test rcx, rcx
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x30], r14
lea r14, [rcx + 0x198]
mov dword [r11 - 0x5c], 0x67452301
lea rcx, [rsp + 0x50]
mov dword [r11 - 0x58], 0xefcdab89
cmove r14, rax
mov dword [r11 - 0x54], 0x98badcfe
mov rdx, r14
mov dword [r11 - 0x50], 0x10325476
mov qword [r11 - 0x38], r15
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
call fcn.1800293e0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180029490
movzx eax, byte [rsp + 0x21]
lea rcx, [0x180057eb8]
movzx ebx, byte [rsp + 0x20]
shl ebx, 8
or ebx, eax
movzx eax, byte [rsp + 0x22]
shl ebx, 8
or ebx, eax
movzx eax, byte [rsp + 0x23]
shl ebx, 8
or ebx, eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 0xba2e8ba3
lea rcx, [0x180056ff0]
mul ebx
mov esi, 3
shr edx, 3
imul eax, edx, 0xb
sub ebx, eax
mov eax, ebx
imul r15, rax, 0x158
mov eax, 2
cmp dword [r15 + rcx + 4], esi
mov edi, dword [r15 + rcx]
cmovb esi, dword [r15 + rcx + 4]
sub edi, 1
cmovs edi, eax
test esi, esi
jle 0x180010f2b
mov qword [rsp + 0xd0], r13
lea r13, [0x180056ff8]
nop
cmp edi, 2
ja 0x180010f23
movsxd rax, edi
mov r8d, 0x20
imul rbx, rax, 0x70
mov rdx, r14
add rbx, r15
add rbx, r13
lea rcx, [rbx + 8]
call fcn.18003df60
test eax, eax
je 0x180010ec1
dec esi
test edi, edi
je 0x180010eb6
dec edi
jmp 0x180010ebb
mov edi, 2
test esi, esi
jg 0x180010e80
jmp 0x180010f23
cmp dword [0x180056fb8], r12d
jne 0x180010ee1
lea rcx, [0x180056fc0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x180056fb8], 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rbx + 4]
cqo
idiv qword [0x180056fc0]
add ecx, dword [rbx]
cmp eax, ecx
jae 0x180010f23
mov r12, rbx
test rbp, rbp
je 0x180010f23
movups xmm0, xmmword [rbx + 0x29]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rbx + 0x39]
movups xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x49]
movups xmmword [rbp + 0x20], xmm0
mov r13, qword [rsp + 0xd0]
lea rcx, [0x180057eb8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r15, qword [rsp + 0xc0]
mov rax, r12
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x110]
jmp 0x180010f67
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18002d8d0
add rsp, 0xe8
pop r12
pop rbp
ret
Function at 0x180011990
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x180055010]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r13d, dword [rbp + 0x428]
lea r14d, [r9 + 1]
mov rsi, rcx
shr r14d, 1
mov rcx, qword [rbp + 0x420]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbp + 0x430]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0x48], r8
mov edi, edx
cmp r14d, 0x100
ja 0x180011c1b
mov r12d, dword [rbp + 0x438]
lea r15d, [r12 + r13]
cmp r15d, 0x80
ja 0x180011c1b
cmp edi, 0xe0
ja 0x180011c1b
mov r8d, edi
mov qword [rsp + 0x4b8], rbx
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.18002fae0
mov r8d, edi
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.18002fae0
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp + 0x1a0]
mov r8d, r14d
call fcn.18002fd00
mov eax, dword [rsp + 0x40]
lea rcx, [rbp + 0x2a0]
and eax, 1
mov edx, r14d
sub rdx, rax
mov r8d, r14d
add rdx, qword [rsp + 0x48]
call fcn.18002fd00
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x120]
mov r8d, r13d
call fcn.18002fd00
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x120]
add rcx, r13
mov r8d, r12d
call fcn.18002fd00
lea rax, [rbp + 0x120]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r15d
lea r8, [rbp + 0x1a0]
mov r9d, r14d
mov qword [rsp + 0x20], rax
mov edx, edi
lea rcx, [rbp + 0x40]
call fcn.180011740
mov rbx, qword [rsp + 0x4b8]
mov r10d, eax
test eax, eax
jne 0x180011c16
mov dword [rsp + 0x30], 2
lea rax, [rbp + 0x120]
mov dword [rsp + 0x28], r15d
lea r8, [rbp + 0x2a0]
mov r9d, r14d
mov qword [rsp + 0x20], rax
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.180011740
mov r10d, eax
test eax, eax
jne 0x180011c16
xor edx, edx
test edi, edi
je 0x180011c16
cmp edi, 0x40
jb 0x180011bef
lea eax, [rdi - 1]
mov ecx, eax
lea r8, [rax + rsi]
lea rax, [rbp + 0x40]
add rax, rcx
cmp rsi, rax
ja 0x180011b57
lea rax, [rbp + 0x40]
cmp r8, rax
jae 0x180011bef
lea rax, [rsp + 0x60]
add rax, rcx
cmp rsi, rax
ja 0x180011b72
lea rax, [rsp + 0x60]
cmp r8, rax
jae 0x180011bef
mov r9d, edi
and r9d, 0xffffffc0
mov r8d, 0x20
nop
movdqu xmm0, xmmword [rbp + rdx + 0x40]
lea eax, [r8 - 0x10]
movdqu xmm1, xmmword [rsp + rdx + 0x60]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax + 0x40]
movdqu xmmword [rdx + rsi], xmm1
add edx, 0x40
movdqu xmm1, xmmword [rsp + rax + 0x60]
pxor xmm1, xmm0
movdqu xmmword [rax + rsi], xmm1
mov eax, r8d
movdqu xmm0, xmmword [rbp + rax + 0x40]
movdqu xmm1, xmmword [rsp + rax + 0x60]
pxor xmm1, xmm0
movdqu xmmword [rax + rsi], xmm1
lea eax, [r8 + 0x10]
add r8d, 0x40
movdqu xmm1, xmmword [rsp + rax + 0x60]
movdqu xmm0, xmmword [rbp + rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax + rsi], xmm1
cmp edx, r9d
jb 0x180011b80
cmp edx, edi
jae 0x180011c16
sub edi, edx
mov eax, edx
mov edx, edi
nop word [rax + rax]
movzx ecx, byte [rsp + rax + 0x60]
xor cl, byte [rbp + rax + 0x40]
mov byte [rax + rsi], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x180011c00
mov eax, r10d
jmp 0x180011c20
mov eax, 0xffffff7c
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.18002d8d0
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800120e0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180055010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r9
mov dword [rsp + 0x40], r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov rdi, rcx
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov r9d, 1
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180012156
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 8
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180012156
xor eax, eax
jmp 0x18001221a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov r8d, dword [rdi + 0x28]
lea rdx, [rdi + 8]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r8, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
mov r9d, 0x800000
mov edx, 0x6801
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
cmp dword [rdi + 0x2c], r8d
jne 0x1800121e4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
jmp 0x1800121f9
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [rsp + 0x40]
mov rax, rbx
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18002d8d0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x180012dc0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x70
mov rax, qword [0x180055010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
xor edx, edx
mov rdi, rcx
call qword [rax + 0x30]
mov edx, eax
mov ecx, 0x40
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
jne 0x180012e0b
mov ecx, 0x8007000e
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180012f98
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov qword [rsp + 0xa0], r12
mov edx, 0x40000000
xor r12d, r12d
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 2
lea r8d, [r12 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180012e6a
xor eax, eax
mov rdi, rbp
mov rcx, rbx
rep stosb byte [rdi], al
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x180012f8b
mov rax, qword [rdi]
mov rdx, rbp
mov qword [rsp + 0x98], rsi
mov rcx, rdi
mov qword [rsp + 0x60], r15
call qword [rax + 0x30]
mov edx, reloc.WS2_32.dll_recv
mov r15d, eax
lea ecx, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov rdi, r12
nop word [rax + rax]
call fcn.180033cd4
mov ebx, eax
call fcn.180033cd4
imul ebx, eax
mov dword [rsi + rdi*4], ebx
inc rdi
cmp rdi, 4
jl 0x180012ea0
mov ecx, 0x30
call fcn.18002d8f4
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rax, vtable.C64AddressPoint.0
mov r9d, reloc.WS2_32.dll_recv
mov r8, rsi
mov rcx, rbx
mov qword [rbx], rax
mov dword [rsp + 0x48], r12d
lea edx, [r9 - 0xf]
mov rdi, qword [rbx]
call qword [rdi + reloc.WS2_32.dll_recv]
mov rdi, qword [rbx]
lea r9, [rsp + 0x48]
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call qword [rdi + htons]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], r12
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], r12
mov r8d, r15d
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
mov rdi, rsi
rep stosb byte [rdi], al
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, r15
mov rdi, rbp
rep stosb byte [rdi], al
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r15, qword [rsp + 0x60]
mov eax, 1
mov rsi, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18002d8d0
add rsp, 0x70
pop rdi
pop rbp
pop rbx
ret