joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x40233d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x402334
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40233f
add rax, 0x28
cmp rax, r9
jne 0x402320
xor eax, eax
ret

Function at 0x402340
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x4023d0
mov rdx, qword [0x004043d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x4023be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x4023be
cmp word [rax + 0x18], 0x20b
jne 0x4023be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x4023d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x4023a9
add rbx, 0x28
cmp rbx, rdi
je 0x4023d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x4023a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x402460
Capabilities:
Parse pe header

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

Function at 0x4024a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x004043d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x4024c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x4024c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x4024c0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x402510
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x402507
test rcx, rcx
je 0x4024c0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x4024f8
xor eax, eax
ret

Function at 0x402520
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004043d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x40253f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x402548
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x402560
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x004043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402580
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402588
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402580
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x402580
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x4025d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4025e0
add rdx, 0x28
cmp r9, rdx
jne 0x4025c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x004043d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x402612
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x402620
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402612
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x402612
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x402612
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x402675
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402688
add rdx, 0x28
cmp r10, rdx
jne 0x402660
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x402697
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x4026a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40267e
test ecx, ecx
jg 0x402690
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1410cd058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1410cd1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1410cd089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410cd06f
add dl, dl
jne 0x1410cd096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410cd0f6
xor eax, eax
add dl, dl
jne 0x1410cd0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410cd1ad
add dl, dl
jne 0x1410cd0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410cd0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410cd0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410cd0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410cd0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410cd07e
mov eax, 1
add dl, dl
jne 0x1410cd106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410cd113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410cd0fb
sub eax, ebx
mov ebx, 1
jne 0x1410cd14c
mov ecx, 1
add dl, dl
jne 0x1410cd12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410cd13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410cd123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410cd07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410cd168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410cd175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410cd15d
cmp eax, 0x7d00
jae 0x1410cd19b
cmp eax, 0x500
jb 0x1410cd196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410cd07e
cmp eax, 0x7f
ja 0x1410cd19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410cd07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410cd1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1410cd07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800121c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.180011f90
mov r8, qword [rbx]
mov rcx, rbx
mov rsi, rax
call qword [r8 + 0x28]
cmp rsi, rax
je 0x18001221b
mov ecx, dword [rsi + 0x18]
cmp dword [rax + 0x18], ecx
jne 0x1800122b1
mov r8, qword [rsi + 0x10]
cmp qword [rax + 0x10], r8
jne 0x1800122b1
mov rdx, qword [rsi + 8]
mov rcx, qword [rax + 8]
call fcn.1800282a0
test eax, eax
jne 0x1800122b1
movzx eax, byte [rbx + 8]
xor al, byte [rdi + 8]
test al, 1
jne 0x1800122b1
mov rax, qword [rbx + 0x10]
cmp qword [rdi + 0x10], rax
jne 0x1800122b1
movzx eax, byte [rbx + 0x18]
cmp byte [rdi + 0x18], al
jne 0x1800122b1
mov r8, qword [rbx + 0x38]
test r8, r8
jne 0x180012257
cmp qword [rbx + 0x68], r8
lea r8, [0x18004c0b4]
je 0x180012257
mov r8, qword [rbx + 0x58]
mov rax, qword [rdi + 0x38]
test rax, rax
jne 0x180012271
cmp qword [rdi + 0x68], rax
lea rax, [0x18004c0b4]
je 0x180012271
mov rax, qword [rdi + 0x58]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180012288
add rax, 2
test ecx, ecx
jne 0x180012274
test edx, edx
jne 0x1800122b1
movzx eax, byte [rbx + 0x78]
cmp byte [rdi + 0x78], al
jne 0x1800122b1
movzx eax, byte [rbx + 0x79]
cmp byte [rdi + 0x79], al
jne 0x1800122b1
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18001d070
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 0x18001d277
mov rax, qword [rcx]
call qword [rax]
mov rbp, rax
test edi, edi
je 0x18001d0e0
cmp edi, 3
je 0x18001d0e0
sub edi, 1
je 0x18001d0cf
cmp edi, 1
jne 0x18001d277
movzx edx, bx
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x18001d279
movzx edx, bx
mov rcx, rbp
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x18001d279
movzx edx, bx
mov r8d, 0xa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x18001d277
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 0x18001d277
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x18001d1dd
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.18001b900
test rax, rax
je 0x18001d183
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 0x18001d1aa
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]
lea rcx, [0x180055c58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x180055c80]
test rcx, rcx
je 0x18001d1d0
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov qword [0x180055c80], rbx
lea rcx, [0x180055c58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x18001d277
cmp edi, 3
jne 0x18001d272
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1d]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x18001d264
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x18001d264
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 0x18001d264
mov r8d, 0xff00ff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test eax, eax
jns 0x18001d261
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 0x18001d279
mov rbx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x18001d279
mov rax, rsi
jmp 0x18001d279
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 0x18001d360
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 0x18001d384
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 0x18001d48b
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 0x18001d486
mov rcx, rax
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x18001d478
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 0x18001d456
cmp rdi, 1
jne 0x18001d414
movzx ecx, byte [r14]
mov rax, qword [rbx + 0x18]
mov byte [rax], cl
inc qword [rbx + 0x28]
jmp 0x18001d473
cmp rdi, 2
jne 0x18001d42b
movzx ecx, word [r14]
mov rax, qword [rbx + 0x18]
mov word [rax], cx
add qword [rbx + 0x28], rdi
jmp 0x18001d473
cmp rdi, 4
jne 0x18001d440
mov ecx, dword [r14]
mov rax, qword [rbx + 0x18]
mov dword [rax], ecx
add qword [rbx + 0x28], rdi
jmp 0x18001d473
cmp rdi, 8
jne 0x18001d456
mov rcx, qword [r14]
mov rax, qword [rbx + 0x18]
mov qword [rax], rcx
add qword [rbx + 0x28], rdi
jmp 0x18001d473
test eax, eax
je 0x18001d473
mov rdx, rdi
mov rcx, rbx
call fcn.18001f870
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.180027c10
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 0x18001e8e0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x180055010]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
test rcx, rcx
je 0x18001ea57
movzx eax, word [rcx]
test ax, ax
je 0x18001ea57
xor edx, edx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rdx
lea rcx, vtable.CWString.0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rdx
lea rsi, vtable.CVolMem.0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x70], 0xfe
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rdx
cmp ax, 0x5c
je 0x18001e983
cmp word [rbx + 2], 0x3a
jne 0x18001ea2b
cmp word [rbx + 4], 0x5c
jne 0x18001ea2b
mov edx, 0x5c
mov rcx, rbx
call fcn.180023e48
test rax, rax
je 0x18001e9bd
cmp rax, rbx
jbe 0x18001e9a6
lea rcx, [rax - 2]
cmp word [rcx], 0x3a
cmovne rax, rcx
sub rax, rbx
lea r8, [rax + 2]
sar r8, 1
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180020d30
mov rdi, qword [rsp + 0x38]
test rdi, rdi
jne 0x18001e9d8
cmp qword [rsp + 0x68], rdi
je 0x18001ea2b
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x18001ea2b
cmp word [rdi], 0
je 0x18001ea2b
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x18001ea2b
cmp word [rdi], 0
je 0x18001ea04
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp word [rsp + 0x80], 0
je 0x18001ea37
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x18001ea37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov qword [rsp + 0x40], rsi
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x18001ea52
lea rcx, [rsp + 0x40]
call qword [method.CWString.virtual_24]
nop
mov rax, rbx
jmp 0x18001ea59
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180021c90
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180029350
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 0x180029203
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180029203
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180029203
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180029203
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180029203
cmp dword [rcx + 0x84], 0xe
jbe 0x180029203
cmp dword [rcx + 0xf8], 0
je 0x180029203
mov ecx, ebx
call fcn.1800292b4
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.180029090
nop
cmp dword [rbp + 0x20], 0
je 0x180029251
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002925c
int3
xor r8d, r8d
xor edx, edx
jmp 0x180029194
Function at 0x180032d20
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 0x180032d50
xor eax, eax
jmp 0x180032e13
mov rbp, rbx
cmp word [rax], si
je 0x180032d75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180032d5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180032d58
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.180032c40
movsxd r14, eax
test eax, eax
jne 0x180032db3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180032d49
mov rcx, r14
call fcn.18002d9b0
mov rdi, rax
test rax, rax
jne 0x180032dcc
xor ecx, ecx
call fcn.18002da10
jmp 0x180032da8
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.180032c40
test eax, eax
jne 0x180032dfd
mov rcx, rdi
call fcn.18002da10
jmp 0x180032e07
xor ecx, ecx
call fcn.18002da10
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 0x140002410
Capabilities:
Inspect load icon resource

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rsi, rcx
mov dword [rbp + 0x1c8], 8
mov dword [rbp + 0x1cc], 0xff
lea rcx, [rbp + 0x1c8]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rsi
call fcn.14000bd28
xor ecx, ecx
call fcn.14000d1dc
mov ecx, 0x18
call fcn.14000b050
mov qword [rbp + 0x1d0], rax
test rax, rax
je 0x14000247d
mov rcx, rax
call fcn.14000e388
mov rdi, rax
jmp 0x14000247f
xor edi, edi
lea rcx, str.CMFCVisualManagerWindows
call fcn.14001abe8
lea rdx, [0x140236a58]
mov rcx, rsi
call fcn.14001fa38
xor r8d, r8d
lea edx, [r8 + 0x66]
lea rcx, [rsp + 0x20]
call fcn.1400299d8
nop
lea rax, vtable.CshellcodeLoaderDlg.0
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x98]
mov qword [rbp + 0x1d0], rax
call fcn.1400255f8
mov rcx, rax
test rax, rax
je 0x140002659
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x98], rax
lea rdx, [0x140237370]
mov rbx, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x140002510
movzx edx, dx
lea rcx, [rbp + 0x98]
call fcn.140002aa0
jmp 0x14000252b
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x140002513
lea rcx, [rbp + 0x98]
call fcn.140002c80
nop
call fcn.1400255f8
mov rcx, rax
test rax, rax
je 0x14000264e
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], 0
mov dword [rbp + 0xb0], 0
lea rcx, [rbp + 0xb8]
call fcn.14002a1f8
lea rax, vtable.CComboBox.0
mov qword [rbp + 0xb8], rax
call fcn.140033edc
call fcn.140033edc
mov edx, 0x80
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rbp + 0x90], rax
lea rax, [rsp + 0x20]
mov qword [rsi + 0x40], rax
lea rcx, [rsp + 0x20]
call fcn.14002062c
test rdi, rdi
je 0x1400025c2
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14002198c
nop
lea rcx, [rbp + 0xb8]
call fcn.140023724
mov rdx, qword [rbp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400025f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp + 0x98]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140002612
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp + 0x78]
call fcn.1400276dc
lea rax, vtable.CBrush.0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x60]
call fcn.140003270
lea rcx, [rsp + 0x20]
call fcn.14001feb4
xor eax, eax
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003080
nop
mov ecx, 0x80004005
call fcn.140003080
int3
Function at 0x1400028c0
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 0x140002938
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002938
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140002925
nop
cmp rbx, rcx
jae 0x140002938
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140002910
cmp rbx, rcx
jae 0x140002938
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x14000293a
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 0x140002950
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 r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
shr eax, 4
mov edi, r8d
inc ax
mov rsi, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x140002a5d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002a5d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002a5d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400029f5
nop word [rax + rax]
cmp rbx, rcx
jae 0x140002a5d
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400029e0
cmp rbx, rcx
jae 0x140002a5d
cmp word [rbx], 0
je 0x140002a5d
mov rax, qword [rsi]
mov ecx, 1
movzx edi, word [rbx]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x140002a21
mov edx, edi
mov rcx, rsi
call fcn.140003020
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.1401b37d0
xor edx, edx
test eax, eax
je 0x140002a44
cmp eax, 0xc
je 0x140002a80
cmp eax, 0x50
jne 0x140002a7a
mov rcx, qword [rsi]
cmp edi, dword [rcx - 0xc]
jg 0x140002a86
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [rsi]
mov word [rcx + rdi*2], dx
jmp 0x140002a5f
xor eax, eax
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
call fcn.140024f44
int3
call fcn.140024f68
int3
mov ecx, 0x80070057
call fcn.140003080
int3