joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa26058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a261a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa2607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2606a
add dl, dl
jne 0xa26089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa260dc
xor eax, eax
add dl, dl
jne 0xa26096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2617d
add dl, dl
jne 0xa260a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa260b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa260bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa260c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa260d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa26075
mov eax, 1
add dl, dl
jne 0xa260ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa260f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa260e1
sub eax, ebx
mov ebx, 1
jne 0xa26128
mov ecx, 1
add dl, dl
jne 0xa2610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa26119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa26105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa26075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa2613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa2614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa26136
cmp eax, 0x7d00
jae 0xa2616d
cmp eax, 0x500
jb 0xa26168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa26075
cmp eax, 0x7f
ja 0xa26170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa26075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa2619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa26075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401460
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x144
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401494
mov eax, 0
jmp 0x401527
lea edx, [ebp - 0x138]
mov eax, 0
mov ecx, 0x4a
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x138], 0x128
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32First_8
sub esp, 8
test eax, eax
je 0x401516
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x138]
add eax, 0x24
mov dword [esp], eax
call sym.__stricmp
test eax, eax
jne 0x4014fa
mov dword [ebp - 0xc], 1
jmp 0x401516
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Process32Next_8
sub esp, 8
test eax, eax
jne 0x4014d5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
leave
ret

Function at 0x40152c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [0x4070a0]
test al, al
jne 0x401576
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.roblox:__
mov dword [esp + 4], str.open
mov dword [esp], 0
call sym._ShellExecuteA_24
sub esp, 0x18
jmp 0x4015ad
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4070a0
mov dword [esp + 4], str.open
mov dword [esp], 0
call sym._ShellExecuteA_24
sub esp, 0x18
mov dword [esp], str.Roblox_restarted_successfuly.
call sym._puts
nop
leave
ret
Function at 0x4016aa
Capabilities:
Execute command

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call sym.___main
call sym._askSleep
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
call sym._uriChoose
mov dword [esp], 0x40515e
call sym._system
mov dword [esp + 4], str.RobloxPlayerBeta.exe
mov dword [esp], str.Processus_checking__s..._n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Roblox_encounter__d_crash_n
call sym._printf
mov dword [esp], str.RobloxPlayerBeta.exe
call sym._isProcessRunning
test eax, eax
jne 0x401707
mov dword [esp], 0x40515e
call sym._system
add dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x14]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
sar edx, 6
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [ebp - 0x10], eax
jmp 0x401789
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Roblox_crashed__d_times._Restarting..._n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.Restarting_in__d...
call sym._printf
mov dword [esp], 0x3e8
call sym._Sleep_4
sub esp, 4
mov dword [esp], 0x40515e
call sym._system
sub dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
jg 0x401744
mov dword [esp], 0xa
call sym._putchar
call sym._startRoblox
mov dword [esp], 0x40515e
call sym._system
mov dword [esp + 4], str.RobloxPlayerBeta.exe
mov dword [esp], str.Processus_checking__s..._n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Roblox_encounter__d_crash_n
call sym._printf
jmp 0x401707
Function at 0x4045e8
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
and dword [ebp - 4], 0
and byte [ebp - 0x10], 0
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0xc], esi
call fcn.00404887
mov edi, eax
mov ecx, edi
call fcn.00401f9d
mov ecx, dword [ebp + 8]
mov ebx, dword [edi + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.004047b1
mov edi, eax
mov ecx, edi
call fcn.00401f9d
mov edi, dword [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.004029af
push eax
push 0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call edi
mov ebx, eax
lea ecx, [ebp - 0x34]
neg ebx
sbb bl, bl
inc bl
call fcn.00401b39
lea ecx, [ebp - 0x50]
call fcn.00401b39
lea ecx, [ebp - 0x14]
call fcn.00402988
test bl, bl
jne 0x4046ef
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x404753
cmp word [ebp - 4], 3
jge 0x4046ef
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
and byte [ebp - 0x10], bl
and dword [ebp - 8], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], 0x104
push eax
mov dword [ebp - 0xc], esi
call fcn.00404887
mov ebx, eax
mov ecx, ebx
call fcn.00401f9d
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004047b1
mov ebx, eax
mov ecx, ebx
call fcn.00401f9d
mov ebx, dword [ebx + 4]
lea ecx, [ebp - 0x14]
call fcn.004029af
push eax
push 0
push dword [ebp - 0x18]
push ebx
jmp 0x40464f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and byte [ebp - 0x154], 0
push 0x40
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401f9d
push ebx
lea eax, [ebp - 0x154]
push dword [edi + 4]
push str._s_d.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40470e
lea eax, [ebp - 0x154]
mov ecx, esi
push eax
call fcn.0040476c
jmp 0x404763
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x4053a6
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4053e1
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4053c8
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4053d9
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4053e3
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4053be
xor eax, eax
pop edi
pop esi
ret
Function at 0x40541f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call ebx
mov bl, 0x9b
aaa
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.00405366
jecxz 0x405474
mov cl, 0x1a
push esi
push ebx
call fcn.004053a6
pop ecx
test eax, eax
pop ecx
je 0x4054f9
push edi
push esi
push ebx
call fcn.004053e6
add esp, 0xc
call fcn.00405366
sub bh, 0xc1
xchg esi, eax
mov esi, dword [esi + 0x78]
test esi, esi
je 0x4054f9
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.00405366
cmp eax, 0x8b980d89
inc esi
and byte [ebx], al
invalid
invalid
Function at 0x405c33
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
add byte [eax - 0x3335b], al
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00405376
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040532b
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
test eax, 0xfc1985c6
invalid
dec dword [ebx - 0x3e57a3a]
invalid
call [edx - 0x3e47a3a]
invalid
jmp dword [ebx - 0x3e37a3a]
invalid
inc dword [ecx - 0x3e27a3a]
invalid
dec dword [edx - 0x3e17a3a]
invalid
call [ebx - 0x3e07a3a]
invalid
inc dword [edx - 0x3df7a3a]
invalid
dec dword [ebx - 0x3de7a3a]
invalid
jmp dword [esi - 0x3dd7a3a]
invalid
dec dword [edi - 0x3dc7a3a]
invalid
inc dword [eax - 0x3db7a3a]
invalid
dec dword [edx - 0x3da7a3a]
invalid
inc dword [edx - 0x3d97a3a]
invalid
dec dword [ebx - 0x3d87a3a]
invalid
jmp [edi - 0x3d77a3a]
invalid
invalid
out dx, al
lea eax, [ebp - 0x3ec]
push eax
call fcn.00405376
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040532b
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00405366
clc
stc
push ebp
out dx, al
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.00405376
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040532b
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.00405366
pop esi
cmp eax, 0xf99ca580
invalid
Function at 0x40677a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4067bc
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x406766
call fcn.00405366
mov bh, 0x48
inc edi
sbb al, byte [eax - 0x72b5b]
inc dword [eax]
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00405366
retf 0x4f34

Function at 0x4079b5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x407a3a
xor eax, eax
cmp dword [ebp - 4], esi
je 0x4079f6
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x407a3a
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.00406896
cmp dword [ebp - 4], esi
je 0x407a36
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x407a58
cmp eax, esi
push ebx
jle 0x407a49
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x407a55
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x407b38
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.00406858
mov edi, eax
cmp edi, esi
je 0x407b78
cmp dword [ebp - 4], esi
je 0x407b71
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x407c15
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x407be9
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.00407b38
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x407bd6
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x407b9b
cmp dword [ebp - 4], esi
je 0x407be4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x407c15
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407bfc
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x407c13
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408514
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x70], 0x4143c8
mov dword [0x4156c0], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.004095af
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x408561
push 0x10
push dword [ebp + 0x10]
push 0x4156b0
call fcn.00410940
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edi, 0x94
mov dword [esi + 0x18], eax
push edi
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.004108c0
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xa8], 2
jne 0x4085b2
cmp dword [ebp - 0xb4], 5
jae 0x408608
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x408608
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x4085d4
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x4085c2
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x4085f1
jmp 0x40860e
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x408ecc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.00401c42
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.004048ca
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x408f02
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401b39
push 0x5c
inc esi
pop edi
mov dword [ebp + 8], edi
push esi
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call fcn.004043ac
cmp dword [0x4123d0], eax
je 0x408f6d
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x412314
mov dword [ebp - 8], 0x41231c
call fcn.004055bf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x412310
call fcn.00401f9d
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00401b39
mov dword [ebp + 8], edi
jmp 0x408f11
lea ecx, [ebp - 0x38]
call fcn.00401d80
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4066ce
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4150d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x30], 0
jne 0x40675c
push 0x104
lea eax, [ebp - 0x210]
push eax
mov byte [ebx + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40675c
push esi
push edi
lea edi, [ebp - 0x210]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x406710
push 6
pop ecx
lea eax, [ebp - 0x210]
mov esi, 0x4014c8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
pop esi
je 0x40675c
push 0x4014a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebx + 0x2c], eax
je 0x40675c
push 0x401488
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41602c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407c6f
leave
ret

Function at 0x409745
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040938d
push eax
push esi
push dword [ebp + 8]
call fcn.00409342
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x409818
Function at 0x409a5f
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x409a54
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x409a72
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x409ad0
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x409ab7
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x409ac0
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x409aca
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x409aac
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x409a36
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x409b1d
dec eax
je 0x409b14
sub eax, 3
je 0x409b0b
mov dword [ebp - 4], 0x40
jmp 0x409b3a
mov dword [ebp - 4], 4
jmp 0x409b20
mov dword [ebp - 4], 0x20
jmp 0x409b20
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x409b6c
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x409aec
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040937d
fcmovbe st(0), st(6)
fsubr dword [edi + edi*8 + 0x16a1475]
push esi
call edi
mov eax, esi
jmp 0x409b78
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret