joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404704
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x404746
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x404766
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00409f64
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4049bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004090fc
test esi, esi
jne 0x4049f2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409284
jmp 0x404a10
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004048a0
mov edi, eax
test esi, esi
je 0x404a10
cmp dword [ebx], 0
je 0x404a10
dec esi
jmp 0x4049f9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40551c
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x405532
sub ecx, 2
jne 0x405554
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x40555b
cmp edx, dword [ebx + 8]
je 0x405565
mov eax, 0x64
jmp 0x405560
mov eax, 0x67
jmp 0x405560
call sub.kernel32.dll_GetLastError
call fcn.004046e8
pop ebx
ret

Function at 0x4061e4
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x406217
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x40621e
cmp edx, dword [ebx + 8]
je 0x406228
mov eax, 0x65
jmp 0x406223
mov eax, 5
jmp 0x406223
call sub.kernel32.dll_GetLastError
call fcn.004046e8
mov eax, ebx
pop ebx
ret
Function at 0x407e78
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408270
mov byte [esp], al
cmp byte [esp], 0
jne 0x408004
test edi, edi
je 0x408004
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407f3b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407f16
cmp edi, 0xffffffff
je 0x407ed7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407ed7
mov byte [esp], 0
jmp 0x408004
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407f16
test ebx, ebx
jne 0x407f0c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x407f0c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408004
call 0x408394
dec ebp
test ebp, ebp
jg 0x407ebc
cmp edi, 0xffffffff
je 0x407f3b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f39
mov byte [esp], 0
jmp 0x408004
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407e86
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x407f3b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408074
mov edx, eax
mov ebx, dword [0x5818f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407fa2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407fa0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407fa2
xor edi, edi
cmp byte [esp], 0
je 0x407fcb
mov ebx, dword [esi]
test bl, 1
jne 0x407fe4
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x407fa8
mov byte [esp + 1], 1
jmp 0x407fe4
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x407fcb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407f55
cmp byte [esp], 0
je 0x408004
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408d94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x581058], 0
je 0x408dfb
cmp word [0x581344], 0xd7b2
jne 0x408dbd
cmp dword [0x58134c], 0
jbe 0x408dbd
mov eax, 0x581340
call dword [0x58135c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x408e28
call fcn.00409be0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x57a032], 0
jne 0x408e17
push 0
push 0x57a9f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408fb8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x57a034], 0
je 0x408fe3
mov edx, edi
mov eax, esi
call dword [0x57a034]
mov ebx, eax
jmp 0x408ff4
mov eax, 8
call fcn.00404554
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x581059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408f80
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409029
mov edx, 8
mov eax, ebx
call fcn.00404570
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ba80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40bbe5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004090fc
cmp si, word [0x57aa30]
jb 0x40bb18
cmp si, word [0x57ac30]
ja 0x40bb18
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bb18
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x57aa30]
jae 0x40baf2
mov edi, ebx
dec edi
jmp 0x40bb13
cmp si, word [ebx*8 + 0x57aa30]
jbe 0x40bb02
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bb13
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x57aa34]
call fcn.0040b990
jmp 0x40bb18
cmp edi, dword [ebp - 8]
jae 0x40badc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bbc7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bbc7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f64
push dword [ebp - 0x160]
push 0x40bc00
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409f64
push dword [ebp - 0x164]
push 0x40bc10
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f64
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a19c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bbec
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040915c
ret
Function at 0x40bd98
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40be9b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x583b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x583ba0]
jne 0x40bde4
mov eax, esi
mov edx, 0x583ba2
mov ecx, 0x55
call fcn.00409f64
push 0x583b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40be85
push 0x583b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004090fc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40be53
cmp byte [0x583b84], 0
je 0x40be18
mov edx, esi
mov eax, ebx
call fcn.0040bc7c
jmp 0x40be53
mov edx, esi
mov eax, ebx
call fcn.0040ba80
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40be53
cmp dword [esi], 0
je 0x40be3c
mov eax, esi
mov edx, 0x40beb4
call fcn.0040a0bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ba80
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a0bc
push 0x583b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x583ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00409ec0
push eax
push 0x583ba2
call sub.kernel32.dll_lstrcpynW
push 0x583b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bea2
lea eax, [ebp - 4]
call fcn.004090fc
ret
Function at 0x40c0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004091e0
xor eax, eax
push ebp
push 0x40c2f5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c110
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c12a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00409ec0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c2df
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c304
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c304
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c340
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c340
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c374
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c1f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c2df
xor eax, eax
push ebp
push 0x40c2d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bedc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c268
mov eax, dword [ebp - 0x10]
call fcn.00404554
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409f28
jmp 0x40c2b3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c3e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c2b3
mov eax, dword [ebp - 0x10]
call fcn.00404554
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c3e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409f28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2df
cmp dword [ebp - 8], 0
je 0x40c2ce
mov eax, dword [ebp - 8]
call fcn.00404570
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2fc
lea eax, [ebp - 4]
call fcn.004090fc
ret
Function at 0x40c5d8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004091e0
xor eax, eax
push ebp
push 0x40c698
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409f64
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a114
mov eax, dword [ebx]
call fcn.0040c4a0
test al, al
jne 0x40c675
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409f64
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a114
mov eax, dword [ebx]
call fcn.0040c4a0
test al, al
jne 0x40c675
mov eax, ebx
call fcn.004090fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c69f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040915c
lea eax, [ebp - 4]
call fcn.004090fc
ret

Function at 0x40d05c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x420bf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x420d19
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x420cf3
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x420cdc
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00409f64
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a430
test eax, eax
jle 0x420cdc
mov eax, dword [ebp - 4]
test eax, eax
je 0x420c90
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x420c9e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040a284
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00409f28
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a114
jmp 0x420cf3
add ebx, 2
cmp word [ebx], 0
jne 0x420cd9
add ebx, 4
test ebx, ebx
je 0x420ced
cmp word [ebx], 0
jne 0x420c42
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420d20
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040915c
lea eax, [ebp - 4]
call fcn.004090fc
ret
Function at 0x420e0c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x421049
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.004090fc
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jne 0x420ee3
cmp dword [ebp - 0x14], 0
jne 0x420ee3
xor edx, edx
mov eax, 6
call fcn.00428a18
test al, al
je 0x420ee3
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x420ee3
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00409f64
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00420bf0
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.004094dc
mov byte [ebp - 9], 1
jmp 0x42102b
test ebx, ebx
jne 0x420ef1
cmp dword [ebp - 0x14], 0
je 0x420fdf
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x420fdf
xor eax, eax
push ebp
push 0x420fd8
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x420fc1
xor eax, eax
push ebp
push 0x420fba
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.004122fc
test eax, eax
jbe 0x420fa3
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00409f64
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00420bf0
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.004094dc
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420fc1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420fdf
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x42102b
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.00420d28
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.004094dc
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x42102b
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00420bf0
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.004094dc
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421050
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.0040915c
ret
Function at 0x42105c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.00428a18
test al, al
je 0x421124
xor edx, edx
mov eax, ebx
call fcn.004229f4
test al, al
je 0x421124
mov eax, ebx
call fcn.004227c4
test al, 0x20
je 0x421124
mov eax, ebx
call fcn.00409ec0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421124
test ah, 4
je 0x421124
test al, 0x10
je 0x4210c3
mov edi, 0x2000000
jmp 0x4210c5
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00409ec0
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x421124
xor eax, eax
push ebp
push 0x42111d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00420e0c
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421124
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x421408
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421461
test eax, edx
je 0x421464
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42141f
movzx eax, word [eax]
sub eax, ecx
jmp 0x421446
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x421447
add ecx, 4
js 0x421437
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421444
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421446
xor eax, eax
ret
test eax, eax
je 0x421470
test edx, edx
jne 0x421410
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x421c34
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x421c4c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x421c54
mov al, 1
jmp 0x421c71
movzx esi, word [ebp]
mov eax, esi
call fcn.00412628
test al, al
jne 0x421c6d
cmp si, 0x5f
je 0x421c6d
xor eax, eax
jmp 0x421c6f
mov al, 1
xor al, 1
test al, al
jne 0x421d01
test bl, bl
je 0x421cc1
mov eax, ebp
test eax, eax
je 0x421c88
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x421cfd
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.004126b4
test al, al
jne 0x421cb5
cmp di, 0x5f
je 0x421cb5
cmp di, 0x2e
je 0x421cb5
xor eax, eax
jmp 0x421cb7
mov al, 1
test al, al
je 0x421d01
inc esi
dec ebx
jne 0x421c95
jmp 0x421cfd
mov eax, ebp
test eax, eax
je 0x421ccc
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x421cfd
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.004126b4
test al, al
jne 0x421cf3
cmp di, 0x5f
je 0x421cf3
xor eax, eax
jmp 0x421cf5
mov al, 1
test al, al
je 0x421d01
inc esi
dec ebx
jne 0x421cd9
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4227c4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4228f8
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x422908]
mov dl, 1
mov eax, esi
call fcn.00422a8c
test al, al
jne 0x422815
mov dl, 1
mov eax, esi
call fcn.004229f4
test al, al
je 0x4228ab
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.00422d08
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00428ed8
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.00409ec0
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4228a6
test byte [ebp - 0xc], 1
je 0x422871
or bl, 1
test byte [ebp - 0xc], 2
je 0x42287a
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x422883
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x422897
dec eax
je 0x42289c
dec eax
je 0x4228a1
dec eax
jne 0x4228d2
or bl, 0x10
jmp 0x4228d2
or bl, 4
jmp 0x4228d2
or bl, 8
jmp 0x4228d2
call fcn.00429720
lea edx, [ebp - 0x428]
mov eax, dword [0x580768]
call fcn.0040cfa8
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41c838]
call fcn.00427a04
call fcn.00408830
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4228ff
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.0040915c
lea eax, [ebp - 4]
call fcn.004090fc
ret