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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14005fe20
sub rsp, rax
mov rax, qword [0x14012da40]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140131790]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400a8ded
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400a8d39
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400a8d39
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400a8d19
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400a8ca8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a8dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400a8e0c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1400a8de8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400a8e0c
jmp 0x1400a8c7e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14005fd50
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400bdd50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14005c9d0
lea rcx, [rsp + 0x20]
call fcn.1400bda10
movzx eax, al
test eax, eax
jne 0x1400bdd95
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1400bd9f0
mov rax, qword [rsp + 0x40]
jmp 0x1400bde8f
lea rcx, [rsp + 0x20]
call fcn.14005cb20
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400bda90
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400749c0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14005c9d0
lea rcx, [rsp + 0x28]
call fcn.14005ca80
movzx eax, al
test eax, eax
jne 0x1400bde2f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14005ca40
lea rcx, [rsp + 0x20]
call fcn.1400bd9f0
mov rax, qword [rsp + 0x50]
jmp 0x1400bde8f
lea rcx, [rsp + 0x20]
call fcn.14005cb20
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14005cb20
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400d0610
lea rcx, [rsp + 0x28]
call fcn.1400610e0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14005ca40
lea rcx, [rsp + 0x20]
call fcn.1400bd9f0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x140ff8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ff81df
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 0x140ff8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ff806f
add dl, dl
jne 0x140ff8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ff80f6
xor eax, eax
add dl, dl
jne 0x140ff80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ff81ad
add dl, dl
jne 0x140ff80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ff80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ff80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ff80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ff80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ff807e
mov eax, 1
add dl, dl
jne 0x140ff8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ff8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ff80fb
sub eax, ebx
mov ebx, 1
jne 0x140ff814c
mov ecx, 1
add dl, dl
jne 0x140ff812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ff813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ff8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ff807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ff8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ff8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ff815d
cmp eax, 0x7d00
jae 0x140ff819b
cmp eax, 0x500
jb 0x140ff8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ff807e
cmp eax, 0x7f
ja 0x140ff819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ff807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ff81d2
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 0x140ff807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4c5830
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c6232
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e8108]
test eax, eax
je 0x2fc4c62ca
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e8110]
mov qword [rbp - 8], rax
jmp 0x2fc4c62ae
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 0x2fc4c62a2
cmp qword [rbp - 0x10], 0
je 0x2fc4c62a2
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 0x2fc4c6268
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c62cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c63d0
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 0x2fc4c63f8
mov eax, 0
jmp 0x2fc4c6446
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 0x2fc4c6421
mov eax, 0
jmp 0x2fc4c6446
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 0x2fc4c6441
mov eax, 0
jmp 0x2fc4c6446
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c644c
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 0x2fc4c64ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c64c1
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 0x2fc4c64c1
mov rax, qword [rbp - 8]
jmp 0x2fc4c64df
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 0x2fc4c6494
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5ec0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c68c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c695a
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c693e
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 0x2fc4c6932
cmp qword [rbp - 0x10], 0
je 0x2fc4c6932
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 0x2fc4c68f8
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c695b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c6a60
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 0x2fc4c6a88
mov eax, 0
jmp 0x2fc4c6ad6
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 0x2fc4c6ab1
mov eax, 0
jmp 0x2fc4c6ad6
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 0x2fc4c6ad1
mov eax, 0
jmp 0x2fc4c6ad6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c6adc
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 0x2fc4c6b5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c6b51
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 0x2fc4c6b51
mov rax, qword [rbp - 8]
jmp 0x2fc4c6b6f
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 0x2fc4c6b24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180004644
Capabilities:
Parse pe header

Disassembly:
add byte [rax], al
mov rax, qword [rax + rdx]
mov rdx, 0x10
mov rax, qword [rax + rdx]
mov r13, rax
mov qword [r14], r12
mov rax, qword [rbp - 8]
push rax
xor rax, rax
inc rax
test rax, rax
je 0x180004718
pop rax
add rsp, 0x20
mov r15, rax
mov rcx, 0
mov rdx, 0
lea r8, [0x18000475e]
mov r9, r14
push 0
push 0
sub rsp, 0x20
lea rax, [0x18000474a]
push rax
jmp r15

Function at 0x18000570c
Capabilities:
Parse pe header

Disassembly:
mov al, 3
add al, 0x6f
mov byte [rdi + 0xa], al
mov al, 0x40
add al, 0x2f
mov byte [rdi + 0xb], al
mov al, 0x66
add al, 0xa
mov byte [rdi + 0xc], al
mov al, 0xa
add al, 0x5b
mov byte [rdi + 0xd], al
mov al, 0x27
add al, 0x4b
mov byte [rdi + 0xe], al
mov al, 0xf
add al, 0x65
mov byte [rdi + 0xf], al
mov al, 0x25
add al, 0x54
mov byte [rdi + 0x10], al
mov byte [rdi + 0x11], 0
mov rcx, r15
mov rdx, rdi
sub rsp, 0x20
mov rax, qword [rbp - 0x88]
call rax
add rsp, 0x20
mov qword [rbp - 0x98], rax
mov al, 0xf
add al, 0x33
mov byte [rdi], al
mov al, 0xe
add al, 0x35
mov byte [rdi + 1], al
mov al, 0x24
add al, 0x4e
mov byte [rdi + 2], al
mov al, 0x3a
add al, 0x3f
mov byte [rdi + 3], al
mov al, 0x45
add al, 0x2b
mov byte [rdi + 4], al
mov al, 0x1d
add al, 0x57
mov byte [rdi + 5], al
mov al, 0x2b
add al, 0x28
mov byte [rdi + 6], al
mov al, 0x26
add al, 0x3f
mov byte [rdi + 7], al
mov al, 5
add al, 0x6f
mov byte [rdi + 8], al
mov al, 0x20
add al, 0x30
mov byte [rdi + 9], al
mov al, 0x1e
add al, 0x54
mov byte [rdi + 0xa], al
mov al, 0x5a
add al, 0x15
mov byte [rdi + 0xb], al
mov al, 0x41
add al, 0x2f
mov byte [rdi + 0xc], al
mov al, 0x59
add al, 0xc
mov byte [rdi + 0xd], al
mov al, 0x44
add al, 0x2e
Function at 0x140c6f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c6f1df
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 0x140c6f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c6f06f
add dl, dl
jne 0x140c6f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c6f0f6
xor eax, eax
add dl, dl
jne 0x140c6f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c6f1ad
add dl, dl
jne 0x140c6f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c6f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c6f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c6f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c6f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c6f07e
mov eax, 1
add dl, dl
jne 0x140c6f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c6f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c6f0fb
sub eax, ebx
mov ebx, 1
jne 0x140c6f14c
mov ecx, 1
add dl, dl
jne 0x140c6f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c6f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c6f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c6f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c6f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c6f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c6f15d
cmp eax, 0x7d00
jae 0x140c6f19b
cmp eax, 0x500
jb 0x140c6f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c6f07e
cmp eax, 0x7f
ja 0x140c6f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c6f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c6f1d2
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 0x140c6f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140012d30
Capabilities:
Get file size
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor esi, esi
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140012e2a
mov rdi, rax
xor esi, esi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140012e19
mov ebp, eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor esi, esi
mov rcx, rdi
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x140012e19
mov rbx, rax
mov qword [rsp + 0x20], 0
xor esi, esi
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x140012e3d
mov r14, rax
mov r8d, ebp
xor ecx, ecx
mov rdx, rax
call fcn.1400124d0
test eax, eax
mov esi, 1
cmovne esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call r14
mov rcx, rdi
call r14
jmp 0x140012e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140012e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140012e04
Function at 0x140014b80
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.1400153b0
sub rsp, rax
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003eb00]
test eax, eax
je 0x140014bb5
test eax, eax
jg 0x140014bfd
jmp 0x140014c32
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140012e50
test al, al
je 0x140014cba
lea rcx, [rsp + 0x20]
call fcn.14001b4e0
movsxd rcx, dword [0x14003eb00]
lea rdx, [0x140043b70]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003eb00], eax
test eax, eax
jle 0x140014c32
lea rdi, [0x140043b70]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001c130
test eax, eax
je 0x140014c9b
inc rbx
movsxd rax, dword [0x14003eb00]
add rdi, 8
cmp rbx, rax
jl 0x140014c10
mov rcx, rsi
call fcn.14001c168
cmp rax, 2
jne 0x140014c49
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x140014c9d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140014c68
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x140014c9d
cmp dword [0x14003eb00], 0x3ff
jg 0x140014c9d
mov rcx, rsi
call fcn.14001b4e0
movsxd rcx, dword [0x14003eb00]
lea rdx, [0x140043b70]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003eb00], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140015410
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.1400140d0
int3

Function at 0x140014cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor esi, esi
mov edx, 0x1c
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140014daa
mov rdi, rax
xor esi, esi
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140014daa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140014da8
mov rdi, rax
mov ebx, ebx
mov ecx, 2
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
je 0x140014da8
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140014da8
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call fcn.14002a950
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov rcx, rsi
mov edx, 1
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140014d9f
mov rsi, qword [rsp + 0x20]
jmp 0x140014daa
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015410
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140015340
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
mov bl, 1
cmp byte [0x14004db78], 0
je 0x140015391
lea rcx, [0x14004db80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14001536d
cmp byte [0x14004db78], 0
sete bl
jmp 0x140015391
mov rcx, qword [0x14004db70]
test rcx, rcx
je 0x14001538a
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [0x14004db70], 0
mov byte [0x14004db78], 0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140015bb4
Capabilities:
Parse pe header

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

Function at 0x14001a3a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a4e8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001a557
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a557
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a557
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a557
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a557
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a557
cmp dword [rcx + 0xf8], 0
je 0x14001a557
mov ecx, ebx
call fcn.14001a420
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001a67c
nop
cmp dword [rbp + 0x20], 0
je 0x14001a5a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001a4b4
int3