joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003d808
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.14001e8b0
sub rsp, rax
mov rax, qword [0x140067190]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003ab48
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003d857
mov rax, rbp
jmp 0x14003d95f
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 + 0x6bb00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003e928
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x6bb00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003d95b
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 0x14003d95b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003e928
test rax, rax
js 0x14003d95b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003d95b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003d94d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003d94d
cmp byte [rcx], 0xd
jne 0x14003d933
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003d942
cmp byte [rcx + 1], 0xa
jne 0x14003d942
inc rcx
jmp 0x14003d942
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x675a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003d915
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003d95f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001dfa0
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 0x14003db80
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003db96
mov al, 1
jmp 0x14003dbf6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003dba7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003dbf4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140041514
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003dbf4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003dbf4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003dbf4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003dbf6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003dcc8
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, [0x14006bb00]
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 0x14003dd1f
cmp word [rdx], r13w
jne 0x14003dd1f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003dd24
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003de49
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003de6a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003dd5d
mov rdx, r9
mov word [rbx], cx
jmp 0x14003dd84
cmp r9, r8
jae 0x14003dd94
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 0x14003dd3e
jmp 0x14003de49
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 0x14003de3e
cmp dword [rsp + 0x80], esi
je 0x14003de3e
lea r8, [0x14006bb00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003de16
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003dde6
mov word [rbx], r13w
jmp 0x14003de46
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 0x14003ddf3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003de46
cmp word [rsp + 0x70], r13w
jne 0x14003de23
cmp rbx, r14
je 0x14003dde0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003e930
cmp word [rsp + 0x70], r13w
je 0x14003de49
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, [0x14006bb00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003de43
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003de49
Function at 0x140040cac
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 0x140040cdc
xor eax, eax
jmp 0x140040d9f
mov rbp, rbx
cmp word [rax], si
je 0x140040d01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140040ce8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140040ce4
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.140039564
movsxd r14, eax
test eax, eax
jne 0x140040d3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140040cd5
mov rcx, r14
call fcn.140039178
mov rdi, rax
test rax, rax
jne 0x140040d58
xor ecx, ecx
call fcn.14003913c
jmp 0x140040d34
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.140039564
test eax, eax
jne 0x140040d89
mov rcx, rdi
call fcn.14003913c
jmp 0x140040d93
xor ecx, ecx
call fcn.14003913c
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 0x140043a68
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.140038ddc
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 0x140043b09
cmp ebx, dword [rsp + 0x30]
je 0x140043b02
test esi, esi
je 0x140043b02
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140043add
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140043aea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140043ac7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140043aee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140043b0b
mov eax, 1
jmp 0x140043b0b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140046b74
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.140031eb8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140046bfe
cmp byte [rbp - 0x21], r15b
je 0x140046bf9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140046c34
call fcn.14003bb94
test eax, eax
jne 0x140046c20
cmp byte [rbp - 0x21], r15b
je 0x140046c18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140046c34
cmp byte [rbp - 0x21], r15b
je 0x140046c31
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.140034bb4
test eax, eax
jne 0x140046cd4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140031eb8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140046c73
cmp byte [rbp - 0x21], r15b
je 0x140046ca8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140046ca8
call fcn.14003bb94
test eax, eax
jne 0x140046c94
cmp byte [rbp - 0x21], r15b
je 0x140046c8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140046ca8
cmp byte [rbp - 0x21], r15b
je 0x140046ca5
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.140034bb4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140046cd4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140046cd7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140046ce5
mov rcx, rdi
call fcn.14003913c
cmp byte [rbp + 0x3f], r15b
je 0x140046cf4
mov rcx, qword [rbp + 0x27]
call fcn.14003913c
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 0x140006cc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
lea rax, vtable.CVolMem.0
mov qword [rcx], rax
mov qword [rcx + 0x18], r14
mov qword [rcx + 0x28], r14
mov qword [rcx + 0x20], r14
mov qword [rcx + 0x30], 0x40
mov dword [rsp + 0x20], 1
movsxd rax, r8d
test r8d, r8d
jne 0x140006d23
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
mov qword [0x1400316f8], 1
mov ecx, eax
call fcn.140010f6c
mov rdi, r14
cmp dword [rsi + 0x28], edi
jle 0x140006dd8
cmp qword [0x1400316f8], 0
jne 0x140006d63
mov qword [0x1400316f8], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.140010f6c
call fcn.140010f40
cdqe
cqo
movzx edx, dl
add rax, rdx
movzx ebp, al
sub rbp, rdx
movsxd rdx, edi
mov r9, qword [rsi + 0x28]
mov r10, qword [rsi + 0x18]
lea rcx, [rdx + 1]
cmp rcx, r9
jle 0x140006daf
mov qword [rsp + 0x58], r14
sub r9, rdx
mov r8, r14
cmovns r8, r9
add rdx, r10
lea rcx, [rsp + 0x58]
call fcn.14000fca0
movzx eax, byte [rsp + 0x58]
jmp 0x140006db4
movzx eax, byte [r10 + rdx]
movsx r8d, al
xor r8d, ebp
mov edx, 1
mov rcx, rbx
call fcn.14000a050
inc rdi
movsxd rax, dword [rsi + 0x28]
cmp rdi, rax
jl 0x140006d41
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400088e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rbx, r8
mov edi, edx
test r8, r8
je 0x140008ab0
mov rax, qword [rcx]
call qword [rax]
mov rbp, rax
test edi, edi
je 0x140008950
cmp edi, 3
je 0x140008950
sub edi, 1
je 0x14000893f
cmp edi, 1
jne 0x140008ab0
movzx edx, bx
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x140008ab2
movzx edx, bx
mov rcx, rbp
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x140008ab2
movzx edx, bx
mov r8d, 0xa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x140008ab0
xor ebx, ebx
mov esi, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x140008ab0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x140008a16
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.140007680
test rax, rax
je 0x1400089ef
mov rsi, qword [rsp + 0x50]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008a16
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x140008ab0
cmp edi, 3
jne 0x140008aab
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1d]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x140008a9d
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x140008a9d
lea ecx, [rdx + 1]
and ecx, 0xfffffffe
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [rdi + 0x1e]
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov rdi, rax
test rax, rax
je 0x140008a9d
mov r8d, 0xff00ff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test eax, eax
jns 0x140008a9a
mov rcx, rdi
call qword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x140008ab2
mov rbx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x140008ab2
mov rax, rsi
jmp 0x140008ab2
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140008b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, r8
mov qword [r8 + 0x28], rsi
mov rdi, rdx
test rdx, rdx
jne 0x140008b94
lea eax, [rdx + 1]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx]
mov qword [rsp + 0x50], r15
call qword [rax]
movzx edx, di
mov r8d, 0xa
mov rcx, rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140008c9b
mov rdx, rax
mov qword [rsp + 0x40], rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x140008c96
mov rcx, rax
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140008c88
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov qword [rbx + 0x28], rsi
cmp qword [rbx + 0x20], rdi
jl 0x140008c66
cmp rdi, 1
jne 0x140008c24
movzx ecx, byte [r14]
mov rax, qword [rbx + 0x18]
mov byte [rax], cl
inc qword [rbx + 0x28]
jmp 0x140008c83
cmp rdi, 2
jne 0x140008c3b
movzx ecx, word [r14]
mov rax, qword [rbx + 0x18]
mov word [rax], cx
add qword [rbx + 0x28], rdi
jmp 0x140008c83
cmp rdi, 4
jne 0x140008c50
mov ecx, dword [r14]
mov rax, qword [rbx + 0x18]
mov dword [rax], ecx
add qword [rbx + 0x28], rdi
jmp 0x140008c83
cmp rdi, 8
jne 0x140008c66
mov rcx, qword [r14]
mov rax, qword [rbx + 0x18]
mov qword [rax], rcx
add qword [rbx + 0x28], rdi
jmp 0x140008c83
test eax, eax
je 0x140008c83
mov rdx, rdi
mov rcx, rbx
call fcn.140009f70
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.14000fca0
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rsi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x140009430
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rbx, rcx
test rcx, rcx
je 0x140009654
cmp word [rcx], 0
je 0x140009654
xor edi, edi
mov qword [rbp - 1], rdi
mov qword [rbp + 7], rdi
lea r14, vtable.CWString.0
mov qword [rbp - 9], r14
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], rdi
lea rsi, vtable.CVolMem.0
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x2f], rdi
mov qword [rbp + 0x3f], rdi
mov qword [rbp + 0x37], rdi
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x47], 0xfe
cmp word [rcx + 2], di
je 0x140009504
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], 0
jne 0x1400094b4
cmp word [rcx + r8*2 - 2], 0x5c
jne 0x140009504
cmp word [rcx + r8*2 - 4], 0x3a
je 0x140009504
dec r8
mov rdx, rcx
lea rcx, [rbp - 9]
call fcn.14000b280
mov rbx, qword [rbp + 0xf]
test rbx, rbx
jne 0x1400094f7
cmp qword [rbp + 0x3f], rbx
je 0x140009632
mov rbx, qword [rbp + 0x2f]
mov rax, rbx
cmp word [rax], 0
je 0x140009632
cmp word [rbx + 2], 0x3a
jne 0x140009516
cmp word [rbx + 4], 0
je 0x140009632
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140009632
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140009632
cmp eax, 3
jne 0x140009637
lea edx, [rax + 0x59]
mov rcx, rbx
call fcn.14000d134
test rax, rax
je 0x140009637
cmp word [rax + 2], 0
jne 0x140009584
sub rax, 2
cmp rax, rbx
jb 0x140009637
nop dword [rax + rax]
cmp word [rax], 0x5c
je 0x140009584
sub rax, 2
cmp rax, rbx
jae 0x140009570
jmp 0x140009637
mov qword [rbp - 0x61], rdi
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x19], 0xfe
sub rax, rbx
sar rax, 1
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x69]
call fcn.14000b280
mov rax, qword [rbp - 0x51]
test rax, rax
jne 0x1400095e3
lea rax, [0x14002a37c]
cmp qword [rbp - 0x21], 0
cmovne rax, qword [rbp - 0x31]
mov rcx, rax
call fcn.140009430
test rax, rax
je 0x140009618
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movsxd rdi, eax
mov qword [rbp - 0x49], rsi
mov rdx, qword [rbp - 0x31]
test rdx, rdx
je 0x140009616
lea rcx, [rbp - 0x49]
call qword [method.CWConstString.virtual_24]
nop
jmp 0x140009637
mov qword [rbp - 0x49], rsi
mov rdx, qword [rbp - 0x31]
test rdx, rdx
je 0x140009630
lea rcx, [rbp - 0x49]
call qword [method.CWConstString.virtual_24]
nop
jmp 0x140009637
mov edi, 1
mov qword [rbp + 0x17], rsi
mov rdx, qword [rbp + 0x2f]
test rdx, rdx
je 0x14000964f
lea rcx, [rbp + 0x17]
call qword [method.CWConstString.virtual_24]
nop
mov rax, rdi
jmp 0x140009656
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140009680
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
test rcx, rcx
je 0x1400097b4
cmp word [rcx], 0
je 0x1400097b4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov dword [rbp - 0x60], 0x68
psrldq xmm0, 0xc
movd eax, xmm0
or eax, 1
mov dword [rbp - 0x24], eax
mov esi, 1
mov word [rbp - 0x20], si
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
lea rdi, vtable.CVolMem.0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], 0x40
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.14000a0c0
mov rdx, qword [rsp + 0x68]
cmp qword [rsp + 0x78], rbx
cmove rdx, rbx
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140009794
mov edx, 0x1f4
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
mov qword [rsp + 0x50], rdi
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1400097af
lea rcx, [rsp + 0x50]
call qword [method.CWConstString.virtual_24]
nop
mov rax, rbx
jmp 0x1400097b6
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000a2e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x28]
mov rax, rdx
mov rbx, qword [rcx + 0x18]
test rdx, rdx
je 0x14000a36b
cmp word [rdx], 0
je 0x14000a36b
test rdi, rdi
js 0x14000a36b
lea rdx, [0x14002a524]
mov qword [rsp + 0x30], rsi
mov rcx, rax
call fcn.140013208
mov rsi, rax
test rax, rax
jne 0x14000a335
mov rsi, qword [rsp + 0x30]
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, rsi
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.140011b30
xor ebx, ebx
mov rcx, rsi
cmp rax, rdi
sete bl
call fcn.140011008
mov rsi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400103ec
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 0x14001027f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001027f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001027f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001027f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001027f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001027f
cmp dword [rcx + 0xf8], 0
je 0x14001027f
mov ecx, ebx
call fcn.140010320
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.140010110
cmp dword [rbp + 0x20], 0
je 0x1400102cc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400102d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140010218