joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016fe
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407650
call fcn.00402f80
mov edi, 0x94
mov eax, edi
call fcn.00402fd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40990c], ecx
mov eax, dword [esi + 4]
mov dword [0x409918], eax
mov edx, dword [esi + 8]
mov dword [0x40991c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x409910], esi
cmp ecx, 2
je 0x40175e
or esi, 0x8000
mov dword [0x409910], esi
shl eax, 8
add eax, edx
mov dword [0x409914], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401799
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401799
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4017b1
cmp eax, 0x20b
je 0x40179e
mov dword [ebp - 0x1c], esi
jmp 0x4017c5
cmp dword [ecx + 0x84], 0xe
jbe 0x401799
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4017bf
cmp dword [ecx + 0x74], 0xe
jbe 0x401799
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402f2f
pop ecx
test eax, eax
jne 0x4017f1
cmp dword [0x4098d8], 1
jne 0x4017de
call fcn.004026d8
push 0x1c
call fcn.00402561
push 0xff
call fcn.004023ca
pop ecx
pop ecx
call fcn.00402e8d
mov dword [ebp - 4], esi
call fcn.00402ce2
test eax, eax
jge 0x40180a
push 0x1b
call fcn.004016d9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40af74], eax
call fcn.00402bc0
mov dword [0x4098d0], eax
call fcn.00402b1e
test eax, eax
jge 0x401830
push 8
call fcn.004016d9
pop ecx
call fcn.004028eb
test eax, eax
jge 0x401841
push 9
call fcn.004016d9
pop ecx
call fcn.004023fa
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x401854
push eax
call fcn.004016d9
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402882
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x401875
movzx eax, word [ebp - 0x34]
jmp 0x401878
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401540
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401896
push edi
call fcn.00402521
call fcn.00402543
jmp 0x4018c8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402fbb
ret
Function at 0x40245f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40994c], esi
push edi
jne 0x40247f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x409948], esi
mov byte [0x409944], al
jne 0x4024e5
mov ecx, dword [0x40af68]
test ecx, ecx
je 0x4024c6
mov eax, dword [0x40af64]
sub eax, 4
cmp eax, ecx
jmp 0x4024bf
mov eax, dword [eax]
test eax, eax
je 0x4024b1
call eax
mov eax, dword [0x40af64]
sub eax, 4
cmp eax, dword [0x40af68]
mov dword [0x40af64], eax
jae 0x4024a9
mov eax, 0x409020
mov esi, 0x409028
cmp eax, esi
mov edi, eax
jae 0x4024e5
mov eax, dword [edi]
test eax, eax
je 0x4024de
call eax
add edi, 4
cmp edi, esi
jb 0x4024d6
mov eax, 0x40902c
mov esi, 0x409030
cmp eax, esi
mov edi, eax
jae 0x402504
mov eax, dword [edi]
test eax, eax
je 0x4024fd
call eax
add edi, 4
cmp edi, esi
jb 0x4024f5
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40251f
push dword [ebp + 8]
mov dword [0x40994c], 1
call fcn.004023ca
pop ecx
pop ebp
ret

Function at 0x402561
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x409448]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x409088]
je 0x40258e
inc eax
cmp eax, 0x12
jb 0x40257f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409088]
jne 0x4026c2
mov eax, dword [0x4098d8]
cmp eax, 1
je 0x40269d
cmp eax, edx
jne 0x4025be
cmp dword [0x409074], 1
je 0x40269d
cmp ecx, 0xfc
je 0x4026c2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4025f7
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00403b90
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00403780
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402639
lea eax, [ebp - 0x10c]
push eax
call fcn.00403780
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x407a48
push edi
call fcn.00403c90
add esp, 0x10
push edi
call fcn.00403780
push dword [esi + 0x40908c]
mov ebx, eax
call fcn.00403780
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402fd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403b90
push edi
push ebx
call fcn.00403ba0
push 0x407a28
push ebx
call fcn.00403ba0
push dword [esi + 0x40908c]
push ebx
call fcn.00403ba0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403a91
add esp, 0x2c
jmp 0x4026c2
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40908c]
push dword [esi]
call fcn.00403780
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00403926
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4032d8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402fd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40336d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40990c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40336d
cmp eax, 1
je 0x403385
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40336d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x403342
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x403369
xor eax, eax
inc eax
jmp 0x4033a1
cmp esi, ebx
jae 0x403371
xor eax, eax
jmp 0x4033a1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40990c]
jmp 0x403387
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40349c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x409448]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x40ae4c]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x40362c
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ae60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x40362c
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x4034fb
xor eax, eax
jmp 0x403640
test al, 0x20
je 0x40350c
push 2
push edi
push edi
push ecx
call fcn.004052b8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4035c8
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x403600
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x403562
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x403553
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x403538
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035a2
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x4035ab
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40352c
jmp 0x4035ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x403627
cmp dword [ebp + 8], edi
je 0x403600
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x4035f5
mov dword [0x409904], eax
jmp 0x403633
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035ea
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x4035ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4035ad
push dword [ebp + 8]
call fcn.004051a3
pop ecx
jmp 0x40363d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x403615
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x4034f4
mov dword [0x409900], 0x1c
mov dword [0x409904], edi
jmp 0x40363d
sub eax, dword [ebp - 0x14]
jmp 0x403640
and dword [0x409904], 0
mov dword [0x409900], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00403926
leave
ret
Function at 0x403a91
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409a68], ebx
push esi
push edi
jne 0x403b11
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403b4c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x407afc
push edi
call esi
test eax, eax
mov dword [0x409a68], eax
je 0x403b4c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x409a6c], eax
call esi
cmp dword [0x40990c], 2
mov dword [0x409a70], eax
jne 0x403b11
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409a78], eax
je 0x403b11
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409a74], eax
mov eax, dword [0x409a74]
test eax, eax
je 0x403b56
call eax
test eax, eax
je 0x403b3d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409a78]
test eax, eax
je 0x403b3d
test byte [ebp - 8], 1
jne 0x403b56
cmp dword [0x409918], 4
jb 0x403b50
or byte [ebp + 0x12], 0x20
jmp 0x403b75
xor eax, eax
jmp 0x403b85
or byte [ebp + 0x12], 4
jmp 0x403b75
mov eax, dword [0x409a6c]
test eax, eax
je 0x403b75
call eax
mov ebx, eax
test ebx, ebx
je 0x403b75
mov eax, dword [0x409a70]
test eax, eax
je 0x403b75
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409a68]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405c21
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40838c
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], 0x40837c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405c72
xor eax, eax
jmp 0x405c99
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405c99
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405c6e
call esi
pop esi
leave
ret 4

Function at 0x405cd3
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004061fd
mov edi, eax
cmp edi, 0xffffffff
je 0x405df5
test byte [esp + 0x10], 1
push esi
je 0x405dd7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405ddd
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405de6
xor eax, eax
inc eax
jmp 0x405df7
test byte [esp + 0x10], 4
jne 0x405df5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40610f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422a40
push esi
call fcn.00406689
push esi
call fcn.004060ba
mov edi, eax
test edi, edi
jne 0x406130
xor eax, eax
jmp 0x406182
push edi
call fcn.00406964
test byte [0x425c7c], 0x80
je 0x406149
mov al, byte [edi]
test al, al
je 0x40612c
cmp al, 0x5c
je 0x40612c
sub edi, esi
jmp 0x406161
call fcn.00406c47
test eax, eax
je 0x40615b
test byte [eax], 0x10
je 0x40612c
push esi
call fcn.00406068
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40614d
call fcn.00406021
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 0x4061fd
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 0x40621c
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 0x406222
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 0x406251
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 [0x40abdc]
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 0x406296
test edi, edi
jne 0x40625c
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x406290
Function at 0x4062f8
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 [0x4233c8], 0x4c554e
mov edi, 0x400
mov ebp, 0x4233c8
je 0x406344
push 1
push 0
push esi
call fcn.00406222
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406463
cmp eax, edi
jg 0x406463
mov esi, 0x4237c8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406463
cmp eax, edi
jg 0x406463
push esi
push ebp
push str._s_s_r_n
push 0x422fc8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x425c74]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040671c
push 4
push 0xc0000000
push esi
call fcn.00406222
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406463
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 0x40645c
push edi
push esi
push ebp
call fcn.0040629a
test eax, eax
je 0x40645c
push str._Rename__r_n
push esi
call fcn.00406187
test eax, eax
jne 0x4063fa
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40642f
add eax, 0xa
push 0x40abe0
push eax
call fcn.00406187
mov ebp, eax
test ebp, ebp
je 0x40642b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40641c
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406416
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406431
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x422fc8
push eax
call fcn.004061dd
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.004062c9
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 0x406468
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 0x40648b
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062f8
pop ecx
pop ecx
inc dword [0x425d10]
ret 8

Function at 0x406570
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], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040650f
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4065df
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 + 0x3ff], 0
test edi, edi
pop edi
jne 0x4065df
cmp dword [ebp + 0xc], 1
je 0x4065e2
cmp dword [ebp + 0xc], 2
je 0x4065e2
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x98a68c
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 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x44b610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov cl, byte [0x65f042]
mov al, byte [0x65f041]
or cl, 0x10
push ebx
shr cl, 3
and ecx, 0xff
mov bl, byte [0x65f04b]
mov dword [esp + 4], ecx
xor bl, al
fild dword [esp + 4]
mov byte [0x65f04b], bl
mov ebx, dword [esp + 0x10]
test ebx, ebx
fdivr qword [0x6629a0]
push esi
fadd qword [0x65f058]
fstp qword [0x662a10]
je 0x44b6ce
push 0x65f0a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x65f030]
mov ecx, dword [0x65f034]
mov esi, eax
mov dword [esp + 0xc], 0
lea eax, [edx + edx]
or eax, ecx
mov dword [esp + 8], eax
fild qword [esp + 8]
test esi, esi
fadd qword [0x65f058]
fstp qword [0x65f058]
je 0x44b6ce
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x65f07c
push esi
call edi
push 0x65f064
push esi
call edi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x44b6ce
lea ecx, [esp + 0x14]
inc eax
add ecx, 4
cmp eax, 0x36
jae 0x44b6d8
cmp dword [ecx], 0
jne 0x44b6c0
pop esi
xor al, al
pop ebx
add esp, 8
ret 4
mov dword [ebx], esi
pop esi
mov al, 1
pop ebx
add esp, 8
ret 4
Function at 0x489386
Capabilities:
Encode data using xor

Disassembly:
enter 0xffffffffffff86fa, 0xfffffffffffffff7
xchg ebx, eax
dec esp
push esp
inc ebp
mov ah, 0x9b
aas
invalid
pushfd
invalid
sahf
pop eax
adc cl, byte [0xffff8bb5]
mov bh, 0xaf
insd dword es:[edi], dx
pushfd
xor al, dl
lodsb al, byte [esi]
arpl word [edi + 8], bp
popfd
jge 0x489313
pop ebx
popal
stosb byte es:[edi], al
fbld tbyte [esi + 0x6add5d7]
dec esp
or eax, 0xcd781466
mov ecx, 0x9afd5fcf
outsd dx, dword [esi]
xchg ebp, eax
fld xword [eax - 0x2190d243]
mov bl, ch
dec edi
sub ah, byte [edx - 0x35]
mov dword [0xfcee3d30], eax
aaa
jb 0x489302
fimul dword [edx + 0x5d]
dec edi
cmp al, 0xd3
imul edx, dword [edi], 0x9389f190
sbb eax, 0x3ae6e5d9
aaa
jl 0x48938e
xchg ebp, eax
test eax, 0x2efaafed
dec esp
inc edx
add eax, 0x37239f0f
and esi, dword [edi]
push esp
add al, 0x5e
pop ecx
inc ebx
jmp 0x48934f
jg 0x4893f0
loopne 0x48931b
pushal
pop es
or eax, 0xee3bf08a
sub al, 0x31
xor edi, ebp
mov edi, 0xdf1154fd
inc ecx
sub eax, dword [ebx]
push ss
lds edi, [eax + edi*4 - 0x755ad959]
xchg ecx, eax
mov esp, 0x13431bed
inc edx
enter 0x63b6, 0xffffffffffffffc8
push cs
mov eax, 0x85c1e08f
xchg edx, eax
pop ds
xchg edi, eax
pushal
cmp esp, esp
loope 0x48937a
invalid
out 0xd2, al
test byte [edx - 0x42], bl
aad 0x2e
dec ebp
xchg esp, eax
mov ebp, 0x361afb3
push eax
insd dword es:[edi], dx
push eax
mov dl, 0xf6
push edi
retf
pop es
pop es
and eax, 0x113bf0f3
xchg edi, eax
cmpsb byte gs:[esi], byte es:[edi]
cmp al, 0xb6
adc dword [edi - 0x49c3599b], edx
int 0x96
sbb eax, 0x3826bff4
push 0x269b7ee
jo 0x4893d7
jne 0x4893de
dec edi
lea edx, [ebp + 0x57]
nop
jnp 0x489448
jecxz 0x489412
ficomp dword [esi]
aaa
in al, dx
or edi, dword [ecx + 0xd05dc6d]
aas
jmp dword [esi]
xor al, 0x1e
cmp ah, byte [esi]
les esi, [0xf210557f]
sbb eax, 0x4ccd9452
or eax, 0x8df2c704
xchg ebx, esi
jmp 0x4893de
outsd dx, dword [esi]
out 0xb8, eax
salc
pop es
dec ebp
out 3, eax
and al, 0x4c
xchg edi, ecx
push es
push esp
adc dh, byte [ecx]
jne 0x489495
and cl, byte [ecx + 0x44]
mov esp, 0xceb63bb8
jne 0x48948a
daa
fbstp tbyte [eax - 0x28f31c97]
out 0xb9, eax
sub al, 0x9f
ja 0x489408
pop ebp
mov esp, 0x26469e5f
scasd eax, dword es:[edi]
jo 0x4894b3
invalid
invalid
mov ecx, 0x1ed98618
shr eax, cl
mov dword [0xc5413995], eax
cdq
into
test al, 0xe2
adc eax, 0x1d610d6c
cmp cl, dl
lds ebx, [ecx + 0x15e2a8ce]
insb byte es:[edi], dx
or eax, 0xd1381d61
mov ch, 0xe7
add dword [edx + 0x59], esp
fimul word [ebp - 0x3a3899d2]
test byte [edx + 0x669efdd], dh
dec edx
pop edi
pop edi
pop ss
push ebx
test dword [ecx], ebp
arpl word [edx], bx
add ebp, ebp
dec edi
adc bh, byte [esi - 0x531370fe]
lodsb al, byte [esi]
ja 0x4894ea
shl byte [ebp - 0x55cc52d8], 1
mov ecx, ds
xchg esi, eax
popal
mov ch, 0x6e
aaa
imul ecx, dword [edx], 0xdfdbb833
push 0x79
dec esp
ja 0x48947c
pushfd
cli
dec edi
push ds
cmpsb byte [esi], byte es:[edi]
inc esi
mov esp, 0xc72396a4
xchg ebp, eax
cmpsd dword [esi], dword es:[edi]
out dx, al
invalid