joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10064850
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10089008]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10064896
cmp word [ebx], dx
jne 0x10064896
or byte [eax + edi + 0x28], 4
jmp 0x1006489b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100649fe
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100649de
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100648dc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10064912
cmp eax, edx
jae 0x10064920
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100648b7
jmp 0x100649fe
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100649d9
cmp dword [ebp - 0x18], 0
je 0x100649d9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10089008]
test byte [eax + edi + 0x28], 0x48
je 0x100649af
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10064973
mov word [esi], cx
jmp 0x100649aa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10089008]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10089008]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10089008]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100649fe
pop eax
cmp word [ebp - 4], ax
jne 0x100649bf
cmp esi, ebx
jne 0x100649bf
mov word [esi], ax
jmp 0x100649fb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006469f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100649fe
push 0xd
pop eax
jmp 0x100649ba
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10089008]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100649f8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100649fe
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10068680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100686ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100686ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1006ad71
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10068af0
mov eax, dword [0x10087040]
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.10058950
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006adb3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006af0f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100688b0
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 + 0x10089008]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10064681
mov ecx, dword [esi*4 + 0x10089008]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1006af08
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006af08
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006af08
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10064681
add esp, 0x14
test edx, edx
jl 0x1006af08
jg 0x1006ae7e
test eax, eax
jb 0x1006af08
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006af08
jl 0x1006ae98
cmp dword [ebp - 0x1008], eax
ja 0x1006af08
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006aeb6
test ebx, ebx
je 0x1006aeef
cmp ecx, edi
jae 0x1006aeef
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006aed0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006aedc
cmp byte [ecx + 1], 0xa
jne 0x1006aedc
inc ecx
jmp 0x1006aedc
movzx eax, al
movsx eax, byte [eax + 0x100879b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1006aeb6
cmp edx, ebx
jne 0x1006aeb6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006af0d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10041e20
leave
ret
Function at 0x1006d239
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1006d1b5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006d3a8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006d3a8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006d35d
jg 0x1006d295
test eax, eax
je 0x1006d353
push 1
push 0x1000
call fcn.10059102
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006d2b8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006d34a
push 0x8000
push ebx
call fcn.1006d0e6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006d2e1
jg 0x1006d2dc
cmp ecx, 0x1000
jb 0x1006d2e1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100636d1
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006d326
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 0x1006d2dc
jl 0x1006d30d
test ecx, ecx
jne 0x1006d2ce
push dword [ebp - 0xc]
push ebx
call fcn.1006d0e6
push esi
call fcn.100579de
add esp, 0xc
xor ebx, ebx
jmp 0x1006d3b6
cmp byte [edi + 0x24], 0
je 0x1006d33d
cmp dword [edi + 0x20], 5
jne 0x1006d33d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006d348
mov ebx, dword [edi + 0x18]
jmp 0x1006d34a
xor ebx, ebx
push esi
call fcn.100579de
pop ecx
jmp 0x1006d3b6
test ecx, ecx
jg 0x1006d31f
jl 0x1006d35d
test eax, eax
jae 0x1006d31f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006469f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006d37d
cmp byte [edi + 0x1c], 0
je 0x1006d31f
jmp 0x1006d3ae
push ebx
call fcn.100618b4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006d31f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006d3b6
cmp byte [edi + 0x1c], 0
je 0x1006d3b3
mov ebx, dword [edi + 0x18]
jmp 0x1006d3b6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1006469f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006dcd7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1006dcf8
jl 0x1006dcef
test edi, edi
jne 0x1006dcf8
xor eax, eax
xor edx, edx
jmp 0x1006ddb9
cmp dword [ebx + 0x38], 0
je 0x1006dd0d
push eax
push edi
push dword [ebp + 8]
call fcn.1002a1f0
jmp 0x1006ddb9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1006dd54
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1006dd54
cmp eax, edi
jb 0x1006dd2e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.100439b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1006dd5a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1006ddae
mov ecx, ebx
call fcn.1006d689
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1006dd99
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1006b612
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1006ddae
jmp 0x1006dd6c
test edx, edx
je 0x1006ddae
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1006b612
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x42231b
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
call fcn.004204c0
push 2
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
push 0
call dword [sym.imp.KERNEL32.DLL_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [sym.imp.MSVCRT.dll___argc]
cmp dword [eax], 1
jle 0x4223c7
push 0x41d7f4
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov dword [ebp - 0x110], 1
jmp 0x422376
mov eax, dword [ebp - 0x110]
inc eax
mov dword [ebp - 0x110], eax
mov eax, dword [sym.imp.MSVCRT.dll___argc]
mov ecx, dword [ebp - 0x110]
cmp ecx, dword [eax]
jge 0x4223b8
mov eax, dword [sym.imp.MSVCRT.dll___argv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x110]
push dword [eax + ecx*4]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x41fd7c
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x422369
push 0xa
lea eax, [ebp - 0x10c]
push eax
call dword [0x40dec4]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
call fcn.0042094f
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x3e8
idiv ecx
push edx
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x421ce4
push 0x400
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0x41fd80
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xb7
jne 0x42246a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [0x41d794], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x42199c
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 1
pop eax
test eax, eax
je 0x422468
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x422454
jmp 0x4224af
cmp dword [ebp - 8], 5
jne 0x42248e
push 0x4e20
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x40e3cb
call fcn.00420eca
pop ecx
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov dword [0x41d794], 1
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x42199c
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x4214c5
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x421f4e
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.00420c8e
push 1
pop eax
test eax, eax
je 0x422509
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4224f8
xor eax, eax
leave
ret 0x10
Function at 0x401382
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 0x401395
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
neg eax
sbb eax, eax
neg eax
ret

Function at 0x4013b6
Capabilities:
Hash data with crc32

Disassembly:
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
shr eax, 1
test dl, 1
je 0x4013d0
xor eax, 0xedb88320
dec esi
jne 0x4013be
pop esi
ret

Function at 0x4013f1
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
mov eax, dword [0x410b18]
je 0x40141c
mov ecx, dword [esp + 4]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x410500]
inc ecx
dec edx
jne 0x401404
pop edi
pop esi
mov dword [0x410b18], eax
ret
Function at 0x401cc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00401195
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0xa
mov word [ebp - 0x22], si
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
pop esi
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x40fc70]
push ebx
mov dword [ebp + 0x118], eax
mov eax, dword [0x410e2c]
inc dword [0x410e2c]
test eax, eax
push esi
push edi
jne 0x401f27
push dword [ebp + 0x128]
lea eax, [ebp - 0x7c]
push dword [ebp + 0x124]
push str.WinZip_internal_error_in_file__s_line__d
push 0x191
push eax
call fcn.0040aa91
add esp, 0x14
test eax, eax
jge 0x401e60
push 0xc75
push str.sfxhead.c
call fcn.00401dfc
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x30
mov edi, str.WinZip_Self_Extractor
push edi
lea eax, [ebp - 0x7c]
push eax
push dword [0x410e14]
call esi
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.WZSFX32.RPT
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401f27
push 0x40c4ec
push 0x191
lea eax, [ebp - 0x7c]
push eax
call fcn.0040aae9
test eax, eax
jge 0x401ec5
push 0xc7e
push str.sfxhead.c
call fcn.00401dfc
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00406ea0
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.004017a3
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._nPlease_save_the_file_WZSFX32.RPTand_inform_WinZip_Computing_n_nInternet:_support_winzip.com_nWeb:_http:__www.winzip.com_nPostal_mail:_P.O._Box_540__Mansfield__CT_06268_USA
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.0040aa91
add esp, 0xc
test eax, eax
jge 0x401f18
push 0xc8b
push str.sfxhead.c
call fcn.00401dfc
push 0x30
push edi
lea eax, [ebp - 0x7c]
push eax
push dword [0x410e14]
call esi
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401f8b
Capabilities:
Set current directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.004010cd
pop ecx
push dword [esp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
dec esi
neg esi
sbb esi, esi
neg esi
test edi, edi
je 0x401fbf
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00401f30
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
ret
Function at 0x40205e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40fc70]
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 8
lea eax, [ebp - 0xc]
push eax
call fcn.0040aa59
test eax, eax
jge 0x40208d
push 0x45a
push str.sfxhead.c
jmp 0x40213a
lea eax, [ebp - 0xc]
push eax
call fcn.00406ea0
cmp eax, 8
pop ecx
jae 0x40212f
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
je 0x4020f0
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.0040116a
add esp, 0xc
test eax, eax
jne 0x4020f0
mov al, byte [ebp - 0x2c]
cmp al, bl
lea ecx, [ebp - 0x2c]
je 0x4020f0
cmp al, 0x2e
je 0x4020ec
cmp al, 0x20
je 0x4020ec
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x4020dd
cmp byte [ecx], bl
jne 0x402101
or ax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00406c7b
leave
ret 4
mov al, byte [ecx]
cmp al, 0x30
jb 0x40210b
cmp al, 0x39
jbe 0x40210e
inc ecx
jmp 0x402101
xor eax, eax
jmp 0x402127
movzx edx, dl
lea eax, [eax + eax*4]
shl eax, 1
sub edx, 0x30
js 0x4020f4
cmp edx, 9
jg 0x4020f4
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x402112
jmp 0x4020f4
push 0x45b
push dword [0x40f9c0]
call fcn.00401dfc
int3
Function at 0x402c7b
Capabilities:
Check for time delay via gettickcount
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x1d0]
sub esp, 0x250
cmp dword [0x410e24], 0
mov eax, dword [0x40fc70]
mov dword [ebp + 0x1cc], eax
je 0x402ca4
xor al, al
jmp 0x402ebb
push esi
mov esi, dword [ebp + 0x1d8]
test esi, esi
je 0x402e97
cmp byte [esi], 0
je 0x402e97
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x402e97
push esi
mov esi, 0x105
push esi
lea eax, [ebp + 0xc4]
push eax
call fcn.0040aa59
test eax, eax
jge 0x402ced
push 0x7a1
jmp 0x402e8d
lea eax, [ebp + 0xc4]
push esi
push eax
call fcn.00401f30
pop ecx
pop ecx
push 0x40c594
push esi
lea eax, [ebp + 0xc4]
push eax
call fcn.0040aae9
test eax, eax
jge 0x402d1c
push 0x7a3
jmp 0x402e8d
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x402e6a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push dword [ebp + 0x1d8]
lea eax, [ebp + 0xc4]
push esi
push eax
call fcn.0040aa59
test eax, eax
jl 0x402e81
lea eax, [ebp + 0xc4]
push esi
push eax
call fcn.00401f30
cmp byte [ebp + 0xb4], 0
pop ecx
pop ecx
je 0x402d96
lea eax, [ebp + 0xb4]
push eax
push esi
lea eax, [ebp + 0xc4]
push eax
call fcn.0040aae9
test eax, eax
jge 0x402daf
push 0x7ac
jmp 0x402e8d
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp + 0xc4]
push eax
call fcn.0040aae9
test eax, eax
jl 0x402e88
test byte [ebp - 0x7c], 0x10
je 0x402e27
cmp byte [ebp + 0xb4], 0
push 0x40c590
je 0x402e13
lea eax, [ebp + 0xb4]
push eax
call fcn.004073d0
test eax, eax
pop ecx
pop ecx
je 0x402e53
lea eax, [ebp + 0xb4]
push 0x40c58c
push eax
call fcn.004073d0
test eax, eax
pop ecx
pop ecx
je 0x402e53
push dword [ebp + 0x1dc]
lea eax, [ebp + 0xc4]
push eax
call fcn.00402c7b
test al, al
pop ecx
pop ecx
jne 0x402e53
lea eax, [ebp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402e53
lea eax, [ebp - 0x50]
push eax
call fcn.004073d0
test eax, eax
pop ecx
pop ecx
je 0x402e53
lea eax, [ebp - 0x50]
jmp 0x402ddb
call edi
lea ebx, [eax + 0x3e8]
jmp 0x402e40
call fcn.00401395
test eax, eax
pop ecx
je 0x402e53
call fcn.00401d3b
call edi
cmp ebx, eax
lea eax, [ebp + 0xc4]
push eax
ja 0x402e31
call fcn.00402a40
pop ecx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402d41
pop ebx
pop edi
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0x1d8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402eba
push 0x7a9
jmp 0x402e8d
push 0x7ae
push str.sfxhead.c
call fcn.00401dfc
mov eax, dword [0x40f0a0]
mov ecx, dword [0x410df8]
push 0
push str.WinZip_Self_Extractor
add eax, ecx
push eax
push dword [0x410e14]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop esi
mov ecx, dword [ebp + 0x1cc]
call fcn.00406c7b
add ebp, 0x1d0
leave
ret
Function at 0x403770
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x58c]
sub esp, 0x60c
mov eax, dword [0x40fc70]
push ebx
mov ebx, dword [ebp + 0x594]
push esi
push edi
push ebx
mov dword [ebp + 0x588], eax
mov esi, 0x2e3
push esi
lea eax, [ebp + 0x2a4]
push eax
call fcn.0040aa59
test eax, eax
jge 0x4037b3
push 0xe17
jmp 0x4038bc
mov edi, dword [ebp + 0x598]
cmp byte [edi], 0
je 0x4037fa
push 0x40c5bc
push esi
lea eax, [ebp + 0x2a4]
push eax
call fcn.0040aae9
test eax, eax
jge 0x4037de
push 0xe1a
jmp 0x4038bc
push edi
push esi
lea eax, [ebp + 0x2a4]
push eax
call fcn.0040aae9
test eax, eax
jge 0x4037fa
push 0xe1b
jmp 0x4038bc
mov edi, dword [ebp + 0x59c]
cmp edi, 0xffffffff
jne 0x403819
push 1
lea eax, [ebp + 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x403921
mov eax, dword [0x40fa24]
test eax, 0x10000
je 0x403873
test eax, 0x20000
je 0x403873
mov eax, dword [0x410e14]
and dword [ebp - 0x6c], 0
and dword [ebp - 0x68], 0
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x640
mov dword [ebp - 0x74], str.Install
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test edi, edi
mov eax, dword [ebp - 0x60]
je 0x40388d
mov ecx, dword [ebp - 0x48]
mov dword [edi], ecx
jmp 0x40388d
lea eax, [ebp + 0x2a4]
push eax
call fcn.00401cc8
test eax, eax
pop ecx
je 0x4038df
test edi, edi
je 0x40388a
mov dword [edi], eax
push 0x21
pop eax
cmp eax, 0x20
ja 0x403921
mov ecx, dword [0x410df8]
push ebx
push eax
mov eax, dword [0x40f09c]
add eax, ecx
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040aa91
add esp, 0x14
test eax, eax
jge 0x4038c6
push 0xe73
push str.sfxhead.c
call fcn.00401dfc
push 0
push str.WinZip_Self_Extractor
lea eax, [ebp - 0x40]
push eax
push dword [0x410e14]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40391f
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
push str.WinZip_Self_Extractor
push dword [ebp - 0x44]
push dword [0x410e14]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp + 0x588]
pop edi
pop esi
pop ebx
call fcn.00406c7b
add ebp, 0x58c
leave
ret