joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b43f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042af92

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.00401537
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x4019de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov eax, edi
shl eax, cl
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x401a7c
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x401a17
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x401a11
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401a30
mov eax, dword [ebp + 0xc]
add eax, esi
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x401a8d
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.0040198a
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.0040198a
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
or edx, esi
add edx, eax
push edx
mov edx, dword [ebp - 0x18]
xor edx, esi
add edx, eax
push edx
call fcn.00401970
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401a38
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edx, esi
dec edx
and eax, edx
cmp dword [ebp - 4], eax
jle 0x401a07
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420b4b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b8a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b8a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b8a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b8a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b8a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433300
Capabilities:
Parse pe header

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

Function at 0x40895f
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
sub edi, edi
add edx, edx
call fcn.00408986
xor dword [ebx], ecx
add ebx, 1
cmp ebx, eax
jne fcn.0040895f
inc edx
sub edi, 0x2fb5b587
ret

Function at 0x405934
Capabilities:
Parse pe header

Disassembly:
jmp 0x41a083
push 0
call dword [0x4f3054]
test eax, eax
je 0x41a0c2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a0c2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a0c2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41a0c2
cmp dword [ecx + 0x74], 0xe
jbe 0x41a0c2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402f57
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f84
mov ecx, dword [0x4243b8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41710c], eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403082
cmp eax, edi
jl 0x40307b
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409020]
call ebx
test eax, eax
je 0x403078
cmp dword [ebp - 4], esi
jne 0x403078
push dword [ebp + 8]
add dword [0x41710c], esi
call fcn.00403082
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40307b
cmp dword [ebp + 0x10], edi
jne 0x403047
cmp dword [ebp + 8], edi
jle 0x403073
mov esi, 0x4130c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402ff7
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409020]
call ebx
test eax, eax
je 0x403078
cmp edi, dword [ebp - 4]
jne 0x403078
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403043
cmp dword [ebp + 0x14], edi
jne 0x403043
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41710c], eax
cmp dword [ebp + 8], 0
jg 0x402fea
jmp 0x403073
push 0xfffffffffffffffe
jmp 0x40307a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403052
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409020]
call ebx
test eax, eax
je 0x403078
mov eax, dword [ebp - 4]
add dword [0x41710c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40307b
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403082
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x41710c]
mov edi, eax
sub esi, dword [0x40b03c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403258
push dword [0x41f11c]
call fcn.00403295
push ebp
push ebp
push dword [0x40b03c]
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f118], esi
mov dword [0x417108], ebp
mov eax, dword [0x417110]
mov ebx, 0x4000
sub eax, dword [0x41f11c]
cmp eax, ebx
jg 0x4030f5
mov ebx, eax
mov esi, 0x4130c8
push ebx
push esi
call fcn.00403263
test eax, eax
je 0x403223
add dword [0x41f11c], ebx
mov dword [0x40b058], esi
mov dword [0x40b05c], ebx
cmp dword [0x424368], ebp
je 0x403186
cmp dword [0x424400], ebp
jne 0x403186
cmp dword [esp + 0x10], ebp
je 0x403153
mov eax, dword [0x41f118]
push ebp
sub eax, dword [0x41710c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b03c]
mov dword [0x417108], eax
call fcn.00405e9b
jmp 0x403186
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x403186
mov eax, dword [0x424364]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bb2
push ebp
push 0x6f
push dword [0x424360]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b040
mov dword [0x40b060], 0x40b0c8
mov dword [0x40b064], 0x8000
call fcn.00405f5c
test eax, eax
jl 0x40322c
mov esi, dword [0x40b060]
mov eax, 0x40b0c8
sub esi, eax
je 0x4031ed
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403228
cmp esi, dword [esp + 0x14]
jne 0x403228
add dword [0x40b03c], esi
cmp dword [0x40b05c], ebp
jne 0x40311b
jmp 0x4031f9
cmp dword [0x40b05c], ebp
jne 0x40322c
cmp ebx, ebp
je 0x40322c
mov eax, dword [0x41710c]
mov ecx, eax
sub ecx, dword [0x40b03c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030df
push ebp
push ebp
push eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403231
or eax, 0xffffffff
jmp 0x40325a
push 0xfffffffffffffffe
jmp 0x40322e
push 0xfffffffffffffffd
pop eax
jmp 0x40325a
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403258
mov eax, dword [0x41f118]
push ebp
push ebp
push 0x113
push esi
mov dword [0x417108], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4053f2
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422960], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405416
test al, 0x10
jne 0x405419
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422960
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405444
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4054ac
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040574b
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054e0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243e8], eax
jmp 0x405665
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054fe
test eax, eax
je 0x405616
test byte [ebp + 0xc], 2
je 0x405616
mov esi, 0x421960
push edi
push esi
call fcn.00405b5e
test ebx, ebx
je 0x40551b
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405521
push edi
call fcn.004056b2
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40560c
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405696
cmp byte [eax], 0
je 0x405572
cmp byte [ebp - 0x18], 0
je 0x405572
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405588
mov al, byte [esi + 1]
test al, al
je 0x4055eb
cmp al, 0x2e
jne 0x405588
cmp byte [esi + 2], 0
je 0x4055eb
push esi
push ebx
call fcn.00405b5e
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4055ae
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055eb
push dword [ebp + 0xc]
push edi
call fcn.004054ac
jmp 0x4055eb
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055e3
test byte [ebp + 0xc], 4
je 0x4055db
push edi
push 0xfffffffffffffff1
call fcn.00404f0d
push 0
push edi
call fcn.004058a6
jmp 0x4055eb
inc dword [0x4243e8]
jmp 0x4055eb
push edi
push 0xfffffffffffffff2
call fcn.00404f0d
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405550
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405616
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405665
cmp dword [ebp - 8], esi
jne 0x40562b
inc dword [0x4243e8]
jmp 0x405665
push edi
call fcn.00405e33
test eax, eax
je 0x405665
push edi
call fcn.0040566b
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40565d
test byte [ebp + 0xc], 4
je 0x405623
push edi
push 0xfffffffffffffff1
call fcn.00404f0d
push esi
push edi
call fcn.004058a6
jmp 0x405665
push edi
push 0xffffffffffffffe5
call fcn.00404f0d
pop edi
pop esi
leave
ret 8
Function at 0x40574b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d60
push esi
call fcn.00405b5e
push esi
call fcn.004056fe
mov edi, eax
test edi, edi
jne 0x40576c
xor eax, eax
jmp 0x4057be
push edi
call fcn.00405d9a
test byte [0x424370], 0x80
je 0x405785
mov al, byte [edi]
test al, al
je 0x405768
cmp al, 0x5c
je 0x405768
sub edi, esi
jmp 0x40579d
call fcn.00405e33
test eax, eax
je 0x405797
test byte [eax], 0x10
je 0x405768
push esi
call fcn.004056b2
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405789
call fcn.0040566b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40582f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40585e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058a2
test edi, edi
jne 0x405869
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40589c
Function at 0x4058a6
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405e71
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058d2
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a18
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ae8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ae8
je 0x405916
push 1
push 0
push esi
call fcn.0040582f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a1e
cmp eax, edi
jg 0x405a1e
mov esi, 0x422560
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a1e
cmp eax, edi
jg 0x405a1e
push esi
push ebp
push str._s_s_r_n
push 0x422160
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405a18
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a11
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a11
cmp edi, dword [esp + 0x18]
jne 0x405a11
push str._Rename__r_n
push esi
call fcn.004057c3
test eax, eax
jne 0x405a25
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b5e
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422160
push eax
call fcn.0040580f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4243f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40931c
push eax
call fcn.004057c3
test eax, eax
je 0x4059dc
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x405a4e
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x405a41
sub eax, esi
jmp 0x4059de
Function at 0x405a52
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ab6
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405aa5
cmp dword [ebp + 0x14], 1
je 0x405aa7
cmp dword [ebp + 0x14], 2
je 0x405aa7
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405ba1
mov ecx, dword [0x423b3c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424398]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x423300
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405d74
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405d74
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405d81
inc ebx
cmp cl, 0xfc
jbe 0x405d67
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405d12
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405c35
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405cad
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405c54
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a52
jmp 0x405ca8
cmp eax, 0x26
jne 0x405c84
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a52
cmp byte [edi], 0
jne 0x405d0a
push str.C:Program_Files
push edi
call fcn.00405b5e
jmp 0x405ca8
cmp eax, 0x25
jne 0x405c97
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405ca8
cmp eax, 0x24
jne 0x405cad
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405d0a
cmp dword [0x4243e4], 0
jne 0x405cb9
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424364]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405cef
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004053c7
cmp dword [ebp - 8], 0
jne 0x405cf6
jmp 0x405cf2
and byte [edi], 0
test esi, esi
jne 0x405cb9
cmp byte [edi], 0
je 0x405d0a
cmp dword [ebp + 0xc], 0
je 0x405d0a
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405d9a
jmp 0x405d58
cmp byte [ebp + 0xf], 0xfd
jne 0x405d46
cmp esi, 0x1b
jne 0x405d2b
push dword [0x424364]
push edi
call fcn.00405abc
jmp 0x405d3c
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405b5e
add esi, 0xffffffeb
cmp esi, 6
jae 0x405d58
jmp 0x405d0a
cmp byte [ebp + 0xf], 0xff
jne 0x405d58
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405b80
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x423300
jmp 0x405d74
jne 0x405d71
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405d74
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405bcc
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405d96
push eax
push dword [ebp + 8]
call fcn.00405b5e
leave
ret 8
Function at 0x405ece
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422eec], 0
push esi
jne 0x405f05
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405edf
mov dword [ecx*4 + 0x422ee8], eax
inc ecx
cmp ecx, 0x100
jl 0x405eda
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f36
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ee8]
xor eax, esi
inc ecx
dec edx
jne 0x405f18
pop edi
not eax
pop esi
ret 0xc
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4093ff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 0x29c27be8
add dword [ebp - 8], 0x4196
mov byte [ebp - 1], 1
lea edi, [ebp - 0x1c]
lea esi, [0x42e63e]
mov ecx, 0x11
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
mov edx, eax
sub edx, eax
mov dword [ebp - 8], edx
lea edi, [ebp - 0x2b]
lea esi, [0x42e64f]
mov ecx, 0xf
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x32]
lea esi, [0x42e65e]
mov ecx, 7
rep movsb byte es:[edi], byte [esi]
sub dword [ebp - 8], 0x6151
cmp byte [ebx], 0x67
jne 0x40947a
inc ebx
add byte [ebp - 1], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mul dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov dword [ebp - 8], eax
mov byte [ebp - 9], 0
jmp 0x409496
mov al, byte [ebx]
movzx edx, byte [ebp - 9]
cmp al, byte [ebp + edx - 0x1c]
jne 0x409492
add byte [ebp - 1], 4
jmp 0x40949c
add byte [ebp - 9], 1
cmp byte [ebp - 9], 0x11
jb 0x409480
xor dword [ebp - 8], 0x774b
mov byte [ebp - 0xa], 0
jmp 0x409557
mov al, byte [ebx]
movzx edx, byte [ebp - 0xa]
cmp al, byte [ebp + edx - 0x2b]
jne 0x409553
add byte [ebp - 1], 1
mov eax, 0x67c6
mul dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 1]
cmp eax, 0xc0
jge 0x409538
movzx eax, byte [ebx + 1]
and eax, 0xc0
cmp eax, 0x40
jne 0x4094eb
add byte [ebp - 1], 1
movzx eax, byte [ebx + 1]
mov edx, eax
and edx, 7
cmp edx, 4
je 0x409503
cmp edx, 5
jne 0x409507
cmp eax, 0x40
jge 0x409507
add byte [ebp - 1], 1
sub dword [ebp - 8], 0x251a
movzx eax, byte [ebx + 1]
test byte [ebx + 1], 0xc0
jne 0x409524
and eax, 7
cmp eax, 5
jne 0x409524
add byte [ebp - 1], 3
movzx eax, byte [ebx + 1]
and eax, 0xc0
cmp eax, 0x80
jne 0x409538
add byte [ebp - 1], 4
movzx eax, byte [ebx]
cmp eax, 0xf7
jne 0x40954c
test byte [ebx + 1], 0x38
jne 0x40954c
add byte [ebp - 1], 4
sub dword [ebp - 8], 0x2d1d
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 0xf
jb 0x4094ac
mov byte [ebp - 0xb], 0
jmp 0x40957d
mov al, byte [ebx]
movzx edx, byte [ebp - 0xb]
cmp al, byte [ebp + edx - 0x32]
jne 0x409579
add byte [ebp - 1], 1
jmp 0x409583
add byte [ebp - 0xb], 1
cmp byte [ebp - 0xb], 7
jb 0x409567
mov eax, 0x7d5b
mul dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebx]
cmp eax, 0x83
jne 0x40959f
add byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c