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

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

Function at 0x14003a6cc
Capabilities:
Parse pe header

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

Function at 0x14003df5c
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, [0x140066790]
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 0x14003dfb3
cmp word [rdx], r13w
jne 0x14003dfb3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003dfb8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003e0dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003e0fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003dff1
mov rdx, r9
mov word [rbx], cx
jmp 0x14003e018
cmp r9, r8
jae 0x14003e028
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 0x14003dfd2
jmp 0x14003e0dd
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 0x14003e0d2
cmp dword [rsp + 0x80], esi
je 0x14003e0d2
lea r8, [0x140066790]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003e0aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003e07a
mov word [rbx], r13w
jmp 0x14003e0da
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 0x14003e087
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003e0da
cmp word [rsp + 0x70], r13w
jne 0x14003e0b7
cmp rbx, r14
je 0x14003e074
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140040848
cmp word [rsp + 0x70], r13w
je 0x14003e0dd
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, [0x140066790]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003e0d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003e0dd
Function at 0x1400416ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400416c2
mov al, 1
jmp 0x140041722
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400416d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140041720
mov ecx, dword [rcx + 0x18]
nop
call fcn.140047f60
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140041720
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140041720
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140041720
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140041722
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140046e80
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 0x140046eb0
xor eax, eax
jmp 0x140046f73
mov rbp, rbx
cmp word [rax], si
je 0x140046ed5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140046ebc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140046eb8
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.140041860
movsxd r14, eax
test eax, eax
jne 0x140046f13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140046ea9
mov rcx, r14
call fcn.14003eabc
mov rdi, rax
test rax, rax
jne 0x140046f2c
xor ecx, ecx
call fcn.14003cc0c
jmp 0x140046f08
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.140041860
test eax, eax
jne 0x140046f5d
mov rcx, rdi
call fcn.14003cc0c
jmp 0x140046f67
xor ecx, ecx
call fcn.14003cc0c
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 0x140046f90
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 0x140047017
mov rsi, rbx
cmp word [rax], bp
je 0x140046fd6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140046fc0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140046fbc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003eabc
mov rdi, rax
test rax, rax
je 0x140047004
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004d9e0
mov rbp, rdi
xor ecx, ecx
call fcn.14003cc0c
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 0x14004c144
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140040848
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140040848
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004c294
cmp rax, 0xffffffffffffffff
je 0x14004c294
xor edi, edi
test rbp, rbp
jle 0x14004c23f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140040228
mov rbx, rax
test rax, rax
jne 0x14004c1cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004c235
mov edx, 0x8000
mov ecx, r14d
call fcn.14003b6e4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400412ac
cmp eax, 0xffffffff
je 0x14004c215
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004c1dc
mov edx, r15d
mov ecx, r14d
call fcn.14003b6e4
jmp 0x14004c235
cmp byte [rsi + 0x38], dil
je 0x14004c22c
cmp dword [rsi + 0x34], 5
jne 0x14004c22c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004c235
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003cc0c
jmp 0x14004c2a8
jns 0x14004c2a8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140040848
cmp rax, 0xffffffffffffffff
jne 0x14004c260
cmp byte [rsi + 0x30], dil
je 0x14004c2a8
mov edi, dword [rsi + 0x2c]
jmp 0x14004c2a8
mov ecx, r14d
call fcn.140047f60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004c2a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14004c2a8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004c2a1
mov eax, dword [rsi + 0x2c]
jmp 0x14004c2a6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140040848
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14004cf50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004cf78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004cf78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140005980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov byte [rsp], 0
mov dword [rsp + 4], 0
jmp 0x1400059e8
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x140005a29
movsxd rax, dword [rsp + 4]
mov cl, byte [rsp + 4]
mov byte [rsp + rax + 0x20], cl
xor edx, edx
mov eax, dword [rsp + 4]
div dword [rsp + 0x248]
mov eax, edx
mov eax, eax
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x240]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 0x120], al
jmp 0x1400059de
mov dword [rsp + 4], 0
jmp 0x140005a3d
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x140005aa8
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 4]
movzx ecx, byte [rsp + rcx + 0x120]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
jmp 0x140005a33
mov dword [rsp + 0x10], 0
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
mov byte [rsp], 0
mov dword [rsp + 0xc], 0
mov dword [rsp + 0xc], 0
jmp 0x140005ae0
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x238]
cmp dword [rsp + 0xc], eax
jae 0x140005bb5
mov eax, dword [rsp + 4]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
movsxd rcx, dword [rsp + 8]
movzx ecx, byte [rsp + rcx + 0x20]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0xc]
movsxd rcx, dword [rsp + 0x10]
movzx ecx, byte [rsp + rcx + 0x20]
mov rdx, qword [rsp + 0x230]
movzx eax, byte [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x230]
mov byte [rdx + rcx], al
jmp 0x140005ad6
add rsp, 0x220
pop rdi
ret
Function at 0x140005ff8
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
cmp dword [rsp + 0x50], 0
je 0x140006035
call fcn.140005c40
test eax, eax
je 0x14000602b
call fcn.140005bc0
test eax, eax
je 0x14000602b
call fcn.140005f78
test eax, eax
jne 0x140006035
mov ecx, 1
call fcn.1401b8724
cmp dword [rsp + 0x60], 0
je 0x14000604f
call fcn.140005f44
test eax, eax
jne 0x14000604f
mov ecx, 1
call fcn.1401b8724
cmp dword [rsp + 0x58], 0
je 0x14000608b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140005fcc]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x48
ret
Function at 0x140006c44
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
call fcn.14000e710
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rax, 0x88
mov qword [rsp + 0x48], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x20], 0
jmp 0x140006d61
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x20], eax
jae 0x140006e39
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140006d8a
jmp 0x140006d57
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x24], 0
jmp 0x140006db2
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x24], eax
jae 0x140006e34
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x78]
movzx eax, word [rcx + rax*2]
cmp eax, dword [rsp + 0x20]
jne 0x140006e2f
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x90]
call fcn.1401b82b0
test eax, eax
jne 0x140006e2f
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
jmp 0x140006e3b
jmp 0x140006da8
jmp 0x140006d57
xor eax, eax
add rsp, 0xb8
ret
Function at 0x14000c938
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rcx, qword [rsp + 0x280]
call fcn.14001117c
mov r8d, 1
mov rax, qword [rsp + 0x280]
mov rdx, qword [rax + 0x170]
mov rcx, qword [rsp + 0x280]
call fcn.14000e430
xor r8d, r8d
mov rax, qword [rsp + 0x280]
mov rdx, qword [rax + 0x170]
mov rcx, qword [rsp + 0x280]
call fcn.14000e430
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov ecx, 0x5c
mov word [rsp + rax*2 + 0x60], cx
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
xor ecx, ecx
mov word [rsp + rax*2 + 0x60], cx
lea r8, [rsp + 0x60]
mov edx, 0x3ea
mov rcx, qword [rsp + 0x280]
call fcn.14001e7f0
lea r8, [rsp + 0x60]
mov edx, 0x3eb
mov rcx, qword [rsp + 0x280]
call fcn.14001e7f0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call fcn.14000e3dc
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x280]
add rax, 0x178
mov r8, qword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x280]
call fcn.14000cba4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call fcn.14000e3dc
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x280]
add rax, 0x260
mov r8, qword [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x280]
call fcn.14000cba4
mov eax, 1
add rsp, 0x278
ret
Function at 0x14000cba4
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rcx, qword [rsp + 0x2d8]
call fcn.14000e254
lea rcx, [rsp + 0x20]
call fcn.1400038d4
nop
lea r8, [0x14023d0a8]
mov rdx, qword [rsp + 0x2e0]
lea rcx, [rsp + 0x38]
call fcn.14000e1ac
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140002c58
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x38]
call fcn.140003750
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x14000cd15
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x9c]
cmp eax, 0x2e
jne 0x14000cc52
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x9c]
test eax, eax
je 0x14000ccfd
lea rdx, [rsp + 0x9c]
lea rcx, [rsp + 0x20]
call fcn.140002f34
mov eax, dword [rsp + 0x70]
and eax, 0x10
test eax, eax
je 0x14000ccde
lea r8, [rsp + 0x20]
lea rdx, [0x14023d0b4]
lea rcx, [rsp + 0x68]
call fcn.14000ddac
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea r8, [0x14023d0b0]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14000e1ac
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.14000df14
nop
lea rcx, [rsp + 0x60]
call fcn.140003750
nop
lea rcx, [rsp + 0x68]
call fcn.140003750
lea rcx, [rsp + 0x20]
call fcn.140002c58
mov r8, rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x2d8]
call fcn.14000dd74
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000cc23
lea rcx, [rsp + 0x20]
call fcn.140003750
nop
mov rcx, qword [rsp + 0x2e0]
call fcn.140003750
add rsp, 0x2c8
ret

Function at 0x14000e710
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret
Function at 0x1400105f4
Capabilities:
Extract resource via kernel32 functions

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, qword [rcx + 0x100]
xor r14d, r14d
mov rdi, rcx
mov rsi, qword [rcx + 0xf8]
cmp qword [rcx + 0xf0], r14
je 0x14001065b
call fcn.1400374b0
mov rdx, qword [rdi + 0xf0]
lea r8d, [r14 + 5]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001065b
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rsi, rsi
je 0x14001066c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov eax, 1
test rbx, rbx
je 0x1400106b1
mov edx, 0xffff
lea rcx, [rbx + 0xc]
cmp word [rbx + 2], dx
jne 0x140010690
movzx r8d, word [rbx + 0x12]
movzx edx, word [rbx + 0x14]
jmp 0x14001069b
movzx edx, word [rcx]
mov rcx, rbx
movzx r8d, word [rbx + 0xa]
test dword [rcx], 0x1801
jne 0x1400106ae
test r8w, r8w
jne 0x1400106ae
test dx, dx
je 0x1400106b1
mov eax, r14d
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

Function at 0x1400106cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x14001070b
cmp dword [rcx + 0xe8], 0
jne 0x14001070b
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.1400374b0
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001074f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001074f
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.140010a84
jmp 0x140010751
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140010768
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.1400374b0
mov r8d, 5
mov rdx, rbx
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400107d2
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400107d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.1400107ec
jmp 0x1400107d4
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140016dcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140016e2a
call fcn.1400374b0
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140016e2a
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140016e35
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.1400376f8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140016fd4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, r8
lea rcx, [0x1401e6110]
mov esi, edx
call fcn.1401b697c
mov r8d, eax
lea rdx, [0x1401e6110]
mov rcx, rbx
call fcn.140002dd4
xor ebp, ebp
mov edx, esi
cmp qword [rdi + 0xc8], rbp
jne 0x1400170b6
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x1400170ce
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x1400170e9
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x140017068
mov edx, edi
mov rcx, rbx
call fcn.140003364
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x1400170e9
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rcx, rsi
mov word [rax + rdi*2], bp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140017093
mov eax, ebp
jmp 0x1400170a0
movsxd rdx, dword [rcx - 0xc]
call fcn.1401b6aa8
test eax, eax
js 0x1400170e9
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400170e9
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x1400170ce
mov rcx, rdi
call fcn.14001dd04
test rax, rax
je 0x1400170ce
mov rdx, rbx
mov rcx, rax
call fcn.14001759c
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, dword [rax - 0x10]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140003768
int3