joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401992a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov rbx, rcx
mov ecx, 0x104
xor edi, edi
mov rsi, rdx
cmp eax, ecx
ja 0x140199441
je 0x140199466
sub eax, 0xa1
je 0x140199466
sub eax, 1
je 0x140199466
sub eax, 2
je 0x140199466
sub eax, 1
je 0x140199466
sub eax, 2
je 0x140199466
sub eax, 1
je 0x140199466
cmp eax, 0x58
jne 0x1401994b1
cmp dword [rbx + 0x154], 0xffffffff
je 0x140199466
lea ecx, [rdi + 0x11]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140199466
mov rax, qword [rsi + 0x10]
sub rax, 0x21
je 0x14019939b
cmp rax, 1
jne 0x140199466
mov eax, dword [rbx + 0x154]
mov r8d, dword [rbx + 0x150]
lea esi, [rax + 1]
add eax, r8d
cmp esi, eax
jge 0x1401994cf
mov eax, esi
mov rcx, rbx
cdq
idiv r8d
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [str.pD__]
test eax, eax
jne 0x1401993e3
mov ecx, dword [rbx + 0x154]
inc esi
mov r8d, dword [rbx + 0x150]
add ecx, r8d
cmp esi, ecx
jl 0x140199361
jmp 0x1401994cf
mov ecx, dword [rbx + 0x154]
lea esi, [rcx - 1]
add esi, dword [rbx + 0x150]
cmp esi, ecx
jle 0x1401994cf
mov eax, esi
mov rcx, rbx
cdq
idiv dword [rbx + 0x150]
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [str.pD__]
test eax, eax
jne 0x1401993e3
dec esi
cmp esi, dword [rbx + 0x154]
jg 0x1401993b2
jmp 0x1401994cf
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
mov dword [rbx + 0x3b8], 1
mov rax, qword [rax + 0x428]
call qword [str.pD__]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x420]
call qword [str.pD__]
mov rcx, rax
call fcn.1400a6584
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x154]
mov rax, qword [rax + 0x4e0]
call qword [str.pD__]
mov dword [rbx + 0x3b8], edi
jmp 0x1401994cf
sub eax, 0x200
je 0x140199466
sub eax, 1
je 0x140199466
sub eax, 1
je 0x140199466
sub eax, 2
je 0x140199466
sub eax, 1
je 0x140199466
sub eax, 2
je 0x140199466
cmp eax, 1
jne 0x1401994b1
mov rax, qword [rbx + 0x1c0]
mov ebp, 0x407
test rax, rax
je 0x14019948e
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14019948e
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx + 0x1b8]
test rax, rax
je 0x1401994b1
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1401994b1
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rsi + 8], 0x203
jne 0x1401994d6
lea rax, [rbx + 0x3208]
test rax, rax
je 0x1401994ca
mov rdi, qword [rax + 0x40]
cmp qword [rsi], rdi
jne 0x1401994d6
mov eax, 1
jmp 0x1401994e1
mov rdx, rsi
mov rcx, rbx
call fcn.14010f790
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401cc988
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx + 8], 0x100
mov rdi, rdx
mov rbx, rcx
jne 0x1401cca96
cmp qword [rdx + 0x10], 9
je 0x1401cc9cc
cmp qword [rdx + 0x10], 0x1b
jne 0x1401cca20
call fcn.14009fcb8
test rax, rax
je 0x1401cca20
mov rcx, rbx
call fcn.14009fcb8
jmp 0x1401cca0e
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14009f6a4
test rax, rax
je 0x1401cca20
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14009f6a4
mov rdx, qword [rbx + 0x40]
xor r8d, r8d
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call fcn.14009f6a4
mov rcx, rax
call fcn.1400a6584
mov eax, 1
jmp 0x1401ccaa1
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.14009f6a4
cmp rax, rbx
jne 0x1401cca96
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1401cca96
mov rax, qword [rdi + 0x10]
cmp rax, 0x2e
je 0x1401cca8f
cmp rax, 0x43
je 0x1401cca88
cmp rax, 0x56
je 0x1401cca71
cmp rax, 0x58
je 0x1401cca6a
cmp rax, 0x5a
jne 0x1401cca96
lea edx, [rax + 0x6d]
jmp 0x1401cca76
mov edx, 0x300
jmp 0x1401cca76
mov edx, 0x302
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1401cca16
mov edx, 0x301
jmp 0x1401cca76
mov edx, 0x303
jmp 0x1401cca76
mov rdx, rdi
mov rcx, rbx
call fcn.1401dc4a0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401d068c
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x1401d07c1
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1401d07c1
cmp ebx, 0x43
je 0x1401d06d8
cmp ebx, 0x2d
jne 0x1401d07c1
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1401d07c1
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.140083d6c
mov rcx, rax
test rax, rax
je 0x1401d07de
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [str.pD__]
add rax, 0x18
mov qword [rsp + 0x58], rax
movzx eax, byte [rbp + 0x196]
movzx r9d, byte [rbp + 0x195]
movzx r8d, byte [rbp + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x58]
call fcn.140005bcc
mov rbx, qword [rsp + 0x58]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x1401d0798
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1401d0798
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r14
mov ecx, SafeArrayGetDim
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1401d07c1
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [str.pD__]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.140002e3c
int3
Function at 0x1401e8d98
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x310
mov rax, qword [0x14031b940]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x38], rdx
mov rax, r8
mov rbx, rdx
test r8, r8
je 0x1401e8e17
mov rcx, qword [rax + 8]
lea r8, [rsp + 0x40]
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x208
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, rbx
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x1401e8df6
lea rdx, [0x1402ab400]
call fcn.140003b30
mov rax, rbx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140220eb0
add rsp, 0x310
pop rbx
ret
call fcn.140084b30
int3

Function at 0x1401ee5ac
Capabilities:
Check if file exists
Get common file path
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, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140240270
test eax, eax
jne 0x1401ee610
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14009b25c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401ee5d0
jmp 0x1401ee622
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140200aac
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140200b6d
mov esi, 0x811c9dc5
xor ebx, ebx
mov rcx, rdx
call fcn.14022f854
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x140200b10
movzx ecx, word [rdi + rbx*2]
imul esi, esi, 0x1000193
xor esi, ecx
add ebx, edx
cmp ebx, r8d
jb 0x140200afd
mov dword [r14], esi
xor edx, edx
mov eax, esi
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140200b4d
mov rbx, qword [rbx + rdx*8]
jmp 0x140200b48
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x140200b45
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.1402387bc
nop
test eax, eax
je 0x140200b68
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140200b2c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rax, rbx
jmp 0x140200b4f
call fcn.140084b30
int3

Function at 0x140221ab0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140221afa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140221afa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140221afa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140221afa
cmp dword [rcx + 0x84], 0xe
jbe 0x140221afa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140221afc
xor al, al
add rsp, 0x28
ret
Function at 0x14023f6ac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1402217d0
sub rsp, rax
mov rax, qword [0x14031b940]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14023ed3c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14023f6fb
mov rax, rbp
jmp 0x14023f803
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x32a640]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14024bd94
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32a640]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14023f7ff
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14023f7ff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14024bd94
test rax, rax
js 0x14023f7ff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14023f7ff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14023f7f1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14023f7f1
cmp byte [rcx], 0xd
jne 0x14023f7d7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14023f7e6
cmp byte [rcx + 1], 0xa
jne 0x14023f7e6
inc rcx
jmp 0x14023f7e6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x31bf70]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14023f7b9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14023f803
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140220eb0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14024168c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14024147c
Function at 0x14024ab54
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14024ab31
call fcn.14022a79c
mov dword [rax], 0x16
call fcn.14022a630
or eax, 0xffffffff
jmp 0x14024ab4e
sub dword [rcx + 0x10], 1
jns 0x14024ab40
add rsp, 0x28
jmp fcn.14024b9b0
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14024ab10

Function at 0x14024adf4
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, [0x14032a640]
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 0x14024ae52
cmp word [rdx], r12w
jne 0x14024ae52
or byte [rax + r8*8 + 0x38], cl
jmp 0x14024ae58
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14024afb3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14024af8e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14024ae91
mov rcx, r9
jmp 0x14024aeb4
cmp r9, rdx
jae 0x14024aecb
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 0x14024ae75
jmp 0x14024afb3
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 0x14024af88
cmp dword [rsp + 0x80], edi
je 0x14024af88
mov rdx, r14
lea r11, [0x14032a640]
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 0x14024af61
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14024af34
mov word [rbx], r12w
jmp 0x14024afaf
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 0x14024af3d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14024afaf
cmp word [rsp + 0x70], r12w
jne 0x14024af6e
cmp rbx, rsi
je 0x14024af2e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14024bd9c
cmp word [rsp + 0x70], r12w
je 0x14024afb3
mov word [rbx], r13w
jmp 0x14024afaf
lea r11, [0x14032a640]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14024afab
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14024afb3
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 0x14024b9b0
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 0x14024b9e2
call fcn.14022a79c
mov dword [rax], 0x16
call fcn.14022a630
jmp 0x14024bb01
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14024bb01
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14024bb01
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14024ba11
lock or dword [rcx + 0x14], 0x10
jmp 0x14024bb01
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14024ba25
call fcn.1402528f4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14023ed3c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14024b2a0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14024baef
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14024baba
mov rcx, rsi
call fcn.14023ed3c
cmp eax, edi
je 0x14024baa5
mov rcx, rsi
call fcn.14023ed3c
cmp eax, 0xfffffffe
je 0x14024baa5
mov rcx, rsi
call fcn.14023ed3c
movsxd rbx, eax
lea r14, [0x14032a640]
mov rcx, rsi
sar rbx, 6
call fcn.14023ed3c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14024baac
lea rdx, [0x14031bd80]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14024baba
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14024bade
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14024bade
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14024bade
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 0x14024bb04
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 0x14024bb1c
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 0x14024b83e
call fcn.14022a79c
mov dword [rax], 0x16
call fcn.14022a630
jmp 0x14024b98e
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14024b98e
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14024b98e
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14024b86d
lock or dword [rcx + 0x14], 0x10
jmp 0x14024b98e
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14024b881
call fcn.1402528f4
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14024b891
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14024b894
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14023ed3c
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14024b2a0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14024b97c
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14024b927
mov rcx, rbx
call fcn.14023ed3c
cmp eax, 0xffffffff
je 0x14024b912
mov rcx, rbx
call fcn.14023ed3c
cmp eax, 0xfffffffe
je 0x14024b912
mov rcx, rbx
call fcn.14023ed3c
movsxd rdi, eax
lea rsi, [0x14032a640]
mov rcx, rbx
sar rdi, 6
call fcn.14023ed3c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14024b919
lea rdx, [0x14031bd80]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14024b927
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14024b94b
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14024b94b
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14024b94b
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14024b969
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14024b974
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14024b993
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 0x14024b808
Function at 0x14024cf68
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 0x14024cfef
mov rsi, rbx
cmp word [rax], bp
je 0x14024cfae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14024cf98
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14024cf94
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140244c9c
mov rdi, rax
test rax, rax
je 0x14024cfdc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402544d0
mov rbp, rdi
xor ecx, ecx
call fcn.140244c60
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 0x140254220
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140254248
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140254248
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4d3950
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 0x2fc4d4352
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d43ea
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d43ce
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 0x2fc4d43c2
cmp qword [rbp - 0x10], 0
je 0x2fc4d43c2
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 0x2fc4d4388
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d43eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d44f0
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 0x2fc4d4518
mov eax, 0
jmp 0x2fc4d4566
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 0x2fc4d4541
mov eax, 0
jmp 0x2fc4d4566
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 0x2fc4d4561
mov eax, 0
jmp 0x2fc4d4566
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d456c
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 0x2fc4d45ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d45e1
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 0x2fc4d45e1
mov rax, qword [rbp - 8]
jmp 0x2fc4d45ff
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 0x2fc4d45b4
mov eax, 0
add rsp, 0x20
pop rbp
ret