joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048f50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400e5080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x140049042
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140022310
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140022310
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.14007f724
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140022310
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.140022310
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14004f8b0]
xor edx, edx
xor ecx, ecx
call fcn.14008fabc
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140049085
lea rcx, [rsp + 0x60]
call fcn.1400490b0
cmp dword [rsp + 0x38], 0
je 0x140049098
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.14007ea60
test eax, eax
jne 0x140049098
jmp 0x140049064
cmp qword [rdx + 0x18], 7
jbe 0x14004904c
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x140049056
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007f6d0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.14007e22c
nop
mov ecx, 1
call fcn.14007e22c
int3

Function at 0x140049170
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400e5080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x34], ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bp
jne 0x1400491e0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400085c0
mov dword [rsp + 0x34], 1
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xd
jb 0x140049243
lea rsi, [rcx + 0xd]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x140049227
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x1a
lea rdx, [0x1400cdee0]
call fcn.1400a3c80
mov word [rdi + rsi*2], bp
jmp 0x140049266
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, [0x1400cdee0]
movzx r8d, byte [rsp + 0x30]
mov edx, SafeArrayDestroy
mov rcx, rbx
call fcn.140025a20
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14007f6d0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400492a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e5080]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebp, ebp
lea rcx, [rsp + 0x58]
call fcn.140049170
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x17
jb 0x140049319
lea rsi, [rcx + 0x17]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x1400492fd
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x2e
lea rdx, str._trainer_settingsdebug
call fcn.1400a3c80
mov word [rdi + rsi*2], bp
jmp 0x14004933f
mov qword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayUnaccessData
lea r9, str._trainer_settingsdebug
movzx r8d, byte [rsp + 0x30]
mov edx, reloc.OLEAUT32.dll_SafeArrayUnaccessData
mov rcx, rbx
call fcn.140025a20
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x1400493cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400493ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004944f
call fcn.14007f6f0
movdqa xmm0, xmmword [0x1400d3aa0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], bp
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140049420
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004941b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049449
call fcn.14007f6f0
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007f6d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140086604
nop
call fcn.140086604
nop
int3
Function at 0x140057b10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400e5080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx edi, r8b
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.14001a360
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400e9770]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14001a360
mov byte [rsp + 0xa0], dil
mov qword [rsp + 0xa8], rbx
lea ecx, [rbp + 0x30]
call fcn.14007f724
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x90]
movups xmmword [rax + 0x10], xmm1
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsp + 0x80], bpl
mov byte [rax + 0x20], dil
mov qword [rax + 0x28], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140043770]
xor edx, edx
xor ecx, ecx
call fcn.14008fabc
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140057c94
cmp dword [rsp + 0x48], ebp
je 0x140057c89
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.14007ea60
test eax, eax
jne 0x140057c89
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140057c51
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140057c4c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140057ca3
mov rcx, r8
call fcn.14007f6f0
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsi], 0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007f6d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 1
call fcn.14007e22c
nop
mov dword [rsp + 0x48], ebp
mov ecx, 6
call fcn.14007e22c
nop
call fcn.140086604
int3
Function at 0x140059a30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
sub rsp, 0x58
mov rcx, qword [0x1400e9770]
test rcx, rcx
je 0x140059b28
mov rcx, qword [rcx + 8]
lea r9, [rax + 8]
mov qword [rax - 8], rbx
lea rdx, [rax + 0x10]
xor ebx, ebx
mov dword [rax + 0x10], 0xa
mov dword [rax + 8], ebx
mov qword [rax - 0x38], rbx
lea r8d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x1400ce640]
lea rdx, [rsp + 0x30]
movsd xmm0, qword [str.SAVE_SETTINGS]
mov rcx, qword [0x1400e9770]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400ce644]
mov byte [rsp + 0x3c], al
mov word [rsp + 0x3e], bx
mov qword [rsp + 0x40], SafeArrayDestroy
mov qword [rsp + 0x48], reloc.OLEAUT32.dll_SafeArrayDestroy
movsd qword [rsp + 0x30], xmm0
mov byte [rsp + 0x3d], bl
call fcn.140036510
mov rcx, qword [0x1400e9770]
lea r9, [rsp + 0x68]
lea r8d, [rbx + 4]
mov dword [rsp + 0x60], ebx
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], 1
jne 0x140059b23
mov rcx, qword [0x1400e9770]
lea r9, [rsp + 0x70]
lea r8d, [rbx + 4]
mov dword [rsp + 0x78], ebx
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
Function at 0x14005dc60
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400e5080]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov rax, qword [0x1400e8ce8]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0xa0]
call rax
mov rbx, rax
test rax, rax
jne 0x14005ddf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14005e980
nop
lea r8, [0x1400e9160]
cmp qword [0x1400e9178], 7
cmova r8, qword [0x1400e9160]
mov r9, qword [0x1400e9170]
mov rcx, rax
call fcn.140035e90
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x1400e8f40]
cmp qword [0x1400e8f58], 7
cmova r8, qword [0x1400e8f40]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14005dd98
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005dd93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005de39
call fcn.14007f6f0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x14005ddec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005dde7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005de33
call fcn.14007f6f0
xor al, al
jmp 0x14005de12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14007f6d0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140086604
nop
call fcn.140086604
nop
int3
Function at 0x14006a2d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ebp, r9d
xor ecx, ecx
mov rdi, r8
mov rsi, rdx
cmp r8, 0xffffffffffffffff
jne 0x14006a323
movzx eax, byte [rdx]
mov edi, ecx
test al, al
je 0x14006a317
imul ecx, ecx, 0x1003f
inc rdi
movzx eax, al
add ecx, eax
movzx eax, byte [rdx + rdi]
test al, al
jne 0x14006a301
test rdi, rdi
jne 0x14006a34f
xor eax, eax
jmp 0x14006a3d2
mov rdx, rcx
test r8, r8
je 0x14006a317
nop dword [rax + rax]
movzx eax, byte [rdx + rsi]
test al, al
je 0x14006a34a
imul ecx, ecx, 0x1003f
inc rdx
add ecx, eax
cmp rdx, r8
jb 0x14006a330
jmp 0x14006a317
mov ecx, 0x11
mov eax, dword [rbx + 0x128]
mov edx, ecx
xor edx, ebp
mov qword [rsp + 0x30], r14
mov r14d, 0xffffffff
cmp ebp, r14d
cmove edx, ecx
movzx ecx, byte [rbx + 0x12c]
imul rax, rdx
shr rax, cl
imul eax, dword [rbx + 0x120]
mov rbx, qword [rbx + 0x110]
sub edx, eax
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14006a3ca
mov eax, dword [rbx + 0x30]
cmp eax, edi
jne 0x14006a3b9
cmp dword [rbx + 0x14], ebp
jne 0x14006a3b9
lea rcx, [rbx + 0x34]
cmp eax, 0xb
jbe 0x14006a3aa
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.1400a3b80
test eax, eax
je 0x14006a3c1
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006a391
test rbx, rbx
je 0x14006a3ca
mov r14d, dword [rbx + 0xc]
mov eax, r14d
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140072c10
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400e5080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [r9 + 0x10]
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
cmp rbx, 0x20
ja 0x140072d03
xor r12d, r12d
nop dword [rax + rax]
mov r10, qword [rdi + 8]
mov r9, r12
test rbx, rbx
je 0x140072c98
lea rax, [rsp + 0x20]
sub r10, rax
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov ecx, 0x20
add r8, r9
movzx edx, byte [r10 + r8]
lea eax, [rdx - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r9
xor cl, dl
mov byte [r8], cl
cmp r9, rbx
jb 0x140072c70
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400724d0
mov dword [r14], eax
test eax, eax
jne 0x140072d2b
mov rcx, qword [r15]
lea rdx, [rsp + 0x20]
mov r8, rbx
movzx ecx, byte [rcx + 0x48]
call fcn.140078140
mov dword [r14], eax
test eax, eax
jne 0x140072d2b
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400729a0
test eax, eax
je 0x140072d03
mov ecx, dword [rsi]
test eax, ecx
jne 0x140072d24
or ecx, eax
xor r8d, r8d
mov dword [rsi], ecx
mov rdx, rdi
lea rcx, [r15 + 8]
call fcn.1400781d0
cmp al, 2
jne 0x140072d03
mov rbx, qword [rdi + 0x10]
cmp rbx, 0x20
jbe 0x140072c50
mov eax, 0x1a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007f6d0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x37
jmp 0x140072d08
xor r8d, r8d
lea rcx, [r15 + 8]
mov rdx, rdi
call fcn.1400781d0
cmp al, 2
jne 0x140072da2
mov rdx, qword [rdi + 0x10]
cmp rdx, 0x20
ja 0x140072da2
mov r11, qword [rdi + 8]
mov r10, r12
test rdx, rdx
je 0x140072d8a
lea rax, [rsp + 0x20]
sub r11, rax
nop dword [rax]
lea r9, [rsp + 0x20]
mov ecx, 0x20
add r9, r10
movzx r8d, byte [r11 + r9]
lea eax, [r8 - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r10
xor cl, r8b
mov byte [r9], cl
cmp r10, rdx
jb 0x140072d60
lea rcx, [rsp + 0x20]
call fcn.1400729a0
cmp eax, 0x10
jne 0x140072da2
or dword [rsi], eax
xor eax, eax
jmp 0x140072d08
mov rax, qword [rdi + 8]
mov qword [r15 + 0x18], rax
xor eax, eax
jmp 0x140072d08
Function at 0x14007d200
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007d23a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007d23f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007d288
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400bd0c0]
cmp byte [rcx + rax], 0
je 0x14007d288
dec r8
sub rdx, 1
jne 0x14007d26e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400805dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140080626
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140080626
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140080626
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140080626
cmp dword [rcx + 0x84], 0xe
jbe 0x140080626
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140080628
xor al, al
add rsp, 0x28
ret

Function at 0x140090084
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 0x14008ff17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008ff17
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008ff17
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008ff17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008ff17
cmp dword [rcx + 0x84], 0xe
jbe 0x14008ff17
cmp dword [rcx + 0xf8], 0
je 0x14008ff17
mov ecx, ebx
call fcn.14008ffb8
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.14008fda8
cmp dword [rbp + 0x20], 0
je 0x14008ff64
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008ff6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14008feb0
Function at 0x1400a38a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a38c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a38c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x233cb1940
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.233cb7530
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.233cb7530
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x233cb19b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x233cbc064]
mov rbx, rcx
test esi, esi
jle 0x233cb1ae0
mov rax, qword [0x233cbc068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x233cb19fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x233cb1a85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x233cb19e0
mov rcx, rbx
call fcn.233cb2210
mov rdi, rax
test rax, rax
je 0x233cb1b02
mov rax, qword [0x233cbc068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.233cb2350
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x233cbc068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x233cb1ae7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x233cb1a7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x233cb1a90
add dword [0x233cbc064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x233cbc068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x233cb1a7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.233cb1940
nop dword [rax]
xor esi, esi
jmp 0x233cb1a08
mov rax, qword [0x233cbc068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.233cb1940
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.233cb1940
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x233cb1e80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x233cbc0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x233cbc080]
test rbx, rbx
je 0x233cb1edc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x233cb1ed3
test eax, eax
jne 0x233cb1ed3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x233cb1eb8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x233cb2210
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x233cb96e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x233cb2230
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x233cb2238
ret
cmp word [r8 + 0x18], 0x20b
jne 0x233cb2230
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x233cb228d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x233cb2284
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x233cb2230
add rax, 0x28
cmp rax, r9
jne 0x233cb2270
xor eax, eax
ret

Function at 0x233cb2290
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x233cb96e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x233cb22af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x233cb22b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x233cb22af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x233cb2350
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x233cb96e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x233cb236f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x233cb2378
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400013a0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rax, qword [sym.imp.MSVCR120.dll__pgmptr]
mov rcx, qword [rax]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140001466
mov eax, dword [rsp + 0x20]
mov edx, 1
mov ecx, eax
call qword [sym.imp.MSVCR120.dll_calloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140001466
mov r9, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rax, qword [sym.imp.MSVCR120.dll__pgmptr]
mov rcx, qword [rax]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x14000145b
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x14000145b
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR120.dll_free]
add rsp, 0x48
ret