joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a66e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f8d90
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x529748]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x529748]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [esp + 0x24], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
push 0x20219
push edx
mov dword [esp + 0x50], 0
push dword [ecx]
lea ecx, [esp + 0x30]
call fcn.0049c070
mov esi, eax
test esi, esi
jne 0x4a68c3
xor edi, edi
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x14], edi
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a6794
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov byte [esp + 0x48], 1
mov ebx, dword [esp + 0x24]
jmp 0x4a67b0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4a6887
mov edi, dword [esp + 0x1c]
test edi, edi
js 0x4a687d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x4a6800
push edi
lea ecx, [esp + 0x24]
call fcn.00415500
mov esi, dword [esp + 0x20]
cmp edi, dword [esi - 8]
jg 0x4a687d
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [esp + 0x30]
mov edi, dword [esp + 0x14]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [esi - 8]
push esi
call fcn.004bf579
add esp, 8
test eax, eax
js 0x4a687d
cmp eax, dword [esi - 8]
jg 0x4a687d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
call fcn.004963a0
push 0
push 0x5134d8
lea ecx, [esp + 0x28]
call fcn.0048ded0
mov esi, dword [esp + 0x20]
inc edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0x400
jmp 0x4a67b0
push 0x80070057
call fcn.004162a0
test ebx, ebx
je 0x4a6898
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [esp + 0x24], ebx
add esi, 0xfffffff0
mov dword [esp + 0x28], 0
mov byte [esp + 0x48], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a68bf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x4a68c7
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4a68d2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x4a8100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9046
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x529748]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
push 0
push 0
mov byte [ebp - 4], 1
push 1
push 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [esi], eax
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x4a8360
push eax
call fcn.004b94c0
cmp dword [esi + 0xc], 0
mov ecx, eax
je 0x4a819f
call fcn.004c0d3c
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0xc], eax
mov dword [ecx + 4], 0
cmp dword [ebp - 0x1c], 0
je 0x4a81bc
call fcn.004c0d3c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4aafe0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9520
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
call fcn.00415c00
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4ab02b
push 0x80004005
call fcn.004162a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push dword [edi]
call fcn.00415690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push dword [eax]
push dword [esi]
call fcn.004bb8a0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4ab07a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ab0e2
push esi
call edi
test eax, eax
je 0x4ab0e2
mov edx, str.bQ
lea ecx, [ebp - 0x20]
call fcn.004bba60
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 1
jne 0x4ab0bb
push str.invalid_vector_T__subscript
call fcn.004bc548
push 0
lea ecx, [ebp - 0x14]
call fcn.004b9ff0
add esp, 4
neg eax
sbb edi, edi
mov eax, dword [ebp - 0x20]
inc edi
test eax, eax
je 0x4ab0dd
push eax
call fcn.004191e0
add esp, 4
mov esi, dword [ebp - 0x14]
jmp 0x4ab151
mov edx, str.aSI9Og
lea ecx, [ebp - 0x20]
call fcn.004bba60
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x4ab108
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
lea ecx, [ebp - 0x14]
call fcn.004b8730
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4ab13a
push eax
call fcn.004191e0
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x14]
push esi
call edi
test eax, eax
jne 0x4ab148
xor edi, edi
jmp 0x4ab151
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4ab16f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x4b8a70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb652
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x529748]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5131f4
mov dword [edi + 0x70], 0x507d2c
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x513254
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00414540
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x5131f0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00411220
lea eax, [esi + 4]
mov dword [esi], 0x5131b4
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x530710]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
push ecx
push 0x25
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004b9100
test eax, eax
jne 0x4b8bca
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4b8bc2
or eax, 4
push 0
push eax
call fcn.00414c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b8be0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb652
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x529748]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5131f4
mov dword [edi + 0x70], 0x507d2c
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x513254
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00414540
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x5131f0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00411220
lea eax, [esi + 4]
mov dword [esi], 0x5131b4
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x530710]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 0x40
or eax, 1
mov byte [ebp - 4], 3
push eax
push dword [ebp + 8]
call fcn.00496930
test eax, eax
jne 0x4b8d40
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4b8d38
or eax, 4
push 0
push eax
call fcn.00414c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b8d60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb6a2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x529748]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5131ac
mov dword [edi + 0x60], 0x507d2c
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x507c6c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00414540
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x5131a8
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00411220
lea eax, [esi + 4]
mov dword [esi], 0x5131b4
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x530710]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
push 0x40
push 2
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00496930
test eax, eax
jne 0x4b8ead
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4b8ea5
or eax, 4
push 0
push eax
call fcn.00414c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ba970
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x40000001
push dword [eax]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x4baa1b
mov edi, dword [ebp - 0x14]
test edi, edi
jns 0x4ba9ce
push 0x80070057
call fcn.004162a0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x4ba9e9
push edi
mov ecx, esi
call fcn.00415fc0
mov ecx, dword [esi]
cmp edi, dword [ecx - 8]
jg 0x4ba9c4
mov dword [ecx - 0xc], edi
mov eax, dword [esi]
mov byte [edi + eax], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push ecx
push 0x40000001
push dword [eax]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x4baa2a
push ecx
mov ecx, esi
call fcn.0049bc60
mov ecx, esi
call fcn.00415e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4baa88
mov ecx, dword [ebp - 0x14]
test ecx, ecx
js 0x4ba9c4
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4ba9c4
mov dword [eax - 0xc], ecx
mov edx, str.Sks
mov eax, dword [esi]
mov byte [ecx + eax], 0
lea ecx, [ebp - 0x24]
call fcn.004bbca0
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
jne 0x4baa68
push str.invalid_vector_T__subscript
call fcn.004bc548
push dword [0x530358]
push ecx
mov ecx, esi
call fcn.00499b40
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4baa86
push eax
call fcn.004191e0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x4bb820
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, edx
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4bb85f
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004155a0
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4bb870
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.0049c940
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004bd963
mov esp, ebp
pop ebp
ret

Function at 0x4bb920
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004c1b90
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4bb989
cmp dword [ebp - 0x114], 5
jne 0x4bb989
cmp dword [ebp - 0x110], 1
jb 0x4bb989
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret

Function at 0x4c6853
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4de1dd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004c49ac
mov dword [ebp - 0x14], eax
cmp dword [0x52fdac], esi
jne 0x4de2d0
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4de25d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4de3b0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4de3b0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4de3b0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x52fdac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x52fdb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x52fdb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x52fdbc], eax
test eax, eax
je 0x4de2cd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x52fdb8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4de2f5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4de2e8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4de30a
push 4
pop eax
jmp 0x4de3b2
cmp dword [ebp - 0x14], esi
je 0x4de30a
push dword [0x52fdac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4de2ef
mov eax, dword [0x52fdb8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4de368
cmp dword [0x52fdbc], edi
je 0x4de368
push eax
call ebx
push dword [0x52fdbc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4de368
test eax, eax
je 0x4de368
call ecx
test eax, eax
je 0x4de35d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4de35d
test byte [ebp - 8], 1
jne 0x4de368
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4de398
mov eax, dword [0x52fdb0]
cmp eax, edi
je 0x4de395
push eax
call ebx
test eax, eax
je 0x4de395
call eax
mov esi, eax
test esi, esi
je 0x4de395
mov eax, dword [0x52fdb4]
cmp eax, edi
je 0x4de395
push eax
call ebx
test eax, eax
je 0x4de395
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x52fdac]
call ebx
test eax, eax
je 0x4de3b0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4de3b2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x401abb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436090]
jne 0x401ac5
repz ret
jmp fcn.00402ea8

Function at 0x40c092
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.00404d19
and dword [ebp - 4], 0
cmp dword [0x43ab00], 0
mov ebx, eax
jne 0x40c143
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c1f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c1f4
push eax
call fcn.00404ca7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ab00], eax
call esi
push eax
call fcn.00404ca7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43ab04], eax
call esi
push eax
call fcn.00404ca7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ab08], eax
call esi
push eax
call fcn.00404ca7
pop ecx
mov dword [0x43ab10], eax
test eax, eax
je 0x40c143
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ca7
pop ecx
mov dword [0x43ab0c], eax
mov eax, dword [0x43ab0c]
cmp eax, ebx
je 0x40c19b
cmp dword [0x43ab10], ebx
je 0x40c19b
push eax
call fcn.00404d22
push dword [0x43ab10]
mov esi, eax
call fcn.00404d22
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c19b
test edi, edi
je 0x40c19b
call esi
test eax, eax
je 0x40c192
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c192
test byte [ebp - 0xc], 1
jne 0x40c19b
or dword [ebp + 0x10], 0x200000
jmp 0x40c1d4
mov eax, dword [0x43ab04]
cmp eax, ebx
je 0x40c1d4
push eax
call fcn.00404d22
pop ecx
test eax, eax
je 0x40c1d4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c1d4
mov eax, dword [0x43ab08]
cmp eax, ebx
je 0x40c1d4
push eax
call fcn.00404d22
pop ecx
test eax, eax
je 0x40c1d4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ab00]
call fcn.00404d22
pop ecx
test eax, eax
je 0x40c1f4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c1f6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d9d3
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1bb112c], 0x930
jne 0x40d9ed
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1bb112c], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bb0e48], eax
jne 0x40da0d
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
leave
ret
Function at 0x401690
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x430080]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x42c0bc
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401740
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push str._sminidownload.exe
mov edi, eax
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0040e98b
add esp, 0x10
push 0
push 0x20
push 2
push 0
push 7
push 0xc0000000
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401740
mov eax, dword [esp + 8]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x401756
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040e806
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.00403110
test eax, eax
je 0x401740
push 3
call fcn.00401790
mov ecx, dword [esp + 0x220]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.0040e806
mov esp, ebp
pop ebp
ret