joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d8a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x479f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4985d0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb8]
mov dword [esp + 0x14], 0
push 0x7f
lea eax, [esp + 0x29]
mov ebx, 1
push 0
mov dword [esp + 0xb8], ebx
push eax
mov byte [esp + 0x30], 0
call fcn.0044bb00
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0x80
call fcn.0042eb29
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d932
push 0x80004005
call fcn.00403740
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x18]
push ecx
push 0x20019
mov byte [esp + 0xb8], 2
mov edi, dword [esp + 0xc4]
push 0
push edi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41d992
push 0x4857f2
mov ecx, ebp
call fcn.00403900
lea eax, [esi - 0x10]
mov byte [esp + 0xb0], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41d9ef
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xc4]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41d9c1
push 0x4857f2
jmp 0x41d9d1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.00403900
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xb0], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d9fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0xb0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41da1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0xc0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41da4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00449014
add esp, 0xa0
ret
Function at 0x42981e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x429857
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00425c56
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00425c31
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42b4a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42b4eb
call fcn.0042e9a6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42b4eb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42b506
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042b05f
test ebx, ebx
mov esi, eax
je 0x42b504
test edi, edi
je 0x42b504
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x430100
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x430118
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x4301c0
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x431965
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x43198e
call fcn.0042e9a6
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4319b1
push eax
push dword [esi + 4]
call fcn.004318f0
push esi
push eax
mov ecx, 0x49ca30
call fcn.004315ca
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4331c0
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4331c9
xor eax, eax
jmp 0x433232
cmp dword [esp + 8], 0
jne 0x4331d5
call fcn.0042f45f
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0044e6b8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x433210
push dword [esi + 0x10]
call fcn.0044e3fd
test eax, eax
pop ecx
jne 0x433210
mov esi, dword [esi + 0xc]
call fcn.0044bebe
push esi
push dword [eax]
push 1
call fcn.0043aab9
push dword [esi + 0x10]
call fcn.0044e42c
test eax, eax
pop ecx
je 0x43322f
push dword [esi + 0x10]
call fcn.0044e351
push eax
call fcn.004217e0
pop ecx
pop ecx
jmp 0x4331fe
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x433b8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x433bd2
call fcn.0042e9a6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x433bd2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x433c15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x433bfe
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x433bfe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x433c12
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4378fe
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 0x43792c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43794a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00437868
jmp 0x43794a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43794a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00437868
test edi, edi
mov eax, edi
jne 0x437934
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x49caa0]
test ecx, ecx
je 0x437a0d
jmp 0x4378fd
ret 8

Function at 0x449014
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4985d0]
jne 0x44901e
repz ret
jmp fcn.0044fd99
Function at 0x45f127
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004506e3
xor ebx, ebx
cmp dword [0x49d858], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x45f1fc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x45f167
xor eax, eax
jmp 0x45f2c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x483eb0
push edi
call esi
cmp eax, ebx
je 0x45f160
push eax
call fcn.00450680
mov dword [esp], 0x483ea0
push edi
mov dword [0x49d858], eax
call esi
push eax
call fcn.00450680
mov dword [esp], 0x483e8c
push edi
mov dword [0x49d85c], eax
call esi
push eax
call fcn.00450680
mov dword [0x49d860], eax
lea eax, [ebp - 8]
push eax
call fcn.0044da0a
test eax, eax
pop ecx
pop ecx
je 0x45f1ca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004492b4
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x45f1fc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00450680
cmp eax, ebx
pop ecx
mov dword [0x49d868], eax
je 0x45f1fc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00450680
pop ecx
mov dword [0x49d864], eax
mov eax, dword [0x49d864]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x45f275
cmp dword [0x49d868], esi
je 0x45f275
push eax
call fcn.004506ec
pop ecx
call eax
cmp eax, ebx
je 0x45f242
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x49d868]
call fcn.004506ec
pop ecx
call eax
test eax, eax
je 0x45f242
test byte [ebp - 0x18], 1
jne 0x45f275
lea eax, [ebp - 0xc]
push eax
call fcn.0044da41
test eax, eax
pop ecx
je 0x45f25d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004492b4
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x45f26c
or dword [ebp + 0x10], 0x200000
jmp 0x45f2a6
or dword [ebp + 0x10], 0x40000
jmp 0x45f2a6
mov eax, dword [0x49d85c]
cmp eax, esi
je 0x45f2a6
push eax
call fcn.004506ec
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45f2a6
mov eax, dword [0x49d860]
cmp eax, esi
je 0x45f2a6
push dword [ebp - 4]
push eax
call fcn.004506ec
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x49d858]
call fcn.004506ec
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x474074
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4985d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00474009
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044bb00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4740c3
cmp dword [ebp - 0x1c], 5
jb 0x4740db
jmp 0x4740d7
cmp dword [ebp - 0x10], 1
jne 0x4740db
cmp dword [ebp - 0x1c], 4
ja 0x4740d7
jne 0x4740db
cmp dword [ebp - 0x18], 0
jbe 0x4740db
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4850ec
call fcn.00473edd
test eax, eax
jge 0x4740fc
mov byte [0x49dd85], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00449014
add ebp, 0x78
leave
ret
Function at 0x4010c3
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 0x4010eb
lea eax, [esi + ebx - 1]
cmp byte [eax], 0x5c
jne 0x4010eb
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 0x401102
mov byte [esi + ebx - 1], 0x5c
pop edi
pop esi
pop ebx
ret

Function at 0x4013d1
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 0x401405
mov ax, 0xffff
jmp 0x401471
push 7
lea eax, [ebp - 0x28]
push str.PKBACK
push eax
call fcn.00401028
add esp, 0xc
test eax, eax
je 0x401422
mov ax, 0xffff
jmp 0x401471
cmp byte [ebp - 0x28], 0
lea edx, [ebp - 0x28]
je 0x40143b
mov al, byte [edx]
cmp al, 0x2e
je 0x40143b
cmp al, 0x20
je 0x40143b
inc edx
cmp byte [edx], 0
jne 0x40142b
cmp byte [edx], 0
jne 0x401446
mov ax, 0xffff
jmp 0x401471
mov al, byte [edx]
cmp al, 0x30
jb 0x401450
cmp al, 0x39
jbe 0x401453
inc edx
jmp 0x401446
xor eax, eax
cmp byte [edx], al
je 0x401471
imul eax, eax, 0xa
movzx ecx, byte [edx]
sub ecx, 0x30
js 0x401471
cmp ecx, 9
jg 0x401471
add eax, ecx
inc edx
cmp byte [edx], 0
jne 0x401459
mov esp, ebp
pop ebp
ret 4

Function at 0x401604
Capabilities:
Encode data using xor

Disassembly:
push esi
mov ecx, dword [0x4083d0]
mov esi, dword [esp + 0xc]
mov eax, esi
dec esi
test eax, eax
je 0x401637
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 + 0x407fd0]
xor eax, ecx
mov ecx, eax
mov eax, esi
dec esi
test eax, eax
jne 0x40161a
pop esi
mov dword [0x4083d0], ecx
ret

Function at 0x40172b
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 0x401ce7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x401d09
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x401dd1
test byte [0x4079d6], 1
je 0x401d77
test byte [0x4079d6], 2
je 0x401d77
mov eax, dword [0x408690]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x640
mov dword [ebp - 0x30], str.Install
mov dword [ebp - 0x20], 1
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
cmp dword [0x407978], eax
je 0x401d61
lea eax, [ebp - 0x3c]
push eax
call dword [0x407978]
jmp 0x401d69
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
test esi, esi
je 0x401d94
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
jmp 0x401d94
mov eax, dword [0x407934]
push eax
call fcn.00401dd6
add esp, 4
test eax, eax
je 0x401d94
test esi, esi
je 0x401d8f
mov dword [esi], eax
mov eax, 0x21
cmp eax, 0x1f
ja 0x401dd1
push dword [ebp + 8]
push eax
push 0x17
call fcn.0040107b
push eax
lea ecx, [ebp - 0x168]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x168]
push 0
push str.WinZip_Self_Extractor
push ecx
push dword [0x408690]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401dd6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea eax, [ebp - 0x44]
push 0x44
xor esi, esi
push esi
push eax
call fcn.00401056
add esp, 0xc
mov dword [ebp - 0x40], esi
ror byte [ecx + 0x7589c475], 0xc8
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x12], si
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x10], esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 0xa
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, 0
je 0x401e4b
mov eax, dword [ebp - 0x54]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4021d2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..exe
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4000
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x402234
mov eax, 1
jmp 0x402266
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x10
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x402264
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 1
jmp 0x402266
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40226a
Capabilities:
Get common file path

Disassembly:
push esi
push 0xfa
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x1b
call fcn.0040107b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.00401106
add esp, 4
pop esi
ret 4

Function at 0x40233b
Capabilities:
Query environment variable

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

Function at 0x4038f6
Capabilities:
Delete file
Set file attributes

Disassembly:
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
cmp eax, 1
sbb eax, eax
inc eax
ret
Function at 0x403917
Capabilities:
Get common file path
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
push ebx
push esi
push edi
xor ebx, ebx
push 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x403a8b
push dword [ebp + 8]
push 0x407b40
push str._hs_hs_r_n
lea ecx, [ebp - 0x51c]
push ecx
mov esi, str._Rename__r_n
lea edi, [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 8], eax
movsd dword es:[edi], dword [esi]
push 0x104
lea ecx, [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.WinInit.Ini
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea ecx, [ebp - 0x11c]
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403a8b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push ebx
mov eax, dword [ebp - 8]
add eax, esi
add eax, 0xa
push eax
push ebx
push 4
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x403a6b
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x403a62
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00405a50
add esp, 8
test eax, eax
jne 0x403a1d
lea eax, [ebp - 0x18]
lea ecx, [edi + esi]
push eax
push 0x407b14
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, eax
mov ebx, esi
jmp 0x403a43
push 0xa
push eax
call fcn.00405990
add esp, 8
lea ebx, [eax + 1]
mov eax, esi
sub eax, ebx
add eax, edi
push eax
push ebx
mov eax, dword [ebp - 8]
add eax, ebx
sub ebx, edi
push eax
call fcn.00405830
add esp, 0xc
lea ecx, [ebp - 0x51c]
add ebx, edi
push dword [ebp - 8]
push ecx
push ebx
call section..text
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add esi, dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a92
Capabilities:
Check for time delay via gettickcount
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
cmp dword [0x407980], 0
push ebx
push esi
push edi
jne 0x403ca0
mov esi, dword [ebp + 8]
test esi, esi
je 0x403c85
cmp byte [esi], 0
je 0x403c85
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x403c85
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x10d], 0x5c
je 0x403b06
push 0x407a6c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x407b44
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403c73
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x10d], 0x5c
je 0x403b6f
push 0x407a6c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 0x11c], 0
je 0x403b80
lea eax, [ebp - 0x11c]
jmp 0x403b86
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x24c], 0x10
je 0x403c0a
cmp byte [ebp - 0x11c], 0
je 0x403bdc
cmp byte [ebp - 0x11c], 0x2e
je 0x403c5b
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00403a92
add esp, 8
test al, al
jne 0x403c5b
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x403c5b
cmp byte [ebp - 0x220], 0x2e
je 0x403c5b
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00403a92
add esp, 8
test al, al
jne 0x403c5b
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x403c5b
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [eax + 0x3e8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x403c48
lea eax, [ebp - 0x10c]
push eax
call fcn.004038f6
add esp, 4
test eax, eax
je 0x403c46
call fcn.00402184
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x403c22
jmp 0x403c48
mov bl, 1
test bl, bl
jne 0x403c5b
lea eax, [ebp - 0x10c]
push eax
call fcn.00403917
add esp, 4
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403b38
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x403ca2
push 0
push str.WinZip_Self_Extractor
push 0x18
call fcn.0040107b
push eax
push dword [0x408690]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e56
Capabilities:
Encode data using xor

Disassembly:
push esi
xor eax, eax
push edi
cmp dword [0x40850e], eax
ja 0x403e6c
mov dword [0x4084ec], eax
jmp 0x403f1f
mov esi, 0x800
cmp dword [0x40850e], esi
ja 0x403e7f
mov esi, dword [0x40850e]
push esi
mov eax, dword [0x4084e8]
push eax
push dword [0x4078ec]
call dword [sym.imp.KERNEL32.dll__lread]
cmp dword [0x4078fc], 0
mov dword [0x4084ec], eax
je 0x403ec3
cmp eax, esi
je 0x403ec3
test eax, eax
jle 0x403ec3
cmp eax, 0xffffffff
je 0x403ec3
mov esi, eax
mov eax, dword [0x407900]
push eax
mov ax, word [0x407904]
inc ax
push eax
call fcn.00401223
cmp dword [0x4084ec], esi
je 0x403ed0
call fcn.00401c0c
mov eax, dword [0x4084ec]
mov ecx, dword [0x4084e8]
sub dword [0x40850e], eax
mov dword [0x40851c], ecx
cmp dword [0x4078f0], 0
je 0x403f14
mov esi, ecx
lea edi, [eax - 1]
test eax, eax
je 0x403f14
call fcn.00405598
xor byte [esi], al
movzx eax, byte [esi]
push eax
inc esi
call fcn.004055b1
add esp, 4
mov eax, edi
dec edi
test eax, eax
jne 0x403ef9
mov eax, dword [0x4084ec]
dec dword [0x4084ec]
pop edi
pop esi
ret