joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400639b0
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

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 r13
push r14
mov eax, 0x1300
call fcn.140030eb0
sub rsp, rax
mov rbx, rdx
lea rdx, [rsp + 0x450]
xor edi, edi
mov r12b, r9b
mov r13b, r8b
mov sil, dil
call fcn.140015a00
lea rdx, [rsp + 0x660]
mov rcx, rbx
call fcn.140015a00
lea rdx, [rsp + 0x660]
lea rcx, [rsp + 0x450]
call fcn.140059be0
lea rcx, [rsp + 0x450]
mov r14b, al
call fcn.140041ff0
cmp al, dil
je 0x140063a3f
lea rdx, str..
lea rcx, [rsp + 0x450]
call fcn.140018114
lea rcx, [rsp + 0x660]
call fcn.140041ff0
cmp al, dil
je 0x140063a65
lea rdx, str..
lea rcx, [rsp + 0x660]
call fcn.140018114
lea rax, [rsp + 0xac0]
lea r9, [rsp + 0x10f0]
lea r8, [rsp + 0xcd0]
lea rdx, [rsp + 0xee0]
lea rcx, [rsp + 0x450]
mov qword [rsp + 0x20], rax
call fcn.1400198fc
lea rdx, [rsp + 0x870]
lea rcx, [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov bpl, 1
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140063c0e
cmp bpl, 1
jne 0x140063c0e
test byte [rsp + 0x870], 0x10
jne 0x140063be0
lea rax, [rsp + 0x240]
lea r9, [rsp + 0x660]
lea r8, [rsp + 0xac0]
lea rdx, [rsp + 0x10f0]
lea rcx, [rsp + 0x89c]
mov qword [rsp + 0x20], rax
call fcn.140041e20
lea rdx, [rsp + 0xee0]
lea rcx, [rsp + 0x30]
call fcn.140018140
lea rdx, [rsp + 0xcd0]
lea rcx, [rsp + 0x30]
call fcn.140018114
lea rdx, [rsp + 0x89c]
lea rcx, [rsp + 0x30]
call fcn.140018114
lea rcx, [rsp + 0x240]
call fcn.140042060
cmp al, dil
je 0x140063b7d
cmp r13b, dil
je 0x140063c01
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x140063b9d
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
cmp r12b, 1
jne 0x140063bd0
cmp r14b, dil
jne 0x140063bb6
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x140063bd9
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, edi
je 0x140063c11
jmp 0x140063bdd
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, edi
je 0x140063c01
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140063bd9
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, edi
je 0x140063c01
mov sil, 1
lea rdx, [rsp + 0x870]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
jne 0x140063abd
mov bpl, dil
jmp 0x140063abd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x140063c1d
mov dil, sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, dil
lea r11, [rsp + 0x1300]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140065f60
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbx, qword [rdx]
mov rbp, rcx
lea rcx, [rsp + 0x50]
mov esi, r8d
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11d, dword [rsp + 0x50]
mov eax, dword [rsp + 0x54]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov dword [rdi + 0x26c], r11d
mov dword [rdi + 0x270], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x54]
cmp eax, dword [rdi + 0x274]
jne 0x140065fc6
cmp ecx, dword [rdi + 0x278]
je 0x140065fee
cmp esi, 1
mov dword [rdi + 0x274], eax
mov dword [rdi + 0x278], ecx
jl 0x140065fee
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov r8, rdi
mov rcx, rbp
mov edx, 0xfffffff5
call fcn.14005eab0
mov ecx, dword [rbp + 0x18]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [rbp + 0x1c]
movzx r12d, ax
shr r12d, 0xf
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
shr ebx, 0xf
cmp r12d, dword [rdi + 0x27c]
je 0x140066094
cmp esi, 1
jl 0x140066094
cmp byte [rdi + 0x2b8], 0
je 0x140066094
mov eax, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x50]
mov r8, rdi
mov rcx, rbp
mov dword [rsp + 0x20], eax
test r12d, r12d
je 0x140066044
mov edx, 0xfffffff9
jmp 0x140066088
mov edx, 0xfffffff8
call fcn.14005eab0
cmp byte [rdi + 0x284], 0
je 0x14006608d
mov rcx, qword [rdi]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r9d, dword [rsp + 0x50]
mov r8, rdi
bt eax, 0x18
mov eax, dword [rsp + 0x54]
mov rcx, rbp
mov dword [rsp + 0x20], eax
mov edx, 0xfffffffa
jb 0x140066088
mov edx, 0xfffffff4
call fcn.14005eab0
mov byte [rdi + 0x284], 0
test esi, esi
je 0x14006609f
mov dword [rdi + 0x27c], r12d
cmp ebx, dword [rdi + 0x280]
je 0x1400660d2
cmp esi, 1
jl 0x1400660d2
mov eax, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x50]
mov r8, rdi
mov rcx, rbp
mov edx, 0xfffffff7
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x1400660cd
mov edx, 0xfffffff6
call fcn.14005eab0
test esi, esi
je 0x1400660dc
mov dword [rdi + 0x280], ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14006ce70
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov r13b, dl
mov rbp, rcx
lea rdx, str.open
lea rcx, [rsp + 0x20]
mov edi, r9d
mov rbx, r8
call fcn.140001ec0
xor r15d, r15d
lea rcx, [rsp + 0x40]
lea r8d, [r15 + 0x70]
xor edx, edx
mov r12, r15
mov rsi, r15
lea r14d, [r15 + 1]
call fcn.140018a60
cmp edi, 2
jb 0x14006cef9
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 8]
call fcn.140058c50
cmp word [rax], r15w
je 0x14006cef9
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 8]
call fcn.140058c50
mov rcx, rax
call fcn.140015a50
mov r12, rax
cmp edi, 3
jb 0x14006cf16
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.140058c50
mov rcx, rax
call fcn.140015a50
mov rsi, rax
cmp edi, 4
jb 0x14006cf48
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx + 0x18]
call fcn.140058c50
cmp word [rax], r15w
je 0x14006cf48
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x18]
call fcn.1400129f0
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140001220
cmp edi, 5
jb 0x14006cf5e
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x20]
call fcn.140011c70
movzx r14d, ax
mov edi, WSAStartup
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, rdi
call fcn.140018a60
mov rax, qword [rsp + 0x20]
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 8]
mov dword [rsp + 0x44], 0x40
mov qword [rsp + 0x48], r15
mov rcx, qword [rax]
call fcn.140058c50
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x58], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
cmp r12, r15
je 0x14006cfc7
mov rcx, r12
call fcn.140018614
cmp rsi, r15
je 0x14006cfd4
mov rcx, rsi
call fcn.140018614
cmp ebx, r15d
jne 0x14006d002
xor r8d, r8d
mov rcx, rbp
lea edi, [r8 + 1]
mov edx, edi
call fcn.140003930
mov rbx, qword [rsp + 0x100]
mov rcx, rbx
call fcn.140003840
mov dword [rbx + 8], edi
mov dword [rbx], r15d
jmp 0x14006d045
cmp r13b, r15b
je 0x14006d018
mov rax, qword [rsp + 0xa8]
mov qword [rbp + 0x618], rax
jmp 0x14006d045
mov rbx, qword [rsp + 0x100]
mov rcx, rbx
call fcn.140003840
mov rcx, qword [rsp + 0xa8]
mov edi, 1
mov dword [rbx + 8], edi
mov dword [rbx], edi
cmp rcx, r15
je 0x14006d045
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x20]
call fcn.1400032d0
lea r11, [rsp + 0xb0]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006d6e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
mov eax, 0x2060
call fcn.140030eb0
sub rsp, rax
lea rcx, [rsp + 0x20]
mov rbp, rdx
call fcn.140008270
lea rcx, [rsp + 0x40]
call fcn.140008270
mov rcx, rbp
call fcn.140058c50
xor r12d, r12d
movzx ecx, word [rax]
mov rsi, rax
mov dil, r12b
mov rbx, r12
cmp cx, r12w
je 0x14006d865
lea r13d, [r12 + 0x25]
inc rbx
cmp cx, r13w
jne 0x14006d813
cmp word [rsi + rbx*2], r13w
jne 0x14006d76a
lea rcx, [rsp + 0x20]
mov edx, r13d
mov dil, 1
call fcn.1400594b0
inc rbx
jmp 0x14006d820
lea rdx, [0x140095618]
lea rcx, [rsp + 0x40]
call fcn.1400118e0
jmp 0x14006d794
cmp r11w, r12w
je 0x14006d79f
lea rcx, [rsp + 0x40]
movzx edx, r11w
call fcn.1400594b0
inc rbx
movzx r11d, word [rsi + rbx*2]
cmp r11w, r13w
jne 0x14006d77d
cmp word [rsi + rbx*2], r12w
je 0x14006d830
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 0xfff
inc rbx
mov word [rsp + 0x60], r12w
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x20]
cmp eax, r12d
je 0x14006d7e2
lea rdx, [rsp + 0x60]
call fcn.140011f40
mov dil, 1
jmp 0x14006d820
lea rdx, [0x14009c844]
mov dil, 1
call fcn.140011f40
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140063540
lea rdx, [0x14009c844]
lea rcx, [rsp + 0x20]
call fcn.140011f40
jmp 0x14006d820
movzx edx, cx
lea rcx, [rsp + 0x20]
call fcn.1400594b0
mov cx, word [rsi + rbx*2]
cmp cx, r12w
jne 0x14006d73e
jmp 0x14006d853
lea rdx, [0x14009c844]
lea rcx, [rsp + 0x20]
mov dil, 1
call fcn.140011f40
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140063540
cmp dil, r12b
je 0x14006d865
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.1400144b0
lea rcx, [rsp + 0x40]
call fcn.1400032d0
lea rcx, [rsp + 0x20]
call fcn.1400032d0
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140079d00
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rax, rdx
mov rdi, rcx
or edx, 0xffffffff
mov rcx, rax
mov rbx, r8
call fcn.140017480
mov r8b, 1
mov rdx, rbx
mov rcx, rdi
xor esi, esi
xor r13b, r13b
mov rbp, rax
xor r14d, r14d
mov qword [rdi + 0x68], rbx
call fcn.140043730
mov rcx, rbp
call fcn.140019370
lea rcx, [rax + 1]
call fcn.140017e24
cmp byte [rdi + 8], 1
mov r12, rax
jne 0x140079d7d
lea edx, [rsi + 0x14]
xor r8d, r8d
mov rcx, rdi
call fcn.140051bd0
mov rcx, rdi
mov r13b, al
call fcn.1400435b0
mov r14d, eax
mov bl, byte [rbp]
jmp 0x140079e33
inc esi
mov dword [rsp + 0x60], esi
cmp bl, 0x21
je 0x140079e29
cmp bl, 0x23
je 0x140079e23
cmp bl, 0x2b
je 0x140079e1d
cmp bl, 0x5e
je 0x140079e17
mov rcx, rdi
cmp bl, 0x7b
je 0x140079dcd
call fcn.140051000
mov r8d, 1
mov dl, bl
mov rcx, rdi
call fcn.14005a8d0
and dword [rdi + 0x60], 0x3f00
jmp 0x140079e2d
lea rax, [rsp + 0x60]
mov r9, r12
mov r8, rbp
mov dl, 0x7d
mov qword [rsp + 0x20], rax
call fcn.140043410
mov rcx, rdi
test eax, eax
je 0x140079dfa
mov r8d, 1
mov dl, 0x7b
call fcn.14005a8d0
jmp 0x140079e2d
call fcn.140051000
mov rdx, r12
mov rcx, rdi
call fcn.140079860
and dword [rdi + 0x60], 0x3f00
mov esi, dword [rsp + 0x60]
jmp 0x140079e2d
or dword [rdi + 0x60], 8
jmp 0x140079e2d
or dword [rdi + 0x60], 2
jmp 0x140079e2d
or dword [rdi + 0x60], 0x10
jmp 0x140079e2d
or dword [rdi + 0x60], 1
movsxd rax, esi
mov bl, byte [rax + rbp]
test bl, bl
jne 0x140079d85
cmp byte [rdi + 8], 1
jne 0x140079e5c
mov edx, r14d
mov rcx, rdi
call fcn.140051720
mov r8b, r13b
mov edx, reloc.WSOCK32.dll_sendto
mov rcx, rdi
call fcn.140051bd0
mov rcx, rbp
call fcn.140018614
mov rcx, r12
call fcn.140018614
mov rdx, qword [rdi + 0x68]
xor r8d, r8d
mov rcx, rdi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
jmp fcn.140043730
Function at 0x140c86058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c861df
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 0x140c86089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c8606f
add dl, dl
jne 0x140c86096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c860f6
xor eax, eax
add dl, dl
jne 0x140c860a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c861ad
add dl, dl
jne 0x140c860b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c860c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c860d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c860dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c860ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c8607e
mov eax, 1
add dl, dl
jne 0x140c86106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c86113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c860fb
sub eax, ebx
mov ebx, 1
jne 0x140c8614c
mov ecx, 1
add dl, dl
jne 0x140c8612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c8613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c86123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c8607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c86168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c86175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c8615d
cmp eax, 0x7d00
jae 0x140c8619b
cmp eax, 0x500
jb 0x140c86196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c8607e
cmp eax, 0x7f
ja 0x140c8619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c8607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c861d2
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 0x140c8607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
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 [0x1400054f0]
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 [0x140005500]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140005500]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x140005540]
mov rdx, rax
mov rax, qword [0x140005530]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x140005500]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005520]
mov rdx, rax
mov rax, qword [0x140005510]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140005500]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400054f0]
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 [0x140005450]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005450]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400054e0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140005470]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000901c]
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 [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005420]
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 0x140001af0
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 0x1400027c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000285a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000283e
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 0x140002832
cmp qword [rbp - 0x10], 0
je 0x140002832
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 0x1400027f8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000285b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002960
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 0x140002988
mov eax, 0
jmp 0x1400029d6
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 0x1400029b1
mov eax, 0
jmp 0x1400029d6
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 0x1400029d1
mov eax, 0
jmp 0x1400029d6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400029dc
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 0x140002a5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002a51
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 0x140002a51
mov rax, qword [rbp - 8]
jmp 0x140002a6f
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 0x140002a24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140729058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407291df
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 0x140729089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072906f
add dl, dl
jne 0x140729096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407290f6
xor eax, eax
add dl, dl
jne 0x1407290a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407291ad
add dl, dl
jne 0x1407290b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407290c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407290d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407290dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407290ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072907e
mov eax, 1
add dl, dl
jne 0x140729106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140729113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407290fb
sub eax, ebx
mov ebx, 1
jne 0x14072914c
mov ecx, 1
add dl, dl
jne 0x14072912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140729123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140729168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140729175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072915d
cmp eax, 0x7d00
jae 0x14072919b
cmp eax, 0x500
jb 0x140729196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072907e
cmp eax, 0x7f
ja 0x14072919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407291d2
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 0x14072907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20