joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0f63
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004efe4a
and dword [ebp - 4], 0
cmp dword [0x4fb8f8], 0
mov ebx, eax
jne 0x4f1014
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4f10c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4f10c5
push eax
call fcn.004efdd8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4fb8f8], eax
call esi
push eax
call fcn.004efdd8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4fb8fc], eax
call esi
push eax
call fcn.004efdd8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4fb900], eax
call esi
push eax
call fcn.004efdd8
pop ecx
mov dword [0x4fb908], eax
test eax, eax
je 0x4f1014
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004efdd8
pop ecx
mov dword [0x4fb904], eax
mov eax, dword [0x4fb904]
cmp eax, ebx
je 0x4f106c
cmp dword [0x4fb908], ebx
je 0x4f106c
push eax
call fcn.004efe53
push dword [0x4fb908]
mov esi, eax
call fcn.004efe53
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4f106c
test edi, edi
je 0x4f106c
call esi
test eax, eax
je 0x4f1063
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4f1063
test byte [ebp - 0xc], 1
jne 0x4f106c
or dword [ebp + 0x10], 0x200000
jmp 0x4f10a5
mov eax, dword [0x4fb8fc]
cmp eax, ebx
je 0x4f10a5
push eax
call fcn.004efe53
pop ecx
test eax, eax
je 0x4f10a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4f10a5
mov eax, dword [0x4fb900]
cmp eax, ebx
je 0x4f10a5
push eax
call fcn.004efe53
pop ecx
test eax, eax
je 0x4f10a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4fb8f8]
call fcn.004efe53
pop ecx
test eax, eax
je 0x4f10c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4f10c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4f2df8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f92c8]
jne 0x4f2e02
repz ret
jmp fcn.004f4525
Function at 0x404988
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.00406d70
test esi, esi
jne 0x4049be
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.00406ef8
jmp 0x4049dc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040486c
mov edi, eax
test esi, esi
je 0x4049dc
cmp dword [ebx], 0
je 0x4049dc
dec esi
jmp 0x4049c5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405a90
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.00405e88
mov byte [esp], al
cmp byte [esp], 0
jne 0x405c1c
test edi, edi
je 0x405c1c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405b53
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405b2e
cmp edi, 0xffffffff
je 0x405aef
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405aef
mov byte [esp], 0
jmp 0x405c1c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405b2e
test ebx, ebx
jne 0x405b24
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402810
test eax, eax
jne 0x405b24
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405c1c
call 0x405fac
dec ebp
test ebp, ebp
jg 0x405ad4
cmp edi, 0xffffffff
je 0x405b53
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b51
mov byte [esp], 0
jmp 0x405c1c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405a9e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402810
cmp ebx, eax
jne 0x405b53
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405c8c
mov edx, eax
mov ebx, dword [reloc.gdi32.dll_DeleteDC]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405bba
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405bb8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405bba
xor edi, edi
cmp byte [esp], 0
je 0x405be3
mov ebx, dword [esi]
test bl, 1
jne 0x405bfc
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402810
cmp ebx, eax
jne 0x405bc0
mov byte [esp + 1], 1
jmp 0x405bfc
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402810
cmp ebx, eax
jne 0x405be3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405b6d
cmp byte [esp], 0
je 0x405c1c
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 0x406a08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6fe058], 0
je 0x406a6f
cmp word [0x6fe344], 0xd7b2
jne 0x406a31
cmp dword [reloc.kernel32.dll_lstrcpynW], 0
jbe 0x406a31
mov eax, 0x6fe340
call dword [0x6fe35c]
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, 0x406a9c
call fcn.004077ec
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6ef032], 0
jne 0x406a8b
push 0
push 0x6ef9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406c2c
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 [0x6ef034], 0
je 0x406c57
mov edx, edi
mov eax, esi
call dword [0x6ef034]
mov ebx, eax
jmp 0x406c68
mov eax, 8
call fcn.004045a8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6fe059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406bf4
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 0x406c9d
mov edx, 8
mov eax, ebx
call fcn.004045c4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409728
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 0x40988d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406d70
cmp si, word [0x6efa00]
jb 0x4097c0
cmp si, word [0x6efc00]
ja 0x4097c0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4097c0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6efa00]
jae 0x40979a
mov edi, ebx
dec edi
jmp 0x4097bb
cmp si, word [ebx*8 + 0x6efa00]
jbe 0x4097aa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4097bb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6efa04]
call fcn.00409638
jmp 0x4097c0
cmp edi, dword [ebp - 8]
jae 0x409784
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40986f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40986f
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.00407c10
push dword [ebp - 0x160]
push 0x4098a8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407c10
push dword [ebp - 0x164]
push 0x4098b8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407c10
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407e48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409894
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406dd0
ret
Function at 0x409a40
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 0x409b43
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x700b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x700ba0]
jne 0x409a8c
mov eax, esi
mov edx, 0x700ba2
mov ecx, 0x55
call fcn.00407c10
push 0x700b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409b2d
push 0x700b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406d70
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409afb
cmp byte [0x700b84], 0
je 0x409ac0
mov edx, esi
mov eax, ebx
call fcn.00409924
jmp 0x409afb
mov edx, esi
mov eax, ebx
call fcn.00409728
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409afb
cmp dword [esi], 0
je 0x409ae4
mov eax, esi
mov edx, 0x409b5c
call fcn.00407d68
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409728
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407d68
push 0x700b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x700ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407b54
push eax
push 0x700ba2
call sub.kernel32.dll_lstrcpynW
push 0x700b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b4a
lea eax, [ebp - 4]
call fcn.00406d70
ret
Function at 0x409d78
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.00406e54
xor eax, eax
push ebp
push 0x409f9d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409db8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409dd2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409f87
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409fac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ea1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409fac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ea1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409fe8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ea1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409fe8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ea1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a01c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ea1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a050
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409f87
xor eax, eax
push ebp
push 0x409f80
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409b84
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 0x409f10
mov eax, dword [ebp - 0x10]
call fcn.004045a8
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.00407bbc
jmp 0x409f5b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a090
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409f5b
mov eax, dword [ebp - 0x10]
call fcn.004045a8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a090
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407bbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f87
cmp dword [ebp - 8], 0
je 0x409f76
mov eax, dword [ebp - 8]
call fcn.004045c4
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 0x409fa4
lea eax, [ebp - 4]
call fcn.00406d70
ret
Function at 0x40a280
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.00406e54
xor eax, eax
push ebp
push 0x40a340
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.00407c10
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407dc0
mov eax, dword [ebx]
call fcn.0040a148
test al, al
jne 0x40a31d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407c10
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407dc0
mov eax, dword [ebx]
call fcn.0040a148
test al, al
jne 0x40a31d
mov eax, ebx
call fcn.00406d70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a347
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406dd0
lea eax, [ebp - 4]
call fcn.00406d70
ret

Function at 0x4201cc
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 0x4202f5
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 0x4202cf
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 0x4202b8
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00407c10
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040813c
test eax, eax
jle 0x4202b8
mov eax, dword [ebp - 4]
test eax, eax
je 0x42026c
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x42027a
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.00407f90
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00407bbc
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00407dc0
jmp 0x4202cf
add ebx, 2
cmp word [ebx], 0
jne 0x4202b5
add ebx, 4
test ebx, ebx
je 0x4202c9
cmp word [ebx], 0
jne 0x42021e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4202fc
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00406dd0
lea eax, [ebp - 4]
call fcn.00406d70
ret
Function at 0x4203e8
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 0x420625
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00406d70
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
mov ebx, eax
test ebx, ebx
jne 0x4204bf
cmp dword [ebp - 0x14], 0
jne 0x4204bf
xor edx, edx
mov eax, 6
call fcn.00429640
test al, al
je 0x4204bf
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 0x4204bf
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00407c10
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.004201cc
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00407150
mov byte [ebp - 9], 1
jmp 0x420607
test ebx, ebx
jne 0x4204cd
cmp dword [ebp - 0x14], 0
je 0x4205bb
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 0x4205bb
xor eax, eax
push ebp
push 0x4205b4
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 0x42059d
xor eax, eax
push ebp
push 0x420596
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.00411488
test eax, eax
jbe 0x42057f
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00407c10
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.004201cc
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00407150
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42059d
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 0x4205bb
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x420607
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.00420304
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.00407150
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x420607
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004201cc
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00407150
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42062c
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00406dd0
ret
Function at 0x420638
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.00429640
test al, al
je 0x420700
xor edx, edx
mov eax, ebx
call fcn.004220b0
test al, al
je 0x420700
mov eax, ebx
call fcn.00421e80
test al, 0x20
je 0x420700
mov eax, ebx
call fcn.00407b54
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x420700
test ah, 4
je 0x420700
test al, 0x10
je 0x42069f
mov edi, 0x2000000
jmp 0x4206a1
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00407b54
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x420700
xor eax, eax
push ebp
push 0x4206f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004203e8
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420700
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 0x420b28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420b81
test eax, edx
je 0x420b84
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420b3f
movzx eax, word [eax]
sub eax, ecx
jmp 0x420b66
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 0x420b67
add ecx, 4
js 0x420b57
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420b64
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420b66
xor eax, eax
ret
test eax, eax
je 0x420b90
test edx, edx
jne 0x420b30
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x42129c
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 0x4212b4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4212bc
mov al, 1
jmp 0x4212d9
movzx esi, word [ebp]
mov eax, esi
call fcn.004117e4
test al, al
jne 0x4212d5
cmp si, 0x5f
je 0x4212d5
xor eax, eax
jmp 0x4212d7
mov al, 1
xor al, 1
test al, al
jne 0x421369
test bl, bl
je 0x421329
mov eax, ebp
test eax, eax
je 0x4212f0
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x421365
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00411870
test al, al
jne 0x42131d
cmp di, 0x5f
je 0x42131d
cmp di, 0x2e
je 0x42131d
xor eax, eax
jmp 0x42131f
mov al, 1
test al, al
je 0x421369
inc esi
dec ebx
jne 0x4212fd
jmp 0x421365
mov eax, ebp
test eax, eax
je 0x421334
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x421365
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00411870
test al, al
jne 0x42135b
cmp di, 0x5f
je 0x42135b
xor eax, eax
jmp 0x42135d
mov al, 1
test al, al
je 0x421369
inc esi
dec ebx
jne 0x421341
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421e80
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 0x421fb4
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x421fc4]
mov dl, 1
mov eax, esi
call fcn.00422148
test al, al
jne 0x421ed1
mov dl, 1
mov eax, esi
call fcn.004220b0
test al, al
je 0x421f67
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.00422704
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00429c14
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.00407b54
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x421f62
test byte [ebp - 0xc], 1
je 0x421f2d
or bl, 1
test byte [ebp - 0xc], 2
je 0x421f36
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x421f3f
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x421f53
dec eax
je 0x421f58
dec eax
je 0x421f5d
dec eax
jne 0x421f8e
or bl, 0x10
jmp 0x421f8e
or bl, 4
jmp 0x421f8e
or bl, 8
jmp 0x421f8e
call fcn.0042a870
lea edx, [ebp - 0x428]
mov eax, dword [0x6fdc08]
call fcn.0040acfc
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41bc6c]
call fcn.0042862c
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421fbb
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00406dd0
lea eax, [ebp - 4]
call fcn.00406d70
ret