joyce8/EMBER2024-capa huggingface dataset:
Function at 0x595e80
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ecx + 8]
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x7085b4
mov ecx, esi
mov dword [esp], pe_nt_image_headers32
call fcn.00588590
mov eax, 0x101
mov dword [ebx + 0x28], 0x10
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov word [ebx + 0x24], ax
mov dword [ebx], 0x709f18
mov dword [ebx + 4], 0x709f50
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.0047ca00
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x38], eax
cmp edx, 7
jbe 0x595fd0
cmp dword [ebx + 0x30], 8
mov eax, 8
cmovbe eax, dword [ebx + 0x30]
sub edx, eax
jne 0x596060
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x30], 8
test eax, eax
jne 0x596044
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [eax]
mov ecx, eax
mov dword [esp], 0x40
call dword [edx]
mov edi, eax
mov eax, dword [ebx + 0x30]
sub esp, 4
mov dword [esp], edi
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memmove
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x596028
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x596028
test eax, eax
je 0x596028
shl eax, 3
mov edx, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x30], 8
mov dword [ebx + 0x34], 8
test eax, eax
je 0x595f3c
mov edx, dword [ebx + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
jmp 0x595f3c
mov ecx, dword [ebx + 0x2c]
shl edx, 3
mov dword [esp + 4], 0
mov dword [esp + 8], edx
lea eax, [ecx + eax*8]
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x595f2a
Function at 0x5a37f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x6f78e5
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x6f7949]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.005590c8
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.00635f50
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x689bc4], 0
jne 0x5a3916
mov byte [0x689bc4], 1
call fcn.00641760
test eax, eax
je 0x5a38e4
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.00558eb0
mov dword [esp], 2
mov esi, dword [fcn.005644f0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x5a38d4
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6f6a4d
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x666b54
jmp 0x666b4c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x5a389a
mov dword [esp], 2
call dword [0x688158]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x666b47
mov dword [esp], 2
call dword [0x688158]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x70a720
call fcn.00633e50
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.00641380
add esp, 0x18
pop ebx
ret
Function at 0x40a3a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x40a3ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a3c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a3b0
mov eax, 1
add ebx, ebx
jne 0x40a3d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a3c8
jne 0x40a3e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a3c8
xor ecx, ecx
sub eax, 3
jb 0x40a3f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a46a
mov ebp, eax
add ebx, ebx
jne 0x40a403
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a410
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a434
inc ecx
add ebx, ebx
jne 0x40a420
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a415
jne 0x40a431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a415
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a454
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a445
jmp 0x40a3b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a454
add edi, ecx
jmp 0x40a3b6
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a4b3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa4c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa534]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a471
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa53c]
or eax, eax
je 0x40a4ad
mov dword [ebx], eax
add ebx, 4
jmp 0x40a48e
call dword [esi + 0xa538]
mov ebp, dword [esi + 0xa540]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40a4e7
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401bd7
pop dword [ebp - 0x1c]
mov eax, 0x401bd7
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x2991478f
add dword [ebp - 0x2c], 0x24c0fdbc
mov dword [ebp - 0x28], 0x60497282
sub dword [ebp - 0x28], 0x2e16263d
mov dword [ebp - 0x24], 0x7a15dded
sub dword [ebp - 0x24], 0x2dc999bf
mov dword [ebp - 0x20], 0xbf45c735
add dword [ebp - 0x20], 0x40ba38cb
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x50d5e5dd
sub eax, 0x5095757d
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xcbd56648
sub dword [ebp - 0x2c], 0x5762fcf2
mov dword [ebp - 0x28], 0x76a2ffee
add dword [ebp - 0x28], 0xcac96187
mov dword [ebp - 0x24], 0x5de06e2e
sub dword [ebp - 0x24], 0xfa7101c2
mov dword [ebp - 0x20], 0x949e00f9
add dword [ebp - 0x20], 0x6b61ff07
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xd9188748
add eax, 0x2727e9b8
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x33523
push 0
call eax
mov ecx, 0x3afc
xor edx, edx
add edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x1c]
mov edi, 0x1862193d
sub dword [ebp - 0x14], 0x609f984e
mov esi, dword [ebx]
add dword [ebp - 0x10], 0xa916f9ce
xor esi, edi
sub dword [ebp - 0xc], 0x9722136e
mov dword [edx], esi
xor dword [ebp - 8], 0x13cd8e18
add edx, 0x7c0cb102
add edx, 0x83f34f02
add ebx, 4
loop 0x401ce4
add eax, 0xdec3
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0xdcd5b4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdcd5be
pushal
call 0xdcd5c4
pop ebp
sub ebp, 0x10
sub ebp, 0x9cd5b4
jmp 0xdcd5da
mov eax, 0x9cd5b4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ad
mov edx, 0x6a79dd28
xor byte [eax], dl
inc eax
dec ecx
jne 0xdcd5f1
jmp 0xdcd604
mov dword [0x14a1a3e5], eax
sub byte [eax], ch
sub byte [ecx + 0x2828d0e9], ch
sub byte [ebx], ch
in eax, 0x90
sub byte cs:[eax], ch
sub byte [edx + 0x28282800], dl
invalid
Function at 0x402594
Capabilities:
Inspect section memory permissions

Disassembly:
test eax, eax
je 0x4025a2
call dword [0x40b004]
or eax, eax
je 0x4025a3
ret
mov al, 1
jmp fcn.00402614

Function at 0x4025ac
Capabilities:
Inspect section memory permissions

Disassembly:
test eax, eax
je 0x4025ba
call dword [0x40b008]
or eax, eax
jne 0x4025bb
ret
mov al, 2
jmp fcn.00402614

Function at 0x4025c4
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4025fc
test edx, edx
je 0x4025e6
push eax
mov eax, ecx
call dword [0x40b00c]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402614
mov dword [eax], edx
mov eax, ecx
call dword [0x40b008]
or eax, eax
jne 0x4025df
ret
mov al, 1
jmp fcn.00402614
test edx, edx
je 0x402610
push eax
mov eax, edx
call dword [0x40b004]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret

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

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret
Function at 0x407890
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4078ac
shr eax, 1
xor eax, 0xedb88320
jmp 0x4078ae
shr eax, 1
dec edx
jne 0x40789f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407898
pop esi
ret

Function at 0x4078c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4078e7
call fcn.00407890
push 1
push 0x40c558
call fcn.004043fc
mov eax, edi
test esi, esi
je 0x407912
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4078ed
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4013a6
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 0x4013c4
xor eax, 0xedb88320
dec ecx
test ecx, ecx
jg 0x4013b2
pop esi
ret 4

Function at 0x4013e8
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov eax, dword [0x412d28]
je 0x401418
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 + 0x412700]
inc ecx
cmp dword [esp + 0xc], 0
jne 0x4013f9
pop esi
mov dword [0x412d28], eax
ret

Function at 0x40165e
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 0x4017e9
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x1a0
mov eax, dword [0x40f198]
xor eax, ebp
mov dword [ebp + 0x11c], eax
mov ecx, dword [0x411c14]
inc dword [0x411c14]
test ecx, ecx
mov eax, dword [ebp + 0x128]
push ebx
push esi
push edi
je 0x401825
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x12c]
push eax
push 0x7d4
call fcn.00401901
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.00401901
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [0x4126c0]
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 - 0x7c], eax
je 0x40181d
push 0x40c2e0
lea eax, [ebp - 0x78]
push 0x191
push eax
call fcn.00405ffb
add esp, 0xc
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00405f70
pop ecx
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call fcn.004036a0
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x7d1
call fcn.00401901
push eax
lea eax, [ebp - 0x78]
push eax
call esi
add esp, 0xc
push 0x30
push 0x7d0
call fcn.00401901
push eax
lea eax, [ebp - 0x78]
push eax
push dword [0x4126c0]
call edi
jmp 0x40181d
Function at 0x401b4b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40f198]
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.00405f70
cmp eax, 8
pop ecx
jae 0x401c09
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 0x401bab
or ax, 0xffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405ead
leave
ret 4
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.0040118c
add esp, 0xc
test eax, eax
jne 0x401b98
mov al, byte [ebp - 0x2c]
cmp al, bl
lea ecx, [ebp - 0x2c]
je 0x401b98
cmp al, 0x2e
je 0x401bdb
cmp al, 0x20
je 0x401bdb
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x401bcc
cmp byte [ecx], bl
je 0x401b98
mov al, byte [ecx]
cmp al, 0x30
jb 0x401be9
cmp al, 0x39
jbe 0x401bec
inc ecx
jmp 0x401bdf
xor eax, eax
jmp 0x401c01
movzx edx, dl
imul eax, eax, 0xa
sub edx, 0x30
cmp edx, 9
ja 0x401b9c
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x401bf0
jmp 0x401b9c
push 0x436
push str.sfxhead.c
call fcn.004017e9
int3

Function at 0x40279d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5cc
mov eax, dword [0x40f198]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x5cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0
je 0x4027ef
push 0x40c378
lea eax, [ebp - 0x5cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [ebp - 0x5cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp ebx, 0xffffffff
jne 0x402808
push 1
lea eax, [ebp - 0x5cc]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4028ba
lea eax, [ebp - 0x2e8]
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x40283d
push edi
push 0x427
call fcn.00401901
push eax
lea eax, [ebp - 0x2e8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
jmp 0x40289a
cmp eax, 0x20
jbe 0x40287b
mov al, byte [esi]
neg al
push 1
push 0
sbb eax, eax
and eax, esi
push eax
mov eax, dword [0x40f048]
and eax, 0x20000
neg eax
sbb eax, eax
push edi
and eax, str.Install
push eax
push dword [0x4126c0]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test ebx, ebx
je 0x402876
mov dword [ebx], eax
cmp eax, 0x20
ja 0x4028ba
push edi
push eax
push 0x400
call fcn.00401901
push eax
lea eax, [ebp - 0x2e8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x7d0
call fcn.00401901
push eax
lea eax, [ebp - 0x2e8]
push eax
push dword [0x4126c0]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ead
leave
ret
Function at 0x4028c9
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40f198]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x402914
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.winzip_shellopencommand
push 0x80000000
mov dword [ebp - 0x80], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x40293c
push 0
push 0x7d0
call fcn.00401901
push eax
push 0x40e
call fcn.00401901
push eax
push dword [0x4126c0]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x4029ab
mov cl, byte [ebp - 0x7c]
lea eax, [ebp - 0x7c]
jmp 0x40294c
cmp cl, 0x20
je 0x402950
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x402944
push 0x412da0
inc eax
push str.__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x40f048]
add esp, 0xc
test ax, 0x1000
je 0x402992
test ax, ax
js 0x402992
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x7c]
sub ecx, 4
add eax, ecx
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
push 0xffffffffffffffff
lea eax, [ebp - 0x7c]
push 0x40c37c
push eax
call fcn.0040279d
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00405ead
add ebp, 0x90
leave
ret
Function at 0x4041b9
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4126ee]
test eax, eax
jg 0x4041cc
and dword [0x4126bc], 0
xor eax, eax
ret
push esi
mov esi, 0x800
cmp eax, esi
push edi
ja 0x4041d9
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x4126b8]
push dword [0x411bc8]
call edi
cmp dword [0x411bd8], 0
mov dword [0x4126bc], eax
je 0x404242
cmp eax, 0xffffffff
je 0x404242
cmp eax, esi
je 0x404252
test eax, eax
jl 0x404242
movzx eax, word [section..data]
push dword [0x411bdc]
inc ax
push eax
call fcn.00401c19
mov eax, dword [0x4126bc]
test eax, eax
jne 0x40423b
push esi
push dword [0x4126b8]
push dword [0x411bc8]
call edi
mov dword [0x4126bc], eax
cmp eax, 0xffffffff
je 0x404242
mov esi, eax
cmp eax, esi
je 0x404252
push 2
call fcn.00402606
mov eax, dword [0x4126bc]
sub dword [0x4126ee], eax
cmp dword [0x411bcc], 0
mov esi, dword [0x4126b8]
mov dword [0x412d88], esi
je 0x40428f
mov edi, eax
test edi, edi
je 0x40428f
dec edi
call fcn.00405c57
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405c71
inc esi
test edi, edi
pop ecx
jne 0x404273
mov eax, dword [0x4126bc]
mov ecx, eax
dec eax
pop edi
mov dword [0x4126bc], eax
mov eax, ecx
pop esi
ret

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

Disassembly:
mov eax, dword [0x412680]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x412700]
mov ecx, dword [0x412688]
mov dword [0x412680], eax
movzx eax, al
add eax, dword [0x412684]
imul eax, eax, 0x8088405
inc eax
mov dword [0x412684], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x412700]
mov dword [0x412688], ecx
ret

Function at 0x405cfd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40f198]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x411bd4]
mov esi, ecx
call fcn.00405cc5
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.00405c57
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.00405c71
inc esi
cmp esi, 0xc
pop ecx
jl 0x405d2c
cmp dword [0x411bd0], 0
movzx ax, byte [ebp - 5]
movzx eax, ax
pop esi
je 0x405d6b
movzx cx, byte [0x4126e7]
cmp ax, cx
je 0x405d75
or eax, 0xffffffff
jmp 0x405d77
movzx cx, byte [0x4126ed]
jmp 0x405d61
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405ead
leave
ret

Function at 0x405ead
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f198]
jne 0x405eb7
repz ret
jmp fcn.00407232