joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f9ac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
imul eax, dword [eax - 0x5135b], 0xffffffff
add byte [eax - 0x5125b], al
inc dword [eax]
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.0040eda6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040ed5b
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0040ed96
scasb al, byte es:[edi]
imul byte [ecx + ecx*8 + 0x10468]
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x40fa5f
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x40fa8a
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x40fc54
cmp dword [ebp + 0xc], 1
je 0x40fc54
cmp dword [ebp + 0xc], 8
jne 0x40fc1c
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.0040eda6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040ed5b
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
invalid
test dword [eax - 7], eax
invalid
Function at 0x411346
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret 4
Function at 0x41eb3b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041fe40
cmp byte [0x453898], 0
je 0x41ebca
cmp word [0x45389a], 0
je 0x41ebca
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x45389a
call fcn.0041d6d4
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41ebc9
push dword [ebp + 8]
call fcn.00424e13
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x41ebce
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041fe40
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00411688
mov esi, eax
test esi, esi
je 0x41ec26
movzx ecx, word [esi]
push ecx
jmp 0x41ec11
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004117a4
test al, al
jne 0x41ec0a
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x433180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4331ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4331ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
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.00406224
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.004067c6
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 0x403202
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x40322d
mov ecx, dword [0x424398]
push esi
add eax, ecx
push esi
push eax
mov dword [0x41f8fc], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040330a
cmp eax, esi
jl 0x403304
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405fa9
test eax, eax
je 0x4032f4
push dword [ebp + 8]
add dword [0x41f8fc], 4
call fcn.0040330a
mov ebx, eax
cmp ebx, esi
jl 0x403302
cmp dword [ebp + 0x10], esi
jne 0x4032d0
cmp dword [ebp + 8], esi
jle 0x403302
mov esi, 0x4138f8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403292
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405fa9
test eax, eax
je 0x4032f4
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405fd8
test eax, eax
je 0x4032cc
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x41f8fc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403281
jmp 0x403302
push 0xfffffffffffffffe
jmp 0x4032f6
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4032db
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4032f9
push 0xfffffffffffffffd
pop eax
jmp 0x403304
mov ebx, dword [ebp - 4]
add dword [0x41f8fc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a37
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f0c
mov edi, eax
cmp edi, 0xffffffff
je 0x405b59
test byte [esp + 0x10], 1
push esi
je 0x405b3b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405b41
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405b4a
xor eax, eax
inc eax
jmp 0x405b5b
test byte [esp + 0x10], 4
jne 0x405b59
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b60
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.00405e1e
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405b9f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243c8], eax
jmp 0x405d29
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405bb9
test eax, eax
je 0x405cd7
test bl, 2
je 0x405cd7
mov esi, 0x421958
push edi
push esi
call fcn.0040639e
cmp dword [ebp + 8], 0
je 0x405bd8
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405bde
push edi
call fcn.00405d77
cmp byte [edi], 0
jne 0x405bec
cmp byte [0x421958], 0x5c
jne 0x405bf7
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 0x405ccd
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405d5b
cmp byte [eax], 0
je 0x405c3d
cmp byte [ebp - 0x1c], 0
je 0x405c3d
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405c53
mov al, byte [esi + 1]
test al, al
je 0x405cac
cmp al, 0x2e
jne 0x405c53
cmp byte [esi + 2], 0
je 0x405cac
push esi
push ebx
call fcn.0040639e
test byte [ebp - 0x14c], 0x10
je 0x405c78
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cac
push dword [ebp + 0xc]
push edi
call fcn.00405b60
jmp 0x405cac
push dword [ebp - 4]
push edi
call fcn.00405b18
test eax, eax
jne 0x405ca4
cmp dword [ebp - 4], eax
je 0x405c9c
push edi
push 0xfffffffffffffff1
call fcn.004054e2
push 0
push edi
call fcn.00406177
jmp 0x405cac
inc dword [0x4243c8]
jmp 0x405cac
push edi
push 0xfffffffffffffff2
call fcn.004054e2
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c1b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cd7
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d29
cmp dword [ebp - 0xc], esi
jne 0x405ceb
inc dword [0x4243c8]
jmp 0x405d29
push edi
call fcn.00406731
test eax, eax
je 0x405d29
push edi
call fcn.00405d30
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b18
test eax, eax
jne 0x405d21
cmp dword [ebp - 4], esi
je 0x405ce3
push edi
push 0xfffffffffffffff1
call fcn.004054e2
push esi
push edi
call fcn.00406177
jmp 0x405d29
push edi
push 0xffffffffffffffe5
call fcn.004054e2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405e1e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d58
push esi
call fcn.0040639e
push esi
call fcn.00405dc9
mov edi, eax
test edi, edi
jne 0x405e3f
xor eax, eax
jmp 0x405e91
push edi
call fcn.00406698
test byte [0x424358], 0x80
je 0x405e58
mov al, byte [edi]
test al, al
je 0x405e3b
cmp al, 0x5c
je 0x405e3b
sub edi, esi
jmp 0x405e70
call fcn.00406731
test eax, eax
je 0x405e6a
test byte [eax], 0x10
je 0x405e3b
push esi
call fcn.00405d77
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405e5c
call fcn.00405d30
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 0x405f0c
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 0x405f2b
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 0x405f31
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 0x405f60
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 [0x40a3ec]
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 0x405fa5
test edi, edi
jne 0x405f6b
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405f9f
Function at 0x406007
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 [0x4226e0], 0x4c554e
mov edi, 0x400
mov ebp, 0x4226e0
je 0x406053
push 1
push 0
push esi
call fcn.00405f31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406172
cmp eax, edi
jg 0x406172
mov esi, 0x422ae0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406172
cmp eax, edi
jg 0x406172
push esi
push ebp
push str._s_s_r_n
push 0x4222e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424350]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406431
push 4
push 0xc0000000
push esi
call fcn.00405f31
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406172
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 0x40616b
push edi
push esi
push ebp
call fcn.00405fa9
test eax, eax
je 0x40616b
push str._Rename__r_n
push esi
call fcn.00405e96
test eax, eax
jne 0x406109
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40613e
add eax, 0xa
push 0x40a3f0
push eax
call fcn.00405e96
mov ebp, eax
test ebp, ebp
je 0x40613a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40612b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406125
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406140
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4222e0
push eax
call fcn.00405eec
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.00405fd8
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 0x406177
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 0x40619a
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406007
pop ecx
pop ecx
inc dword [0x4243d0]
ret 8

Function at 0x406285
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.00406224
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4062f4
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 0x4062f4
cmp dword [ebp + 0xc], 1
je 0x4062f7
cmp dword [ebp + 0xc], 2
je 0x4062f7
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406758
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 0x40677c
xor eax, eax
test eax, eax
je 0x40678e
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40678e
xor ecx, ecx
jmp 0x406791
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 0x40687d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ee4], 0
push esi
jne 0x4068b4
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 0x40688e
mov dword [ecx*4 + 0x422ee0], eax
inc ecx
cmp ecx, 0x100
jl 0x406889
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4068e5
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 + 0x422ee0]
xor eax, esi
inc ecx
dec edx
jne 0x4068c7
pop edi
not eax
pop esi
ret 0xc

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4d8c548e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x38a765e1
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408398]
jne 0x403906
repz ret
jmp fcn.00403dae

Function at 0x401b14
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetTopWindow]
push edi
push dword [section..data]
call esi
push dword [section..data]
call esi
push dword [section..data]
call esi
push dword [0x404008]
call esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov byte [ebx + edi], bl
push dword [0x404008]
call esi
inc ebx
cmp ebx, 0x100
jl 0x401b46
and byte [edi + 0x100], 0
and byte [edi + 0x101], 0
push dword [0x404010]
call esi
push dword [0x40400c]
call esi
xor ebx, ebx
mov dword [ebp + 8], ebx
mov ecx, dword [ebp + 8]
push dword [section..data]
mov eax, ecx
cdq
idiv dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ecx + edi]
add ecx, ebx
movzx eax, byte [edx + eax]
lea ebx, [ecx + eax]
call esi
push dword [0x404008]
and ebx, 0xff
call esi
mov eax, dword [ebp + 8]
push dword [0x404018]
movzx eax, byte [eax + edi]
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp + 8]
mov al, byte [ebx + edi]
mov byte [ecx + edi], al
mov al, byte [ebp - 4]
mov byte [ebx + edi], al
push dword [0x40401c]
call esi
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x100
jl 0x401b7d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x401be8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [0x404024]
mov esi, dword [sym.imp.USER32.dll_GetTopWindow]
call esi
push dword [0x404030]
call esi
mov ebx, dword [ebp + 8]
push dword [0x404020]
movzx eax, byte [ebx + 0x100]
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 0x101]
mov dword [ebp + 8], eax
call esi
push dword [0x404010]
call esi
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jle 0x401cb6
push edi
push dword [0x40403c]
call esi
mov eax, dword [ebp - 8]
push dword [0x404030]
inc eax
and eax, 0xff
mov dword [ebp - 8], eax
call esi
mov eax, dword [ebp - 8]
push dword [0x404024]
lea edi, [eax + ebx]
movzx eax, byte [eax + ebx]
add dword [ebp + 8], eax
call esi
and dword [ebp + 8], 0xff
mov eax, dword [ebp + 8]
movzx ecx, byte [edi]
mov dl, byte [eax + ebx]
add eax, ebx
mov byte [edi], dl
mov dword [ebp - 0xc], ecx
mov byte [eax], cl
push dword [0x404028]
call esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add eax, ecx
mov cl, byte [edi]
add ecx, dword [ebp - 0xc]
and ecx, 0xff
mov cl, byte [ecx + ebx]
xor byte [eax], cl
push dword [0x404014]
call esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jl 0x401c38
pop edi
mov al, byte [ebp + 8]
mov byte [ebx + 0x101], al
push dword [0x404024]
call esi
mov al, byte [ebp - 8]
pop esi
mov byte [ebx + 0x100], al
pop ebx
leave
ret