joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b3c00
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b3c16
mov al, 1
jmp 0x1400b3c76
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b3c27
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b3c74
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b4614
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b3c74
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b3c74
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b3c74
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b3c76
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b4724
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.1400ac2e0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400ac2e0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b4874
cmp rax, 0xffffffffffffffff
je 0x1400b4874
xor edi, edi
test rbp, rbp
jle 0x1400b481f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b06e0
mov rbx, rax
test rax, rax
jne 0x1400b47ac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b4815
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ad9a0
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.1400af120
cmp eax, 0xffffffff
je 0x1400b47f5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b47bc
mov edx, r15d
mov ecx, r14d
call fcn.1400ad9a0
jmp 0x1400b4815
cmp byte [rsi + 0x38], dil
je 0x1400b480c
cmp dword [rsi + 0x34], 5
jne 0x1400b480c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400b4815
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b0758
jmp 0x1400b4888
jns 0x1400b4888
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400ac2e0
cmp rax, 0xffffffffffffffff
jne 0x1400b4840
cmp byte [rsi + 0x30], dil
je 0x1400b4888
mov edi, dword [rsi + 0x2c]
jmp 0x1400b4888
mov ecx, r14d
call fcn.1400b4614
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b4888
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400b4888
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b4881
mov eax, dword [rsi + 0x2c]
jmp 0x1400b4886
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400ac2e0
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 0x1400b8104
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 0x1400b8134
xor eax, eax
jmp 0x1400b81f7
mov rbp, rbx
cmp word [rax], si
je 0x1400b8159
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b8140
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b813c
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.1400b50c0
movsxd r14, eax
test eax, eax
jne 0x1400b8197
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b812d
mov rcx, r14
call fcn.1400b133c
mov rdi, rax
test rax, rax
jne 0x1400b81b0
xor ecx, ecx
call fcn.1400b0758
jmp 0x1400b818c
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.1400b50c0
test eax, eax
jne 0x1400b81e1
mov rcx, rdi
call fcn.1400b0758
jmp 0x1400b81eb
xor ecx, ecx
call fcn.1400b0758
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 0x1400b8214
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400b829b
mov rsi, rbx
cmp word [rax], bp
je 0x1400b825a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b8244
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b8240
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b133c
mov rdi, rax
test rax, rax
je 0x1400b8288
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bf960
mov rbp, rdi
xor ecx, ecx
call fcn.1400b0758
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b999c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b99bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a148c
or eax, 0xffffffff
jmp 0x1400b99be
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400bc308
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400e8700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400bc352
call fcn.1400a14f8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400a1518
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14009e680
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140095f30
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400bc35d
lea eax, [rbx + 1]
jmp 0x1400bc33f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400bc33d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400bc33f
Function at 0x1400bd7a4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a1538
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400bd82e
cmp byte [rbp - 0x21], r15b
je 0x1400bd829
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bd864
call fcn.1400b0a00
test eax, eax
jne 0x1400bd850
cmp byte [rbp - 0x21], r15b
je 0x1400bd848
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bd864
cmp byte [rbp - 0x21], r15b
je 0x1400bd861
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400a9d88
test eax, eax
jne 0x1400bd904
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a1538
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400bd8a3
cmp byte [rbp - 0x21], r15b
je 0x1400bd8d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bd8d8
call fcn.1400b0a00
test eax, eax
jne 0x1400bd8c4
cmp byte [rbp - 0x21], r15b
je 0x1400bd8bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bd8d8
cmp byte [rbp - 0x21], r15b
je 0x1400bd8d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400a9d88
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bd904
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bd907
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400bd915
mov rcx, rdi
call fcn.1400b0758
cmp byte [rbp + 0x3f], r15b
je 0x1400bd924
mov rcx, qword [rbp + 0x27]
call fcn.1400b0758
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1c0683058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1c06831df
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 0x1c0683089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1c068306f
add dl, dl
jne 0x1c0683096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1c06830f6
xor eax, eax
add dl, dl
jne 0x1c06830a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1c06831ad
add dl, dl
jne 0x1c06830b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c06830c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c06830d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c06830dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1c06830ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1c068307e
mov eax, 1
add dl, dl
jne 0x1c0683106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c0683113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1c06830fb
sub eax, ebx
mov ebx, 1
jne 0x1c068314c
mov ecx, 1
add dl, dl
jne 0x1c068312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1c068313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1c0683123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1c068307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1c0683168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1c0683175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1c068315d
cmp eax, 0x7d00
jae 0x1c068319b
cmp eax, 0x500
jb 0x1c0683196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1c068307e
cmp eax, 0x7f
ja 0x1c068319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1c068307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1c06831d2
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 0x1c068307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140689058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406891df
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 0x140689089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068906f
add dl, dl
jne 0x140689096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406890f6
xor eax, eax
add dl, dl
jne 0x1406890a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406891ad
add dl, dl
jne 0x1406890b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406890c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406890d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406890dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406890ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14068907e
mov eax, 1
add dl, dl
jne 0x140689106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140689113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406890fb
sub eax, ebx
mov ebx, 1
jne 0x14068914c
mov ecx, 1
add dl, dl
jne 0x14068912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140689123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140689168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140689175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068915d
cmp eax, 0x7d00
jae 0x14068919b
cmp eax, 0x500
jb 0x140689196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068907e
cmp eax, 0x7f
ja 0x14068919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406891d2
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 0x14068907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d6d00
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 0x2fc4d7702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d779a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d777e
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 0x2fc4d7772
cmp qword [rbp - 0x10], 0
je 0x2fc4d7772
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 0x2fc4d7738
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d779b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d78a0
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 0x2fc4d78c8
mov eax, 0
jmp 0x2fc4d7916
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 0x2fc4d78f1
mov eax, 0
jmp 0x2fc4d7916
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 0x2fc4d7911
mov eax, 0
jmp 0x2fc4d7916
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d87e0
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 0x2fc4d91e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d927a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d925e
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 0x2fc4d9252
cmp qword [rbp - 0x10], 0
je 0x2fc4d9252
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 0x2fc4d9218
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d927b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9380
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 0x2fc4d93a8
mov eax, 0
jmp 0x2fc4d93f6
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 0x2fc4d93d1
mov eax, 0
jmp 0x2fc4d93f6
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 0x2fc4d93f1
mov eax, 0
jmp 0x2fc4d93f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x180013c48
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18001fd00]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800040b8
xor ebx, ebx
cmp qword [0x199a211e0], rbx
mov rdi, rax
jne 0x180013d5b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180013e32
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180013e32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x199a211e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x199a211e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x199a211f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x199a21200], rax
test rax, rax
je 0x180013d52
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x199a211f8], rax
jmp 0x180013d62
mov rax, qword [0x199a211f8]
jmp 0x180013d69
mov rax, qword [0x199a211f8]
mov r11, qword [0x199a21200]
cmp rax, rdi
je 0x180013dd0
cmp r11, rdi
je 0x180013dd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x199a21200]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180013dd0
test rax, rax
je 0x180013dd0
call rsi
test rax, rax
je 0x180013dca
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180013dca
test byte [rsp + 0x40], 1
jne 0x180013dd0
bts ebp, 0x15
jmp 0x180013e10
mov rcx, qword [0x199a211e8]
cmp rcx, rdi
je 0x180013e10
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180013e10
call rax
mov rbx, rax
test rax, rax
je 0x180013e10
mov rcx, qword [0x199a211f0]
cmp rcx, rdi
je 0x180013e10
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180013e10
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x199a211e0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180013e32
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180013e34
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180008180
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r9b, byte [rcx]
mov eax, r8d
mov r11, rcx
xor r9b, dl
lea r10, [rcx + 2]
xor r9b, 0xeb
cmp r9b, 2
jne 0x140001024
mov rax, r10
jmp 0x14000106f
test r9b, r9b
jne 0x14000106d
mov r8d, edx
mov r9, r10
xor r8d, 0x9ca753eb
test eax, eax
jle 0x140001065
mov rbx, rax
movzx eax, byte [r9]
mov ecx, r8d
shr ecx, 8
xor cl, al
add eax, r8d
mov byte [r9], cl
inc r9
imul r8d, eax, 0xce6d
add r8d, 0x58bf
dec rbx
jne 0x14000103d
xor dl, 0xe9
mov byte [r11], dl
jmp 0x14000101f
xor eax, eax
mov rbx, qword [rsp + 8]
ret

Function at 0x1400010f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, ecx
mov eax, edx
mov r9d, edx
xor rcx, rax
xor r9d, r8d
mov eax, 0x917f3b1b
xor rcx, rax
xor r9d, 0xf7a8f16a
lea rax, str.h_tFlY
lea r8d, [r9 + r9]
add rcx, rax
jmp fcn.140001078

Function at 0x140001120
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r9b, byte [rcx]
mov eax, r8d
mov r11, rcx
xor r9b, dl
lea r10, [rcx + 2]
xor r9b, 0x1f
cmp r9b, 2
jne 0x140001144
mov rax, r10
jmp 0x14000118f
test r9b, r9b
jne 0x14000118d
mov r8d, edx
mov r9, r10
xor r8d, 0xf3d2c31f
test eax, eax
jle 0x140001185
mov rbx, rax
movzx eax, byte [r9]
mov ecx, r8d
shr ecx, 8
xor cl, al
add eax, r8d
mov byte [r9], cl
inc r9
imul r8d, eax, 0xce6d
add r8d, 0x58bf
dec rbx
jne 0x14000115d
xor dl, 0x1d
mov byte [r11], dl
jmp 0x14000113f
xor eax, eax
mov rbx, qword [rsp + 8]
ret

Function at 0x140001198
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r9b, byte [rcx]
mov eax, r8d
mov r11, rcx
xor r9b, dl
lea r10, [rcx + 2]
xor r9b, 0x54
cmp r9b, 2
jne 0x1400011bc
mov rax, r10
jmp 0x140001207
test r9b, r9b
jne 0x140001205
mov r8d, edx
mov r9, r10
xor r8d, 0x7ed31d54
test eax, eax
jle 0x1400011fd
mov rbx, rax
movzx eax, byte [r9]
mov ecx, r8d
shr ecx, 8
xor cl, al
add eax, r8d
mov byte [r9], cl
inc r9
imul r8d, eax, 0xce6d
add r8d, 0x58bf
dec rbx
jne 0x1400011d5
xor dl, 0x56
mov byte [r11], dl
jmp 0x1400011b7
xor eax, eax
mov rbx, qword [rsp + 8]
ret

Function at 0x140001210
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r9b, byte [rcx]
mov eax, r8d
mov r11, rcx
xor r9b, dl
lea r10, [rcx + 2]
xor r9b, 0x6a
cmp r9b, 2
jne 0x140001234
mov rax, r10
jmp 0x14000127f
test r9b, r9b
jne 0x14000127d
mov r8d, edx
mov r9, r10
xor r8d, 0xa16de86a
test eax, eax
jle 0x140001275
mov rbx, rax
movzx eax, byte [r9]
mov ecx, r8d
shr ecx, 8
xor cl, al
add eax, r8d
mov byte [r9], cl
inc r9
imul r8d, eax, 0xce6d
add r8d, 0x58bf
dec rbx
jne 0x14000124d
xor dl, 0x68
mov byte [r11], dl
jmp 0x14000122f
xor eax, eax
mov rbx, qword [rsp + 8]
ret