joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 2
mov dword [esp + 0x40], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401172
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
mov ecx, 0x403188
lea edx, [esp + 0x5c]
nop dword [eax]
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x401156
test ax, ax
je 0x401152
mov ax, word [edx + 2]
cmp ax, word [ecx + 2]
jne 0x401156
add edx, 4
add ecx, 4
test ax, ax
jne 0x401130
xor eax, eax
jmp 0x40115b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4011a0
lea eax, [esp + 0x38]
push eax
push esi
call edi
test eax, eax
jne 0x401120
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.Error
push str.Could_not_find_process.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x26c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040157a
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x401172
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x4011ce
push eax
push str.Error
push str.Could_not_open_process.
jmp 0x40117e
push 0x401490
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401280
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
movlpd qword [esp + 0x18], xmm0
push eax
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
mov dword [esp + 0x18], 0x401000
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], str.ESPWindowClass
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push ebx
push 0
push 0
push 0x12c
push 0x12c
push 0
push 0
push 0xcf0000
push 0
push str.ESPWindowClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push 0
push esi
call edi
push esi
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401266

Function at 0x401dab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401dea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401dea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401dea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401dea
cmp dword [ecx + 0x74], 0xe
jbe 0x401dea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10e1c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10e1d8c
test eax, eax
je 0x10e1d8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x10fcff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x10e1d73
lea edi, [eax + 4]
jmp 0x10e1cd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x10e1cec
mov dword [ebp - 4], 2
jmp 0x10e1d0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x10e1d03
mov dword [ebp - 4], 1
jmp 0x10e1d0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x10e1d83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x10e1d46
mov byte [ecx], 0x3d
jmp 0x10e1d52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x10e1d5d
mov byte [ecx], 0x3d
jmp 0x10e1d63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x10e1cd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402bff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a8ad0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c93
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402c50
cmp dword [ebp + 0x10], ebx
jne 0x402c87
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402bff
test eax, eax
jne 0x402c62
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402c37
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406407
cmp eax, ebx
je 0x402c9a
push ebx
push dword [0x7a8ad0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a8ad0], ebx
jne 0x402c90
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c90
jmp 0x402c93
Function at 0x403027
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 0x403047
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403059
mov dword [ebp - 0xc], 0x78f6d8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40306e
mov ecx, dword [0x7a8a78]
add ecx, eax
push ecx
call fcn.00403235
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040321f
test eax, eax
je 0x40320d
test byte [ebp + 0x17], 0x80
je 0x4031b8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ce38], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40ce20], 0xb
mov dword [ebp + 8], eax
jle 0x403215
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4030c4
mov esi, dword [ebp + 0x14]
mov edi, 0x78b6d8
push esi
push edi
call fcn.0040321f
test eax, eax
je 0x40320d
sub dword [ebp + 0x14], esi
mov dword [0x40ce10], edi
mov dword [0x40ce14], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce10
mov dword [0x40ce18], edi
mov dword [0x40ce1c], eax
call fcn.00406526
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4031b0
mov esi, dword [0x40ce18]
sub esi, edi
call ebx
test byte [0x7a8ad4], 1
mov edi, eax
je 0x40316b
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403132
cmp dword [ebp + 0x14], 0
jne 0x40316b
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 - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.0040518c
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4031a4
cmp dword [ebp + 0x10], 0
jne 0x40318a
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405cb4
test eax, eax
je 0x4031b4
add dword [ebp - 4], esi
jmp 0x403198
mov eax, dword [0x40ce18]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x4030e7
jmp 0x403215
cmp dword [ebp + 0x14], 0
jg 0x4030b7
jmp 0x403215
push 0xfffffffffffffffc
jmp 0x40320f
push 0xfffffffffffffffe
jmp 0x40320f
test edi, edi
jne 0x4031fa
cmp dword [ebp + 0x14], edi
jle 0x403215
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4031ce
mov esi, ebx
mov edi, 0x78b6d8
push esi
push edi
call fcn.0040321f
test eax, eax
je 0x40320d
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405cb4
test eax, eax
je 0x4031b4
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4031c4
jmp 0x403215
cmp dword [ebp + 0x14], esi
jge 0x403202
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040321f
test eax, eax
jne 0x403212
push 0xfffffffffffffffd
pop eax
jmp 0x403218
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40565b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
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], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4056ac
xor eax, eax
jmp 0x4056d3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4056d3
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4056a8
call esi
pop esi
leave
ret 4

Function at 0x40570d
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405bdd
mov edi, eax
cmp edi, 0xffffffff
je 0x405817
test byte [esp + 0x10], 1
push esi
je 0x4057f9
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4057ff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405808
xor eax, eax
inc eax
jmp 0x405819
test byte [esp + 0x10], 4
jne 0x405817
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40581e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
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.00405ae9
test bl, 8
mov dword [ebp - 8], eax
je 0x40585d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8aa8], eax
jmp 0x4059da
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405877
test eax, eax
je 0x405988
test bl, 2
je 0x405988
mov esi, 0x7a3f28
push edi
push esi
call fcn.0040602d
cmp dword [ebp + 8], 0
je 0x405896
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40589c
push edi
call fcn.00405a2d
cmp word [edi], 0
jne 0x4058ac
cmp word [0x7a3f28], 0x5c
jne 0x4058b7
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40597d
cmp word [ebp - 0x22c], 0x2e
jne 0x405901
cmp word [ebp - 0x22a], 0
je 0x405960
cmp word [ebp - 0x22a], 0x2e
jne 0x405901
cmp word [ebp - 0x228], 0
je 0x405960
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040602d
test byte [ebp - 0x258], 0x10
je 0x40592c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405960
push dword [ebp + 0xc]
push edi
call fcn.0040581e
jmp 0x405960
push dword [ebp - 4]
push edi
call fcn.004057d6
test eax, eax
jne 0x405958
cmp dword [ebp - 4], eax
je 0x405950
push edi
push 0xfffffffffffffff1
call fcn.0040518c
push 0
push edi
call fcn.00405ece
jmp 0x405960
inc dword [0x7a8aa8]
jmp 0x405960
push edi
push 0xfffffffffffffff2
call fcn.0040518c
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4058d9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405988
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4059da
cmp dword [ebp - 8], esi
jne 0x40599c
inc dword [0x7a8aa8]
jmp 0x4059da
push edi
call fcn.00406370
test eax, eax
je 0x4059da
push edi
call fcn.004059e1
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004057d6
test eax, eax
jne 0x4059d2
cmp dword [ebp - 4], esi
je 0x405994
push edi
push 0xfffffffffffffff1
call fcn.0040518c
push esi
push edi
call fcn.00405ece
jmp 0x4059da
push edi
push 0xffffffffffffffe5
call fcn.0040518c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ae9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a4728
push esi
call fcn.0040602d
push esi
call fcn.00405a8c
mov edi, eax
test edi, edi
jne 0x405b0a
xor eax, eax
jmp 0x405b62
push edi
call fcn.004062c1
test byte [0x7a8a38], 0x80
je 0x405b27
mov ax, word [edi]
test ax, ax
je 0x405b06
cmp ax, 0x5c
je 0x405b06
sub edi, esi
sar edi, 1
jmp 0x405b41
call fcn.00406370
test eax, eax
je 0x405b3b
test byte [eax], 0x10
je 0x405b06
push esi
call fcn.00405a2d
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405b2d
call fcn.004059e1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405bdd
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 0x405bfc
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405c02
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x405c31
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 [0x40a550]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a554]
mov dword [ebp - 4], 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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405c81
test edi, edi
jne 0x405c3e
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405c7b
Function at 0x405d5c
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x7a55c0
push 0x40a574
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405daa
push 1
push 0
push esi
call fcn.00405c02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405ec9
cmp eax, edi
jg 0x405ec9
mov esi, 0x7a5dc0
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405ec9
cmp eax, edi
jg 0x405ec9
push esi
push ebx
push str._ls_ls_r_n
push 0x7a51c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a8a30]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040604f
push 4
push 0xc0000000
push esi
call fcn.00405c02
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405ec9
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 0x405ec2
push edi
push esi
push ebp
call fcn.00405c85
test eax, eax
je 0x405ec2
push str._Rename__r_n
push esi
call fcn.00405b67
test eax, eax
jne 0x405e60
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405e95
add eax, 0xa
push 0x40a558
push eax
call fcn.00405b67
mov ebp, eax
test ebp, ebp
je 0x405e91
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405e82
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405e7c
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405e97
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a51c0
push eax
call fcn.00405bbd
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.00405cb4
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 0x405ece
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405ef1
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405d5c
pop ecx
pop ecx
inc dword [0x7a8ab0]
ret 8
Function at 0x405efa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f6e
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405f5b
cmp dword [ebp + 0x14], 1
je 0x405f5e
cmp dword [ebp + 0x14], 2
je 0x405f5e
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406397
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4063bb
xor eax, eax
test eax, eax
je 0x4063ce
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4063ce
xor ecx, ecx
jmp 0x4063d1
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x7a65c4], 0
push esi
jne 0x4064ef
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 0x4064c9
mov dword [ecx*4 + 0x7a65c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4064c4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406520
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 + 0x7a65c0]
xor eax, esi
inc ecx
dec edx
jne 0x406502
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4065c3
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 0x4065e7
xor eax, eax
test eax, eax
je 0x4065f9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4065f9
xor ecx, ecx
jmp 0x4065fc
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 0x4066e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232e4], 0
push esi
jne 0x40671f
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 0x4066f9
mov dword [ecx*4 + 0x4232e0], eax
inc ecx
cmp ecx, 0x100
jl 0x4066f4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406750
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 + 0x4232e0]
xor eax, esi
inc ecx
dec edx
jne 0x406732
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret