joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f8ba
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov eax, dword [0x10067010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov ecx, dword [eax + 4]
add ecx, esi
lea edi, [ebp - 0x1c]
push edi
call fcn.10010eca
mov ecx, edi
push 0x10069e88
call fcn.10023e36
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x2c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 0xa
call ebx
lea ebx, [ebp - 0x1c]
mov edi, eax
mov ecx, ebx
call fcn.10012e72
movzx eax, di
mov ecx, esi
push eax
call fcn.10002400
mov ecx, esi
call fcn.10001890
xor eax, eax
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea edi, [esi + 4]
mov ecx, edi
push ebx
call fcn.10008c0e
mov eax, dword [0x1006999c]
test al, 0x10
je 0x1000f966
movzx eax, byte [ebp - 0x11]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmovns eax, ebx
push ecx
push eax
push 0x10069b54
call fcn.10006876
add esp, 0xc
mov eax, dword [0x1006999c]
test al, 0x20
je 0x1000f9aa
cmp dword [0x10069928], 0
je 0x1000f9aa
lea eax, [ebp - 0x1c]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
cmovs eax, dword [eax]
push edx
push eax
push 0x100698e4
call fcn.10006876
add esp, 0xc
cmp dword [esi + 0x88], 2
jl 0x1000f9aa
mov ecx, 0x100698e4
call fcn.10001890
test byte [0x1006999c], 0x40
je 0x1000f9cd
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1000f9cd
cmp byte [ebp - 0x11], 0
jns 0x1000f9c6
mov ebx, dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x88], 3
jne 0x1000f9dc
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp byte [ebp - 0x11], 0
jns 0x1000f9ed
push dword [ebp - 0x1c]
call fcn.1002b724
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x1005b964
mov dword [esi + 4], 0x1005b970
cmp byte [esi + 0x2f], 0
jns 0x1000fa11
push dword [esi + 0x24]
call fcn.1002b724
add esp, 4
add esi, 0x38
mov ecx, edi
call fcn.10001570
mov ecx, edi
call fcn.10001880
mov ecx, esi
call fcn.10001000
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c1aa
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1003f0ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1002c930
mov eax, dword [0x10067010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10044ed4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003f12e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003f28a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004bb20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100693d0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1004b94f
mov ecx, dword [esi*4 + 0x100693d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1003f283
cmp eax, dword [edi + ecx + 0x24]
jne 0x1003f283
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003f283
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004b94f
add esp, 0x14
test edx, edx
jl 0x1003f283
jg 0x1003f1f9
test eax, eax
jb 0x1003f283
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003f283
jl 0x1003f213
cmp dword [ebp - 0x1008], eax
ja 0x1003f283
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003f231
test ebx, ebx
je 0x1003f26a
cmp ecx, edi
jae 0x1003f26a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003f24b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003f257
cmp byte [ecx + 1], 0xa
jne 0x1003f257
inc ecx
jmp 0x1003f257
movzx eax, al
movsx eax, byte [eax + 0x10067790]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003f231
cmp edx, ebx
jne 0x1003f231
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003f288
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002c1aa
leave
ret

Function at 0x100429c6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x100575bc
push str.FlsAlloc
push 0x1e
call fcn.10042e79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100429fa
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10042a00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10042a44
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x100575e0
push str.FlsGetValue
push 0x20
call fcn.10042e79
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10042a7b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100475d7
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10047612

Function at 0x10047e79
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
invalid
test dword [eax - 4], ecx
invalid
Function at 0x10048522
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.100475a7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1004755c
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.10047597
in eax, 2
retf 0x6826
Function at 0x1004b43d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100693d0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004b47d
cmp byte [ebx], 0xa
jne 0x1004b47d
or byte [eax + edi + 0x28], 4
jmp 0x1004b482
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1004b580
mov al, byte [edx]
cmp al, 0x1a
je 0x1004b562
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1004b4b1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1004b4d6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1004b4e0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1004b493
jmp 0x1004b580
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004b55d
cmp dword [ebp - 0xc], 0
je 0x1004b55d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100693d0]
test byte [eax + edi + 0x28], 0x48
je 0x1004b537
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004b522
mov byte [esi], dl
jmp 0x1004b533
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100693d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004b580
cmp byte [ebp - 1], 0xa
jne 0x1004b546
cmp esi, ebx
jne 0x1004b546
mov byte [esi], 0xa
jmp 0x1004b57f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004b8f1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004b580
mov byte [esi], 0xd
jmp 0x1004b57f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100693d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004b57c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004b580
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004b589
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100693d0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004b5cc
cmp word [esi], dx
jne 0x1004b5cc
or byte [edi + eax + 0x28], 4
jmp 0x1004b5d1
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1004b70a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1004b6ea
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1004b613
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004b649
cmp eax, edx
jae 0x1004b655
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1004b5eb
jmp 0x1004b70a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004b6e6
cmp dword [ebp - 0x14], 0
je 0x1004b6e6
mov eax, dword [ebx*4 + 0x100693d0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1004b6be
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1004b704
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100693d0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100693d0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100693d0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1004b707
pop ebx
cmp word [ebp - 4], bx
jne 0x1004b6cf
cmp esi, dword [ebp + 0xc]
jne 0x1004b6cf
mov word [esi], bx
jmp 0x1004b707
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004b8f1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1004b70a
push 0xd
jmp 0x1004b703
mov ecx, dword [ebx*4 + 0x100693d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004b701
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004b70a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1004b717
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004b722
Function at 0x100510c4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10051267
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1005123c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1005123c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100511eb
jg 0x1005111d
test eax, eax
je 0x100511e1
push 1
push 0x1000
call fcn.10041ae7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10051143
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100511d8
push 0x8000
push ebx
call fcn.10050fbe
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1005116f
jg 0x1005116a
cmp ecx, 0x1000
jb 0x1005116f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1004a302
add esp, 0x10
cmp eax, 0xffffffff
je 0x100511b4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1005116a
jl 0x1005119b
test ecx, ecx
jne 0x1005115c
push dword [ebp - 0xc]
push ebx
call fcn.10050fbe
push esi
call fcn.10041b44
add esp, 0xc
xor edi, edi
jmp 0x1005124d
cmp byte [edi + 0x24], 0
je 0x100511cb
cmp dword [edi + 0x20], 5
jne 0x100511cb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100511d6
mov edi, dword [edi + 0x18]
jmp 0x100511d8
xor edi, edi
push esi
call fcn.10041b44
pop ecx
jmp 0x1005124d
test ecx, ecx
jg 0x100511ad
jl 0x100511eb
test eax, eax
jae 0x100511ad
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004b8f1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1005120e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100511ad
jmp 0x10051245
push ebx
call fcn.1004cbda
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100511ad
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1005124d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1005124a
mov edi, dword [edi + 0x18]
jmp 0x1005124d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004b8f1
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010d7
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 0x4010ea
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 0x401112
lea eax, [ebx + esi - 1]
cmp byte [eax], 0x5c
jne 0x401112
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 0x401129
mov byte [ebx + esi - 1], 0x5c
pop edi
pop esi
pop ebx
ret

Function at 0x401452
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 0x401486
mov ax, pe_overlay
jmp 0x4014f2
push 7
lea eax, [ebp - 0x28]
push str.PKBACK
push eax
call fcn.00401028
add esp, 0xc
test eax, eax
je 0x4014a3
mov ax, pe_overlay
jmp 0x4014f2
cmp byte [ebp - 0x28], 0
lea edx, [ebp - 0x28]
je 0x4014bc
mov al, byte [edx]
cmp al, 0x2e
je 0x4014bc
cmp al, 0x20
je 0x4014bc
inc edx
cmp byte [edx], 0
jne 0x4014ac
cmp byte [edx], 0
jne 0x4014c7
mov ax, pe_overlay
jmp 0x4014f2
mov al, byte [edx]
cmp al, 0x30
jb 0x4014d1
cmp al, 0x39
jbe 0x4014d4
inc edx
jmp 0x4014c7
xor eax, eax
cmp byte [edx], al
je 0x4014f2
imul eax, eax, 0xa
movzx ecx, byte [edx]
sub ecx, 0x30
js 0x4014f2
cmp ecx, 9
jg 0x4014f2
add eax, ecx
inc edx
cmp byte [edx], 0
jne 0x4014da
mov esp, ebp
pop ebp
ret 4

Function at 0x401687
Capabilities:
Encode data using xor

Disassembly:
push esi
mov ecx, dword [0x4085d0]
mov esi, dword [esp + 0xc]
mov eax, esi
dec esi
test eax, eax
je 0x4016ba
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 + 0x4081d0]
xor eax, ecx
mov ecx, eax
mov eax, esi
dec esi
test eax, eax
jne 0x40169d
pop esi
mov dword [0x4085d0], ecx
ret

Function at 0x401784
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 0x401dbf
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 0x401de9
push 1
push dword [esp + 0x144]
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x401eeb
mov esi, dword [esp + 0x140]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
cmp ebp, esi
jbe 0x401e09
cmp byte [ebp], 0x5c
je 0x401e0f
dec ebp
cmp ebp, esi
ja 0x401dfe
cmp byte [ebp], 0x5c
jne 0x401e1b
mov al, byte [ebp - 1]
cmp al, 0x3a
je 0x401e1a
cmp al, 0x5c
jne 0x401e1b
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 0x401e37
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 0x401e68
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 0x401ed3
cmp eax, 0x20
jbe 0x401eb9
mov eax, dword [esp + 0x144]
mov ecx, 0
push 1
push 0
cmp byte [eax], 1
adc ecx, 0xffffffff
and ecx, eax
mov eax, dword [0x407b64]
push ecx
and eax, 0x20000
push esi
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
and eax, str.Install
push eax
push dword [0x408890]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test edi, edi
je 0x401eb4
mov dword [edi], eax
cmp eax, 0x20
ja 0x401eeb
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 [0x408890]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x12c
ret

Function at 0x401ef6
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 0x401fbc
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 0x401fbc
cmp byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
je 0x401f54
cmp byte [eax], 0x20
je 0x401f54
inc eax
cmp byte [eax], 0
jne 0x401f49
push 0x407f18
inc eax
push str.__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test byte [0x407b65], 0x10
je 0x401f9b
test byte [0x407b65], 0x80
jne 0x401f9b
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 0x407c20
push eax
call fcn.00401dbf
add esp, 0xc
cmp eax, 1
sbb cl, cl
inc cl
mov al, cl
jmp 0x401fd9
push 0
push str.WinZip_Self_Extractor
push 0x1a
call fcn.0040107b
push eax
push dword [0x408890]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4022cd
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 0x40236b
Capabilities:
Get common file path

Disassembly:
push esi
push 0xfa
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40239f
push esi
call fcn.00402316
add esp, 4
test eax, eax
je 0x40239f
push esi
call fcn.00402276
add esp, 4
test eax, eax
mov eax, 1
je 0x4023a1
xor eax, eax
pop esi
ret

Function at 0x403979
Capabilities:
Encode data using xor

Disassembly:
push esi
xor eax, eax
push edi
cmp dword [0x40870e], eax
ja 0x40398f
mov dword [0x4086ec], eax
jmp 0x403a72
mov esi, 0x800
cmp dword [0x40870e], esi
ja 0x4039a2
mov esi, dword [0x40870e]
push esi
xor edi, edi
push dword [0x4086e8]
push dword [0x407a84]
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [0x4086ec], eax
cmp dword [0x407a94], edi
je 0x403a14
cmp eax, 0xffffffff
je 0x403a14
cmp eax, esi
je 0x403a14
cmp eax, edi
jl 0x403a14
mov eax, dword [0x407a98]
push eax
mov ax, word [0x407a9c]
inc ax
push eax
call fcn.004012a4
cmp dword [0x4086ec], edi
jne 0x403a05
push esi
push dword [0x4086e8]
push dword [0x407a84]
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [0x4086ec], eax
cmp dword [0x4086ec], 0xffffffff
je 0x403a14
mov esi, dword [0x4086ec]
cmp dword [0x4086ec], esi
je 0x403a23
push 2
call fcn.00401c6e
mov eax, dword [0x4086ec]
mov ecx, dword [0x4086e8]
sub dword [0x40870e], eax
mov dword [0x40871c], ecx
cmp dword [0x407a88], 0
je 0x403a67
mov esi, ecx
lea edi, [eax - 1]
test eax, eax
je 0x403a67
call fcn.00405192
xor byte [esi], al
movzx eax, byte [esi]
push eax
inc esi
call fcn.004051ab
add esp, 4
mov eax, edi
dec edi
test eax, eax
jne 0x403a4c
mov eax, dword [0x4086ec]
dec dword [0x4086ec]
pop edi
pop esi
ret
Function at 0x4051ab
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
mov edx, 0xff
xor eax, dword [0x4081a0]
mov ecx, dword [0x4081a0]
shr ecx, 8
and eax, edx
mov eax, dword [eax*4 + 0x4081d0]
xor eax, ecx
mov dword [0x4081a0], eax
and eax, edx
add dword [0x4081a4], eax
mov eax, dword [0x4081a4]
imul eax, eax, 0x8088405
inc eax
mov ecx, dword [0x4081a8]
shr ecx, 8
mov dword [0x4081a4], eax
shr eax, 0x18
xor eax, dword [0x4081a8]
and eax, edx
mov eax, dword [eax*4 + 0x4081d0]
xor eax, ecx
mov dword [0x4081a8], eax
ret

Function at 0x4052a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [0x407a90]
mov ebp, esp
sub esp, 0xc
push esi
push edi
push eax
call fcn.0040520f
add esp, 4
lea ecx, [ebp - 0xc]
xor edi, edi
push 0xc
push dword [ebp + 8]
push ecx
call section..text
add esp, 0xc
lea esi, [ebp + edi - 0xc]
call fcn.00405192
inc edi
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.004051ab
add esp, 4
cmp edi, 0xc
jl 0x4052cb
cmp dword [0x407a8c], 0
movzx cx, byte [ebp - 1]
je 0x40530c
mov ax, word [0x408706]
shr ax, 8
cmp ax, cx
je 0x40531e
mov eax, 0xffffffff
jmp 0x405320
mov eax, dword [0x40870a]
shr eax, 0x18
cmp ax, cx
mov eax, 0xffffffff
jne 0x405320
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret