joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140095d04
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x20], 0
mov rcx, rdx
mov rbp, rdx
call fcn.1400a64c4
mov rsi, rax
test rax, rax
jne 0x140095d37
lea eax, [rsi + 7]
jmp 0x140095dd9
call fcn.1400ad55c
mov edi, 1
test eax, eax
je 0x140095d72
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140095d9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test eax, eax
jne 0x140095d9d
lea rcx, [rsp + 0x48]
call fcn.1400b568c
test eax, eax
jne 0x140095d45
jmp 0x140095d9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140095d9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
test eax, eax
jne 0x140095d9d
lea rcx, [rsp + 0x48]
call fcn.1400b568c
test eax, eax
jne 0x140095d72
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140095dc6
lea rdx, str.winDelete
mov r9d, 0x85f9
mov r8, rbp
mov ecx, 0xa0a
call fcn.1400e438c
mov ebx, eax
jmp 0x140095dcf
mov ecx, dword [rsp + 0x48]
call fcn.1400ae034
mov rcx, rsi
call fcn.1400e9d50
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14009c158
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rax, rdx
mov rdi, rcx
cmp dword [rcx + 0x38], ebx
jle 0x14009c182
movsxd r8, dword [rcx + 0x38]
dec rax
add rax, r8
cqo
idiv r8
imul rax, r8
mov rdx, rax
call fcn.1400b5b00
test eax, eax
je 0x14009c19d
mov r9d, 0x802d
lea rdx, str.winTruncate1
jmp 0x14009c1c1
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14009c1d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x8030
lea rdx, str.winTruncate2
mov dword [rdi + 0x20], eax
mov r8, qword [rdi + 0x30]
mov ecx, 0x60a
call fcn.1400e438c
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14009c5b4
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rsi, rdx
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14009c609
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14009c609
mov r8, qword [rbx + 0x30]
lea rdx, str.winFileSize
mov r9d, 0x808c
mov ecx, 0x70a
mov dword [rbx + 0x20], eax
call fcn.1400e438c
jmp 0x14009c619
mov ecx, dword [rsp + 0x30]
shl rcx, 0x20
add rcx, rdi
xor eax, eax
mov qword [rsi], rcx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ac408
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r9, qword [0x140172928]
mov rbx, rdx
mov esi, ecx
test r9, r9
je 0x1400ac45c
lea r8, [0x14011dc44]
lea rdx, [rsp + 0x20]
mov ecx, 0xe6
call fcn.14009aad0
jmp 0x1400ac4e2
call fcn.1400ad55c
mov ecx, 0xe6
test eax, eax
je 0x1400ac4ac
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rbp + 0x30]
call fcn.1400e0da0
mov rdi, rax
test rax, rax
jne 0x1400ac4c1
mov eax, 7
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400e79e0
mov rbx, qword [rsp + 0x380]
add rsp, 0x350
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rbp + 0x30]
call fcn.1400e00b4
jmp 0x1400ac47d
lea r8, [0x14011dc44]
lea rdx, [rsp + 0x20]
mov r9, rax
mov ecx, 0xe6
call fcn.14009aad0
mov rcx, rdi
call fcn.1400e9d50
mov r8b, byte [rsp + 0x20]
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0x20]
test r8b, r8b
je 0x1400ac4fe
inc rcx
cmp byte [rcx], 0
jne 0x1400ac4f6
sub ecx, eax
lea rax, str.etilqs_
mov edi, 0x3fffffff
mov rdx, rax
and ecx, edi
inc rdx
cmp byte [rdx], 0
jne 0x1400ac511
sub edx, eax
add ecx, 0x11
and edx, edi
add ecx, edx
cmp ecx, esi
jl 0x1400ac530
mov eax, 1
jmp 0x1400ac48a
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x20]
test r8b, r8b
je 0x1400ac547
inc rax
cmp byte [rax], 0
jne 0x1400ac53f
sub eax, ecx
and eax, edi
movsxd rcx, eax
je 0x1400ac561
lea rax, [rsp + 0x20]
cmp byte [rax + rcx - 1], 0x5c
jne 0x1400ac561
dec rcx
jne 0x1400ac555
cmp rcx, 0x105
jae 0x1400ac604
mov byte [rsp + rcx + 0x20], 0
lea r9, [rsp + 0x20]
lea r8, str._setilqs_
lea ecx, [rsi - 0x11]
mov rdx, rbx
call fcn.14009aad0
mov rax, rbx
test rbx, rbx
je 0x1400ac5a3
cmp byte [rbx], 0
je 0x1400ac59f
inc rax
cmp byte [rax], 0
jne 0x1400ac597
sub eax, ebx
and eax, edi
movsxd rdi, eax
mov esi, InitCommonControls
lea rdx, [rbx + rdi]
mov ecx, esi
call fcn.14009add8
lea r8, [rdi + rbx]
add rdi, rsi
movzx ecx, byte [r8]
movabs rax, 0x842108421084211
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
lea rax, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
mov al, byte [rcx + rax]
mov byte [r8], al
inc r8
dec rsi
jne 0x1400ac5bd
mov byte [rbx + rdi], sil
xor eax, eax
jmp 0x1400ac48a
call fcn.1400e888c
int3
Function at 0x1400c171c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400c1838
test rdx, rdx
je 0x1400c1838
mov ecx, 0x800
test word [rdi + 2], cx
jne 0x1400c17c7
movzx eax, word [rdx + 2]
test cx, ax
jne 0x1400c17c7
xor al, byte [rdi + 2]
test al, 0x10
jne 0x1400c17c7
mov al, byte [rdx]
cmp byte [rdi], al
jne 0x1400c17c7
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rdi + 0x10]
call fcn.1400c171c
test eax, eax
jne 0x1400c17c7
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rdi + 0x18]
call fcn.1400c171c
test eax, eax
jne 0x1400c17c7
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rdi + 0x20]
call fcn.1400c2074
test eax, eax
jne 0x1400c17c7
mov eax, dword [rbx + 0x30]
cmp dword [rdi + 0x30], eax
jne 0x1400c17c7
movzx eax, word [rbx + 0x34]
cmp word [rdi + 0x34], ax
jne 0x1400c17c7
movzx r8d, word [rdi + 2]
mov ecx, 0x400
test cx, r8w
je 0x1400c17ce
test word [rbx + 2], cx
je 0x1400c17c7
mov eax, dword [rbx + 8]
cmp dword [rdi + 8], eax
je 0x1400c1807
mov eax, 2
jmp 0x1400c1843
cmp byte [rdi], 0x98
je 0x1400c1807
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400c1807
test word [rbx + 2], cx
jne 0x1400c17c7
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400c17c7
sub rcx, rax
movzx edx, byte [rax]
movzx r9d, byte [rax + rcx]
sub edx, r9d
jne 0x1400c1803
inc rax
test r9d, r9d
jne 0x1400c17ee
test edx, edx
jne 0x1400c17c7
movzx ecx, word [rbx + 2]
mov edx, 0x100
and cx, dx
and r8w, dx
cmp r8w, cx
je 0x1400c1824
mov eax, 1
jmp 0x1400c1843
test r8w, r8w
je 0x1400c1834
mov rax, qword [rbx + 0x28]
cmp qword [rdi + 0x28], rax
jne 0x1400c17c7
xor eax, eax
jmp 0x1400c1843
sub rbx, rcx
neg rbx
sbb eax, eax
and eax, 2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c54ac
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov r10, rcx
cmp qword [rcx + 0x10], rbx
je 0x1400c54fb
mov r9d, r8d
mov r11, rdx
mov eax, ebx
test r8d, r8d
jle 0x1400c54f4
movzx ecx, byte [r11]
lea rdx, [0x14011c8d0]
dec r9d
movzx edx, byte [rcx + rdx]
mov ecx, eax
inc r11
shl ecx, 3
xor edx, ecx
xor eax, edx
test r9d, r9d
jg 0x1400c54d1
xor edx, edx
div dword [r10]
jmp 0x1400c54fd
mov edx, ebx
mov r9d, edx
mov rcx, r10
mov rdx, rdi
call fcn.1400a942c
test rax, rax
je 0x1400c5514
mov rbx, qword [rax + 0x10]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dff38
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
xor edx, edx
lea rcx, [0x1401748c0]
lea r8d, [rdx + 0x30]
call fcn.1400ea1b0
lea rcx, [0x1401748c0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [0x1401620e0]
mov edx, 1
call fcn.140098f04
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400e9fd4
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
call fcn.1400efb5c
movzx ebx, ax
mov ecx, 2
call fcn.1400f5660
call fcn.1400f4c6c
test eax, eax
jne 0x1400ea017
cmp dword [0x140174448], 1
jne 0x1400ea003
call fcn.1400f5378
mov ecx, 0x1c
call fcn.1400f53ec
mov ecx, 0xff
call fcn.1400ed6a4
call fcn.1400f1888
test eax, eax
jne 0x1400ea042
cmp dword [0x140174448], 1
jne 0x1400ea02e
call fcn.1400f5378
mov ecx, InitCommonControls
call fcn.1400f53ec
mov ecx, 0xff
call fcn.1400ed6a4
call fcn.1400f5754
nop
call fcn.1400f4518
test eax, eax
jns 0x1400ea05b
mov ecx, 0x1b
call fcn.1400ea0e4
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x140175a48], rax
call fcn.1400f57c4
mov qword [0x140173728], rax
call fcn.1400f4f7c
test eax, eax
jns 0x1400ea087
mov ecx, 8
call fcn.1400ed6bc
call fcn.1400f5238
test eax, eax
jns 0x1400ea09a
mov ecx, 9
call fcn.1400ed6bc
mov ecx, 1
call fcn.1400ed6e4
test eax, eax
je 0x1400ea0af
mov ecx, eax
call fcn.1400ed6bc
call fcn.1400f58b8
movzx r9d, bx
mov r8, rax
xor edx, edx
lea rcx, [0x140000000]
call fcn.140006b68
mov dword [rsp + 0x20], eax
mov ecx, eax
call fcn.1400eda20
nop
mov ecx, eax
call fcn.1400ed77c
nop
add rsp, 0x30
pop rbx
ret

Function at 0x1400eda20
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400ed888
Function at 0x140327bea
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [rsi + rdx*2 - 0x56]
mov edi, edx
xchg dx, bx
xor rdi, 0xffffffffa680a53f
xor ecx, r10d
mov eax, edi
lea ecx, [rdx + rcx + 0x2822795d]
rol eax, 9
movzx r8d, dl
rol ecx, 1
idiv eax
cdq
div bx
dec ecx
mov qword [rsp + rdx - 0x22], rdi
add di, 0x6017
bswap ecx
add r8d, 0xb9197235
js 0x1403790f9

Function at 0x140328964
Capabilities:
Encode data using base64

Disassembly:
mov r9d, 0xb10255af
xor eax, r10d
call fcn.1403269f7
mov ebx, 0x3e2ebf87
mov ecx, 0xf8b1d681
mov eax, dword [rsi + rbx*2 - 0x7c5d7f0e]
movzx r8d, bl
movsx edi, bl
lea rsi, [rsi + rbx*2 - 0x7c5d7f0a]
shr r8, 0x33
xor eax, r10d
and r8b, dil
lea eax, [rax + rbx*2 + 0x5a616e01]
movsx r9d, bx
movzx edx, r9w
sal r9b, 0x84
neg eax
sal rcx, cl
jns 0x14036c201
dec dword [rsp + rdi + 3]
bswap ebx
rol ebx, 1
inc word [rsp + rdi*4 + 4]
bswap ebx
mov qword [rsp + rdi + 6], r10
movsx r8d, di
jge 0x140341c7b
call fcn.14034acea

Function at 0x14032d02f
Capabilities:
Encode data using base64

Disassembly:
mov ebx, 0x4802b2b8
mov cx, word ss:[r8 + rbx - 0x4802b2b8]
movsx r9d, bl
shr r9d, 0xf0
movsx edi, bx
mov word [r11 + rbx - 0x4802b2b2], cx
mov edx, dword [rbx + rsi - 0x4802b2b8]
mov qword [rsp + r9 - 0xffff], 0xffffffffe2b467bd
xor edx, r10d
lea edx, [rdx + rbx - 0x1fdf9f30]
rol edx, 1
lea r8, [rdi + r9*4 + 0x18041da3]
dec edx
dec bl
bswap edx
xor dword [rsp + rbx - 0x4802b2b7], ebx
movzx eax, r9w
add rdi, qword [rsp + rbx - 0x4802b2b7]
rol edx, 3
neg r8b
or di, 0xb5a4
sub r9b, dil
sbb edx, 0x87b6c300
ror edi, 0xc3
lea r9, [r8 + rbx + 0x7e9cc095]
mov qword [rsp + rbx - 0x4802b2b7], r10
xor dword [rsp + rbx - 0x4802b2b7], edx
push rax
btc eax, 0xae
mov r10, qword [rsp + rbx - 0x4802b2af]
xadd r9d, ebx
shr r9b, 0x83
movsxd rdx, edx
adc byte [rsp + r9 - 0x26a9f610], 0xb3
ror al, 0x87
mov ecx, dword [rsp + r9 - 0x26a9f611]
add rbp, rdx
mov qword [rsp + r9*2 - 0x4d53ec22], r9
neg dword [rsp + r9 - 0x26a9f609]
mov ax, word [rax + r11 - 0xbff9]
ror byte [rsp + r9 - 0x26a9f615], 0xe5
or r9d, ebx
lea r11, [r11 + rcx*4 - 0x2cff8]
movzx ebx, byte [rsi + rcx*8 - 0x59ffc]
xchg qword [rsp + rcx - 0xb3fb], rdi
sete cl
lea rsi, [rsi + rcx*2 - 0x167fb]
sal dword [rsp + rcx - 0xb3f8], 0xcc
mov edx, dword [rsp + rcx*2 - 0x167f8]
sbb ecx, edi
xor bl, r10b
push rcx
neg r9
adc bl, dl
sar r9w, 0x47
ja 0x14033228c
Function at 0x14032d15c
Capabilities:
Encode data using base64
Manually build aes constants

Disassembly:
adc rax, rdx
pop rbx
pop r9
pop r9
jne fcn.14034bf16
mov rax, qword [r11]
mov r8d, 0xb48a8531
mov rcx, qword [r11 + riz + 8]
sar r8w, 0xa3
lea rbx, [r8 + r8 + 0x121dd506]
mov edi, ebx
or rax, rcx
movsx ecx, r8w
bt edi, r8d
sar r8b, 0x21
not rax
jle 0x140364f59
mov qword [r11 + rdi - 0x7b33b64a], rax
setns r8b
sar cl, cl
lea r9, [r8 + r8*4 - 0x26df12e5]
mov edx, dword [rsi + rdi - 0x7b33b652]
neg rdi
shl r8, cl
movzx eax, r9w
lea rsi, [rsi + rax*2 - 0x13a32]
xor edx, r10d
inc edx
sar r9, 0x29
rol r9w, 0x29
xadd r9b, bl
bswap edx
call fcn.1403272d1
dec eax
rol eax, 2
shr rbx, 0x22
xor r9, r8
lea eax, [rax + rbx*2 + 0xe9d44b3]
jb 0x14033b1c4
neg eax
inc eax
movzx edx, r9b
rol rcx, 0xe4
imul rdx, rbx
xor eax, 0xcf35ae3a
not rcx
rol eax, 1
inc dx
lea r8, [rcx*4 - 0x72fd67c1]
xor r9b, 0x13
xor eax, 0x3c38c023
inc bx
not r9
push r10
btc dx, r9w
xor dword [rsp + rdi - 0x12], eax
add r8w, di
pop r10
shl dil, 0xc6
jnp 0x140364619
shr qword [rsp + r9 - 0x4d0fcca6], 0x55
xor edx, 0x2f9b3603
mov qword [rsp + r9 - 0x4d0fcca6], r10
lea r10, [r8 + r9*4 + 0x50b0369b]
xor dword [rsp + r9 - 0x4d0fcca6], edx
sar qword [rsp + r9 - 0x4d0fccae], 0x11
push r10
add rdi, rbx
mov r10, qword [rsp + rax - 0xf83a]
movsxd rdx, edx
pop rax
pop r9
bswap r9d
adc rbp, rdx
neg bx
mov qword [rsp + r8*2 + 0x6e400ff8], rbp
ret

Function at 0x14033e6f2
Capabilities:
Encode data using base64

Disassembly:
ror r9d, cl
mov rbx, qword [r11 + rax - 0x2b6c]
mov r8, qword [r8 + r11 - 0x5f92af74]
bt r9w, cx
mov cl, byte [r11 + rdi - 0x79fd0586]
jb 0x140333218
lea r11, [rax + r11 - 0x2b62]
adc dil, dil
not dl
shrd rbx, r8, cl
push rdi
mov qword [rsp + rax*2 - 0x56d0], rdi
mov qword [r11 + rax*2 - 0x56d8], rbx
movzx r8d, byte [rsp + rax - 0x2b67]
mov qword [rsp + rax*2 - 0x56d8], rbp
ret 8

Function at 0x140340296
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp], rcx
mov ecx, 0x23a41f2c
jmp 0x140361b08
push rdx
movzx edx, cx
push rcx
jmp 0x14036c1f4
mov qword [rsp + rdx - 0x1f2c], r15
call fcn.14036b6f0
rol eax, 1
sub dil, 0x27
add edi, 0x99af1d9f
adc eax, r8d
push r10
add ebx, ecx
xor dword [rsp + r8], eax
pop r10
lea rdi, [r8 + rcx + 0x3483780b]
lea rcx, [rbx + rbx*2 + 0x281a7298]
sar cl, 6
movsxd rax, eax
sal ecx, 1
add rbp, rax
imul rcx, rdx
mov bx, word [r11 + rbx*2 - 0x5f24d912]
jno 0x140367935

Function at 0x140342948
Capabilities:
Encode data using base64

Disassembly:
bt rbx, 0xa3
xor r10b, r9b
not r8
btr rdx, rdx
neg r8w
lea r9, [rsp + r9 + 0x10]
sar dword [rsp + rdx*2 - 0x1fb7], 0x26
seta r8b
call fcn.14035ddc0
Function at 0x14034a3da
Capabilities:
Encode data using base64
Manually build aes constants

Disassembly:
shr r8, 0x8f
mov qword [rsp + rbx - 0x9373], rbp
ret 0x18
xor bl, ah
lea r11, [r11 + rbx - 0x936f]
movzx r8d, dil
not r9d
inc rax
mov qword [rsp + rbx*2 - 0x126e6], rbx
not edx
shr byte [rsp + rbx*8 - 0x49b8a], 0x23
and byte [rsp + rbx*2 - 0x126ca], 0xac
idiv dil
or r9d, edx
shl byte [rsp + rbx*2 - 0x126d8], 0x61
jp 0x140351c65
dec r8d
mov dword [rbx + r11 - 0x9373], r9d
inc ax
jae 0x140342318
mov rdx, qword [r11]
mov ebx, 0xa03e5b1a
mov r9d, dword [rdx + riz]
and ebx, 0xc9b6c132
movsx eax, bx
movsx r8d, bl
lea r11, [r11 + r8*8 - 0x8c]
ja 0x14037502c
jmp fcn.14034bf16
movsx edi, r8w
mov dword [r11 + rax*8 - 0x20890], r9d
neg rbx
mov eax, dword [rsi + rax*4 - 0x10448]
mov r9d, r8d
lea rsi, [r8 + rsi - 0xe]
movzx ecx, di
xor eax, r10d
jmp 0x140364661

Function at 0x14034c1c9
Capabilities:
Encode data using base64

Disassembly:
lea rsi, [rsi + rdx*4 - 0x1f0]
jge 0x14034e278
add rsi, 4
xor r9d, r10d
and r8b, 0xb3
mov ecx, 0xe6afbe01
ror r9d, cl
movsx edi, r8w
sal di, cl
sal r8d, 0xcf
lea r9d, [r8 + r9 - 0x6778188f]
mov edx, 0x599baabb
mov ebx, ecx
lea rdx, [rdx*2 + 0x493ff3a6]
neg r9d
rol r9d, cl
dec r9d
and rdi, 0x1898cfa8
push r10
inc edi
xor dword [rsp + r8 - 0x51490000], r9d
push r8
mov r10, qword [rsp + rdi*2 - 0x31308a3a]
jmp 0x14033df13

Function at 0x14035a541
Capabilities:
Encode data using base64

Disassembly:
lea rcx, [r8 + 0xb323d9e]
lea r11, [r11 + rbx - 0xfffd]
mov word [r11 + rbx*8 - 0x7ffd8], r9w
not word [rsp + rbx*4 - 0x3ffe2]
shr rdi, cl
sar rdi, cl
pop rax
pop r9
je fcn.14034bf16

Function at 0x14036a271
Capabilities:
Encode data using base64

Disassembly:
call fcn.140328306
mov edi, 0x8abfb096
mov ebx, dword [r11 + riz]
sar edi, 0x5f
lea r9, [rdi*4 - 0x25e323ca]
mov eax, dword [r11 + riz + 4]
sets r9b
movsx edx, r9b
mov cl, byte [r11 + rdx + 7]
push rdx
setne byte [rsp + rdx*2 + 4]
lea r11, [r11 + rdx*4 + 2]
lea r9, [rdx + r9 + 0x72a17a0b]
dec di
jnp 0x140345f06

Function at 0x140376ff5
Capabilities:
Encode data using base64
Manually build aes constants

Disassembly:
push r8
bts cx, 0x14
movzx eax, byte [rsi + rbx - 0x38c3527c]
movzx edi, r9w
push r9
mov edx, 0x380b4398
lea rsi, [rsi + r9*4 - 0x36aeddb]
mov qword [rsp + rbx - 0x38c35270], r9
xor al, r10b
not r9
ror edi, cl
not al
shl r9b, 0xc4
neg al
shl word [rsp + rbx - 0x38c3526e], 0xe1
adc dx, r9w
xor al, 0x1d
inc al
xor byte [rsp + r9 + 0xdabba1], cl
neg al
btr edi, 0xa6
imul edi, edi
adc r9, qword [rsp + rbx - 0x38c3527c]
xor r10b, al
sar r8, 0x50
lea rax, [rsp + rax + 0x18]
rol qword [rsp + r8 - 0xd2b0], 0x29
sar dword [rsp + r8 - 0xd2a7], 0x64
neg ecx
mov rdi, qword [rax + r8*2 - 0x1a576]
shl r9b, 2
seta byte [rsp + r8*2 - 0x1a566]
push rdx
mov qword [r11 + r8 - 0xd2c3], rdi
or rcx, r8
ror bx, 0xee
lea rcx, [r8 + r11 - 0xd2c3]
ror rdx, 0x17
mov qword [r11 + r8*8 - 0x695e8], rcx
inc byte [rsp + r8 - 0xd2a9]
lea r11, [r11 + r8 - 0xd2cb]
lea rdi, [r9*8 - 0x60753dc8]
cmove rdx, qword [rsp + r8 - 0xd2a3]
mov eax, edi
pop rcx
pop rcx
pop rbx
pop rbx
js fcn.14034bf16
Function at 0x1406bd340
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406bd4c7
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 0x1406bd371
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd357
add dl, dl
jne 0x1406bd37e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd3de
xor eax, eax
add dl, dl
jne 0x1406bd38d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd495
add dl, dl
jne 0x1406bd39e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd3ab
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd3b8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd3c5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406bd3d2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406bd366
mov eax, 1
add dl, dl
jne 0x1406bd3ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd3fb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd3e3
sub eax, ebx
mov ebx, 1
jne 0x1406bd434
mov ecx, 1
add dl, dl
jne 0x1406bd416
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406bd423
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd40b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd366
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406bd450
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406bd45d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd445
cmp eax, 0x7d00
jae 0x1406bd483
cmp eax, 0x500
jb 0x1406bd47e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd366
cmp eax, 0x7f
ja 0x1406bd486
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd366
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406bd4ba
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 0x1406bd366
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00427080]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00427090]
mov dword [rax], 1
mov rax, qword [0x004270a0]
mov dword [rax], 1
mov rax, qword [0x00427070]
mov dword [rax], 1
mov rax, qword [0x00426f30]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00427060]
mov dword [0x0043000c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00427020]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00426ce0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401560
Capabilities:
Get graphical window text

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
cmp dword [rbp + 0x18], 0x138
je 0x4015a5
cmp dword [rbp + 0x18], 0x138
ja 0x40169f
cmp dword [rbp + 0x18], 2
je 0x40168f
cmp dword [rbp + 0x18], 0x111
je 0x4015e3
jmp 0x40169f
mov rax, qword [rbp + 0x20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0xff00
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_SetTextColor]
call rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.GDI32.dll_SetBkColor]
call rax
mov rax, qword [0x00430040]
jmp 0x4016c7
mov rax, qword [rbp + 0x20]
test ax, ax
jne 0x4016c1
mov rdx, qword [rbp + 0x28]
mov rax, qword [0x00430050]
cmp rdx, rax
jne 0x4016c1
mov rax, qword [0x00430048]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowTextLengthW]
call rax
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
add eax, 1
cdqe
movabs rdx, 0x3ffffffffffffffc
cmp rax, rdx
ja 0x40167c
add rax, rax
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 0xc]
lea ecx, [rax + 1]
mov rax, qword [0x00430048]
mov rdx, qword [rbp - 0x18]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowTextW]
call rax
mov rax, qword [rbp - 0x18]
mov rdx, rax
lea rcx, [0x00430060]
call fcn.00421610
cmp qword [rbp - 0x18], 0
je 0x4016c1
jmp 0x401681
call sym.__cxa_throw_bad_array_new_length
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.operator_delete___void_
jmp 0x4016c1
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_PostQuitMessage]
call rax
jmp 0x4016c2
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov eax, dword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, eax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
call rax
jmp 0x4016c7
nop
mov eax, 0
add rsp, 0x40
pop rbp
ret