joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40512a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405158
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40515f
cmp ebx, dword [eax + 4]
jae 0x40515f
xor eax, eax
jmp 0x40534f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405170
xor eax, eax
inc eax
jmp 0x40534e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405186
cmp ecx, edx
jae 0x4052cb
cmp dword [eax + 4], 0
je 0x40518f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405177
cmp dword [ebp + 8], 0
je 0x4051b1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4052cb
cmp eax, esi
jae 0x4052cb
mov eax, dword [0x419c10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4051d6
cmp dword [esi*4 + 0x419c18], edi
je 0x4052cf
inc esi
cmp esi, eax
jl 0x4051c4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x40606c]
test eax, eax
je 0x40534b
cmp dword [ebp - 8], 0x1000000
jne 0x40534b
test byte [ebp - 0xc], 0xcc
je 0x405254
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40534b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40534b
cmp word [eax + 0x18], 0x10b
jne 0x40534b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40534b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405254
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405254
test byte [ecx + 0x27], 0x80
jne 0x4052cb
push 1
push 0x419c58
call dword [0x4060e4]
test eax, eax
jne 0x405168
mov ecx, dword [0x419c10]
test ecx, ecx
mov edx, ecx
jle 0x405288
lea eax, [ecx*4 + 0x419c14]
cmp dword [eax], edi
je 0x405288
dec edx
sub eax, 4
test edx, edx
jg 0x40527c
test edx, edx
jne 0x4052b9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405295
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4052ad
lea eax, [edx*4 + 0x419c18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40529b
cmp ecx, 0x10
jge 0x4052b9
inc ecx
mov dword [0x419c10], ecx
push 0
push 0x419c58
call dword [0x4060e4]
jmp 0x405168
xor eax, eax
jmp 0x40534e
test esi, esi
jle 0x405168
mov ebx, dword [0x4060e4]
push 1
push 0x419c58
call ebx
test eax, eax
jne 0x405168
cmp dword [esi*4 + 0x419c18], edi
je 0x405325
mov eax, dword [0x419c10]
lea esi, [eax - 1]
test esi, esi
jl 0x405313
cmp dword [esi*4 + 0x419c18], edi
je 0x40530f
dec esi
jns 0x405303
test esi, esi
jge 0x405323
cmp eax, 0x10
jge 0x40531e
inc eax
mov dword [0x419c10], eax
lea esi, [eax - 1]
jmp 0x405325
je 0x40533d
xor ecx, ecx
test esi, esi
jl 0x40533d
lea eax, [ecx*4 + 0x419c18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40532b
push 0
push 0x419c58
call ebx
jmp 0x405168
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4051dc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405158
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40515f
cmp ebx, dword [eax + 4]
jae 0x40515f
xor eax, eax
jmp 0x40534f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405170
xor eax, eax
inc eax
jmp 0x40534e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405186
cmp ecx, edx
jae 0x4052cb
cmp dword [eax + 4], 0
je 0x40518f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405177
cmp dword [ebp + 8], 0
je 0x4051b1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4052cb
cmp eax, esi
jae 0x4052cb
mov eax, dword [0x419c10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4051d6
cmp dword [esi*4 + 0x419c18], edi
je 0x4052cf
inc esi
cmp esi, eax
jl 0x4051c4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x40606c]
test eax, eax
je 0x40534b
cmp dword [ebp - 8], 0x1000000
jne 0x40534b
test byte [ebp - 0xc], 0xcc
je 0x405254
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40534b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40534b
cmp word [eax + 0x18], 0x10b
jne 0x40534b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40534b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405254
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405254
test byte [ecx + 0x27], 0x80
jne 0x4052cb
push 1
push 0x419c58
call dword [0x4060e4]
test eax, eax
jne 0x405168
mov ecx, dword [0x419c10]
test ecx, ecx
mov edx, ecx
jle 0x405288
lea eax, [ecx*4 + 0x419c14]
cmp dword [eax], edi
je 0x405288
dec edx
sub eax, 4
test edx, edx
jg 0x40527c
test edx, edx
jne 0x4052b9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405295
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4052ad
lea eax, [edx*4 + 0x419c18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40529b
cmp ecx, 0x10
jge 0x4052b9
inc ecx
mov dword [0x419c10], ecx
push 0
push 0x419c58
call dword [0x4060e4]
jmp 0x405168
xor eax, eax
jmp 0x40534e
test esi, esi
jle 0x405168
mov ebx, dword [0x4060e4]
push 1
push 0x419c58
call ebx
test eax, eax
jne 0x405168
cmp dword [esi*4 + 0x419c18], edi
je 0x405325
mov eax, dword [0x419c10]
lea esi, [eax - 1]
test esi, esi
jl 0x405313
cmp dword [esi*4 + 0x419c18], edi
je 0x40530f
dec esi
jns 0x405303
test esi, esi
jge 0x405323
cmp eax, 0x10
jge 0x40531e
inc eax
mov dword [0x419c10], eax
lea esi, [eax - 1]
jmp 0x405325
je 0x40533d
xor ecx, ecx
test esi, esi
jl 0x40533d
lea eax, [ecx*4 + 0x419c18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40532b
push 0
push 0x419c58
call ebx
jmp 0x405168
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ffb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403018
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403027
mov ebx, 0x41f4c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40303c
mov ecx, dword [0x446778]
add ecx, eax
push ecx
call fcn.004031ed
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004031d7
test eax, eax
je 0x40318e
test byte [ebp + 0x17], 0x80
je 0x403177
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x413430
mov dword [ebp - 0xc], eax
call fcn.00406497
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4031cd
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40308c
mov esi, dword [ebp + 0x14]
mov edi, 0x41b4c0
push esi
push edi
call fcn.004031d7
test eax, eax
je 0x40318e
sub dword [ebp + 0x14], esi
mov dword [0x413448], edi
mov dword [0x41344c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x413430
mov dword [0x413450], ebx
mov dword [0x413454], eax
call fcn.004064b7
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40316f
mov esi, dword [0x413450]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4467d4], 1
mov edi, eax
je 0x40312e
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4030fb
cmp dword [ebp + 0x14], 0
jne 0x40312e
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.00405101
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403163
cmp dword [ebp + 0x10], 0
jne 0x40314b
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405c1a
test eax, eax
je 0x403173
add dword [ebp - 4], esi
jmp 0x403157
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x413450]
cmp dword [ebp - 0x10], 1
jne 0x4030af
jmp 0x4031cd
cmp dword [ebp + 0x14], 0
jg 0x40307f
jmp 0x4031cd
push 0xfffffffffffffffc
jmp 0x403190
push 0xfffffffffffffffe
jmp 0x403190
test edi, edi
je 0x4031c2
cmp dword [ebp + 0x14], esi
jge 0x403183
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004031d7
test eax, eax
jne 0x4031ca
push 0xfffffffffffffffd
pop eax
jmp 0x4031d0
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40319e
mov esi, dword [ebp + 0x14]
mov edi, 0x41b4c0
push esi
push edi
call fcn.004031d7
test eax, eax
je 0x40318e
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405c1a
test eax, eax
je 0x403173
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403193
jmp 0x4031cd
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4055c7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40737c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40736c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405618
xor eax, eax
jmp 0x40563f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40563f
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405614
call esi
pop esi
leave
ret 4

Function at 0x405679
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43d510], 0x44
push eax
xor eax, eax
push 0x43d510
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4056b8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4056bc
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x40575a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b4e
mov edi, eax
cmp edi, 0xffffffff
je 0x40579b
test byte [esp + 0x10], 1
push esi
je 0x40577d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405783
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40578c
xor eax, eax
inc eax
jmp 0x40579d
test byte [esp + 0x10], 4
jne 0x40579b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4057a2
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a60
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4057e1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4467a8], eax
jmp 0x40596b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4057fb
test eax, eax
je 0x405919
test bl, 2
je 0x405919
mov esi, 0x439510
push edi
push esi
call fcn.00405fda
cmp dword [ebp + 8], 0
je 0x40581a
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405820
push edi
call fcn.004059b9
cmp byte [edi], 0
jne 0x40582e
cmp byte [0x439510], 0x5c
jne 0x405839
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40590f
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040599d
cmp byte [eax], 0
je 0x40587f
cmp byte [ebp - 0x1c], 0
je 0x40587f
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405895
mov al, byte [esi + 1]
test al, al
je 0x4058ee
cmp al, 0x2e
jne 0x405895
cmp byte [esi + 2], 0
je 0x4058ee
push esi
push ebx
call fcn.00405fda
test byte [ebp - 0x14c], 0x10
je 0x4058ba
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4058ee
push dword [ebp + 0xc]
push edi
call fcn.004057a2
jmp 0x4058ee
push dword [ebp - 4]
push edi
call fcn.0040575a
test eax, eax
jne 0x4058e6
cmp dword [ebp - 4], eax
je 0x4058de
push edi
push 0xfffffffffffffff1
call fcn.00405101
push 0
push edi
call fcn.00405db9
jmp 0x4058ee
inc dword [0x4467a8]
jmp 0x4058ee
push edi
push 0xfffffffffffffff2
call fcn.00405101
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40585d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405919
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40596b
cmp dword [ebp - 0xc], esi
jne 0x40592d
inc dword [0x4467a8]
jmp 0x40596b
push edi
call fcn.004062dd
test eax, eax
je 0x40596b
push edi
call fcn.00405972
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040575a
test eax, eax
jne 0x405963
cmp dword [ebp - 4], esi
je 0x405925
push edi
push 0xfffffffffffffff1
call fcn.00405101
push esi
push edi
call fcn.00405db9
jmp 0x40596b
push edi
push 0xffffffffffffffe5
call fcn.00405101
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43b510
push esi
call fcn.00405fda
push esi
call fcn.00405a0b
mov edi, eax
test edi, edi
jne 0x405a81
xor eax, eax
jmp 0x405ad3
push edi
call fcn.00406244
test byte [0x44671c], 0x80
je 0x405a9a
mov al, byte [edi]
test al, al
je 0x405a7d
cmp al, 0x5c
je 0x405a7d
sub edi, esi
jmp 0x405ab2
call fcn.004062dd
test eax, eax
je 0x405aac
test byte [eax], 0x10
je 0x405a7d
push esi
call fcn.004059b9
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a9e
call fcn.00405972
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 0x405b4e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b6d
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405b73
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 0x405ba2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093b4]
dec edi
mov dword [ebp + 8], eax
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 0x405be7
test edi, edi
jne 0x405bad
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405be1
Function at 0x405c49
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x43da98], 0x4c554e
mov edi, 0x400
mov ebp, 0x43da98
je 0x405c95
push 1
push 0
push esi
call fcn.00405b73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405db4
cmp eax, edi
jg 0x405db4
mov esi, 0x43de98
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405db4
cmp eax, edi
jg 0x405db4
push esi
push ebp
push str._s_s_r_n
push 0x43d698
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446714]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405ffc
push 4
push 0xc0000000
push esi
call fcn.00405b73
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405db4
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 0x405dad
push edi
push esi
push ebp
call fcn.00405beb
test eax, eax
je 0x405dad
push str._Rename__r_n
push esi
call fcn.00405ad8
test eax, eax
jne 0x405d4b
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d80
add eax, 0xa
push 0x4093b8
push eax
call fcn.00405ad8
mov ebp, eax
test ebp, ebp
je 0x405d7c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405d6d
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d67
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405d82
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x43d698
push eax
call fcn.00405b2e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405c1a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405db9
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405ddc
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405c49
pop ecx
pop ecx
inc dword [0x4467b0]
ret 8

Function at 0x405ec1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x2000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405e60
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405f30
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x1fff], 0
test edi, edi
pop edi
jne 0x405f30
cmp dword [ebp + 0xc], 1
je 0x405f33
cmp dword [ebp + 0xc], 2
je 0x405f33
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406304
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406328
xor eax, eax
test eax, eax
je 0x40633a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40633a
xor ecx, ecx
jmp 0x40633d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406429
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43e29c], 0
push esi
jne 0x406460
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 0x40643a
mov dword [ecx*4 + 0x43e298], eax
inc ecx
cmp ecx, 0x100
jl 0x406435
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406491
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 + 0x43e298]
xor eax, esi
inc ecx
dec edx
jne 0x406473
pop edi
not eax
pop esi
ret 0xc
Function at 0x406ced
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x40af98
call fcn.00406fd4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d2d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d45
cmp eax, 0x20b
je 0x406d32
mov dword [ebp - 0x1c], ebx
jmp 0x406d59
cmp dword [ecx + 0x84], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406d53
cmp dword [ecx + 0x74], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40ea78], 0xffffffff
or dword [0x40ea7c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40d464]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40d460]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ea74], eax
call fcn.00406f30
call fcn.00406fd0
cmp dword [0x40d320], ebx
jne 0x406db9
push fcn.00406fd0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0053e000
push 0x40c00c
push 0x40c008
call sub.MSVCR71.dll__initterm
push 0x406f74
call fcn.00406f1e
mov eax, dword [0x40d45c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40d458]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x406e0d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406e8b
cmp al, bl
je 0x406e37
cmp dword [ebp - 0x20], ebx
jne 0x406e8b
mov al, byte [esi]
cmp al, bl
je 0x406e47
cmp al, 0x20
ja 0x406e47
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406e37
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406e63
movzx eax, word [ebp - 0x54]
jmp 0x406e66
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00404254
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406e83
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406ee0
cmp al, 0x22
jne 0x406e9a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x406ead
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406e25
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040700f
ret
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffb8
sar dword [esi - 0x2aa371e7], cl
invalid
dec ebp
jae 0x415398
nop
sbb eax, 0x1817311a
sti
cmp byte [esi + 0x3c50b90a], al
out dx, al
adc cl, byte [edx]
ljmp 0x479c

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x34c44da0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x5ae20853
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219