joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002d70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x14003e184], 0
lea rdi, [0x14003e180]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140002e48
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140002da0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x140002e7e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140002e60
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x140002ebf
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140002ea3
cmp byte [r8], r9b
jne 0x140002ea3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140002e90
not eax
pop rdi
ret
Function at 0x140003020
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x140003039
mov qword [r8], 0
lea rdx, [0x1400327d8]
call fcn.140002ed0
mov rbx, rax
test rax, rax
jne 0x140003058
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003118
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003118
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003118
mov rax, qword [0x14003df50]
mov rbp, rsi
test rax, rax
je 0x1400030b5
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003118
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140003105
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14003df50]
test rax, rax
je 0x1400030fa
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003121
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140003113
mov qword [rdi], rbp
mov rax, rsi
jmp 0x140003123
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011a10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x14003df50]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x140011b2a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x140011a6a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140012a20
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x140011a7e
mov edx, 8
mov rcx, rbx
call fcn.140012a20
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x140011aca
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140011aa0
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x140011ad9
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x1400327dc]
test rax, rax
movsxd rsi, esi
lea rdi, [0x14003df48]
mov rcx, r15
cmovne rdi, rax
call fcn.140002ed0
mov rbx, rax
test rax, rax
je 0x140011b25
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14001e2a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001e457
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001e336
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001dc70
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001d280
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x14001e327
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.1400126c0
mov dword [rbx + 0x80], 0
jmp 0x14001e443
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.14001c0b0
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14002eb70
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1e], 0
je 0x14002eb93
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x4e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1d
jb 0x14002eb80
mov byte [rcx + 0x1e], 0
mov rax, rcx
ret

Function at 0x14002eca0
Capabilities:
Create thread
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
xor ebx, ebx
lea r8, [0x14002eba0]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xorps xmm0, xmm0
mov qword [rsp + 0x60], 0x50
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm0
lea rax, [0x14002f110]
movdqa xmmword [rsp + 0x80], xmm1
lea rdi, str.Gideion
movdqa xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xa0], rdi
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rcx, qword [0x14003e020]
test rcx, rcx
je 0x14002ee1c
lea rdx, [0x14003e030]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x14003e020]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [0x14003e038]
lea r8, str.Gideion1
mov eax, dword [rsp + 0xc0]
mov r9d, 0x90000000
mov qword [rsp + 0x58], rbx
mov rdx, rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [0x14003e030], eax
mov eax, dword [rsp + 0xc4]
mov dword [0x14003e034], eax
mov eax, dword [0x14003e03c]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [0x14003e048], ecx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [0x14003e008], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
mov qword [0x14003e168], rax
lea rdx, [0x140036460]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x14003e168]
lea edx, [rbx - 0x14]
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x14003e168]
lea edx, [rbx + 5]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14003e168]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14002f250
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x24], 0
je 0x14002f273
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x4e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x23
jb 0x14002f260
mov byte [rcx + 0x24], 0
ret

Function at 0x14002f280
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax - 0x29]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 0xa
jb 0x14002f290
mov byte [rcx + 0xa], 0
mov rax, rcx
ret

Function at 0x14002f2d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x34], 0
je 0x14002f2f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x4e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x33
jb 0x14002f2e0
mov byte [rcx + 0x34], 0
ret

Function at 0x14002f300
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1e], 0
je 0x14002f325
xor eax, eax
mov r8d, 0x244e
nop
lea edx, [r8 + rax]
xor word [rcx + rax*2], dx
inc rax
cmp rax, 0xe
jb 0x14002f310
mov byte [rcx + 0x1e], 0
ret

Function at 0x140030c74
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140026ab0]
mov dword [rax], 1
mov rax, qword [0x140026ac0]
mov dword [rax], 1
mov rax, qword [0x140026ad0]
mov dword [rax], 1
mov rax, qword [0x140026a40]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004a40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
movabs r9, 0xc2b2ae3d27d4eb4f
movabs r11, 0x9e3779b185ebca87
movabs r10, 0x85ebca77c2b2ae63
movabs r8, 0x27d4eb2f165667c5
lea rdx, [rcx + 0x28]
mov eax, dword [rcx + 0x48]
add rax, rcx
add rax, 0x28
mov r14, qword [rcx]
cmp r14, 0x20
jb 0x140004b28
mov rbx, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
mov r15, qword [rcx + 0x18]
mov r12, rbx
rol r12, 1
mov r13, rdi
rol r13, 7
mov rsi, qword [rcx + 0x20]
add r13, r12
mov r12, r15
rol r12, 0xc
add r12, r13
mov r13, rsi
rol r13, 0x12
add r13, r12
imul rbx, r9
rol rbx, 0x1f
imul rbx, r11
xor rbx, r13
imul rbx, r11
add rbx, r10
imul rdi, r9
rol rdi, 0x1f
imul rdi, r11
xor rdi, rbx
imul rdi, r11
imul r15, r9
rol r15, 0x1f
add rdi, r10
imul r15, r11
xor r15, rdi
imul r15, r11
add r15, r10
imul rsi, r9
rol rsi, 0x1f
imul rsi, r11
xor rsi, r15
imul rsi, r11
add rsi, r10
add rsi, r14
add rcx, 0x30
cmp rax, rcx
jae 0x140004b50
jmp 0x140004b3b
mov rsi, qword [rcx + 0x18]
add rsi, r8
add rsi, r14
add rcx, 0x30
cmp rax, rcx
jae 0x140004b50
mov rdi, rsi
mov rcx, rdx
jmp 0x140004b80
mov rdi, qword [rdx]
imul rdi, r9
rol rdi, 0x1f
imul rdi, r11
xor rdi, rsi
rol rdi, 0x1b
imul rdi, r11
add rdi, r10
lea rcx, [rdx + 8]
add rdx, 0x10
mov rsi, rdi
cmp rdx, rax
mov rdx, rcx
jbe 0x140004b50
movabs rdx, 0x165667b19e3779f9
lea rbx, [rcx + 4]
cmp rbx, rax
jbe 0x140004b9d
mov rbx, rcx
cmp rbx, rax
jb 0x140004bc0
jmp 0x140004be0
mov ecx, dword [rcx]
imul rcx, r11
xor rcx, rdi
rol rcx, 0x17
imul rcx, r9
add rcx, rdx
mov rdi, rcx
cmp rbx, rax
jae 0x140004be0
nop dword [rax]
movzx ecx, byte [rbx]
imul rcx, r8
xor rcx, rdi
rol rcx, 0xb
imul rcx, r11
add rbx, 1
mov rdi, rcx
cmp rbx, rax
jb 0x140004bc0
jmp 0x140004be3
mov rcx, rdi
mov rax, rcx
shr rax, 0x21
xor rax, rcx
imul rax, r9
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
imul rcx, rdx
mov rax, rcx
shr rax, 0x20
xor rax, rcx
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140014f80
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002f0a8]
test rcx, rcx
je 0x140014fca
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140014fbd
mov rcx, qword [0x14002f0a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002f0a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400318c0], 1
jne 0x14001508f
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x28], 3
lea rsi, [0x14002f0c0]
mov qword [rsp + 0x30], rsi
lea rbx, [0x140026222]
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x40], 0x414
mov qword [rsp + 0x50], rbx
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
mov r15, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax]
mov rcx, rsi
call r15
cmp eax, 0xffffffff
je 0x14001508f
and eax, 0x10
je 0x14001508f
mov ecx, 0x64
call r12
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x40], 0x414
mov qword [rsp + 0x50], rbx
mov rcx, r14
call rdi
add ebp, 0xffffffff
jne 0x140015040
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14001bf40
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2020
call fcn.14001d6f0
sub rsp, rax
mov rsi, rcx
mov eax, dword [0x14002f0b0]
test eax, eax
je 0x14001bf66
test eax, eax
jg 0x14001bfae
jmp 0x14001bfe3
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140014170
test al, al
je 0x14001c05b
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x14002f0b0]
lea rdx, [0x14003c120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14002f0b0], eax
test eax, eax
jle 0x14001bfe3
lea rdi, [0x14003c120]
xor ebx, ebx
nop word [rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001c04e
add rbx, 1
movsxd rax, dword [0x14002f0b0]
add rdi, 8
cmp rbx, rax
jl 0x14001bfc0
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001bffa
mov al, 1
cmp word [rsi + 2], 0x3a
je 0x14001c050
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x14001c01b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test al, al
je 0x14001c050
cmp dword [0x14002f0b0], 0x3ff
jg 0x14001c050
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x14002f0b0]
lea rdx, [0x14003c120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14002f0b0], eax
mov al, 1
add rsp, 0x2020
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.140015c10
int3

Function at 0x14001c3f0
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 fcn.1400232f0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400232f0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14001d0a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14003e1e8]
test eax, eax
je 0x14001d13a
lea rax, [0x14003e1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14003e1f0]
mov qword [rbp - 8], rax
jmp 0x14001d11e
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 0x14001d112
cmp qword [rbp - 0x10], 0
je 0x14001d112
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 0x14001d0d8
lea rax, [0x14003e1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001d13b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001d240
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 0x14001d268
mov eax, 0
jmp 0x14001d2b6
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 0x14001d291
mov eax, 0
jmp 0x14001d2b6
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 0x14001d2b1
mov eax, 0
jmp 0x14001d2b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001d2bc
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 0x14001d33a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001d331
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 0x14001d331
mov rax, qword [rbp - 8]
jmp 0x14001d34f
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 0x14001d304
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x141686058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1416861df
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 0x141686089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14168606f
add dl, dl
jne 0x141686096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416860f6
xor eax, eax
add dl, dl
jne 0x1416860a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416861ad
add dl, dl
jne 0x1416860b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416860c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416860d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416860dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416860ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14168607e
mov eax, 1
add dl, dl
jne 0x141686106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141686113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416860fb
sub eax, ebx
mov ebx, 1
jne 0x14168614c
mov ecx, 1
add dl, dl
jne 0x14168612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14168613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141686123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14168607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141686168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141686175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14168615d
cmp eax, 0x7d00
jae 0x14168619b
cmp eax, 0x500
jb 0x141686196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14168607e
cmp eax, 0x7f
ja 0x14168619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14168607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416861d2
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 0x14168607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20