joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6620245e
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x66216577
call fcn.6620bd08
sub esp, 0xb0
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.66202d60
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.662037d0
push ebx
lea eax, [ebp - 0xbc]
push eax
mov esi, str.TS_UPDATED_DATFILE
push esi
call fcn.66203ba0
add esp, 0xc
cmp eax, ebx
jl 0x662024bc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xbc]
push eax
call fcn.66203280
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x662046a0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
xor eax, eax
mov ecx, ebx
add ecx, edx
adc eax, dword [esp + 0x18]
push edi
mov edi, dword [esi + 0x16c]
cmp edi, eax
jg 0x662046de
jl 0x662046d0
mov eax, dword [esi + 0x168]
cmp eax, ecx
jae 0x662046de
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
add esp, 8
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x66204704
mov ecx, dword [esp + 0x20]
push ebx
add eax, edx
push eax
push ecx
call fcn.6620be90
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x6620471b
pop edi
pop esi
mov eax, 0xc0000008
pop ebx
add esp, 8
ret 0x14
cmp byte [esi + 0x18c], 0
mov dword [esp + 0x24], 0
je 0x66204761
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x6620474d
push edi
push edi
push edi
push 0x100002
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov edi, dword [esp + 0x24]
jmp 0x66204754
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jge 0x66204763
pop edi
pop esi
pop ebx
add esp, 8
ret 0x14
xor edi, edi
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x170]
push ebx
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push edi
push eax
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
cmp esi, 0x103
jne 0x662047af
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
je 0x662047ab
jl 0x662047be
mov esi, 0xc0000001
jmp 0x662047be
mov esi, dword [esp + 0xc]
test esi, esi
jl 0x662047be
cmp dword [esp + 0x10], ebx
je 0x662047be
mov esi, 0xc000007b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x662047cd
push eax
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 0x14
Function at 0x66205600
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x6621681b
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x178]
call fcn.662094c0
xor ebx, ebx
cmp dword [esi + 0x160], ebx
jne 0x6620572f
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x662056f8
lea ecx, [esp + 0x48]
call fcn.66202d60
mov dword [esp + 0x100], ebx
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.6620a250
add esp, 8
lea ecx, [esp + 0x48]
call fcn.66202e50
xor edx, edx
cmp byte [esi + 0x18c], bl
mov dword [esp + 0x18], eax
setne dl
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
lea edi, [esi + 0x170]
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0x40
dec edx
and edx, 0x20
or edx, 0x40
push edx
mov edx, dword [esi + 0x188]
push 1
push eax
push ecx
push edx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebp, eax
cmp ebp, ebx
jge 0x662056e4
mov dword [edi], ebx
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov eax, ebp
jmp 0x662057c3
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov edx, dword [esi + 0x170]
push 5
push 0x18
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, ebx
jl 0x662057c3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], ecx
mov ecx, esi
call fcn.66204df0
mov edi, eax
cmp edi, ebx
jge 0x66205752
lea ecx, [esi + 0x178]
call fcn.662094c0
mov ecx, esi
call fcn.66204620
mov eax, edi
jmp 0x662057c3
cmp byte [esp + 0x108], bl
je 0x6620575f
xor eax, eax
jmp 0x662057c3
mov edi, dword [esi + 0x178]
mov ecx, edi
call fcn.66205860
test al, al
je 0x6620575b
cmp byte [esp + 0x10c], bl
je 0x6620575b
mov edx, dword [esi + 0x170]
mov eax, dword [esp + 0x110]
mov dword [esi + 0x174], edx
mov dword [esi + 0x170], ebx
push 0xffffffffffffffff
cmp eax, ebx
je 0x662057a2
push eax
mov ecx, esi
call fcn.662032c0
jmp 0x662057b8
mov ecx, edi
call fcn.66205880
push eax
mov ecx, esi
call fcn.662039b0
mov ecx, eax
call fcn.66201025
push ebx
push ebx
push 1
mov ecx, esi
call fcn.66205600
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 0xc
Function at 0x66205d10
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0x11c
xor ebx, ebx
lea edi, [esi + 4]
push ebx
push edi
call fcn.6620bd30
add esp, 0xc
push edi
mov dword [edi], 0x11c
call dword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [esi + 8], 5
jne 0x66205d93
cmp dword [esi + 0xc], ebx
jne 0x66205d93
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x1e0]
cmp edx, ebx
je 0x66205d8d
cmp word [eax + 0x1dc], bx
je 0x66205d8d
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x66205d62
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
lea edx, [esi + 0x18]
push edx
call fcn.6620be90
add esp, 0xc
pop edi
mov byte [esi + 0x11f], bl
pop esi
pop ebx
ret
xor eax, eax
mov word [esi + 0x18], ax
pop edi
mov byte [esi + 0x11f], bl
pop esi
pop ebx
ret

Function at 0x66205df0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x6621681b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], esi
call fcn.66202d60
xor ebx, ebx
mov dword [esp + 0xe8], ebx
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.66205bb0
add esp, 8
lea ecx, [esp + 0x30]
call fcn.66202e50
mov ebp, dword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
lea ecx, [esp + 0x14]
push ecx
push 0xf
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
mov edi, eax
cmp edi, ebx
jl 0x66205e87
mov eax, dword [esp + 0x10]
mov dword [esi + 0x15c], eax
jmp 0x66205f0d
lea ecx, [esp + 0x14]
push ecx
push 3
lea edx, [esp + 0x18]
push edx
call ebp
test eax, eax
jl 0x66205ea3
mov eax, dword [esp + 0x10]
mov dword [esi + 0x15c], eax
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x18]
push edx
call ebp
cmp eax, ebx
jl 0x66205f1b
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push str.Restricted
lea ecx, [esp + 0x38]
call fcn.662032c0
lea ecx, [esp + 0x30]
call fcn.66202e50
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0xf
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
push esi
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov esi, dword [esp + 0x2c]
cmp edi, ebx
jl 0x66205f1b
mov edx, dword [esp + 0x10]
mov dword [esi + 0x158], edx
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.66203260
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret
Function at 0x66206130
Capabilities:
Get system information on windows

Disassembly:
push esi
mov esi, ecx
call fcn.66205af0
test al, al
je 0x6620619b
push edi
mov ecx, esi
call fcn.66205d10
push 0x2c
lea edi, [esi + 0x120]
push 0
push edi
call fcn.6620bd30
add esp, 0xc
push 0
push 0x2c
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push 0
call edi
xor ecx, ecx
push ecx
lea eax, [esi + 0x14c]
push 0xc
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
push 1
mov dword [eax + 8], ecx
call edi
mov ecx, esi
call fcn.66205da0
mov ecx, esi
call fcn.66205df0
mov ecx, 2
mov eax, 1
lock cmpxchg dword [esi], ecx
pop edi
pop esi
ret
Function at 0x66206e30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
xor eax, eax
cmp byte [ecx + 2], al
setne al
ret

Function at 0x66207870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6621a728
push 0x6620ced4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
or eax, edi
je 0x66207a7d
cmp esi, 0xffffffff
jne 0x662078b8
test edi, edi
je 0x66207a7d
mov ecx, esi
and ecx, edi
cmp ecx, 0xffffffff
je 0x66207a7d
cmp dword [ebp + 0x20], 0
ja 0x662078db
jb 0x66207a65
cmp dword [ebp + 0x1c], 0x40
jb 0x66207a65
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
push edi
push esi
mov ecx, ebx
call fcn.662075f0
test eax, eax
jge 0x6620790d
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0x5a4d
cmp word [ebp - 0x1c], ax
jne 0x66207a5e
lea ecx, [ebp - 0x24]
push ecx
mov edx, esi
add edx, 0x3c
mov eax, edi
adc eax, 0
push eax
push edx
mov ecx, ebx
call fcn.66207610
test eax, eax
jl 0x662078f3
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov ebx, dword [ebp + 0x20]
cmp ecx, ebx
ja 0x66207a5e
jb 0x66207952
cmp eax, dword [ebp + 0x1c]
jae 0x66207a5e
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x66207a5e
xor edx, edx
cmp edx, ebx
ja 0x66207a5e
jb 0x66207975
lea edx, [eax + 0x18]
cmp edx, dword [ebp + 0x1c]
jae 0x66207a5e
cmp eax, 0x10000000
jae 0x66207a5e
lea edx, [ebp - 0x28]
push edx
add eax, esi
adc ecx, edi
push ecx
push eax
mov ecx, dword [ebp - 0x20]
call fcn.66207610
test eax, eax
jl 0x662078f3
cmp dword [ebp - 0x28], 0x4550
jne 0x66207a5e
mov edi, dword [ebp - 0x24]
xor ebx, ebx
add edi, esi
adc ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x662079bd
mov dword [eax], edi
mov dword [eax + 4], ebx
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x66207a39
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], ebx
mov eax, dword [ebp + 8]
mov dword [esi + 0x110], eax
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x114], ecx
mov dl, byte [ebp + 0x10]
mov byte [esi + 0x118], dl
push 0
push 0x18
push esi
push ebx
push edi
mov ecx, dword [ebp - 0x20]
call fcn.662073e0
test eax, eax
jl 0x662078f3
movzx eax, word [esi + 0x14]
movzx ecx, ax
mov edx, 0xf0
cmp dx, cx
jae 0x66207a17
mov eax, edx
jmp 0x66207a1a
movzx eax, ax
push 0
push eax
add esi, 0x18
push esi
add edi, 0x18
adc ebx, 0
push ebx
push edi
mov ecx, dword [ebp - 0x20]
call fcn.662073e0
test eax, eax
jl 0x662078f3
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x66208200
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x3c
push ebx
push edi
mov edi, dword [esp + 0x48]
cmp byte [edi + 0x118], 0
mov ebx, ecx
jne 0x66208221
pop edi
mov eax, 0xc000000d
pop ebx
add esp, 0x3c
ret 4
cmp word [edi + 0x14], 2
mov eax, dword [edi + 0x110]
mov ecx, dword [edi + 0x114]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jb 0x66208241
mov edx, 0x10b
mov eax, dword [edi + 0x54]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 0x48]
push 2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, 0x66242060
mov dword [esp + 0x24], 0
call fcn.6620afb0
test eax, eax
jl 0x66208332
movzx eax, word [edi + 0x14]
push ebp
mov ebp, dword [edi + 0x10c]
cdq
push esi
mov esi, eax
add esi, dword [edi + 0x108]
mov dword [esp + 0x50], 0
adc ebp, edx
add esi, 0x18
adc ebp, 0
xor ecx, ecx
cmp cx, word [edi + 6]
jae 0x6620832e
push 0
push 0x28
lea edx, [esp + 0x2c]
push edx
push ebp
push esi
mov ecx, ebx
call fcn.662073e0
test eax, eax
jl 0x66208330
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.662081a0
test eax, eax
jl 0x66208330
mov edx, dword [esp + 0x48]
push edx
call fcn.66207570
mov ecx, dword [esp + 0x30]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebx + 0x48]
push eax
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
mov ecx, 0x66242060
mov dword [esp + 0x2c], 0
call fcn.6620afb0
test eax, eax
jl 0x66208330
mov eax, dword [esp + 0x50]
movzx ecx, word [edi + 6]
inc eax
add esi, 0x28
adc ebp, 0
mov dword [esp + 0x50], eax
cmp eax, ecx
jb 0x662082a8
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x3c
ret 4
Function at 0x6620a9c0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], 0
jmp 0x6620aa03
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
cmp dword [ebp - 0x34], 4
jae 0x6620aa2e
cmp dword [ebp + 0x10], 0
jbe 0x6620aa2e
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 8]
mov dword [ebp + edx*8 - 0x30], ecx
mov eax, dword [eax - 4]
mov dword [ebp + edx*8 - 0x2c], eax
jmp 0x6620a9f1
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
sub edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x6620aa51
mov ecx, dword [ebp + 0x10]
add ecx, 1
mov dword [ebp + 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 4], esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6620aa77
mov edi, dword [ebp - 0xc]
lea edi, [edi + eax*8 - 8]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620aa6c
mov eax, 4
lea edi, [ebp - 0x18]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620aa7f
xor ecx, ecx
xor edx, edx
lea esi, [ebp + 8]
push 0x33
call 0x6620aa98
add dword [esp], 5
retf

Function at 0x6620aae0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
xor edx, edx
push 0x33
call fcn.6620aaf2

Function at 0x6620b190
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov bl, byte [eax]
push esi
cmp bl, 0xd8
je 0x6620b1c1
cmp bl, 0xd7
je 0x6620b1c1
mov esi, dword [esp + 0x14]
lea ecx, [eax + 1]
test esi, esi
jbe 0x6620b1e9
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x6620b1b3
pop esi
pop ebx
ret
mov esi, dword [esp + 0x10]
push esi
inc eax
push eax
call fcn.6620b3f0
cmp bl, 0xd8
jne 0x6620b1e9
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x6620b1e9
lea esp, [esp]
xor byte [eax + esi], 0xf0
inc eax
cmp eax, ecx
jb 0x6620b1e0
pop esi
pop ebx
ret

Function at 0x6620f26b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x66241028]
jne 0x6620f275
repz ret
jmp fcn.66213487
Function at 0x662152e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.6620d3f6
and dword [ebp - 4], 0
cmp dword [0x66242a40], 0
mov ebx, eax
jne 0x66215399
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6621544a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x6621544a
push eax
call fcn.6620d384
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x66242a40], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x66242a44], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x66242a48], eax
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a50], eax
test eax, eax
je 0x66215399
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a4c], eax
mov eax, dword [0x66242a4c]
cmp eax, ebx
je 0x662153f1
cmp dword [0x66242a50], ebx
je 0x662153f1
push eax
call fcn.6620d3ff
push dword [0x66242a50]
mov esi, eax
call fcn.6620d3ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x662153f1
test edi, edi
je 0x662153f1
call esi
test eax, eax
je 0x662153e8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x662153e8
test byte [ebp - 0xc], 1
jne 0x662153f1
or dword [ebp + 0x10], 0x200000
jmp 0x6621542a
mov eax, dword [0x66242a44]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x6621542a
mov eax, dword [0x66242a48]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x66242a40]
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621544a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6621544c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x8dc370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x8dc38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x905074
push ecx
mov edi, eax
call fcn.008f0198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8dc3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.008f002e
push esi
call fcn.008effb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x8df850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8df8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x90a720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8df8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008f01e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8df8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x90a720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8df92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.008f1082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x8df957
mov word [eax], si
add eax, 2
push eax
call fcn.008f1030
add esp, 4
jmp 0x8df959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8df8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8df8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x8dfff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x8e0080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8e00c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x905458
push ecx
call fcn.008f01e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008f01e1
add esp, 0x10
jmp 0x8e00d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008f020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008efdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.008e0050
mov eax, dword [0x90a728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x8e013b
push esi
call fcn.008dffb0
add esp, 4
mov dword [0x90a728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x8e014c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.008dfff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x8e3440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8e34b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x8e348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8e3471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8e347e
add edx, ecx
cmp ebx, edx
jb 0x8e348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8e3467
xor ecx, ecx
jmp 0x8e34a2
test eax, eax
jne 0x8e3492
xor ecx, ecx
jmp 0x8e34a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008e33c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret