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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14002eca7
call fcn.140037388
mov dword [rax], 0x16
call fcn.140032420
xor eax, eax
jmp 0x14002ed35
mov rdx, r9
mov rcx, r8
call fcn.14002ec0c
mov rbx, rax
test rax, rax
je 0x14002ed32
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14002eb38]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14002ed1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400372fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002ed06
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002ed15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003cc74
jmp 0x14002ed32
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002ed2f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400327c0
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 0x14003262b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003262b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003262b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003262b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003262b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003262b
cmp dword [rcx + 0xf8], 0
je 0x14003262b
mov ecx, ebx
call fcn.1400326dc
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.1400324b8
nop
cmp dword [rbp + 0x20], 0
je 0x140032679
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140032684
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400325bc
Function at 0x140041bcc
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.140028d90
sub rsp, rax
mov rax, qword [0x140068050]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003f4f0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140041c1b
mov rax, rbp
jmp 0x140041d23
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 + 0x6b870]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140042cec
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x6b870]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140041d1f
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 0x140041d1f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140042cec
test rax, rax
js 0x140041d1f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140041d1f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140041d11
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140041d11
cmp byte [rcx], 0xd
jne 0x140041cf7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140041d06
cmp byte [rcx + 1], 0xa
jne 0x140041d06
inc rcx
jmp 0x140041d06
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x68440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140041cd9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140041d23
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140028480
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 0x140041f44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140041f5a
mov al, 1
jmp 0x140041fba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140041f6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140041fb8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140046310
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140041fb8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140041fb8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140041fb8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140041fba
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004208c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14006b870]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400420e3
cmp word [rdx], r13w
jne 0x1400420e3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400420e8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004220d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004222e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140042121
mov rdx, r9
mov word [rbx], cx
jmp 0x140042148
cmp r9, r8
jae 0x140042158
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140042102
jmp 0x14004220d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140042202
cmp dword [rsp + 0x80], esi
je 0x140042202
lea r8, [0x14006b870]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400421da
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400421aa
mov word [rbx], r13w
jmp 0x14004220a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400421b7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004220a
cmp word [rsp + 0x70], r13w
jne 0x1400421e7
cmp rbx, r14
je 0x1400421a4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140042cf4
cmp word [rsp + 0x70], r13w
je 0x14004220d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14006b870]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140042207
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004220d
Function at 0x14004590c
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 0x14004593c
xor eax, eax
jmp 0x1400459ff
mov rbp, rbx
cmp word [rax], si
je 0x140045961
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140045948
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140045944
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.140044080
movsxd r14, eax
test eax, eax
jne 0x14004599f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140045935
mov rcx, r14
call fcn.14003e294
mov rdi, rax
test rax, rax
jne 0x1400459b8
xor ecx, ecx
call fcn.14003cc74
jmp 0x140045994
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.140044080
test eax, eax
jne 0x1400459e9
mov rcx, rdi
call fcn.14003cc74
jmp 0x1400459f3
xor ecx, ecx
call fcn.14003cc74
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 0x140048864
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003dec4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140048905
cmp ebx, dword [rsp + 0x30]
je 0x1400488fe
test esi, esi
je 0x1400488fe
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400488d9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400488e6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400488c3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400488ea
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140048907
mov eax, 1
jmp 0x140048907
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004b9ec
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.140033364
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004ba76
cmp byte [rbp - 0x21], r15b
je 0x14004ba71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004baac
call fcn.14003cfd0
test eax, eax
jne 0x14004ba98
cmp byte [rbp - 0x21], r15b
je 0x14004ba90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004baac
cmp byte [rbp - 0x21], r15b
je 0x14004baa9
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.140039ab4
test eax, eax
jne 0x14004bb4c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140033364
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004baeb
cmp byte [rbp - 0x21], r15b
je 0x14004bb20
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004bb20
call fcn.14003cfd0
test eax, eax
jne 0x14004bb0c
cmp byte [rbp - 0x21], r15b
je 0x14004bb05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004bb20
cmp byte [rbp - 0x21], r15b
je 0x14004bb1d
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.140039ab4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004bb4c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004bb4f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004bb5d
mov rcx, rdi
call fcn.14003cc74
cmp byte [rbp + 0x3f], r15b
je 0x14004bb6c
mov rcx, qword [rbp + 0x27]
call fcn.14003cc74
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 0x14004d490
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004d4b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004d4b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
nop
invalid
std
invalid
adc dword cs:[rbx - 0x42e91f69], ecx
movabs byte [0x5ce26ed36a8452e], al
clc
sub dword [rbp + 0x4d], edi
idiv byte [rdi]
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14012da20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov dword [rbp - 4], r8d
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x1c], 0
mov dword [rbp - 0x20], 0
mov rax, qword [rbp - 0x18]
mov byte [rax + 0x101], 0
mov rax, qword [rbp - 0x18]
mov byte [rax + 0x100], 0
mov dword [rbp - 0x24], 0
cmp dword [rbp - 0x24], 0x100
jae 0x14012da8b
mov eax, dword [rbp - 0x24]
mov dl, al
mov rax, qword [rbp - 0x18]
mov ecx, dword [rbp - 0x24]
mov byte [rax + rcx], dl
mov eax, dword [rbp - 0x24]
add eax, 1
mov dword [rbp - 0x24], eax
jmp 0x14012da61
mov dword [rbp - 0x24], 0
cmp dword [rbp - 0x24], 0x100
jae 0x14012db84
mov rax, qword [rbp - 0x18]
mov ecx, dword [rbp - 0x24]
movzx eax, byte [rax + rcx]
mov dword [rbp - 0x28], eax
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp - 0x1c]
movzx ecx, byte [rax + rcx]
mov edx, dword [rbp - 0x28]
mov eax, 0x10
call fcn.14012e9f0
sub rsp, rax
mov rax, rsp
mov dword [rax], 0
mov eax, dword [rax]
mov r8d, ecx
and r8d, edx
imul r8d, r8d, 0xffffffff
add eax, r8d
mov r8d, ecx
shl r8d, 0
add eax, r8d
mov r8d, edx
shl r8d, 0
add eax, r8d
mov r8d, ecx
xor r8d, edx
imul r8d, r8d, 0xffffffff
add eax, r8d
or ecx, edx
shl ecx, 0
add eax, ecx
imul eax, eax, 0xf472aafb
add eax, 0xe7438dce
imul eax, eax, 0x91f4d033
add eax, 0x33fb5ff6
add eax, dword [rbp - 0x20]
mov dword [rbp - 0x20], eax
mov eax, dword [rbp - 0x20]
and eax, 0xff
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x18]
mov ecx, dword [rbp - 0x20]
mov dl, byte [rax + rcx]
mov rax, qword [rbp - 0x18]
mov ecx, dword [rbp - 0x24]
mov byte [rax + rcx], dl
mov eax, dword [rbp - 0x28]
mov dl, al
mov rax, qword [rbp - 0x18]
mov ecx, dword [rbp - 0x20]
mov byte [rax + rcx], dl
mov eax, dword [rbp - 0x1c]
add eax, 1
mov dword [rbp - 0x1c], eax
cmp eax, dword [rbp - 4]
jb 0x14012db71
mov dword [rbp - 0x1c], 0
jmp 0x14012db76
mov eax, dword [rbp - 0x24]
add eax, 1
mov dword [rbp - 0x24], eax
jmp 0x14012da92
mov rsp, rbp
pop rbp
ret
Function at 0x14012ded0
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x6a0
lea rbp, [rsp + 0x80]
lea rcx, [rbp + 0x600]
xor edx, edx
mov r8d, 0x16
sub rsp, 0x20
call fcn.14012f4f0
add rsp, 0x20
lea rcx, [rbp + 0x600]
mov edx, 0xa
sub rsp, 0x20
call fcn.14012dd60
add rsp, 0x20
lea rdx, [rbp + 0x1e0]
mov ecx, 0x104
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add rsp, 0x20
lea r9, [rbp - 0x30]
lea rdx, [rbp + 0x600]
lea rcx, [rbp + 0x1e0]
xor r8d, r8d
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
add rsp, 0x20
mov rcx, qword [0x140160588]
mov rdx, qword [str.Nl_]
mov qword [rbp - 0x78], 0
mov rax, qword [rbp - 0x78]
mov r8, rcx
xor r8, 0xffffffffffffffff
and r8, rdx
shl r8, 0
add rax, r8
xor rdx, 0xffffffffffffffff
or rcx, rdx
shl rcx, 0
add rax, rcx
add rax, 1
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x30]
mov edx, 0x80000000
xor r8d, r8d
xor eax, eax
mov r9d, eax
sub rsp, 0x40
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
add rsp, 0x40
mov qword [rbp - 0x68], rax
mov rax, 0xffffffffffffffff
cmp qword [rbp - 0x68], rax
jne 0x14012dffe
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x20
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x618], rax
jmp 0x14012e0e6
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea rcx, [rbp - 0x30]
xor edx, edx
lea r8, [rbp - 0x60]
call rax
add rsp, 0x20
mov dword [rbp - 0x7c], eax
mov edx, dword [0x140160598]
mov r8d, dword [0x14016059c]
mov eax, 0x10
call fcn.14012e9f0
sub rsp, rax
mov eax, dword [rbp - 0x7c]
mov rcx, rsp
mov dword [rcx], 0
mov ecx, dword [rcx]
imul r9d, edx, 0xffffffff
add ecx, r9d
mov r9d, edx
xor r9d, 0xffffffff
and r9d, r8d
imul r9d, r9d, 0xffffffff
add ecx, r9d
or edx, r8d
shl edx, 0
add ecx, edx
imul ecx, ecx, 0x22204f21
add ecx, 0x348c6a07
imul ecx, ecx, 0x6b4ff4e1
add ecx, 0x565f23d9
cmp eax, ecx
jne 0x14012e0ac
mov rcx, qword [rbp - 0x68]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x618], rax
jmp 0x14012e0e6
mov rax, qword [rbp - 0x54]
mov qword [rbp - 0x70], rax
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp - 0x38]
sub rsp, 0x20
call fcn.14012de80
add rsp, 0x20
mov rcx, qword [rbp - 0x68]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x618], rax
mov rax, qword [rbp + 0x618]
lea rsp, [rbp + 0x620]
pop rbp
ret
Function at 0x14012e1e0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x90
mov r10d, dword [0x1401605a0]
mov r11d, dword [0x1401605a4]
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov esi, r10d
xor esi, r11d
shl esi, 0
add eax, esi
mov esi, r11d
xor esi, 0xffffffff
shl esi, 0
add eax, esi
mov esi, r10d
xor esi, 0xffffffff
shl esi, 0
add eax, esi
and r10d, r11d
xor r10d, 0xffffffff
imul r10d, r10d, 0xfffffffe
add eax, r10d
imul eax, eax, 0x67182b65
add eax, 0x23b3f3fa
imul eax, eax, 0x9e0e6d
add eax, 0x60bd728e
mov dword [rsp + 0x8c], eax
mov dword [rsp + 0x88], r9d
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rcx
call fcn.14012e100
xor eax, eax
mov r9d, eax
lea r8, section..text
xor eax, eax
mov rcx, r9
mov rdx, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x70]
mov edx, 0x67
lea r8, [0x140160fe0]
mov r9d, 0x64
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rsp + 0x70]
mov edx, 0x6d
lea r8, [0x1401610b0]
mov r9d, 0x64
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rsp + 0x70]
call fcn.14012e3f0
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call fcn.14012e4a0
mov edx, dword [0x1401605a8]
mov r8d, dword [0x1401605ac]
mov dword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x30]
mov r9d, edx
and r9d, r8d
imul r9d, r9d, 0xffffffff
add ecx, r9d
mov r9d, edx
xor r9d, r8d
imul r9d, r9d, 0xffffffff
add ecx, r9d
or edx, r8d
shl edx, 0
add ecx, edx
imul ecx, ecx, 0xccfc69bb
add ecx, 0xd185dffc
imul ecx, ecx, 0xb2c0f373
add ecx, 0x98402dcc
cmp eax, ecx
jne 0x14012e361
mov dword [rsp + 0x8c], 0
jmp 0x14012e3d9
mov rcx, qword [rsp + 0x70]
mov edx, 0x6d
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x38]
xor eax, eax
mov edx, eax
xor r9d, r9d
mov r8d, r9d
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0
je 0x14012e3cd
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
cmp eax, 0
jne 0x14012e3c8
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14012e376
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x8c]
add rsp, 0x90
pop rsi
ret

Function at 0x14013105c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140130e88
Function at 0x140023850
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov ebx, r8d
mov eax, 0x5cae29c7
mov r12d, 0xccbc43aa
lea r14, [rsp + 0x28]
lea r15, [0x1400596ee]
nop
cmp eax, 0xaf1b3b9
jle 0x1400238b0
cmp eax, 0x5cae29c6
jg 0x1400238f0
cmp eax, 0xaf1b3ba
je 0x14002395d
cmp eax, 0x13b01296
jne 0x140023880
cmp dword [rsp + 0x24], 0
mov eax, 0xcc45222b
cmove eax, r12d
jmp 0x140023880
cmp eax, 0xcc45222b
je 0x140023924
cmp eax, 0xccbc43aa
je 0x140023949
cmp eax, 0x28959f7
jne 0x140023880
mov r9, qword [rsp + 0x38]
mov edx, 1
mov rcx, rsi
mov r8, rbx
call fcn.140033fcc
mov eax, 0x7a4c5a90
jmp 0x140023880
cmp eax, 0x7a4c5a90
je 0x140023930
cmp eax, 0x5cae29c7
jne 0x140023880
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov rcx, r14
mov rdx, rdi
mov r8, r15
call fcn.140032734
mov dword [rsp + 0x24], eax
mov eax, 0x13b01296
jmp 0x140023880
mov eax, 0xaf1b3ba
xor ebp, ebp
jmp 0x140023880
mov rcx, qword [rsp + 0x28]
call fcn.140033420
mov eax, 0xaf1b3ba
mov ebp, 1
jmp 0x140023880
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov eax, 0x28959f7
jmp 0x140023880
mov rax, qword [rsp + 0x30]
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140030028
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140030158