joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
movzx eax, word [rsp + 0x50]
mov r8d, 0xa
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400b0ee1
jmp 0x1400b0f28
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400b0f00
jmp 0x1400b0f28
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140154f10], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x140154f18], eax
add rsp, 0x48
ret

Function at 0x1400b0f50
Capabilities:
Encrypt data using xtea

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov dword [rsp + 4], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov dword [rsp + 8], eax
mov dword [rsp + 0x10], 0x9e3779b9
mov eax, dword [rsp + 0x10]
imul eax, dword [rsp + 0x30]
mov dword [rsp], eax
mov dword [rsp + 0xc], 0
jmp 0x1400b0fb4
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0xc], eax
jae 0x1400b104a
mov eax, dword [rsp + 4]
shl eax, 4
mov ecx, dword [rsp + 4]
shr ecx, 5
xor eax, ecx
add eax, dword [rsp + 4]
mov ecx, dword [rsp]
shr ecx, 0xb
and ecx, 3
mov ecx, ecx
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rdx + rcx*4]
mov edx, dword [rsp]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp + 8]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 8]
shl eax, 4
mov ecx, dword [rsp + 8]
shr ecx, 5
xor eax, ecx
add eax, dword [rsp + 8]
mov ecx, dword [rsp]
and ecx, 3
mov ecx, ecx
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rdx + rcx*4]
mov edx, dword [rsp]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
jmp 0x1400b0faa
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 4]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 8]
mov dword [rcx + rax], edx
add rsp, 0x28
ret

Function at 0x1400b4cd0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1400b4c80
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1400b6e20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x1400b6e42
mov rcx, qword [rsp + 0x40]
call fcn.1400b9420
jmp 0x1400b6e59
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x1400b6e59
mov rcx, qword [rsp + 0x40]
call fcn.1400b9250
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400b7fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140154098]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x1400b7ffd
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400b8004
mov al, 1
jmp 0x1400b814c
call fcn.1400bb940
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.1400bb940
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.1400bb9c0
movzx eax, al
test eax, eax
je 0x1400b8055
xor al, al
jmp 0x1400b814c
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call fcn.1400be110
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400b80ba
cmp dword [rsp + 0x30], 1
je 0x1400b80c6
cmp dword [rsp + 0x30], 3
je 0x1400b813a
jmp 0x1400b814a
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x1400b8111
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.1400c7bac
cmp qword [rsp + 0x40], rax
je 0x1400b8111
xor al, al
jmp 0x1400b814c
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400b812b
mov dword [rsp + 0x34], 1
jmp 0x1400b8133
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1400b814c
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400b814c
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400c03c0
add rsp, 0x98
ret
Function at 0x1400b9250
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov qword [rsp + 0x18], 0
jmp 0x1400b9271
mov rax, qword [rsp + 0x18]
inc rax
mov qword [rsp + 0x18], rax
cmp qword [rsp + 0x18], 0xe3
jae 0x1400b92f5
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x1400b92c0
mov dword [rsp + 4], 0x9908b0df
jmp 0x1400b92c8
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400b9264
jmp 0x1400b9304
mov rax, qword [rsp + 0x18]
inc rax
mov qword [rsp + 0x18], rax
cmp qword [rsp + 0x18], 0x26f
jae 0x1400b938b
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x1400b9355
mov dword [rsp + 0xc], 0x9908b0df
jmp 0x1400b935d
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400b92f7
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1400b93d2
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x1400b93da
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx + 4]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov dword [rcx + rdx*4 + 4], eax
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
add rsp, 0x28
ret
Function at 0x1400b9420
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x1400b9441
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x1400b94c5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x1400b9490
mov dword [rsp + 4], 0x9908b0df
jmp 0x1400b9498
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400b9434
add rsp, 0x18
ret

Function at 0x1400c6a68
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 0x1400c68fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c68fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c68fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c68fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c68fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c68fb
cmp dword [rcx + 0xf8], 0
je 0x1400c68fb
mov ecx, ebx
call fcn.1400c699c
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.1400c678c
cmp dword [rbp + 0x20], 0
je 0x1400c6948
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c6950
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400c6894
Function at 0x140131ca5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
je 0x140132757
or edx, 0xe266856d
lea edi, [rbx - 0x8a9d]
movabs rbx, 0x596b1f0000033ae9
pushfq
jg 0x1401327fe
cmp edi, 0x43022d8
jmp rax
add byte [rax], al
dec dword [rdi]
mov ds, word [rax + 0x48000002]
neg edi
push r14
cmp r14, rcx
cmp rdi, rdi
ret 0x30
Function at 0x140002a30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.140002530
movzx eax, al
test eax, eax
jne 0x140002c00
lea rax, [rsp + 0x80]
lea rcx, str.GrGSRnPHOIRr___1E
mov rdi, rax
mov rsi, rcx
mov ecx, 0x14
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov eax, 1
imul rax, rax, 0x13
mov rcx, qword [rsp + 0x30]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140002ac8
mov dword [rsp + 0x28], 1
jmp 0x140002ad0
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
movzx eax, al
test eax, eax
je 0x140002b3a
mov dword [rsp + 0x24], 0
jmp 0x140002af9
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x14
jge 0x140002b3a
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x24]
cdq
mov ecx, 0x31
idiv ecx
mov eax, edx
add eax, 0x32
mov ecx, dword [rsp + 0x38]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
jmp 0x140002aef
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [0x140009070]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov r9d, 0x8000
xor r8d, r8d
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x68]
test eax, eax
jge 0x140002b9e
xor al, al
jmp 0x140002c02
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov r9d, 0x8000
xor r8d, r8d
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x70]
test eax, eax
jge 0x140002bcd
xor al, al
jmp 0x140002c02
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov r9d, 0x8000
xor r8d, r8d
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x78]
test eax, eax
jge 0x140002bfc
xor al, al
jmp 0x140002c02
xor al, al
jmp 0x140002c02
mov al, 1
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x140003948
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003992
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003992
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003992
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003992
cmp dword [rcx + 0x84], 0xe
jbe 0x140003992
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003994
xor al, al
add rsp, 0x28
ret
Function at 0x140001330
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, 0x20
mov esi, edx
mov r14, rcx
xor edx, edx
lea rcx, [0x140027d60]
call fcn.1400030a8
mov r15d, 1
mov rdi, rax
mov ebx, r15d
test rax, rax
je 0x1400013c3
mov ebp, esi
shr ebp, 4
lea eax, [rbp + 1]
movzx r12d, ax
nop
xor r9d, r9d
mov r8, r12
mov rcx, rdi
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1400013ab
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call fcn.140001d80
test rax, rax
jne 0x1400013e4
mov edx, ebx
lea rcx, [0x140027d60]
call fcn.1400030a8
inc ebx
mov rdi, rax
test rax, rax
jne 0x140001380
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
test rdi, rdi
je 0x1400013c3
inc bp
mov r8d, 6
movzx edx, bp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x1400014da
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400014da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400014da
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and esi, 0xf
jbe 0x140001469
nop word [rax + rax]
cmp rbx, rcx
jae 0x1400014da
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add esi, 0xffffffff
jne 0x140001450
cmp rbx, rcx
jae 0x1400014da
cmp word [rbx], 0
je 0x1400014da
mov rax, qword [r14]
mov edx, r15d
movzx edi, word [rbx]
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x140001493
mov edx, edi
mov rcx, r14
call fcn.140001f30
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rdi
call fcn.140009fc8
test eax, eax
je 0x1400014be
cmp eax, 0xc
je 0x1400014f1
cmp eax, 0x16
je 0x1400014fc
cmp eax, 0x22
je 0x1400014fc
cmp eax, 0x50
jne 0x1400014e6
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x1400014fc
mov dword [rax - 0x10], edi
xor ecx, ecx
mov rax, qword [r14]
mov word [rax + rdi*2], cx
mov eax, r15d
jmp 0x1400013c5
xor ecx, ecx
mov r15d, ecx
mov eax, ecx
jmp 0x1400013c5
mov ecx, 0x80004005
call fcn.140002030
int3
mov ecx, 0x8007000e
call fcn.140002030
int3
mov ecx, 0x80070057
call fcn.140002030
int3
Function at 0x140001d80
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 edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001df8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001df8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001de5
nop
cmp rbx, rcx
jae 0x140001df8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001dd0
cmp rbx, rcx
jae 0x140001df8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x140001dfa
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 0x140002a70
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x870]
sub rsp, 0x970
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rdi, 0xffffffffffffffff
xor r15d, r15d
test r8, r8
jne 0x140002b14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x3ff
lea rdx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140002b10
lea rcx, [rbp + 0x60]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140002ae0
dec eax
movsxd rcx, eax
test eax, eax
jle 0x140002b10
cmp word [rbp + rcx*2 + 0x60], 0x5c
je 0x140002b07
dec eax
dec rcx
test rcx, rcx
jg 0x140002af3
jmp 0x140002b10
movsxd rcx, eax
mov word [rbp + rcx*2 + 0x60], r15w
lea rbx, [rbp + 0x60]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], eax
mov dword [rsp + 0x70], 0x70
mov dword [rsp + 0x74], 0x40
mov qword [rsp + 0x78], r15
call fcn.140002ca0
test al, al
jne 0x140002b81
cmp byte [0x1400298d1], r15b
jne 0x140002b71
xor edx, edx
call fcn.1400029a0
mov byte [0x1400298d0], al
mov edx, 2
call fcn.1400029a0
mov byte [0x1400298d1], 1
cmp byte [0x1400298d0], r15b
lea rax, [0x1400225f0]
jne 0x140002b88
lea rax, [0x140022600]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], rbx
mov dword [rbp - 0x60], 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140002c6a
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
call fcn.1400022a0
mov rcx, rax
test rax, rax
je 0x140002c94
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x20], r14
mov r9, rsi
mov r8, rsi
lea rdx, [0x140022610]
lea rcx, [rbp - 0x20]
call fcn.140002760
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rbx, qword [rsp + 0x50]
test eax, eax
cmove rbx, r15
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140002c65
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, rbx
jmp 0x140002c6e
mov rax, qword [rbp - 0x28]
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.140003740
mov rbx, qword [rsp + 0x9b8]
add rsp, 0x970
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002030
int3
Function at 0x140003cf8
Capabilities:
Parse pe header

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

Function at 0x14000d574
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d364
Function at 0x140012200
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 0x140012287
mov rsi, rbx
cmp word [rax], bp
je 0x140012246
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140012230
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001222c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000eec8
mov rdi, rax
test rax, rax
je 0x140012274
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400189a0
mov rbp, rdi
xor ecx, ecx
call fcn.14000ee8c
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 0x140018600
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140018628
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140018628
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140019223
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140009008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140009008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret