joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180087e40
Capabilities:
Parse pe header

Disassembly:
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 0x180087ce7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180087ce7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180087ce7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180087ce7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180087ce7
cmp dword [rcx + 0x84], 0xe
jbe 0x180087ce7
cmp dword [rcx + 0xf8], 0
je 0x180087ce7
mov ecx, ebx
call fcn.180087da4
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.180087b74
nop
cmp dword [rbp + 0x20], 0
je 0x180087d35
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180087d40
int3
xor r8d, r8d
xor edx, edx
jmp 0x180087c78
Function at 0x180094590
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800ec770]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1800945ee
cmp word [rdx], r12w
jne 0x1800945ee
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800945f4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18009474f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18009472a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18009462d
mov rcx, r9
jmp 0x180094650
cmp r9, rdx
jae 0x180094667
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180094611
jmp 0x18009474f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180094724
cmp dword [rsp + 0x80], edi
je 0x180094724
mov rdx, r14
lea r11, [0x1800ec770]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1800946fd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800946d0
mov word [rbx], r12w
jmp 0x18009474b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1800946d9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18009474b
cmp word [rsp + 0x70], r12w
jne 0x18009470a
cmp rbx, rsi
je 0x1800946ca
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800944ec
cmp word [rsp + 0x70], r12w
je 0x18009474f
mov word [rbx], r13w
jmp 0x18009474b
lea r11, [0x1800ec770]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180094747
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18009474f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180096ea4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x180096ed6
call fcn.1800884f4
mov dword [rax], 0x16
call fcn.1800792d4
jmp 0x180096ff5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180096ff5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180096ff5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180096f05
lock or dword [rcx + 0x14], 0x10
jmp 0x180096ff5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180096f19
call fcn.18009908c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180093f74
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180094a3c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180096fe3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180096fae
mov rcx, rsi
call fcn.180093f74
cmp eax, edi
je 0x180096f99
mov rcx, rsi
call fcn.180093f74
cmp eax, 0xfffffffe
je 0x180096f99
mov rcx, rsi
call fcn.180093f74
movsxd rbx, eax
lea r14, [0x1800ec770]
mov rcx, rsi
sar rbx, 6
call fcn.180093f74
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180096fa0
lea rdx, [0x1800d2420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180096fae
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x180096fd2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x180096fd2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x180096fd2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x180096ff8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18009c12c
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 0x18009c15c
xor eax, eax
jmp 0x18009c21f
mov rbp, rbx
cmp word [rax], si
je 0x18009c181
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18009c168
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18009c164
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.180097d00
movsxd r14, eax
test eax, eax
jne 0x18009c1bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18009c155
mov rcx, r14
call fcn.180092c58
mov rdi, rax
test rax, rax
jne 0x18009c1d8
xor ecx, ecx
call fcn.180091cf4
jmp 0x18009c1b4
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.180097d00
test eax, eax
jne 0x18009c209
mov rcx, rdi
call fcn.180091cf4
jmp 0x18009c213
xor ecx, ecx
call fcn.180091cf4
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 0x18009c23c
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 0x18009c2c3
mov rsi, rbx
cmp word [rax], bp
je 0x18009c282
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18009c26c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18009c268
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180092c58
mov rdi, rax
test rax, rax
je 0x18009c2b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800749b0
mov rbp, rdi
xor ecx, ecx
call fcn.180091cf4
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 0x1800a413c
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.18007eb20
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800a41c6
cmp byte [rbp - 0x21], r15b
je 0x1800a41c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800a41fc
call fcn.180091ff8
test eax, eax
jne 0x1800a41e8
cmp byte [rbp - 0x21], r15b
je 0x1800a41e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800a41fc
cmp byte [rbp - 0x21], r15b
je 0x1800a41f9
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.180087ff4
test eax, eax
jne 0x1800a429c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18007eb20
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800a423b
cmp byte [rbp - 0x21], r15b
je 0x1800a4270
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800a4270
call fcn.180091ff8
test eax, eax
jne 0x1800a425c
cmp byte [rbp - 0x21], r15b
je 0x1800a4255
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800a4270
cmp byte [rbp - 0x21], r15b
je 0x1800a426d
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.180087ff4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800a429c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800a429f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800a42ad
mov rcx, rdi
call fcn.180091cf4
cmp byte [rbp + 0x3f], r15b
je 0x1800a42bc
mov rcx, qword [rbp + 0x27]
call fcn.180091cf4
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 0x1800a511c
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.1800944ec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800944ec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800a526c
cmp rax, 0xffffffffffffffff
je 0x1800a526c
xor edi, edi
test rbp, rbp
jle 0x1800a5217
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180091c7c
mov rbx, rax
test rax, rax
jne 0x1800a51a4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800a520d
mov edx, 0x8000
mov ecx, r14d
call fcn.1800a4fa4
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.180095e58
cmp eax, 0xffffffff
je 0x1800a51ed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800a51b4
mov edx, r15d
mov ecx, r14d
call fcn.1800a4fa4
jmp 0x1800a520d
cmp byte [rsi + 0x38], dil
je 0x1800a5204
cmp dword [rsi + 0x34], 5
jne 0x1800a5204
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800a520d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180091cf4
jmp 0x1800a5280
jns 0x1800a5280
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800944ec
cmp rax, 0xffffffffffffffff
jne 0x1800a5238
cmp byte [rsi + 0x30], dil
je 0x1800a5280
mov edi, dword [rsi + 0x2c]
jmp 0x1800a5280
mov ecx, r14d
call fcn.18009fdd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800a5280
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800a5280
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800a5279
mov eax, dword [rsi + 0x2c]
jmp 0x1800a527e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800944ec
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 0x1800a58a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800a58c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800a58c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140017cf0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x140017d1d
xor al, al
jmp 0x140017e7f
mov rax, qword [0x1400376c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400376c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400376d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400376d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400376e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400376e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400376f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400376f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140037700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140017e71
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140017dc9
mov r11d, 2
jmp 0x140017ded
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140017de3
mov r11d, 1
jmp 0x140017ded
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140017e95
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140017e32
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x140017e4a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x140017e5a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140017e68
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140017db0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x140017e7a
Function at 0x14001d6b0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
push rsi
push r13
sub rsp, 0xf0
movzx r13d, r9b
mov rbx, r8
mov rsi, rcx
test r9b, r9b
jne 0x14001d6e0
call fcn.14001c640
test al, al
jne 0x14001d6e0
add rsp, 0xf0
pop r13
pop rsi
pop rbx
ret
mov qword [rsp + 0x118], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
mov qword [rsp + 0x120], r12
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
call fcn.140026e44
mov r12, rax
test rbx, rbx
je 0x14001d943
lea r9, [rsp + 0x20]
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140017ea0
test al, al
je 0x14001d943
xor edi, edi
xor al, al
mov qword [rsp + 0x110], rbp
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x88], 0x67452301
mov dword [rsp + 0x84], edi
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x8c], 0xefcdab89
mov dword [rsp + 0x90], 0x98badcfe
mov dword [rsp + 0x94], 0x10325476
mov dword [rsp + 0x98], 0xc3d2e1f0
mov byte [rsp + 0x30], al
mov rbx, rdi
test rbp, rbp
je 0x14001d7e9
nop
movzx eax, byte [rbx + r12]
mov byte [rsp + rcx + 0x40], al
mov rcx, qword [rsp + 0x38]
inc rcx
add dword [rsp + 0x84], 8
mov qword [rsp + 0x38], rcx
jne 0x14001d7c7
inc dword [rsp + 0x80]
cmp rcx, 0x40
jne 0x14001d7dc
lea rcx, [rsp + 0x30]
call fcn.140018150
mov rcx, qword [rsp + 0x38]
inc rbx
cmp rbx, rbp
jb 0x14001d7a0
movzx eax, byte [rsp + 0x30]
mov rbp, qword [rsp + 0x110]
mov r8d, 0x40
mov qword [rsp + 0x20], r8
test al, al
jne 0x14001d87f
mov byte [rsp + rcx + 0x40], pe_nt_image_headers64
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
cmp rax, 0x38
jbe 0x14001d83b
cmp rax, r8
jae 0x14001d82c
lea rcx, [rsp + rax + 0x40]
sub r8, rax
xor edx, edx
call fcn.14002c4f0
lea rcx, [rsp + 0x30]
call fcn.140018150
mov rax, qword [rsp + 0x38]
cmp rax, 0x38
jae 0x14001d856
mov r8d, 0x38
lea rcx, [rsp + rax + 0x40]
xor edx, edx
sub r8, rax
call fcn.14002c4f0
mov eax, dword [rsp + 0x80]
lea rcx, [rsp + 0x30]
bswap eax
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x84]
bswap eax
mov dword [rsp + 0x7c], eax
call fcn.140018150
mov byte [rsp + 0x30], 1
mov rcx, rdi
mov eax, dword [rsp + rcx*4 + 0x88]
inc rcx
bswap eax
mov dword [rsp + rcx*4 + 0x98], eax
cmp rcx, 5
jb 0x14001d882
lea r9, [rsp + 0x20]
lea r8, [rsp + 0xb0]
lea rcx, [rsp + 0x9c]
mov edx, 0x14
call fcn.140017cf0
mov rdx, qword [rsp + 0x20]
mov rcx, r12
mov byte [rsp + rdx + 0xb0], dil
call fcn.1400276b8
test r13b, r13b
lea rax, [0x140037a58]
lea rcx, [0x140037a70]
cmovne rcx, rax
cmp byte [rsi + 8], dil
je 0x14001d8fa
nop word [rax + rax]
inc rdi
cmp byte [rsi + rdi + 8], 0
jne 0x14001d8f0
movzx eax, byte [rcx]
test al, al
je 0x14001d91a
cmp rdi, 0x800
jae 0x14001d91a
inc rcx
mov byte [rsi + rdi + 8], al
inc rdi
mov al, byte [rcx]
test al, al
jne 0x14001d901
lea rdx, [rsp + 0xb0]
mov r8b, 1
mov rcx, rsi
mov byte [rdi + rsi + 8], 0
call fcn.14001cda0
test r13b, r13b
je 0x14001d93f
mov rcx, rsi
call fcn.14001ced0
mov al, 1
jmp 0x14001d94d
mov rcx, r12
call fcn.1400276b8
xor al, al
mov rdi, qword [rsp + 0x118]
mov r12, qword [rsp + 0x120]
add rsp, 0xf0
pop r13
pop rsi
pop rbx
ret
Function at 0x140220b98
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
syscall
ret
Function at 0x1400110dc
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001c810
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400350f4]
call fcn.1400118e8
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001c867
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001c973
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001c90c
cmp qword [rbp + 0x28], 0
jle 0x14001c90c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001c8ac
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011866
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001c962
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001c962
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011528
Capabilities:
Terminate process

Disassembly:
jmp 0x14001fe60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011659
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001f210
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001f230
xor al, al
jmp 0x14001f2b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001f243
xor al, al
jmp 0x14001f2b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001f26d
xor al, al
jmp 0x14001f2b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001f281
xor al, al
jmp 0x14001f2b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001f293
xor al, al
jmp 0x14001f2b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001f2af
xor al, al
jmp 0x14001f2b1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001169f
Capabilities:
Hide graphical window

Disassembly:
jmp 0x14001c9e0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x228]
mov rax, qword [0x14002d048]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x1400350ff]
call fcn.1400118e8
lea rax, [rbp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
lea rax, str.Nguy
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0x1c0]
mov qword [rbp + 0x98], rax
mov ecx, 0xf
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov qword [rbp + 0xb0], rax
lea rax, [0x140011537]
mov qword [rbp + 0x88], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x1c0]
mov qword [0x14002d718], rax
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_RegisterClassW]
movzx eax, ax
test eax, eax
jne 0x14001cae0
mov r9d, 0x10
lea r8, str.NguyenThuaNam
lea rdx, str.This_program_requires_Windows_NT
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14001cb90
mov qword [rsp + 0x58], 0
mov rax, qword [rbp + 0x1c0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0xfa
mov dword [rsp + 0x28], 0x96
mov dword [rsp + 0x20], 0x96
mov r9d, 0x10cf0000
lea r8, str.3.5___Nguy
mov rdx, qword [rbp + 0xc0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbp + 8], rax
mov edx, dword [rbp + 0x1d8]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14001cb8d
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x28]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14001cb61
mov eax, dword [rbp + 0x38]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140026e70]
call fcn.14001176c
mov rax, rdi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.140011460
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret