joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44eb70
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x455b44]
cmp byte [eax + 0xa5], 0
jne 0x44ebe1
cmp dword [0x455b5c], 0
jne 0x44eba2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44eb2c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455b5c], eax
cmp dword [0x455b58], 0
jne 0x44ebbd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455b58], eax
cmp dword [0x455b60], 0
jne 0x44ebe1
push esp
push 0
push 0
push 0x44ead0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455b60], eax
pop edx
ret

Function at 0x44f274
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455b44]
cmp dword [eax + 0x30], 0
je 0x44f31e
cmp dword [ebx + 0x94], 0
jne 0x44f318
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f204
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f318
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f2de
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f318
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413c3c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f2ed
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44fe7c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44feb1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042d0
jmp 0x44febe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404234
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451060
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4510a1
mov eax, esi
call fcn.00437534
test al, al
je 0x4510a1
mov eax, dword [ebx + 0x84]
call fcn.00437230
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4510a1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437230
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
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.0040a310
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.004094a8
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.00409630
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 0x4054fc
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x405512
sub ecx, 2
jne 0x405534
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 0x40553b
cmp edx, dword [ebx + 8]
je 0x405545
mov eax, 0x64
jmp 0x405540
mov eax, 0x67
jmp 0x405540
call sub.kernel32.dll_GetLastError
call fcn.004046e8
pop ebx
ret

Function at 0x4065b8
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4065eb
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 0x4065f2
cmp edx, dword [ebx + 8]
je 0x4065fc
mov eax, 0x65
jmp 0x4065f7
mov eax, 5
jmp 0x4065f7
call sub.kernel32.dll_GetLastError
call fcn.004046e8
mov eax, ebx
pop ebx
ret
Function at 0x408224
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.0040861c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4083b0
test edi, edi
je 0x4083b0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4082e7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4082c2
cmp edi, 0xffffffff
je 0x408283
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408283
mov byte [esp], 0
jmp 0x4083b0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4082c2
test ebx, ebx
jne 0x4082b8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x4082b8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4083b0
call 0x408740
dec ebp
test ebp, ebp
jg 0x408268
cmp edi, 0xffffffff
je 0x4082e7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4082e5
mov byte [esp], 0
jmp 0x4083b0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408232
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4082e7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408420
mov edx, eax
mov ebx, dword [0x54e8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40834e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40834c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40834e
xor edi, edi
cmp byte [esp], 0
je 0x408377
mov ebx, dword [esi]
test bl, 1
jne 0x408390
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408354
mov byte [esp + 1], 1
jmp 0x408390
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408377
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408301
cmp byte [esp], 0
je 0x4083b0
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 0x409140
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54e058], 0
je 0x4091a7
cmp word [0x54e344], 0xd7b2
jne 0x409169
cmp dword [0x54e34c], 0
jbe 0x409169
mov eax, 0x54e340
call dword [0x54e35c]
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, 0x4091d4
call fcn.00409f8c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x548032], 0
jne 0x4091c3
push 0
push 0x5489f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409364
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 [0x548034], 0
je 0x40938f
mov edx, edi
mov eax, esi
call dword [0x548034]
mov ebx, eax
jmp 0x4093a0
mov eax, 8
call fcn.00404554
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x54e059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40932c
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 0x4093d5
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 0x40be2c
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 0x40bf91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004094a8
cmp si, word [0x548a30]
jb 0x40bec4
cmp si, word [0x548c30]
ja 0x40bec4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bec4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x548a30]
jae 0x40be9e
mov edi, ebx
dec edi
jmp 0x40bebf
cmp si, word [ebx*8 + 0x548a30]
jbe 0x40beae
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bebf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x548a34]
call fcn.0040bd3c
jmp 0x40bec4
cmp edi, dword [ebp - 8]
jae 0x40be88
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bf73
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf73
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.0040a310
push dword [ebp - 0x160]
push 0x40bfac
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a310
push dword [ebp - 0x164]
push 0x40bfbc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a310
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf98
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409508
ret
Function at 0x40c144
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 0x40c247
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x550b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x550ba0]
jne 0x40c190
mov eax, esi
mov edx, 0x550ba2
mov ecx, 0x55
call fcn.0040a310
push 0x550b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c231
push 0x550b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004094a8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c1ff
cmp byte [0x550b84], 0
je 0x40c1c4
mov edx, esi
mov eax, ebx
call fcn.0040c028
jmp 0x40c1ff
mov edx, esi
mov eax, ebx
call fcn.0040be2c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c1ff
cmp dword [esi], 0
je 0x40c1e8
mov eax, esi
mov edx, 0x40c260
call fcn.0040a468
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040be2c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a468
push 0x550b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x550ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040a26c
push eax
push 0x550ba2
call sub.kernel32.dll_lstrcpynW
push 0x550b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c24e
lea eax, [ebp - 4]
call fcn.004094a8
ret
Function at 0x40c47c
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.0040958c
xor eax, eax
push ebp
push 0x40c6a1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c4bc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c4d6
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040a26c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c68b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c6b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c6b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c6ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c6ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c720
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c754
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c68b
xor eax, eax
push ebp
push 0x40c684
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c288
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 0x40c614
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.0040a2d4
jmp 0x40c65f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c794
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c65f
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 0x40c794
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a2d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c68b
cmp dword [ebp - 8], 0
je 0x40c67a
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 0x40c6a8
lea eax, [ebp - 4]
call fcn.004094a8
ret
Function at 0x40c984
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.0040958c
xor eax, eax
push ebp
push 0x40ca44
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.0040a310
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4c0
mov eax, dword [ebx]
call fcn.0040c84c
test al, al
jne 0x40ca21
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a310
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4c0
mov eax, dword [ebx]
call fcn.0040c84c
test al, al
jne 0x40ca21
mov eax, ebx
call fcn.004094a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca4b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409508
lea eax, [ebp - 4]
call fcn.004094a8
ret

Function at 0x40d408
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 0x420f94
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 0x4210bd
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 0x421097
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 0x421080
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a310
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a7dc
test eax, eax
jle 0x421080
mov eax, dword [ebp - 4]
test eax, eax
je 0x421034
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x421042
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.0040a630
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a2d4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a4c0
jmp 0x421097
add ebx, 2
cmp word [ebx], 0
jne 0x42107d
add ebx, 4
test ebx, ebx
je 0x421091
cmp word [ebx], 0
jne 0x420fe6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4210c4
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409508
lea eax, [ebp - 4]
call fcn.004094a8
ret
Function at 0x4211b0
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 0x4213ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.004094a8
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 0x421287
cmp dword [ebp - 0x14], 0
jne 0x421287
xor edx, edx
mov eax, 6
call fcn.00428d3c
test al, al
je 0x421287
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 0x421287
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a310
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00420f94
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00409888
mov byte [ebp - 9], 1
jmp 0x4213cf
test ebx, ebx
jne 0x421295
cmp dword [ebp - 0x14], 0
je 0x421383
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 0x421383
xor eax, eax
push ebp
push 0x42137c
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 0x421365
xor eax, eax
push ebp
push 0x42135e
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.004126a0
test eax, eax
jbe 0x421347
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a310
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00420f94
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00409888
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421365
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 0x421383
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x4213cf
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.004210cc
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.00409888
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4213cf
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00420f94
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00409888
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4213f4
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00409508
ret
Function at 0x421400
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.00428d3c
test al, al
je 0x4214c8
xor edx, edx
mov eax, ebx
call fcn.00422d98
test al, al
je 0x4214c8
mov eax, ebx
call fcn.00422b68
test al, 0x20
je 0x4214c8
mov eax, ebx
call fcn.0040a26c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4214c8
test ah, 4
je 0x4214c8
test al, 0x10
je 0x421467
mov edi, 0x2000000
jmp 0x421469
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a26c
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4214c8
xor eax, eax
push ebp
push 0x4214c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004211b0
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4214c8
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 0x4217ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421805
test eax, edx
je 0x421808
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4217c3
movzx eax, word [eax]
sub eax, ecx
jmp 0x4217ea
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 0x4217eb
add ecx, 4
js 0x4217db
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4217e8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4217ea
xor eax, eax
ret
test eax, eax
je 0x421814
test edx, edx
jne 0x4217b4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret