joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a3aa
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1001a37b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1001a399
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1001a3f7
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1001a3de
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1001a3e7
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1001a3f1
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1001a3d3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1001a35d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1001a444
dec eax
je 0x1001a43b
sub eax, 3
je 0x1001a432
mov dword [ebp - 4], 0x40
jmp 0x1001a461
mov dword [ebp - 4], 4
jmp 0x1001a447
mov dword [ebp - 4], 0x20
jmp 0x1001a447
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1001a493
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1001a413
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10019ca4
mov byte [eax], al
movsb byte es:[edi], byte [esi]
aad 0xff
jne 0x1001a49e
push 1
push esi
call edi
mov eax, esi
jmp 0x1001a49f
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001a9a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.10019cb4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10019c69
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
invalid
invalid

Function at 0x1001ac0c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.10019cb4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
jne 0x1001ac9d
call fcn.10019c69
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.10019ca4
sbb bl, bh
cmc
mov byte [eax + 4], ch
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x10027e49
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10027e7a
call fcn.10019243
mov dword [eax], esi
call fcn.10019230
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.100221b1
add esp, 0x14
push 0x16
pop eax
jmp 0x10027ecf
test dword [ebp + 0xc], 0xfffffff9
jne 0x10027e56
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10027ea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10019256
pop ecx
call fcn.10019230
mov eax, dword [eax]
jmp 0x10027ecf
test al, 0x10
jne 0x10027ecd
test al, 1
je 0x10027ecd
test byte [ebp + 0xc], 2
je 0x10027ecd
call fcn.10019243
mov dword [eax], 5
call fcn.10019230
mov dword [eax], 0xd
jmp 0x10027e9e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10034ed9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100225e3
and dword [ebp - 4], 0
cmp dword [0x1004e38c], 0
mov ebx, eax
jne 0x10034f8a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1003503b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1003503b
push eax
call fcn.10022571
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1004e38c], eax
call esi
push eax
call fcn.10022571
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1004e390], eax
call esi
push eax
call fcn.10022571
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1004e394], eax
call esi
push eax
call fcn.10022571
pop ecx
mov dword [0x1004e39c], eax
test eax, eax
je 0x10034f8a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10022571
pop ecx
mov dword [0x1004e398], eax
mov eax, dword [0x1004e398]
cmp eax, ebx
je 0x10034fe2
cmp dword [0x1004e39c], ebx
je 0x10034fe2
push eax
call fcn.100225ec
push dword [0x1004e39c]
mov esi, eax
call fcn.100225ec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10034fe2
test edi, edi
je 0x10034fe2
call esi
test eax, eax
je 0x10034fd9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10034fd9
test byte [ebp - 0xc], 1
jne 0x10034fe2
or dword [ebp + 0x10], 0x200000
jmp 0x1003501b
mov eax, dword [0x1004e390]
cmp eax, ebx
je 0x1003501b
push eax
call fcn.100225ec
pop ecx
test eax, eax
je 0x1003501b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1003501b
mov eax, dword [0x1004e394]
cmp eax, ebx
je 0x1003501b
push eax
call fcn.100225ec
pop ecx
test eax, eax
je 0x1003501b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1004e38c]
call fcn.100225ec
pop ecx
test eax, eax
je 0x1003503b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1003503d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403168
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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 0x403185
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403197
mov dword [ebp - 0xc], 0x42a040
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4031ac
mov ecx, dword [0x450478]
add ecx, eax
push ecx
call fcn.00403390
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040337a
test eax, eax
je 0x403368
test byte [ebp + 0x17], 0x80
je 0x403313
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x4149a4], 0
and dword [0x4149a0], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x416028
mov dword [0x414488], 8
mov dword [0x41e030], eax
mov dword [0x41e02c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41e028], 0x41e028
mov dword [ebp + 8], eax
jle 0x403370
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403225
mov esi, dword [ebp + 0x14]
mov edi, 0x426040
push esi
push edi
call fcn.0040337a
test eax, eax
je 0x403368
sub dword [ebp + 0x14], esi
mov dword [0x414478], edi
mov dword [0x41447c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x414478
mov dword [0x414480], edi
mov dword [0x414484], eax
call fcn.004067da
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40330b
mov esi, dword [0x414480]
sub esi, edi
call ebx
test byte [0x4504d4], 1
mov edi, eax
je 0x4032c6
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403293
cmp dword [ebp + 0x14], 0
jne 0x4032c6
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 - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004053d1
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4032ff
cmp dword [ebp + 0x10], 0
jne 0x4032e5
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405ec7
test eax, eax
je 0x40330f
add dword [ebp - 4], esi
jmp 0x4032f3
mov eax, dword [0x414480]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403248
jmp 0x403370
cmp dword [ebp + 0x14], 0
jg 0x403218
jmp 0x403370
push 0xfffffffffffffffc
jmp 0x40336a
push 0xfffffffffffffffe
jmp 0x40336a
test edi, edi
jne 0x403355
cmp dword [ebp + 0x14], edi
jle 0x403370
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403329
mov esi, ebx
mov edi, 0x426040
push esi
push edi
call fcn.0040337a
test eax, eax
je 0x403368
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405ec7
test eax, eax
je 0x40330f
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40331f
jmp 0x403370
cmp dword [ebp + 0x14], esi
jge 0x40335d
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040337a
test eax, eax
jne 0x40336d
push 0xfffffffffffffffd
pop eax
jmp 0x403373
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405926
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x446090], 0x44
push eax
xor eax, eax
push 0x446090
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 0x405965
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405969
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 0x405a07
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dfb
mov edi, eax
cmp edi, 0xffffffff
je 0x405a48
test byte [esp + 0x10], 1
push esi
je 0x405a2a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405a30
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405a39
xor eax, eax
inc eax
jmp 0x405a4a
test byte [esp + 0x10], 4
jne 0x405a48
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a4f
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.00405d0d
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a8e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4504a8], eax
jmp 0x405c18
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405aa8
test eax, eax
je 0x405bc6
test bl, 2
je 0x405bc6
mov esi, 0x442090
push edi
push esi
call fcn.0040628d
cmp dword [ebp + 8], 0
je 0x405ac7
push 0x40a3c4
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405acd
push edi
call fcn.00405c66
cmp byte [edi], 0
jne 0x405adb
cmp byte [0x442090], 0x5c
jne 0x405ae6
push 0x40a014
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 0x405bbc
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405c4a
cmp byte [eax], 0
je 0x405b2c
cmp byte [ebp - 0x1c], 0
je 0x405b2c
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405b42
mov al, byte [esi + 1]
test al, al
je 0x405b9b
cmp al, 0x2e
jne 0x405b42
cmp byte [esi + 2], 0
je 0x405b9b
push esi
push ebx
call fcn.0040628d
test byte [ebp - 0x14c], 0x10
je 0x405b67
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b9b
push dword [ebp + 0xc]
push edi
call fcn.00405a4f
jmp 0x405b9b
push dword [ebp - 4]
push edi
call fcn.00405a07
test eax, eax
jne 0x405b93
cmp dword [ebp - 4], eax
je 0x405b8b
push edi
push 0xfffffffffffffff1
call fcn.004053d1
push 0
push edi
call fcn.00406066
jmp 0x405b9b
inc dword [0x4504a8]
jmp 0x405b9b
push edi
push 0xfffffffffffffff2
call fcn.004053d1
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405b0a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405bc6
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405c18
cmp dword [ebp - 0xc], esi
jne 0x405bda
inc dword [0x4504a8]
jmp 0x405c18
push edi
call fcn.00406620
test eax, eax
je 0x405c18
push edi
call fcn.00405c1f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405a07
test eax, eax
jne 0x405c10
cmp dword [ebp - 4], esi
je 0x405bd2
push edi
push 0xfffffffffffffff1
call fcn.004053d1
push esi
push edi
call fcn.00406066
jmp 0x405c18
push edi
push 0xffffffffffffffe5
call fcn.004053d1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405d0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x444090
push esi
call fcn.0040628d
push esi
call fcn.00405cb8
mov edi, eax
test edi, edi
jne 0x405d2e
xor eax, eax
jmp 0x405d80
push edi
call fcn.00406587
test byte [0x450438], 0x80
je 0x405d47
mov al, byte [edi]
test al, al
je 0x405d2a
cmp al, 0x5c
je 0x405d2a
sub edi, esi
jmp 0x405d5f
call fcn.00406620
test eax, eax
je 0x405d59
test byte [eax], 0x10
je 0x405d2a
push esi
call fcn.00405c66
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405d4b
call fcn.00405c1f
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 0x405dfb
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 0x405e1a
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 0x405e20
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 0x405e4f
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 [0x40a3cc]
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 0x405e94
test edi, edi
jne 0x405e5a
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e8e
Function at 0x405ef6
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 [0x446618], 0x4c554e
mov edi, 0x400
mov ebp, 0x446618
je 0x405f42
push 1
push 0
push esi
call fcn.00405e20
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406061
cmp eax, edi
jg 0x406061
mov esi, 0x446a18
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406061
cmp eax, edi
jg 0x406061
push esi
push ebp
push str._s_s_r_n
push 0x446218
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x450430]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406320
push 4
push 0xc0000000
push esi
call fcn.00405e20
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406061
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 0x40605a
push edi
push esi
push ebp
call fcn.00405e98
test eax, eax
je 0x40605a
push str._Rename__r_n
push esi
call fcn.00405d85
test eax, eax
jne 0x405ff8
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40602d
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405d85
mov ebp, eax
test ebp, ebp
je 0x406029
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40601a
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406014
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40602f
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x446218
push eax
call fcn.00405ddb
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.00405ec7
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 0x406066
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 0x406089
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ef6
pop ecx
pop ecx
inc dword [0x4504b0]
ret 8

Function at 0x406174
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.00406113
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061e3
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 0x4061e3
cmp dword [ebp + 0xc], 1
je 0x4061e6
cmp dword [ebp + 0xc], 2
je 0x4061e6
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406647
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 0x40666b
xor eax, eax
test eax, eax
je 0x40667d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40667d
xor ecx, ecx
jmp 0x406680
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
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 0x40676c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x446e1c], 0
push esi
jne 0x4067a3
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 0x40677d
mov dword [ecx*4 + 0x446e18], eax
inc ecx
cmp ecx, 0x100
jl 0x406778
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067d4
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 + 0x446e18]
xor eax, esi
inc ecx
dec edx
jne 0x4067b6
pop edi
not eax
pop esi
ret 0xc
Function at 0x41f5f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x413015
lea edi, [esi - 0x12015]
push edi
or ebp, 0xffffffff
jmp 0x41f612
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f619
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f608
mov eax, 1
add ebx, ebx
jne 0x41f62b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f620
jne 0x41f63c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f620
xor ecx, ecx
sub eax, 3
jb 0x41f650
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f6c2
mov ebp, eax
add ebx, ebx
jne 0x41f65b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f668
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f68c
inc ecx
add ebx, ebx
jne 0x41f678
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f66d
jne 0x41f689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f66d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f6ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f69d
jmp 0x41f60e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f6ac
add edi, ecx
jmp 0x41f60e
pop esi
mov edi, esi
mov ecx, 0x6b8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f6ca
cmp byte [edi], 6
jne 0x41f6ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41f6cf
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f73e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21f04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21fdc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f6fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21fe4]
or eax, eax
je 0x41f738
mov dword [ebx], eax
add ebx, 4
jmp 0x41f719
call dword [esi + 0x21fe0]
mov ebp, dword [esi + 0x21fe8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41f772
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x6c9757e9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x71f1266
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219