joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c3c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x260
push ebx
mov ebx, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406b59
mov dword [esp + 0xc], eax
test bl, 8
je 0x406c7e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x470e88], eax
jmp 0x406e0f
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x1c], ebp
je 0x406c9b
test eax, eax
je 0x406dbf
test bl, 2
je 0x406dbf
push esi
push 0x4572c0
call fcn.00407059
test ebp, ebp
je 0x406cbc
push str..
push 0x4572c0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x406cc2
push esi
call fcn.00407238
xor eax, eax
cmp word [esi], ax
jne 0x406cd3
cmp word [0x4572c0], 0x5c
jne 0x406cdf
push 0x4092c8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
push 0x4572c0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x406dad
mov ebp, dword [esp + 0x14]
push 0x2e
pop eax
cmp word [esp + 0x4c], ax
jne 0x406d2f
cmp word [esp + 0x4e], 0
je 0x406d88
cmp word [esp + 0x4e], ax
jne 0x406d2f
cmp word [esp + 0x50], 0
je 0x406d88
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x1c]
call fcn.00407059
test byte [esp + 0x20], 0x10
je 0x406d56
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406d88
push ebx
push esi
call fcn.00406c3c
jmp 0x406d88
push edi
push esi
call fcn.00406ab0
test eax, eax
jne 0x406d80
test edi, edi
je 0x406d78
push esi
push 0xfffffffffffffff1
call fcn.00406231
xor eax, eax
push eax
push esi
call fcn.0040674d
jmp 0x406d88
inc dword [0x470e88]
jmp 0x406d88
push esi
push 0xfffffffffffffff2
call fcn.00406231
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406d11
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x406dbb
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax - 2], cx
mov eax, dword [esp + 0x10]
test ebp, ebp
pop ebp
je 0x406e0f
test eax, eax
je 0x406dff
push esi
call fcn.00406afa
test eax, eax
je 0x406e0f
push esi
call fcn.00406a81
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406ab0
test eax, eax
jne 0x406e07
test edi, edi
je 0x406dff
push esi
push 0xfffffffffffffff1
call fcn.00406231
xor eax, eax
push eax
push esi
call fcn.0040674d
jmp 0x406e0f
inc dword [0x470e88]
jmp 0x406e0f
push esi
push 0xffffffffffffffe5
call fcn.00406231
pop edi
pop esi
pop ebx
add esp, 0x260
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406eae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x4008
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004067ea
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406f20
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x4006], ax
pop esi
jne 0x406f20
cmp dword [ebp + 0x18], 1
je 0x406f25
cmp dword [ebp + 0x18], 2
je 0x406f25
xor eax, eax
mov word [edi], ax
pop edi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x406f2c
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_ShellExecuteExW]
ret 4

Function at 0x406f91
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4099b0]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x4099b4]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406fdd
test edi, edi
jne 0x406f9e
mov word [esi], ax
jmp 0x406fdf
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4070c8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4070ea
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x460924], 0
push esi
jne 0x407392
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
dec esi
jne 0x40736b
mov dword [ecx*4 + 0x460920], edx
inc ecx
cmp ecx, 0x100
jl 0x407366
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x4073bc
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x460920]
inc esi
dec edx
jne 0x4073a4
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x402d40
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060f3
xor ebx, ebx
cmp eax, ebx
jne 0x402e23
test byte [ebp + 0x10], 2
je 0x402da1
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x402e08
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402ddd
test edi, edi
jne 0x402e08
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402d40
test eax, eax
jne 0x402de6
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402db6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406695
test eax, eax
jne 0x402e18
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402e23
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402e23
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403148
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 0x403165
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403177
mov dword [ebp - 0xc], 0x421440
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40318c
mov ecx, dword [0x42f078]
add ecx, eax
push ecx
call fcn.00403370
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040335a
test eax, eax
je 0x403348
test byte [ebp + 0x17], 0x80
je 0x4032f3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40bda4], 0
and dword [0x40bda0], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40d428
mov dword [0x40b888], 8
mov dword [0x415430], eax
mov dword [0x41542c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x415428], 0x415428
mov dword [ebp + 8], eax
jle 0x403350
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403205
mov esi, dword [ebp + 0x14]
mov edi, 0x41d440
push esi
push edi
call fcn.0040335a
test eax, eax
je 0x403348
sub dword [ebp + 0x14], esi
mov dword [0x40b878], edi
mov dword [0x40b87c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b878
mov dword [0x40b880], edi
mov dword [0x40b884], eax
call fcn.004067ba
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4032eb
mov esi, dword [0x40b880]
sub esi, edi
call ebx
test byte [0x42f0d4], 1
mov edi, eax
je 0x4032a6
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403273
cmp dword [ebp + 0x14], 0
jne 0x4032a6
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.004053b1
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4032df
cmp dword [ebp + 0x10], 0
jne 0x4032c5
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405ea7
test eax, eax
je 0x4032ef
add dword [ebp - 4], esi
jmp 0x4032d3
mov eax, dword [0x40b880]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403228
jmp 0x403350
cmp dword [ebp + 0x14], 0
jg 0x4031f8
jmp 0x403350
push 0xfffffffffffffffc
jmp 0x40334a
push 0xfffffffffffffffe
jmp 0x40334a
test edi, edi
jne 0x403335
cmp dword [ebp + 0x14], edi
jle 0x403350
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403309
mov esi, ebx
mov edi, 0x41d440
push esi
push edi
call fcn.0040335a
test eax, eax
je 0x403348
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405ea7
test eax, eax
je 0x4032ef
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4032ff
jmp 0x403350
cmp dword [ebp + 0x14], esi
jge 0x40333d
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040335a
test eax, eax
jne 0x40334d
push 0xfffffffffffffffd
pop eax
jmp 0x403353
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405906
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405ddb
mov edi, eax
cmp edi, 0xffffffff
je 0x405a28
test byte [esp + 0x10], 1
push esi
je 0x405a0a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405a10
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405a19
xor eax, eax
inc eax
jmp 0x405a2a
test byte [esp + 0x10], 4
jne 0x405a28
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a2f
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.00405ced
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a6e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x405bf8
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a88
test eax, eax
je 0x405ba6
test bl, 2
je 0x405ba6
mov esi, 0x42b490
push edi
push esi
call fcn.0040626d
cmp dword [ebp + 8], 0
je 0x405aa7
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405aad
push edi
call fcn.00405c46
cmp byte [edi], 0
jne 0x405abb
cmp byte [0x42b490], 0x5c
jne 0x405ac6
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 0x405b9c
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405c2a
cmp byte [eax], 0
je 0x405b0c
cmp byte [ebp - 0x1c], 0
je 0x405b0c
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405b22
mov al, byte [esi + 1]
test al, al
je 0x405b7b
cmp al, 0x2e
jne 0x405b22
cmp byte [esi + 2], 0
je 0x405b7b
push esi
push ebx
call fcn.0040626d
test byte [ebp - 0x14c], 0x10
je 0x405b47
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b7b
push dword [ebp + 0xc]
push edi
call fcn.00405a2f
jmp 0x405b7b
push dword [ebp - 4]
push edi
call fcn.004059e7
test eax, eax
jne 0x405b73
cmp dword [ebp - 4], eax
je 0x405b6b
push edi
push 0xfffffffffffffff1
call fcn.004053b1
push 0
push edi
call fcn.00406046
jmp 0x405b7b
inc dword [0x42f0a8]
jmp 0x405b7b
push edi
push 0xfffffffffffffff2
call fcn.004053b1
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405aea
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ba6
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bf8
cmp dword [ebp - 0xc], esi
jne 0x405bba
inc dword [0x42f0a8]
jmp 0x405bf8
push edi
call fcn.00406600
test eax, eax
je 0x405bf8
push edi
call fcn.00405bff
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059e7
test eax, eax
jne 0x405bf0
cmp dword [ebp - 4], esi
je 0x405bb2
push edi
push 0xfffffffffffffff1
call fcn.004053b1
push esi
push edi
call fcn.00406046
jmp 0x405bf8
push edi
push 0xffffffffffffffe5
call fcn.004053b1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ced
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b890
push esi
call fcn.0040626d
push esi
call fcn.00405c98
mov edi, eax
test edi, edi
jne 0x405d0e
xor eax, eax
jmp 0x405d60
push edi
call fcn.00406567
test byte [0x42f038], 0x80
je 0x405d27
mov al, byte [edi]
test al, al
je 0x405d0a
cmp al, 0x5c
je 0x405d0a
sub edi, esi
jmp 0x405d3f
call fcn.00406600
test eax, eax
je 0x405d39
test byte [eax], 0x10
je 0x405d0a
push esi
call fcn.00405c46
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405d2b
call fcn.00405bff
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 0x405ddb
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 0x405dfa
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 0x405e00
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 0x405e2f
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 0x405e74
test edi, edi
jne 0x405e3a
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e6e
Function at 0x405ed6
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 [0x42c218], 0x4c554e
mov edi, 0x400
mov ebp, 0x42c218
je 0x405f22
push 1
push 0
push esi
call fcn.00405e00
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406041
cmp eax, edi
jg 0x406041
mov esi, 0x42c618
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406041
cmp eax, edi
jg 0x406041
push esi
push ebp
push str._s_s_r_n
push 0x42be18
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42f030]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406300
push 4
push 0xc0000000
push esi
call fcn.00405e00
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406041
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 0x40603a
push edi
push esi
push ebp
call fcn.00405e78
test eax, eax
je 0x40603a
push str._Rename__r_n
push esi
call fcn.00405d65
test eax, eax
jne 0x405fd8
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40600d
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405d65
mov ebp, eax
test ebp, ebp
je 0x406009
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ffa
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ff4
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40600f
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42be18
push eax
call fcn.00405dbb
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.00405ea7
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 0x406046
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 0x406069
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ed6
pop ecx
pop ecx
inc dword [0x42f0b0]
ret 8

Function at 0x406154
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.004060f3
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061c3
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 0x4061c3
cmp dword [ebp + 0xc], 1
je 0x4061c6
cmp dword [ebp + 0xc], 2
je 0x4061c6
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406627
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 0x40664b
xor eax, eax
test eax, eax
je 0x40665d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40665d
xor ecx, ecx
jmp 0x406660
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 0x40674c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca1c], 0
push esi
jne 0x406783
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 0x40675d
mov dword [ecx*4 + 0x42ca18], eax
inc ecx
cmp ecx, 0x100
jl 0x406758
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b4
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 + 0x42ca18]
xor eax, esi
inc ecx
dec edx
jne 0x406796
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret