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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140054867
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140054867
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140054867
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140054867
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140054867
cmp dword [rcx + 0x84], 0xe
jbe 0x140054867
cmp dword [rcx + 0xf8], 0
je 0x140054867
mov ecx, ebx
call fcn.140054908
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400546f8
cmp dword [rbp + 0x20], 0
je 0x1400548b4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400548bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140054800
Function at 0x140066bc8
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140066ba5
call fcn.14005559c
mov dword [rax], 0x16
call fcn.14004e034
or eax, 0xffffffff
jmp 0x140066bc2
sub dword [rcx + 0x10], 1
jns 0x140066bb4
add rsp, 0x28
jmp 0x14006f67c
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140066b84
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x14006f6ae
call fcn.14005559c
mov dword [rax], 0x16
call fcn.14004e034
jmp 0x14006f7cb
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14006f7cb
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14006f7cb
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14006f6dd
lock or dword [rcx + 0x14], 0x10
jmp 0x14006f7cb
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14006f6f1
call fcn.14006df10
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.1400504b4
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.14006e520
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14006f7b9
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x14006f784
mov rcx, rdi
call fcn.1400504b4
cmp eax, esi
je 0x14006f76f
mov rcx, rdi
call fcn.1400504b4
cmp eax, 0xfffffffe
je 0x14006f76f
mov rcx, rdi
call fcn.1400504b4
movsxd rbx, eax
lea r14, [0x1400990a0]
mov rcx, rdi
sar rbx, 6
call fcn.1400504b4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14006f776
lea rdx, [0x1400965d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006f784
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x14006f7a8
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x14006f7a8
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x14006f7a8
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x14006f7ce
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14006f7e8
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14006f50e
call fcn.14005559c
mov dword [rax], 0x16
call fcn.14004e034
jmp 0x14006f659
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14006f659
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14006f659
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14006f53d
lock or dword [rcx + 0x14], 0x10
jmp 0x14006f659
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14006f551
call fcn.14006df10
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14006f561
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14006f564
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1400504b4
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14006e520
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14006f647
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14006f5f5
mov rcx, rbx
call fcn.1400504b4
cmp eax, 0xffffffff
je 0x14006f5e0
mov rcx, rbx
call fcn.1400504b4
cmp eax, 0xfffffffe
je 0x14006f5e0
mov rcx, rbx
call fcn.1400504b4
movsxd rdi, eax
lea r14, [0x1400990a0]
mov rcx, rbx
sar rdi, 6
call fcn.1400504b4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14006f5e7
lea rdx, [0x1400965d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006f5f5
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14006f619
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14006f619
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14006f619
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14006f637
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14006f642
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14006f65e
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14006f4d8
Function at 0x140b0c0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140b0c237
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 0x140b0c0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b0c0c7
add dl, dl
jne 0x140b0c0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b0c14e
xor eax, eax
add dl, dl
jne 0x140b0c0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b0c205
add dl, dl
jne 0x140b0c10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b0c11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b0c128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b0c135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b0c142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b0c0d6
mov eax, 1
add dl, dl
jne 0x140b0c15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b0c16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b0c153
sub eax, ebx
mov ebx, 1
jne 0x140b0c1a4
mov ecx, 1
add dl, dl
jne 0x140b0c186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b0c193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b0c17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b0c0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b0c1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b0c1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b0c1b5
cmp eax, 0x7d00
jae 0x140b0c1f3
cmp eax, 0x500
jb 0x140b0c1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b0c0d6
cmp eax, 0x7f
ja 0x140b0c1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b0c0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b0c22a
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 0x140b0c0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x1400033d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000341a
mov ecx, _set_fmode
cmp word [rax], cx
jne 0x14000341a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000341a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000341a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000341a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000341c
xor al, al
add rsp, 0x28
ret
Function at 0x140039320
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003932d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003933d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140039325
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140039355
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140039342
sub eax, 3
jb 0x14003936f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400393a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140039396
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140039394
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140039383
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400392e2
jmp 0x14003932d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400393f2
cmp rsi, rcx
jae 0x1400393fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400393d9
cmp al, 0x8f
ja 0x1400393d9
cmp byte [rsi - 2], 0xf
je 0x1400393df
sub al, 0xe8
cmp al, 1
ja 0x1400393c3
cmp rsi, rcx
jae 0x1400393fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400393c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400393fa
lodsb al, byte [rsi]
jmp 0x1400393d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x37000]
mov eax, dword [rdi]
or eax, eax
je 0x140039463
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3dbac]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140039407
jns 0x14003943c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140039446
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003945d
mov qword [rbx], rax
add rbx, 8
jmp 0x140039427
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400394bb
sub rsp, 0xffffffffffffff80
jmp 0x140023590
Function at 0x2fc4c5440
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 0x2fc4c5e42
Capabilities:
Get thread local storage value

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

Function at 0x2fc4c5fe0
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 0x2fc4c6008
mov eax, 0
jmp 0x2fc4c6056
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 0x2fc4c6031
mov eax, 0
jmp 0x2fc4c6056
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 0x2fc4c6051
mov eax, 0
jmp 0x2fc4c6056
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c605c
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 0x2fc4c60da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c60d1
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 0x2fc4c60d1
mov rax, qword [rbp - 8]
jmp 0x2fc4c60ef
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 0x2fc4c60a4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000a008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000a008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001110
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000115b
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000115b
mov edx, 0x8664
cmp word [rax + 4], dx
jne 0x14000115b
mov edx, 0x20b
cmp word [rax + 0x18], dx
jne 0x14000115b
cmp dword [rax + 0x84], 0
jbe 0x14000115b
cmp dword [rax + 0x8c], 0
je 0x14000115b
mov eax, dword [rax + 0x88]
add rax, rcx
ret
xor eax, eax
ret

Function at 0x1400013f0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x60]
mov rbx, rcx
mov rcx, qword [rcx + 0x1d8]
mov edx, 0x2000
mov r9d, dword [rax + 0x28]
add r9, rcx
test word [rax + 0x16], dx
je 0x1400014ab
xor r8d, r8d
lea edx, [r8 + 1]
call r9
mov rcx, qword [rbx + 0x1d8]
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x140001439
xor edx, edx
jmp 0x14000148d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x14000144c
xor edx, edx
jmp 0x14000148d
mov edx, 0x8664
cmp word [rax + 4], dx
je 0x14000145b
xor edx, edx
jmp 0x14000148d
mov edx, 0x20b
cmp word [rax + 0x18], dx
je 0x14000146a
xor edx, edx
jmp 0x14000148d
cmp dword [rax + 0x84], 0
ja 0x140001477
xor edx, edx
jmp 0x14000148d
cmp dword [rax + 0x8c], 0
jne 0x140001484
xor edx, edx
jmp 0x14000148d
mov edx, dword [rax + 0x88]
add rdx, rcx
mov r9d, 0xb8aed8ec
mov r8d, 0xcf6d3371
call fcn.140001160
test rax, rax
je 0x1400014b3
add rsp, 0x20
pop rbx
jmp rax
add rsp, 0x20
pop rbx
jmp r9
add rsp, 0x20
pop rbx
ret
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400055a0]
mov dword [rax], 1
mov rax, qword [0x1400055b0]
mov dword [rax], 1
mov rax, qword [0x1400055c0]
mov dword [rax], 1
mov rax, qword [0x140005560]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
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 0x1400014fc
mov eax, 0
jmp 0x14000157d
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 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001d40
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov byte [rbp - 1], 0
movsx eax, byte [rbp - 1]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
cwde
and eax, 1
test eax, eax
setne al
test al, al
je 0x140001dba
movsx edx, byte [rbp - 1]
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.SpecialKeys_abi:cxx11__char_
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.savedImputFile_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x140001d76

Function at 0x140002250
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 0x140002f22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x140002fba
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x140002f9e
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 0x140002f92
cmp qword [rbp - 0x10], 0
je 0x140002f92
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 0x140002f58
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002fbb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400030c0
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 0x1400030e8
mov eax, 0
jmp 0x140003136
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 0x140003111
mov eax, 0
jmp 0x140003136
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 0x140003131
mov eax, 0
jmp 0x140003136
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000313c
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 0x1400031ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400031b1
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 0x1400031b1
mov rax, qword [rbp - 8]
jmp 0x1400031cf
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 0x140003184
mov eax, 0
add rsp, 0x20
pop rbp
ret