joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov ebx, ecx
or ebp, 0xffffffff
call fcn.0047b5f0
mov eax, dword [ebx + 0x47c]
xor esi, esi
cmp eax, esi
jne 0x47bb45
lea edi, [ebx + 8]
mov dword [ebx + 0x47c], 1
mov ecx, edi
call fcn.0047f240
test al, al
jne 0x47bb3f
mov ecx, edi
call fcn.0047f270
mov ecx, edi
mov byte [esp + 0x13], al
mov byte [esp + 0x12], 0
call fcn.0047f790
cmp eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jle 0x47bb1f
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
jmp 0x47b9a7
xor esi, esi
mov ecx, ebx
call fcn.0047d130
lea ecx, [ebx + 8]
mov dword [esp + 0x20], eax
call fcn.0047f7a0
mov ebp, eax
cmp dword [ebp], 1
jne 0x47ba02
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
mov dword [esp + 0x30], esi
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], 0x420
mov dword [esp + 0x2c], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x44]
jmp 0x47ba40
mov eax, dword [ebp + 4]
mov dword [esp + 0x50], esi
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], 0x820
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0047d7a0
lea ecx, [ebx + 8]
call fcn.0047f7b0
mov eax, dword [ebp + 4]
mov ecx, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
call fcn.0047b5d0
mov eax, dword [ebp]
mov dword [esp + 0x1c], esi
cmp eax, 1
jne 0x47ba81
mov eax, dword [ebp + 0xc]
mov edi, 0x21
add eax, esi
mov dword [esp + 0x1c], eax
jmp 0x47ba86
mov edi, 0x22
cmp dword [esp + 0x18], 1
jle 0x47ba93
or edi, 0x80
mov ecx, ebx
call fcn.0047d130
sub eax, dword [esp + 0x20]
je 0x47baa5
mov byte [esp + 0x12], 1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
dec ecx
cmp edx, ecx
jne 0x47bac6
mov cl, byte [esp + 0x12]
or edi, 0x100
test cl, cl
je 0x47bac6
or edi, 0x1000
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
sub esp, 0x20
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], esi
mov ecx, 8
lea esi, [esp + 0x84]
mov edi, esp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0047d7a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x47b9a5
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx + 8]
call fcn.0047f270
mov cl, byte [esp + 0x13]
mov byte [esp + 0x20], al
cmp cl, al
je 0x47bb3f
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0047d760
dec dword [ebx + 0x47c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x47bb50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov ebx, ecx
or ebp, 0xffffffff
call fcn.0047b5f0
mov eax, dword [ebx + 0x47c]
xor esi, esi
cmp eax, esi
jne 0x47bd78
lea edi, [ebx + 8]
mov dword [ebx + 0x47c], 1
mov ecx, edi
call fcn.0047f240
test al, al
jne 0x47bd72
mov ecx, edi
call fcn.0047f270
mov ecx, edi
mov byte [esp + 0x13], al
mov byte [esp + 0x12], 0
call fcn.0047f860
cmp eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jle 0x47bd52
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
jmp 0x47bbc7
xor esi, esi
mov ecx, ebx
call fcn.0047d130
lea ecx, [ebx + 8]
mov dword [esp + 0x20], eax
call fcn.0047f7a0
mov ebp, eax
cmp dword [ebp], esi
jne 0x47bc21
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
mov dword [esp + 0x30], esi
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], 0x440
mov dword [esp + 0x2c], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x44]
jmp 0x47bc5f
mov eax, dword [ebp + 4]
mov dword [esp + 0x50], esi
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], 0x840
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0047d7a0
lea ecx, [ebx + 8]
call fcn.0047f870
mov eax, dword [ebp + 4]
mov ecx, ebx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.0047b5d0
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x1c], eax
jne 0x47bca5
mov ecx, dword [ebp + 0xc]
mov esi, 0x41
add eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x47bcaa
mov esi, 0x42
mov edi, dword [esp + 0x18]
cmp edi, 1
jle 0x47bcb9
or esi, 0x80
mov ecx, ebx
call fcn.0047d130
mov ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
je 0x47bccf
mov byte [esp + 0x12], 1
mov edx, dword [esp + 0x14]
lea eax, [edi - 1]
cmp edx, eax
jne 0x47bcee
mov al, byte [esp + 0x12]
or esi, 0x100
test al, al
je 0x47bcee
or esi, 0x1000
mov eax, dword [ebp + 4]
sub esp, 0x20
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x84], esi
mov dword [esp + 0x90], ecx
mov ecx, 8
lea esi, [esp + 0x84]
mov edi, esp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0047d7a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x47bbc5
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx + 8]
call fcn.0047f270
mov cl, byte [esp + 0x13]
mov byte [esp + 0x20], al
cmp cl, al
je 0x47bd72
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0047d760
dec dword [ebx + 0x47c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x47fbc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e6ca1
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
lea ecx, [esi + 0xc]
call fcn.00477460
xor ebx, ebx
mov eax, 0x518298
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
xor eax, eax
mov dword [esi + 0x40], ebx
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
push 0x80
xor edi, edi
mov dword [esi + 0x18], ecx
mov dword [esi + 0x28], ecx
push ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x2c], edx
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 2
mov byte [esi + 0x54], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x5c], 0xffffff
mov dword [esi + 0x64], 0x808080
call fcn.004c07c0
mov eax, dword [eax]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esi + 0x6c], eax
call fcn.004c07c0
mov ecx, dword [eax]
push 0xc0
push 0xc0
mov dword [esi + 0x74], ecx
push 0xc0
lea ecx, [esp + 0x1c]
call fcn.004c07c0
mov edx, dword [eax]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x7c], edx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4be540
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4e6e20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebp, ebp
mov edx, ecx
dec ecx
test edx, edx
mov dword [esp + 0x14], ebx
mov eax, esi
je 0x4be58e
inc ecx
movsx edx, byte [eax]
shl ebp, 4
xor ebp, edx
inc eax
dec ecx
jne 0x4be582
mov eax, ebp
xor edx, edx
mov ecx, 0x1f
div ecx
mov eax, dword [esp + 0x10]
mov edi, dword [eax + edx*4]
cmp edi, ebx
je 0x4be5e3
cmp ebp, dword [edi]
jne 0x4be5dc
mov eax, dword [edi + 4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4be5cf
cmp cl, bl
je 0x4be5cb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4be5cf
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4be5ab
xor eax, eax
jmp 0x4be5d4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4be5fe
mov esi, dword [esp + 0x2c]
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x4be5a4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x84]
cmp ecx, ebx
je 0x4be634
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.004be540
jmp 0x4be677
mov esi, dword [esp + 0x28]
mov eax, dword [edi + 8]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 0xffffffffffffffff
push eax
mov dword [esp + 0x28], ebx
mov dword [esi + 0xc], 0x40
call fcn.004be3a0
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4be66f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x4be671
mov esi, dword [esp + 0x28]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 0xffffffffffffffff
push 0x551d70
mov dword [esp + 0x28], 1
mov dword [esi + 0xc], 0x40
call fcn.004be3a0
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4be66f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x4be671
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4be690
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e6e57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x18]
xor ebx, ebx
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], ebx
call fcn.004be540
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x64
push edx
push esi
mov dword [esp + 0x40], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call fcn.004be750
mov esi, dword [esp + 0x48]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x48], 2
mov dword [esi + 0xc], 0x40
call fcn.004be3a0
mov edx, dword [esp + 0x38]
mov dword [esi], eax
neg eax
sbb eax, eax
mov dword [esp + 0x24], 1
and eax, edx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov edx, dword [esp + 0x30]
mov byte [esp + 0x48], bl
push edx
mov dword [esp + 0x3c], ebx
call fcn.004d7916
mov ecx, dword [esp + 0x44]
add esp, 0x1c
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8
Function at 0x4d9f7a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d9fb2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d8007
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d7fdf
jmp 0x4d9fbe
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4db670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4db6b2
call fcn.004e116c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4db6b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4db6a9
xor eax, eax
jmp 0x4db6ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004db6c0
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e169c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e16ca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e16e8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e1602
jmp 0x4e16e8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e16e8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e1602
test edi, edi
mov eax, edi
jne 0x4e16d2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4017b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
push edi
je 0x401808
mov edi, dword [esp + 0x14]
test edi, edi
je 0x401808
mov esi, dword [esp + 0x10]
test esi, esi
je 0x401808
push 0x8000
push eax
call fcn.00409100
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x4017eb
pop edi
mov eax, 0x103
pop esi
ret
push esi
push edi
push eax
call fcn.00408ec2
mov edx, eax
mov eax, esi
sub eax, edx
add esp, 0xc
neg eax
sbb eax, eax
pop edi
and eax, 0x103
pop esi
ret
pop edi
mov eax, 2
pop esi
ret
Function at 0x40c6e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
push edi
leave
mov eax, dword [ecx + 0x10]
jl 0x40c71a
inc byte [ebx + 0x792bfcc6]
or al, 0xc1
out dx, eax
jnp 0x50a30d4
shr edi, 0xf
mov ecx, edi
imul ecx, ecx, 0x8b000204
lea ecx, [ecx + eax + 0x4d890044]
mov esp, 0xe8bf085
add al, byte [eax]
mov ecx, dword [ebp + 0x44018c]
mov dword [ebp - 0x44], ecx
test eax, esi
mov ecx, dword [esi]
dec ecx
test cl, 1
cld
mov eax, dword [ebp + 0xf]
test esi, esp
add al, byte [eax]
mov ecx, dword [ebx + 0x1c8d3114]
xor dword [ecx + 0x568bf455], ecx
cld
inc ebp
jne 0x8b40ca07
mov edx, dword [ecx + esi]
lea ebx, [ecx + esi]
mov dword [ebp - 0xc], edx
mov edx, dword [esi - 4]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
test dl, 1
cld
pop ebp
or al, 0x75
jle 0x40c6fd
cli
add al, 0x4a
cmp edx, 0x3f
jbe 0x40c747
push 0x3f
pop edx
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
jne 0x40c79b
cmp edx, 0x20
jae 0x40c772
mov ebx, 0x458b8000
adc dl, cl
shr ebx, cl
lea ecx, [edx + eax + 4]
not ebx
and dword [eax + edi*4 + 0x44], ebx
dec byte [ecx]
jne 0x40c793
mov ecx, dword [ebp + 8]
and dword [ecx], ebx
jmp 0x40c793
lea ecx, [edx - 0x20]
mov ebx, 0x458b8000
shr ebx, cl
lea ecx, [edx + eax + 4]
not ebx
and dword [eax + edi*4 - 0x747fff3c], ebx
dec byte [ecx]
jne 0x40c793
mov ecx, dword [ebp + 8]
and dword [ecx + 4], ebx
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
jmp 0x40c79e
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 8]
mov ebx, dword [ebx + 4]
add ecx, dword [ebp - 0xc]
mov dword [edx + 0x55], ebx
or al, 0x52
invalid
Function at 0x101e4200
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101e437e
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18a000]
push edi
or ebp, 0xffffffff
jmp 0x101e422a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101e4231
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101e4220
mov eax, 1
add ebx, ebx
jne 0x101e4243
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101e4254
jne 0x101e4273
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101e4273
dec eax
add ebx, ebx
jne 0x101e4260
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101e4238
add ebx, ebx
jne 0x101e426f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101e42c5
xor ecx, ecx
sub eax, 3
jb 0x101e428b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101e42fa
sar eax, 1
mov ebp, eax
jmp 0x101e4296
add ebx, ebx
jne 0x101e4296
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101e4264
inc ecx
add ebx, ebx
jne 0x101e42a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101e4264
add ebx, ebx
jne 0x101e42b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101e42a6
jne 0x101e42c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101e42a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101e42e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101e42d6
jmp 0x101e4226
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101e42e4
add edi, ecx
jmp 0x101e4226
pop esi
lea edi, [esi + 0x1dc000]
mov eax, dword [edi]
or eax, eax
je 0x101e434c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e5000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e50b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101e4301
mov ecx, edi
jns 0x101e4330
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e50b8]
or eax, eax
je 0x101e4346
mov dword [ebx], eax
add ebx, 4
jmp 0x101e431e
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101e437d
cmp al, 0xef
ja 0x101e4370
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101e4352
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101e435f
popal
jmp 0x10085e92
Function at 0x4010c3
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 4]
ret

Function at 0x4010d6
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
mov ebx, eax
jle 0x4010fe
lea eax, [esi + ebx - 1]
cmp byte [eax], 0x5c
jne 0x4010fe
mov edi, 1
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
dec eax
cmp eax, 1
sbb eax, eax
inc eax
test edi, edi
je 0x401115
mov byte [esi + ebx - 1], 0x5c
pop edi
pop esi
pop ebx
ret

Function at 0x4013e4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
lea ecx, [ebp - 0x28]
push eax
push eax
push eax
lea edx, [ebp - 8]
push eax
push eax
push 0x20
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x401418
mov ax, 0xffff
jmp 0x401484
push 7
lea eax, [ebp - 0x28]
push str.PKBACK
push eax
call fcn.00401028
add esp, 0xc
test eax, eax
je 0x401435
mov ax, 0xffff
jmp 0x401484
cmp byte [ebp - 0x28], 0
lea edx, [ebp - 0x28]
je 0x40144e
mov al, byte [edx]
cmp al, 0x2e
je 0x40144e
cmp al, 0x20
je 0x40144e
inc edx
cmp byte [edx], 0
jne 0x40143e
cmp byte [edx], 0
jne 0x401459
mov ax, 0xffff
jmp 0x401484
mov al, byte [edx]
cmp al, 0x30
jb 0x401463
cmp al, 0x39
jbe 0x401466
inc edx
jmp 0x401459
xor eax, eax
cmp byte [edx], al
je 0x401484
imul eax, eax, 0xa
movzx ecx, byte [edx]
sub ecx, 0x30
js 0x401484
cmp ecx, 9
jg 0x401484
add eax, ecx
inc edx
cmp byte [edx], 0
jne 0x40146c
mov esp, ebp
pop ebp
ret 4

Function at 0x401617
Capabilities:
Encode data using xor

Disassembly:
push esi
mov ecx, dword [0x408330]
mov esi, dword [esp + 0xc]
mov eax, esi
dec esi
test eax, eax
je 0x40164a
mov edx, dword [esp + 8]
mov al, byte [edx]
inc edx
xor al, cl
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x407f30]
xor eax, ecx
mov ecx, eax
mov eax, esi
dec esi
test eax, eax
jne 0x40162d
pop esi
mov dword [0x408330], ecx
ret

Function at 0x40173e
Capabilities:
Get disk information

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 4
mov al, byte [eax]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, 1
mov esp, ebp
cmp ecx, eax
mov eax, ecx
adc eax, 0xffffffff
pop ebp
ret 4
Function at 0x401d40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x12c
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x148]
cmp edi, 0xffffffff
jne 0x401d6a
push 1
push dword [esp + 0x144]
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x401e67
mov esi, dword [esp + 0x140]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
cmp esi, ebp
jae 0x401d8a
cmp byte [ebp], 0x5c
je 0x401d90
dec ebp
cmp esi, ebp
jb 0x401d7f
cmp byte [ebp], 0x5c
jne 0x401d9c
mov al, byte [ebp - 1]
cmp al, 0x3a
je 0x401d9b
cmp al, 0x5c
jne 0x401d9c
inc ebp
mov bl, byte [ebp]
push esi
lea eax, [esp + 0x14]
mov byte [ebp], 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp], bl
cmp bl, 0x5c
jne 0x401db8
inc ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x401de9
push esi
push 0x2d
call fcn.0040107b
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
jmp 0x401e4f
mov ecx, dword [esp + 0x144]
mov eax, 0
push 1
push 0
cmp byte [ecx], 1
adc eax, 0xffffffff
and eax, ecx
push eax
push esi
mov eax, dword [0x40794c]
and eax, 0x20000
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
and eax, str.Install
push eax
push dword [0x4085f0]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test edi, edi
je 0x401e30
mov dword [edi], eax
cmp eax, 0x1f
ja 0x401e67
push esi
push eax
push 0xd
call fcn.0040107b
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push str.WinZip_Self_Extractor
push ecx
push dword [0x4085f0]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x12c
ret

Function at 0x401e72
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x401f38
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 0x105
push eax
push ecx
push str.winzip_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x401f38
cmp byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
je 0x401ed0
cmp byte [eax], 0x20
je 0x401ed0
inc eax
cmp byte [eax], 0
jne 0x401ec5
push 0x407c78
inc eax
push str.__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test byte [0x40794d], 0x10
je 0x401f17
test byte [0x40794d], 0x80
jne 0x401f17
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x10f]
dec eax
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0x4079f0
push eax
call fcn.00401d40
add esp, 0xc
cmp eax, 1
sbb cl, cl
inc cl
mov al, cl
jmp 0x401f55
push 0
push str.WinZip_Self_Extractor
push 0x1a
call fcn.0040107b
push eax
push dword [0x4085f0]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov esp, ebp
pop ebp
ret