joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30f12f80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x30f2720b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi + 8], ebx
mov dword [esi], 0x30f2a480
mov dword [esi + 4], 0x30f2a470
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.30f11b70
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov byte [eax + 0x21], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x30f14c60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x30f273b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
mov dword [esp + 0x18], 0
call fcn.30f14a50
test eax, eax
mov esi, dword [esp + 8]
jl 0x30f14ca0
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push esi
call sym.MKernel.dll_protected:_static_long_int___cdecl_MCEventHandlerImpl::InitHandlerInstance_class_MCEventHandlerImpl___struct_IUnknown___unsigned_short_int_const___struct_MIEventHandler___
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x14], 0xffffffff
jge 0x30f14ce3
test esi, esi
je 0x30f14cd0
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x30f1b980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30f27a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.30f0f7f0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.30f031c0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x30f1ba12
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x30f1bf50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30f27a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
xor ebx, ebx
push esi
mov ebp, ecx
mov dword [esp + 0xc], ebx
mov eax, dword [0x30f332d0]
mov ecx, 0x30f332d0
mov dword [esp + 0x28], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x30], 1
call fcn.30f21da0
mov esi, eax
add esp, 8
cmp esi, ebx
jl 0x30f1bff4
lea edx, [esp + 0x10]
push edx
lea eax, [ebp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.30f1b980
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 2
push eax
call dword [sym.imp.OLEAUT32.dll_SystemTimeToVariantTime]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x30f1bff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebx
jge 0x30f1c011
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x30f1c0bb
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0xc]
xor esi, esi
mov dword [esp + 0x20], eax
xor edi, edi
cmp edi, dword [esp + 0x20]
jae 0x30f1c0a2
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push edi
push eax
mov byte [esp + 0x38], 2
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jne 0x30f1c08a
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x30f1c08a
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x28], 5
jne 0x30f1c07f
push eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, ebp
call fcn.30f1b870
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x4c]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x30f1c09d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
cmp esi, ebx
je 0x30f1c024
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x30f1c0c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x28], 0xffffffff
je 0x30f1c0db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x30f1ef40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30f27d14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x30f2a85c
lea edi, [esi + 0x60]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x1c], 4
mov dword [0x30f33284], ebx
call fcn.30f1b480
mov eax, dword [edi + 4]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x54]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.30f1e7b0
mov eax, dword [edi + 4]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x48]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x28], 3
call fcn.30f1de60
mov eax, dword [edi + 4]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x3c]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.30f1d8b0
mov eax, dword [edi + 4]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x30]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.30f1c7d0
mov eax, dword [edi + 4]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x2c]
sub eax, 0x10
add esp, 4
mov byte [esp + 0x1c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x30f1f060
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.30f20b80
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x30f1f380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30f27d8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x10], esi
call fcn.30f20ae0
mov dword [esi], 0x30f2a85c
mov byte [esi + 0x28], bl
mov eax, dword [0x30f332d0]
mov ecx, 0x30f332d0
mov dword [esp + 0x18], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.30f1a9f0
mov dword [edi + 4], eax
mov byte [eax + 0x35], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x3c]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.30f146b0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x48]
mov ecx, edi
mov byte [esp + 0x18], 3
call fcn.30f1aa30
mov dword [edi + 4], eax
mov byte [eax + 0x31], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x54]
mov ecx, edi
mov byte [esp + 0x18], 4
call fcn.30f14670
mov dword [edi + 4], eax
mov byte [eax + 0x1d], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x60]
mov ecx, edi
mov byte [esp + 0x18], 5
call fcn.30f1a820
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x30f22d60
Capabilities:
Delete file

Disassembly:
sub esp, 0x210
mov eax, dword [0x30f33218]
push edi
mov dword [esp + 0x210], eax
xor eax, eax
mov word [esp + 4], 0
mov ecx, 0x82
lea edi, [esp + 6]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x218]
mov edx, dword [ecx + 4]
push 0x104
lea eax, [esp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [str..csmanifest]
push eax
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x210]
neg eax
sbb eax, eax
and eax, 0x7fff0001
add eax, 0x8000ffff
pop edi
call fcn.30f25a4e
add esp, 0x210
ret 4

Function at 0x30f249d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30f28438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push esi
mov esi, ecx
mov word [esp + 4], 3
mov dword [esp + 0xc], eax
mov edx, dword [esp + 4]
push 0
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.30f032b0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x1c
ret 4

Function at 0x30f25812
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x30f33218]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.30f25794
mov eax, 0x30f00000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x30f25874
cmp dword [ebp - 0x1c], 5
jb 0x30f2588c
jmp 0x30f25888
cmp dword [ebp - 0x10], 1
jne 0x30f2588c
cmp dword [ebp - 0x1c], 4
ja 0x30f25888
jne 0x30f2588c
cmp dword [ebp - 0x18], 0
jbe 0x30f2588c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x30f2aee8
call fcn.30f011c0
test eax, eax
jge 0x30f258ad
mov byte [0x30f33254], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.30f25a4e
add ebp, 0x78
leave
ret
Function at 0x4013bd
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
push 8
xor eax, eax
add esi, esi
pop ecx
sar esi, 1
mov edx, eax
xor edx, esi
shr eax, 1
test dl, 1
je 0x4013db
xor eax, 0xedb88320
dec ecx
test ecx, ecx
jg 0x4013c9
pop esi
ret 4

Function at 0x4013ff
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov eax, dword [0x4161e8]
je 0x40142f
mov ecx, dword [esp + 4]
push esi
movzx edx, byte [ecx]
dec dword [esp + 0xc]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x415bc0]
inc ecx
cmp dword [esp + 0xc], 0
jne 0x401410
pop esi
mov dword [0x4161e8], eax
ret

Function at 0x40168a
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
ret

Function at 0x401857
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x1a0
mov eax, dword [0x412198]
xor eax, ebp
mov dword [ebp + 0x11c], eax
mov ecx, dword [0x414e94]
inc dword [0x414e94]
test ecx, ecx
mov eax, dword [ebp + 0x128]
push ebx
push esi
push edi
je 0x401893
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x12c]
push eax
push 0x7d4
call fcn.0040196f
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x78]
push eax
call esi
add esp, 0x10
push 0x30
push 0x7d0
call fcn.0040196f
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [0x415950]
call edi
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
mov ebx, str.WZSFX32.RPT
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x40188b
push 0x40f328
lea eax, [ebp - 0x78]
push 0x191
push eax
call fcn.0040626b
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004061e0
pop ecx
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x80]
call fcn.0040387f
pop ecx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x7d1
call fcn.0040196f
push eax
lea eax, [ebp - 0x78]
push eax
call esi
add esp, 0xc
push 0x30
push 0x7d0
call fcn.0040196f
push eax
lea eax, [ebp - 0x78]
push eax
push dword [0x415950]
call edi
jmp 0x40188b
Function at 0x401bb9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x412198]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xc]
push eax
call fcn.004061e0
cmp eax, 8
pop ecx
jae 0x401c77
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x401c19
or ax, 0xffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406118
leave
ret 4
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.0040118c
add esp, 0xc
test eax, eax
jne 0x401c06
mov al, byte [ebp - 0x2c]
cmp al, bl
lea ecx, [ebp - 0x2c]
je 0x401c06
cmp al, 0x2e
je 0x401c49
cmp al, 0x20
je 0x401c49
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x401c3a
cmp byte [ecx], bl
je 0x401c06
mov al, byte [ecx]
cmp al, 0x30
jb 0x401c57
cmp al, 0x39
jbe 0x401c5a
inc ecx
jmp 0x401c4d
xor eax, eax
jmp 0x401c6f
movzx edx, dl
imul eax, eax, 0xa
sub edx, 0x30
cmp edx, 9
ja 0x401c0a
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x401c5e
jmp 0x401c0a
push 0x437
push str.sfxhead.c
call fcn.00401857
int3
Function at 0x40281d
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf74]
sub esp, 0xff4
mov eax, dword [0x412198]
xor eax, ebp
mov dword [ebp + 0xf70], eax
mov eax, dword [ebp + 0xf7c]
mov ecx, dword [ebp + 0xf84]
push ebx
push esi
mov esi, dword [ebp + 0xf80]
push edi
push eax
mov dword [ebp - 0x78], eax
mov ebx, 0x2e3
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 0x80], ecx
call fcn.004063ed
xor edi, edi
add esp, 0xc
cmp word [esi], di
je 0x40288a
push 0x40f3c8
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.004063ed
push esi
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00406373
add esp, 0x18
cmp dword [ebp - 0x80], 0xffffffff
jne 0x4028d7
push 0x10
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.004011b7
push 0x44
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.004011b7
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x74], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4028d7
mov eax, dword [ebp - 0x30]
jmp 0x402a15
lea eax, [ebp + 0x5a8]
push eax
push edi
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_FindExecutableW]
cmp eax, 0x1f
mov dword [ebp - 0x7c], eax
jne 0x402950
mov esi, 0x100
push esi
lea eax, [ebp + 0xd70]
push eax
push 0xffffffffffffffff
push 0x427
call fcn.0040196f
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x78]
lea eax, [ebp + 0xd70]
push eax
lea eax, [ebp + 0x5a8]
push ebx
push eax
call fcn.00406357
add esp, 0x10
push esi
lea eax, [ebp + 0xb70]
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.0040196f
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x10
jmp 0x4029f9
cmp eax, 0x20
jbe 0x40299c
mov ax, word [esi]
neg ax
push 1
push edi
sbb eax, eax
and eax, esi
push eax
mov eax, dword [0x412048]
push dword [ebp - 0x78]
and eax, 0x20000
neg eax
sbb eax, eax
and eax, str.Install
push eax
push dword [0x415950]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x80]
cmp ecx, edi
mov dword [ebp - 0x7c], eax
je 0x402992
mov dword [ecx], eax
cmp eax, 0x20
jbe 0x40299c
mov eax, dword [ebp - 0x7c]
jmp 0x402a15
mov esi, 0x100
push esi
lea eax, [ebp + 0xd70]
push eax
push 0xffffffffffffffff
push 0x400
call fcn.0040196f
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x78]
lea eax, [ebp + 0xd70]
push dword [ebp - 0x7c]
push eax
lea eax, [ebp + 0x5a8]
push ebx
push eax
call fcn.00406357
add esp, 0x14
push esi
lea eax, [ebp + 0xb70]
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.0040196f
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea eax, [ebp + 0xb70]
push eax
lea eax, [ebp + 0x5a8]
push eax
push dword [0x415950]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp + 0xf70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406118
add ebp, 0xf74
leave
ret
Function at 0x402a2d
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x412198]
xor eax, ebp
mov dword [ebp + 0x398], eax
push esi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x402a7a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.winzip_shellopencommand
mov esi, 0x209
push 0x80000000
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x402aa5
push 0
push 0x7d0
call fcn.0040196f
push eax
push 0x40e
call fcn.0040196f
push eax
push dword [0x415950]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x402b33
cmp word [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
je 0x402ac3
movzx ecx, word [ebp - 0x7c]
cmp cx, 0x20
je 0x402ac3
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x402ab3
mov ecx, eax
lea edx, [ebp - 0x7c]
sub ecx, edx
inc ecx
inc ecx
push 0x415980
sar ecx, 1
push str.__s_
sub esi, ecx
add eax, 2
push esi
push eax
call fcn.00406357
mov eax, dword [0x412048]
add esp, 0x10
test ax, 0x1000
je 0x402b1a
test ax, ax
js 0x402b1a
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x84]
mov word [eax], 0x7a
inc eax
inc eax
mov word [eax], 0x69
mov word [eax + 2], 0x70
push 0xffffffffffffffff
lea eax, [ebp - 0x7c]
push 0x40f3cc
push eax
call fcn.0040281d
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
pop esi
call fcn.00406118
add ebp, 0x39c
leave
ret
Function at 0x4043d2
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x415bae]
test eax, eax
jg 0x4043e5
and dword [0x41594c], 0
xor eax, eax
ret
push esi
mov esi, 0x800
cmp eax, esi
push edi
ja 0x4043f2
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x415948]
push dword [0x414e48]
call edi
cmp dword [0x414e58], 0
mov dword [0x41594c], eax
je 0x40445b
cmp eax, 0xffffffff
je 0x40445b
cmp eax, esi
je 0x40446b
test eax, eax
jl 0x40445b
movzx eax, word [section..data]
push dword [0x414e5c]
inc ax
push eax
call fcn.00401c87
mov eax, dword [0x41594c]
test eax, eax
jne 0x404454
push esi
push dword [0x415948]
push dword [0x414e48]
call edi
mov dword [0x41594c], eax
cmp eax, 0xffffffff
je 0x40445b
mov esi, eax
cmp eax, esi
je 0x40446b
push 2
call fcn.00402686
mov eax, dword [0x41594c]
sub dword [0x415bae], eax
cmp dword [0x414e4c], 0
mov esi, dword [0x415948]
mov dword [0x416248], esi
je 0x4044a8
mov edi, eax
test edi, edi
je 0x4044a8
dec edi
call fcn.00405ebf
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405ed9
inc esi
test edi, edi
pop ecx
jne 0x40448c
mov eax, dword [0x41594c]
mov ecx, eax
dec eax
pop edi
mov dword [0x41594c], eax
mov eax, ecx
pop esi
ret

Function at 0x405ed9
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x415910]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x415bc0]
mov ecx, dword [0x415918]
mov dword [0x415910], eax
movzx eax, al
add eax, dword [0x415914]
imul eax, eax, 0x8088405
inc eax
mov dword [0x415914], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x415bc0]
mov dword [0x415918], ecx
ret

Function at 0x405f65
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x412198]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x414e54]
mov esi, ecx
call fcn.00405f2d
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00401167
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.00405ebf
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.00405ed9
inc esi
cmp esi, 0xc
pop ecx
jl 0x405f94
cmp dword [0x414e50], 0
movzx ax, byte [ebp - 5]
movzx eax, ax
pop esi
je 0x405fd3
movzx cx, byte [0x415ba7]
cmp ax, cx
je 0x405fdd
or eax, 0xffffffff
jmp 0x405fdf
movzx cx, byte [0x415bad]
jmp 0x405fc9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406118
leave
ret

Function at 0x406118
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412198]
jne 0x406122
repz ret
jmp fcn.00407659