joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cd6
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
je 0x1001ce2
push 2
pop eax
jmp 0x1001ce7
call fcn.01001c19
cmp eax, 2
jne 0x1001d2f
test byte [esp + 4], 4
je 0x1001cf8
push 6
pop eax
jmp 0x1001d0f
push 4
push 0x40
push 0
push 0x10012fc
push 0x522
push 0
call fcn.01003dda
cmp eax, 6
jne 0x1001d2f
cmp word [0x100bc04], 0
jne 0x1001d2a
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1001d2f
call fcn.01001c43
ret 4

Function at 0x1001d32
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x100a300], 0
je 0x1001d75
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d75
push 0x100a300
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1001f6c
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
xor ebx, ebx
cmp byte [0x100a300], bl
je 0x1002064
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002064
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x344]
push eax
push ebx
mov esi, 0x100a300
push ebx
push esi
mov dword [ebp - 8], 0x238
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100205a
mov al, byte [0x10012fc]
push edi
push 0x40
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002015
lea eax, [ebp - 0x10c]
push 0x10012fc
push eax
call fcn.01005b7d
lea eax, [ebp - 0x10c]
push 0x100ae84
push eax
lea eax, [ebp - 0x344]
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x344]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret

Function at 0x10021cd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x100223a
lea eax, [ebp - 0x104]
push 0x100135c
push eax
call fcn.01005b7d
lea eax, [ebp - 0x104]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x104]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x100223a
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1002240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002289
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1002280
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x10041d7
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov cl, byte [edi]
test cl, cl
je 0x100423b
mov al, byte [edi + 1]
lea esi, [edi + 1]
xor ebx, ebx
cmp al, 0x3a
jne 0x10041fb
cmp byte [edi + 2], 0x5c
jne 0x10041fb
lea esi, [edi + 3]
jmp 0x100420a
cmp cl, 0x5c
jne 0x100420a
cmp al, cl
jne 0x100420a
push 2
lea esi, [edi + 2]
pop ebx
mov al, byte [esi]
test al, al
je 0x100423b
cmp al, 0x5c
jne 0x1004230
cmp byte [esi - 1], 0x3a
je 0x1004230
test ebx, ebx
je 0x1004221
dec ebx
jmp 0x1004230
and byte [esi], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100420a
pop edi
pop esi
pop ebx
ret 4

Function at 0x1004b8c
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
mov eax, edi
inc edi
push eax
lea eax, [esp + 0x14]
push 0x10014a8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005b7d
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
je 0x1004bf4
cmp edi, 0x190
jl 0x1004ba1
jmp 0x1004c07
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1004c07
push 1
pop ebp
mov dword [0x100aaa0], ebp
test ebp, ebp
jne 0x1004c32
push esi
push ebp
push 0x10014a4
push dword [esp + 0x124]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1004c32
push 1
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
Function at 0x1005013
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1005059
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.01003dda
call fcn.0100582e
mov dword [0x100b704], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10014e4
push esi
call fcn.01005b7d
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1005046
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005046
test al, 0x10
je 0x1005046
push 1
mov dword [0x100b704], ebp
pop eax
jmp 0x1005052

Function at 0x10057df
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x100581d
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1005818
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1005802
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x100580a
cmp edx, ebx
jne 0x1005958
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10057d9
add eax, dword [eax + 4]
jmp 0x10057c6
mov dword [ebp + 0xc], ebx
jmp 0x1005828
Function at 0x100584d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
push es
jne 0x1005840
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100585e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
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 0x10058bc
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 0x10058a3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10058ac
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10058b6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1005898
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1005822
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 0x1005909
dec eax
je 0x1005900
sub eax, 3
je 0x10058f7
mov dword [ebp - 4], 0x40
jmp 0x1005926
mov dword [ebp - 4], 4
jmp 0x100590c
mov dword [ebp - 4], 0x20
jmp 0x100590c
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 0x1005958
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10058d8
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.01005169
or al, 2
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402846
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x40288b
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a3d4
mov eax, esi
push eax
call fcn.0040a2e1
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a3d4
push esi
call fcn.0040a2e1
lea esi, [esi + eax + 1]
push 0x85
call fcn.00409854
push eax
push esi
call fcn.0040a3d4
push esi
call fcn.0040a2e1
lea esi, [esi + eax + 1]
push 0x4122b4
push esi
call fcn.0040a3d4
push esi
call fcn.0040a2e1
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a1e6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.00407338
cmp eax, esi
jne 0x40291a
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x402939
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x40293b
call ebx
mov edi, eax
test edi, edi
jne 0x402969
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402967
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x402963
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402965
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402cd3
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402ce1
call fcn.00402ca9
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402d0e
test cl, 7
je 0x402d0e
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402cef
cmp esi, 8
jb 0x402d92
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402d18
xor edx, edx
test esi, esi
jbe 0x402db2
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d99
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b62
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24c0]
call fcn.00403569
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00406053
test al, al
je 0x404cfb
cmp byte [ebp - 0x24c0], bl
je 0x404cfb
cmp byte [ebp - 0x1840], bl
je 0x404cfb
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.00407338
push eax
call fcn.0040d724
test eax, eax
je 0x404cfb
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.00407338
push eax
call fcn.0040d724
test eax, eax
jne 0x404cfb
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040d7cf
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.00407338
push eax
call fcn.0040a56d
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040577a
test al, al
je 0x404c3a
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404bf4
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040577a
test al, al
jne 0x404cfb
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040d7cf
lea eax, [ebp - 0x24c0]
push eax
call fcn.00407338
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407338
push eax
call fcn.0040a3d4
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404cfb
lea ecx, [ebp - 0x1420]
call fcn.00404ed6
push 0
push edi
xor bl, bl
call fcn.0040577a
test al, al
jne 0x404cc2
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.004051eb
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404cec
lea ecx, [ebp - 0x1420]
call fcn.00404f41
lea ecx, [ebp - 0x1420]
call fcn.00404fbf
lea ecx, [ebp - 0x1420]
call fcn.00405087
mov al, 1
jmp 0x404cfd
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4050aa
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x4050c4
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4050d7
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4050ea
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406e02
test eax, eax
je 0x405123
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x405123
cmp word [eax], bx
je 0x405123
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x405137
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405153
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405153
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x4051b5
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x405181
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040dfbb
jmp 0x40518a
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x40519d
push dword [ebp + 8]
push eax
call fcn.0040a3d4
jmp 0x4051ab
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040dd98
push dword [esi + 4]
mov ecx, esi
call fcn.00404f1a
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4052e5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x40530b
cmp dword [ebp + 0xc], esi
jbe 0x405300
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40535b
mov ecx, edi
call fcn.00405064
test al, al
je 0x405341
cmp dword [ebp + 0xc], esi
jbe 0x405341
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004052e5
jmp 0x40535e
cmp dword [edi + 0xc], 1
jne 0x405356
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405356
xor eax, eax
jmp 0x40535e
or eax, 0xffffffff
jmp 0x40535e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405598
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405698
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4055c5
dec eax
je 0x4055ba
dec eax
jne 0x4055c5
push 0xfffffffffffffff4
jmp 0x4055bc
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x405614
cmp dword [ebp + 0xc], edi
jbe 0x40562f
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x4055ec
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x40562f
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x4055dc
jmp 0x40562b
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x405692
cmp byte [esi + 0x14], 0
je 0x405692
cmp dword [esi + 0xc], 0
jne 0x405692
push 0
lea eax, [esi + 0x17]
mov edi, 0x414c7c
push eax
mov ecx, edi
call fcn.0040326f
test al, al
je 0x405685
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4055cd
test eax, eax
jbe 0x4055cd
push 0
mov ecx, esi
call fcn.00404fef
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405500
jmp 0x4055cd
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, edi
call fcn.00403484
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x40577a
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e02
test eax, eax
je 0x40579a
mov eax, dword [esp + 8]
test eax, eax
je 0x40579a
cmp word [eax], 0
je 0x40579a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4057a4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x4057c9
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e02
test eax, eax
je 0x4057e9
mov eax, dword [esp + 8]
test eax, eax
je 0x4057e9
cmp word [eax], 0
je 0x4057e9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4057f3
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x4057f6
Capabilities:
Set file attributes

Disassembly:
call fcn.00406e02
test eax, eax
je 0x40581a
mov eax, dword [esp + 8]
test eax, eax
je 0x40581a
cmp word [eax], 0
je 0x40581a
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405828
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc
Function at 0x4058a6
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00406e02
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4058cb
test esi, esi
je 0x4058cb
cmp word [esi], 0
je 0x4058cb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4058d6
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4058f0
cmp byte [ebp + 0x10], 0
je 0x4058ec
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004057f6
xor eax, eax
jmp 0x405908
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405905
cmp eax, 3
je 0x405905
xor eax, eax
inc eax
jmp 0x405908
push 2
pop eax
pop esi
pop ebp
ret 0x10
Function at 0x40650e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x406540
cmp dword [ebp - 8], ebx
jne 0x406581
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406581
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40652d
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40652d
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4065c1
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x412804
push eax
call dword [ecx]
test eax, eax
jl 0x4065c1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x4065b8
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x406cc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
push edi
jne 0x406ce3
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov byte [esi + 0x14], 1
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
mov byte [esi + 0x15], 0
call ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00406c59
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call edi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x406d39
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push dword [esi]
push 0
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor edi, edi
push eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
dec ecx
dec ecx
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 4], eax
cmp eax, edi
je 0x406d84
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
jne 0x406dfb
mov eax, dword [esi + 4]
cmp eax, edi
je 0x406d9b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], edi
push 5
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0x10]
call fcn.0040a2e1
imul eax, eax, 6
add eax, 0x100
push eax
call fcn.0040a149
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.0040a3d4
push ebx
mov ecx, esi
call fcn.004065ca
test al, al
jne 0x406dd7
push ebx
mov ecx, esi
call fcn.004065fa
push ebx
mov ecx, esi
call fcn.0040697b
push ebx
mov esi, eax
call fcn.0040a162
cmp esi, edi
je 0x406dfb
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.0040a162
pop edi
pop esi
pop ebx
leave
ret 0xc