joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [0xd48044]
mov dword [esp + 0x4c], ebp
xor ebp, ebp
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
mov esi, dword [esp + 0xb8]
mov edi, dword [esp + 0xbc]
mov ebp, dword [esp + 0x4c]
sub ebp, dword [0xd48044]
jne 0x50e9ef
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xb8], esi
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xac], edx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0050e360
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x593120
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [0xd48044]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
not eax
cmp esi, 3
jbe 0x593200
lea edx, [esi - 4]
shr edx, 2
lea ebx, [ecx + edx*4 + 4]
nop
mov edx, eax
xor al, byte [ecx]
add ecx, 4
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0xa8e520]
mov eax, edx
xor dl, byte [ecx - 3]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0xa8e520]
mov edx, eax
xor al, byte [ecx - 2]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0xa8e520]
mov eax, edx
xor dl, byte [ecx - 1]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0xa8e520]
cmp ecx, ebx
jne 0x593150
and esi, 3
test esi, esi
je 0x5931e6
mov edx, eax
xor al, byte [ebx]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0xa8e520]
mov eax, edx
cmp esi, 1
je 0x5931e6
xor al, byte [ebx + 1]
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0xa8e520]
mov eax, edx
cmp esi, 2
je 0x5931e6
xor al, byte [ebx + 2]
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0xa8e520]
mov eax, edx
not eax
mov edx, dword [esp + 0xc]
sub edx, dword [0xd48044]
jne 0x593204
add esp, 0x14
pop ebx
pop esi
ret
mov ebx, ecx
jmp 0x5931a1
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop
Function at 0x402a4c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a2870]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ae0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a9d
cmp dword [ebp + 0x10], ebx
jne 0x402ad4
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a4c
test eax, eax
jne 0x402aaf
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.0040608a
cmp eax, ebx
je 0x402ae7
push ebx
push dword [0x7a2870]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ae0
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 [0x7a2870], ebx
jne 0x402add
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402add
jmp 0x402ae0
Function at 0x402f31
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f5e
mov ecx, dword [0x7a2818]
push edi
add eax, ecx
push edi
push eax
mov dword [0x795964], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040305c
cmp eax, edi
jl 0x403055
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x403052
cmp dword [ebp - 4], esi
jne 0x403052
push dword [ebp + 8]
add dword [0x795964], esi
call fcn.0040305c
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403055
cmp dword [ebp + 0x10], edi
jne 0x403021
cmp dword [ebp + 8], edi
jle 0x40304d
mov esi, 0x791960
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fd1
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x403052
cmp edi, dword [ebp - 4]
jne 0x403052
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40301d
cmp dword [ebp + 0x14], edi
jne 0x40301d
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x795964], eax
cmp dword [ebp + 8], 0
jg 0x402fc4
jmp 0x40304d
push 0xfffffffffffffffe
jmp 0x403054
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40302c
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x403052
mov eax, dword [ebp - 4]
add dword [0x795964], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403055
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40305c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x795964]
sub esi, dword [0x40b090]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x7a27cc], eax
jle 0x4031c6
push dword [0x79d974]
call fcn.0040320a
push ebx
push ebx
push dword [0x40b090]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x79d970], esi
mov dword [0x795960], ebx
mov ebp, 0x789960
mov eax, dword [0x795968]
mov edi, 0x4000
sub eax, dword [0x79d974]
cmp eax, edi
jg 0x4030d1
mov edi, eax
mov esi, 0x791960
push edi
push esi
call fcn.004031d8
test eax, eax
je 0x4031b8
add dword [0x79d974], edi
mov dword [0x40b098], esi
mov dword [0x40b09c], edi
cmp dword [0x7a27d0], ebx
je 0x403128
cmp dword [0x7a2860], ebx
jne 0x403128
mov eax, dword [0x79d970]
push ebx
sub eax, dword [0x795964]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40b090]
mov dword [0x795960], eax
call fcn.00402be9
pop ecx
push 0x40b098
mov dword [0x40b0a0], ebp
mov dword [0x40b0a4], 0x8000
call fcn.00406167
test eax, eax
jl 0x4031c1
mov esi, dword [0x40b0a0]
sub esi, ebp
je 0x403182
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031bd
cmp esi, dword [esp + 0x10]
jne 0x4031bd
add dword [0x40b090], esi
cmp dword [0x40b09c], ebx
jne 0x4030f7
jmp 0x40318e
cmp dword [0x40b09c], ebx
jne 0x4031c1
cmp edi, ebx
je 0x4031c1
mov eax, dword [0x795964]
mov ecx, eax
sub ecx, dword [0x40b090]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030bb
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031c6
or eax, 0xffffffff
jmp 0x4031d0
push 0xfffffffffffffffe
jmp 0x4031c3
push 0xfffffffffffffffd
pop eax
jmp 0x4031d0
push 1
call fcn.00402be9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4054ac
Capabilities:
Create directory

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

Function at 0x40555e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0dc8], 0x44
push eax
xor eax, eax
push 0x7a0dc8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405599
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405623
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004058d2
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405657
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2848], eax
jmp 0x4057eb
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405675
test eax, eax
je 0x405796
test byte [ebp + 0xc], 2
je 0x405796
mov esi, 0x79fdc8
push edi
push esi
call fcn.00405cfe
test ebx, ebx
je 0x405692
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405698
push edi
call fcn.00405838
cmp byte [edi], 0
jne 0x4056a6
cmp byte [0x79fdc8], 0x5c
jne 0x4056b1
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40578c
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040581c
cmp byte [eax], 0
je 0x4056f7
cmp byte [ebp - 0x18], 0
je 0x4056f7
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40570d
mov al, byte [esi + 1]
test al, al
je 0x40576b
cmp al, 0x2e
jne 0x40570d
cmp byte [esi + 2], 0
je 0x40576b
push esi
push ebx
call fcn.00405cfe
test byte [ebp - 0x148], 0x10
je 0x405732
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40576b
push dword [ebp + 0xc]
push edi
call fcn.00405623
jmp 0x40576b
push edi
call fcn.004059b6
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405763
test byte [ebp + 0xc], 4
je 0x40575b
push edi
push 0xfffffffffffffff1
call fcn.00404fea
push 0
push edi
call fcn.00405a4c
jmp 0x40576b
inc dword [0x7a2848]
jmp 0x40576b
push edi
push 0xfffffffffffffff2
call fcn.00404fea
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056d5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405796
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4057eb
cmp dword [ebp - 8], esi
jne 0x4057ab
inc dword [0x7a2848]
jmp 0x4057eb
push edi
call fcn.00405ff9
test eax, eax
je 0x4057eb
push edi
call fcn.004057f1
push edi
call fcn.004059b6
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4057e3
test byte [ebp + 0xc], 4
je 0x4057a3
push edi
push 0xfffffffffffffff1
call fcn.00404fea
push esi
push edi
call fcn.00405a4c
jmp 0x4057eb
push edi
push 0xffffffffffffffe5
call fcn.00404fea
pop edi
pop esi
leave
ret 8
Function at 0x4058d2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a01c8
push esi
call fcn.00405cfe
push esi
call fcn.00405885
mov edi, eax
test edi, edi
jne 0x4058f3
xor eax, eax
jmp 0x405945
push edi
call fcn.00405f60
test byte [0x7a27d8], 0x80
je 0x40590c
mov al, byte [edi]
test al, al
je 0x4058ef
cmp al, 0x5c
je 0x4058ef
sub edi, esi
jmp 0x405924
call fcn.00405ff9
test eax, eax
je 0x40591e
test byte [eax], 0x10
je 0x4058ef
push esi
call fcn.00405838
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405910
call fcn.004057f1
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 0x4059b6
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 0x405a48
test edi, edi
jne 0x405a0f
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a42
Function at 0x405a4c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.0040608a
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405a70
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405ba9
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a0f50], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a0f50
je 0x405ab4
push 1
push 0
push esi
call fcn.004059d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405baf
cmp eax, edi
jg 0x405baf
mov esi, 0x7a09c8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405baf
cmp eax, edi
jg 0x405baf
push esi
push ebp
push str._s_s_r_n
push 0x7a05c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a27d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d20
push 4
push 0xc0000000
push esi
call fcn.004059d5
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405ba9
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 0x405ba2
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405ba2
cmp edi, dword [esp + 0x18]
jne 0x405ba2
push str._Rename__r_n
push esi
call fcn.0040594a
test eax, eax
jne 0x405bb6
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405cfe
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a05c8
push eax
call fcn.00405996
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2850]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409424
push eax
call fcn.0040594a
test eax, eax
je 0x405b6d
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405bdd
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405bd2
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405b6f
Function at 0x405be5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c56
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c45
cmp dword [ebp + 0x14], 1
je 0x405c47
cmp dword [ebp + 0x14], 2
je 0x405c47
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406020
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 0x406044
xor eax, eax
test eax, eax
je 0x406056
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406056
xor ecx, ecx
jmp 0x406059
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
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 eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

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

Disassembly:
cmp dword [0x7a1354], 0
push esi
jne 0x406130
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 0x40610a
mov dword [ecx*4 + 0x7a1350], eax
inc ecx
cmp ecx, 0x100
jl 0x406105
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406161
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 + 0x7a1350]
xor eax, esi
inc ecx
dec edx
jne 0x406143
pop edi
not eax
pop esi
ret 0xc
Function at 0x404ae0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x404aed
mov eax, dword [esi]
jmp 0x404aef
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x404b06
push dword [esi]
call fcn.004075f1
add esp, 4
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
pop esi
ret

Function at 0x404b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418b3b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], 0
mov word [ebp - 0x43c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404bc7
cmp eax, 0x105
jae 0x404bc7
lea eax, [ebp - 0x424]
push eax
push 0
push 0x41a5b0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x404bc7
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401410
lea eax, [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.004023c0
cmp dword [ebp - 0x428], 8
jb 0x404bec
push dword [ebp - 0x43c]
call fcn.004075f1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407df4
mov esp, ebp
pop ebp
ret
Function at 0x4063f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004062d0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x406438
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x14], 8
mov dword [ebp - 4], 0
jb 0x40646e
push dword [ebp - 0x28]
call fcn.004075f1
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x40648b
xor al, al
jmp 0x406503
mov dword [ebp - 0x2c], eax
xor bl, bl
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4064f6
cmp dword [ebp - 0x2c], 0
jne 0x4064f6
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406d50
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
mov edi, dword [ebp - 0x4c]
sub eax, edi
push 0
push ecx
push eax
push edi
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4064e9
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x30]
push edi
call fcn.00406530
mov bl, al
test edi, edi
je 0x4064f6
push edi
call fcn.004075f1
add esp, 4
test esi, esi
je 0x406501
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407df4
mov esp, ebp
pop ebp
ret 4