joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
mov edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ebx, dword [edi + 0x6c]
add eax, esi
sub ebx, edx
cmp dword [edi + 0x6c], eax
jb 0x4047b8
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0x4c]
add esp, 0xc
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x44]
mov edi, dword [ebp - 4]
lea edx, [eax + edi*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub edi, 1
jne 0x404762
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x40]
mov edi, esi
lea edx, [eax + esi*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub edi, 1
jne 0x404790
mov edi, dword [ebp + 8]
add ebx, esi
mov ecx, dword [edi]
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x40485f
mov ecx, dword [edi + 0x6c]
mov edx, dword [edi + 0x74]
add ecx, edx
add ecx, dword [edi + 0x38]
cmp eax, ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
cmovbe ebx, eax
test ebx, ebx
jne 0x4047e6
xor ebx, ebx
jmp 0x40481e
sub eax, ebx
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0x1c]
cmp dword [eax + 0x18], 1
jne 0x404805
push ebx
push dword [ecx]
push dword [ecx + 0x30]
call fcn.004066c0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
push ebx
push dword [ecx]
push dword [ebp - 8]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [eax], ebx
add dword [eax + 8], ebx
mov edx, dword [edi + 0x74]
add edx, ebx
mov dword [ebp - 8], edx
mov dword [edi + 0x74], edx
cmp edx, 3
jb 0x40484b
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
mov edx, dword [ebp - 8]
cmp edx, 0x106
jae 0x40485f
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x404722
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1ffb1310
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
mov eax, section..reloc
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1ff76078
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x5d3af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push esi
cmp dword [ebp - 0x54], 0x5d
jne 0x5d3b12
movzx eax, byte [ebp - 0x83]
and eax, dword [ebp - 0x8c]
mov dword [ebp - 0x48], eax
jmp 0x5d3b31
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
shl edx, cl
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xb0]
add eax, dword [ebp - 0xc0]
and edx, eax
mov dword [ebp - 0xa0], edx
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp - 0x44]
movzx edx, word [ebp - 0x18]
add edx, dword [ebp - 0x74]
and ecx, edx
and ecx, 0x1a7
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x54], 0x8f
jne 0x5d3b7d
cmp dword [ebp - 0x74], 0x72
je 0x5d3b7d
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xd0]
sub eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc4]
sub ecx, 0x51
and eax, ecx
mov dword [ebp - 0xa0], eax
jmp 0x5d3b8a
movzx edx, word [ebp - 0xb8]
shl edx, 0x4b
mov dword [ebp - 0x6c], edx
movzx eax, word [ebp - 0x60]
mov ecx, dword [ebp - 0x54]
add ecx, 0x14
sar eax, cl
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x24], 0
je 0x5d3bb9
cmp dword [ebp - 0x74], 0
jne 0x5d3bb9
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x8c]
sub ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x3c], ecx
jmp 0x5d3bbf
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xb0]
lea edx, [ecx + eax + 0x3e]
sub edx, dword [ebp - 8]
or edx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], edx
movzx eax, word [ebp - 0x4c]
test eax, eax
je 0x5d3bf8
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
movzx ecx, byte [ebp - 0xaa]
sub eax, ecx
mov dword [ebp - 0x24], eax
jmp 0x5d3c1f
mov esi, 0xe2
sub esi, dword [ebp - 0x30]
sub esi, dword [ebp - 0xc4]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryMultipleValuesA]
add eax, 0x4d
and esi, eax
mov word [ebp - 0x18], si
movzx edx, word [ebp - 0x7c]
sub edx, 0x82
and edx, 0x20
mov word [ebp - 0xc8], dx
mov al, byte [ebp - 0x4d]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5e95c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov eax, dword [ebp - 0x48]
add eax, 0x2e
and eax, dword [ebp - 0xf8]
and eax, 0x50
mov byte [ebp - 0xd9], al
movzx ecx, word [ebp - 0xb8]
test ecx, ecx
je 0x5e9628
cmp dword [ebp - 0xc0], 0xb0
jne 0x5e9628
movzx esi, word [ebp - 0xbc]
sub esi, dword [ebp - 0xa4]
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
sub eax, 0x33
sub eax, dword [ebp - 0x90]
movzx edx, word [ebp - 0xbc]
sub eax, edx
or esi, eax
mov dword [ebp - 0xf8], esi
jmp 0x5e9634
mov eax, dword [ebp - 0x3c]
or eax, 0xa1
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
sub edx, 0x18
mov dword [ebp - 0x100], edx
cmp dword [ebp - 0x100], 0xd3
ja case.0x5e9669.1
mov eax, dword [ebp - 0x100]
movzx ecx, byte [eax + 0x5e97b8]
jmp dword [ecx*4 + 0x5e979c]
movzx edx, word [ebp - 0xb0]
add edx, dword [ebp - 0xa0]
mov word [ebp - 0xc8], dx
jmp 0x5e974b
mov eax, dword [ebp - 8]
add eax, 0x69
sub eax, dword [ebp - 0x44]
sub eax, 0x54
sub eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x38]
or eax, 0xcc
mov dword [ebp - 0x34], eax
jmp 0x5e974b
movzx ebx, word [ebp - 0x98]
add ebx, 0x30
sub ebx, dword [ebp - 0x80]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ebx, eax
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xa8]
lea eax, [edx + ecx - 0xaf]
sub eax, dword [ebp - 4]
and ebx, eax
mov byte [ebp - 0x1e], bl
jmp 0x5e974b
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xf8]
lea eax, [edx + ecx - 0xdc]
mov word [ebp - 0x4c], ax
jmp 0x5e974b
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
jmp 0x5e974b
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0xd4]
lea ecx, [eax + edx + 0xd9]
sub ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xc0], ecx
jmp 0x5e974b
movzx edx, word [ebp - 0x4c]
mov eax, 0x28
sub eax, edx
sub eax, dword [ebp - 0xd0]
movzx ecx, byte [ebp - 0xb]
add eax, ecx
movzx edx, word [ebp - 0x4c]
add eax, edx
shr eax, 0x28
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 4], 0xef
je 0x5e9768
mov eax, dword [ebp - 0xc0]
add eax, dword [ebp - 0x10]
and eax, dword [ebp - 0xc0]
mov dword [ebp - 0x5c], eax
jmp 0x5e9783
movzx ecx, word [ebp - 0xe0]
mov edx, 0x100
sub edx, ecx
mov eax, dword [ebp - 0x54]
add eax, 0xec
and edx, eax
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x80], ecx
mov al, byte [ebp - 0x85]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e9890
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push esi
mov eax, dword [ebp - 0x34]
add eax, 0x3a
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0xa0], 0xbf
jne 0x5e98c1
mov ecx, dword [ebp - 0xc8]
and ecx, 0xea
mov word [ebp - 0x7c], cx
jmp 0x5e98e1
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x70]
movzx ecx, byte [ebp - 0xa]
sub eax, ecx
sub eax, dword [ebp - 0x34]
and edx, eax
mov byte [ebp - 0x99], dl
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x88]
lea ecx, [eax + edx + 0x1b]
and ecx, dword [ebp - 0x30]
movzx edx, word [ebp - 0x48]
add edx, 0x53
xor ecx, edx
mov dword [ebp - 0x54], ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov edx, dword [ebp - 0x44]
lea eax, [ecx + edx - 0x27]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], ecx
movzx esi, word [ebp - 0x28]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
cmp esi, eax
je 0x5e9943
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0xc4], edx
jmp 0x5e996c
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x3c]
movzx ecx, byte [ebp - 0x61]
sub eax, ecx
movzx edx, word [ebp - 0xb4]
add eax, edx
movzx ecx, word [ebp - 0x40]
lea edx, [eax + ecx - 0x64]
mov dword [ebp - 0x88], edx
cmp dword [ebp - 0x30], 0
je 0x5e997e
cmp dword [ebp - 0xb0], 0xae
je 0x5e9989
mov eax, dword [ebp - 0x38]
add eax, 0x5c
mov dword [ebp - 0x34], eax
jmp 0x5e999c
movzx ecx, byte [ebp - 0xb]
add ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 8]
or ecx, dword [ebp - 0x70]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x68], 0x71
jne 0x5e99b1
movzx edx, word [ebp - 0x8c]
cmp edx, 0x9d
jne 0x5e99d5
movzx eax, byte [ebp - 0x69]
mov ecx, dword [ebp - 0x54]
lea esi, [eax + ecx - 0x88]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
and esi, eax
and esi, dword [ebp - 0x50]
mov dword [ebp - 0x34], esi
jmp 0x5e99e1
mov edx, dword [ebp - 0xb0]
add edx, 0x50
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x54], 0xa
je 0x5e9a0e
mov eax, dword [ebp - 0x88]
add eax, 0x42
sub eax, dword [ebp - 0x30]
mov ecx, 0x89
sub ecx, dword [ebp - 0xa0]
add ecx, dword [ebp - 0xd4]
and eax, ecx
and eax, dword [ebp - 0x34]
mov byte [ebp - 0xa], al
jmp 0x5e9a1b
movzx edx, byte [ebp - 0x80]
and edx, dword [ebp - 0xa0]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0xa4]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5e9a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push esi
mov al, byte [ebp - 0x60]
mov byte [ebp - 0xf5], al
movzx ecx, word [ebp - 0x18]
test ecx, ecx
jne 0x5e9a75
mov esi, dword [ebp - 4]
add esi, 0xe2
sub esi, dword [ebp - 0x44]
add esi, dword [ebp - 0x34]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esi + eax - 0x18]
mov dword [ebp - 0x28], edx
jmp 0x5e9a9e
movzx eax, word [ebp - 0xec]
mov ecx, dword [ebp - 0xb8]
lea edx, [eax + ecx + 8]
movzx eax, word [ebp - 0x7c]
add eax, dword [ebp - 0xe0]
and edx, eax
and edx, 0xfe
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xa0], 0xa
mov ecx, dword [ebp - 0xd0]
add ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x64]
lea eax, [ecx + edx - 0x2d]
sub eax, dword [ebp - 0xd0]
sub eax, dword [ebp - 0x10]
or eax, dword [ebp - 0x24]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0xb8]
add ecx, dword [ebp - 0xb8]
movzx edx, word [ebp - 0xc0]
add ecx, edx
and ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xb8], ecx
cmp dword [ebp - 0x10], 0
jne 0x5e9b07
cmp dword [ebp - 0x40], 0
jne 0x5e9b07
mov ax, word [ebp - 0x24]
mov word [ebp - 0xc8], ax
jmp 0x5e9b1c
mov ecx, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x64]
add ecx, dword [ebp - 0xb8]
movzx edx, word [ebp - 0x3c]
or ecx, edx
mov dword [ebp - 0x44], ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
cmp eax, 0xb3
je 0x5e9b4c
movzx eax, byte [ebp - 9]
mov ecx, dword [ebp - 0x28]
lea edx, [eax + ecx + 0xc1]
add edx, dword [ebp - 0x24]
shr edx, 0xd4
and edx, dword [ebp - 0x24]
mov dword [ebp - 0xd0], edx
jmp 0x5e9b64
mov eax, dword [ebp - 0x64]
add eax, 0x4b
movzx ecx, byte [ebp - 0xca]
sub ecx, dword [ebp - 0x44]
and eax, ecx
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xbc], 0x92
je 0x5e9b81
mov edx, dword [ebp - 0x64]
sub edx, 0x119
and edx, dword [ebp - 8]
mov dword [ebp - 0x40], edx
jmp 0x5e9b8f
mov eax, 0xf0
sub eax, dword [ebp - 0xb8]
mov dword [ebp - 0x40], eax
movzx ecx, byte [ebp - 0x1e]
mov edx, dword [ebp - 0xe4]
sub edx, ecx
movzx eax, word [ebp - 0x70]
add eax, 0x70
or edx, eax
mov dword [ebp - 0x38], edx
movzx ecx, word [ebp - 0x50]
test ecx, ecx
je 0x5e9be2
mov edx, 5
sub edx, dword [ebp - 0xf4]
sub edx, 0x4c
and edx, 0x86
movzx eax, word [ebp - 0xdc]
sub eax, dword [ebp - 0x60]
mov ecx, 0xe
sub ecx, dword [ebp - 0x10]
shl eax, cl
or edx, eax
mov word [ebp - 0xc4], dx
jmp 0x5e9bf7
movzx ecx, word [ebp - 0xb4]
mov edx, dword [ebp - 0xe4]
sub edx, ecx
add edx, dword [ebp - 0x40]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x78]
sub eax, 0x45
mov ecx, dword [ebp - 0xf4]
add ecx, 0xed
sub ecx, dword [ebp - 0xe0]
or eax, ecx
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x88]
and edx, 0x17
and edx, 0x79
movzx eax, word [ebp - 0x7c]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx + 0xe2]
and edx, eax
and edx, 0xcd
mov dword [ebp - 0xb8], edx
mov al, byte [ebp - 0xb]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5eca8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x515ab0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005eb9e2
and dword [ebp - 0x14], 0
cmp dword [0x24e586c], 0
mov dword [ebp - 0x18], eax
jne 0x5ecb3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5ecbe6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5ecbe6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x24e70a8
push ebx
mov dword [0x24e586c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x24e5870], eax
call edi
push eax
call esi
push 0x24e7078
push ebx
mov dword [0x24e5874], eax
call edi
push eax
call esi
mov dword [0x24e587c], eax
test eax, eax
je 0x5ecb3e
push 0x24e7060
push ebx
call edi
push eax
call esi
mov dword [0x24e5878], eax
mov eax, dword [0x24e5878]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5ecb97
cmp dword [0x24e587c], ecx
je 0x5ecb97
push eax
call esi
push dword [0x24e587c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5ecb97
test ebx, ebx
je 0x5ecb97
call edi
test eax, eax
je 0x5ecb8e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5ecb8e
test byte [ebp - 8], 1
jne 0x5ecb97
or dword [ebp + 0x10], 0x200000
jmp 0x5ecbca
mov eax, dword [0x24e5870]
cmp eax, dword [ebp - 0x18]
je 0x5ecbca
push eax
call esi
test eax, eax
je 0x5ecbca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5ecbca
mov eax, dword [0x24e5874]
cmp eax, dword [ebp - 0x18]
je 0x5ecbca
push eax
call esi
test eax, eax
je 0x5ecbca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x24e586c]
call esi
test eax, eax
je 0x5ecbe6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5ecbe8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ecdf6
leave
ret

Function at 0x5ecdf6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x515ab0]
jne 0x5ece00
repz ret
jmp fcn.005ee066

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x899370
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 0x89938e
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 0x8c2074
push ecx
mov edi, eax
call fcn.008ad198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8993cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.008ad02e
push esi
call fcn.008acfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x89c850
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 0x89c8ae
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 0x8c7720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x89c8ba
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.008ad1e1
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 0x89c8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8c7720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x89c92a
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.008ae082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x89c957
mov word [eax], si
add eax, 2
push eax
call fcn.008ae030
add esp, 4
jmp 0x89c959
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 0x89c8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x89c8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x89cff0
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 0x89d080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x89d0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x8c2458
push ecx
call fcn.008ad1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008ad1e1
add esp, 0x10
jmp 0x89d0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008ad20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008acdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0089d050
mov eax, dword [0x8c7728]
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 0x89d13b
push esi
call fcn.0089cfb0
add esp, 4
mov dword [0x8c7728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x89d14c
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.0089cff0
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 0x8a0440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8a04b7
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 0x8a048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8a0471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8a047e
add edx, ecx
cmp ebx, edx
jb 0x8a048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8a0467
xor ecx, ecx
jmp 0x8a04a2
test eax, eax
jne 0x8a0492
xor ecx, ecx
jmp 0x8a04a2
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.008a03c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8a08f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x8a0921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x8a0946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x8a096e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x8a0993
push ecx
push esi
call fcn.008a04c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret