joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x40107c
mov eax, dword [0x4082a4]
cmp eax, 5
jae 0x401039
mov ecx, dword [0x40829c]
mov edx, dword [0x4082a8]
push ecx
push edx
push eax
push 0x4070f4
call fcn.00401800
mov al, byte [0x407030]
add esp, 0x10
ret
mov ecx, dword [0x4082a8]
test ecx, ecx
jne 0x401060
mov ecx, dword [0x40829c]
push ecx
push 0
push eax
push 0x4070cc
call fcn.00401800
mov al, byte [0x407031]
add esp, 0x10
ret
mov edx, dword [0x40829c]
push edx
push ecx
push eax
push 0x4070a8
call fcn.00401800
mov al, byte [0x407032]
add esp, 0x10
ret
push 0x407098
call fcn.00401800
mov al, byte [0x40826c]
add esp, 4
ret

Function at 0x401090
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0x408478
push 0x407040
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [0x408478]
push 4
push 0x407094
push 4
push 0
push 0x407130
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4010e2
push 0x407120
push 0x408450
call fcn.00401933
add esp, 8
mov dword [0x408274], 1
ret
push 0x407118
push 0x408450
call fcn.00401933
add esp, 8
mov dword [0x408270], 1
ret
Function at 0x402efd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4079c8
cmp edx, dword [eax]
je 0x402f1f
add eax, 8
inc ecx
cmp eax, 0x407a58
jl 0x402f10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4079c8]
jne 0x40304d
mov eax, dword [0x4082e4]
cmp eax, 1
je 0x403027
test eax, eax
jne 0x402f50
cmp dword [0x407690], 1
je 0x403027
cmp edx, 0xfc
je 0x40304d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402f87
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403770
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403200
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402fca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403200
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406424
push edi
call fcn.00404850
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403770
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403780
lea eax, [ebp - 0xa0]
push 0x406404
push eax
call fcn.00403780
push dword [esi + 0x4079cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403780
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004047be
add esp, 0x2c
pop edi
jmp 0x40304d
lea eax, [ebp + 8]
lea esi, [esi + 0x4079cc]
push 0
push eax
push dword [esi]
call fcn.00403200
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0x4073f4
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.00409b00
test esi, esi
jne 0x40742a
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.00409c98
jmp 0x407448
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407338
mov edi, eax
test esi, esi
je 0x407448
cmp dword [ebx], 0
je 0x407448
dec esi
jmp 0x407431
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408748
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408c08
mov byte [esp], al
cmp byte [esp], 0
jne 0x4088d1
test edi, edi
je 0x4088d1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408811
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4087ec
cmp edi, 0xffffffff
je 0x4087ad
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4087ad
mov byte [esp], 0
jmp 0x4088d1
cmp dword [esi], 1
jg 0x4087ec
cmp dword [esi], 0
jne 0x4087de
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4087de
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4088d1
lea eax, [esp + 0xc]
call fcn.0040841c
dec ebp
test ebp, ebp
jg 0x408792
cmp edi, 0xffffffff
je 0x408811
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40880f
mov byte [esp], 0
jmp 0x4088d1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408756
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408811
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040894c
mov edx, eax
mov ebx, dword [0x7c98fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408875
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408873
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408875
xor edi, edi
cmp byte [esp], 0
je 0x40889b
mov ebx, dword [esi]
test bl, 1
jne 0x4088b1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40887b
mov byte [esp + 1], 1
jmp 0x4088b1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40889b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408828
cmp byte [esp], 0
je 0x4088d1
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409798
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7c905c], 0
je 0x4097ff
cmp word [0x7c9348], 0xd7b2
jne 0x4097c1
cmp dword [0x7c9350], 0
jbe 0x4097c1
mov eax, 0x7c9344
call dword [0x7c9360]
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, 0x40982c
call fcn.0040a384
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x7a703c], 0
jne 0x40981b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4099c0
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 [0x7a7040], 0
je 0x4099eb
mov edx, edi
mov eax, esi
call dword [0x7a7040]
mov ebx, eax
jmp 0x4099fc
mov eax, 8
call fcn.00407064
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7c905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409988
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 0x409a2c
mov eax, ebx
call fcn.00407080
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d914
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 0x40da7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409b00
cmp si, word [0x7a7a18]
jb 0x40d9ac
cmp si, word [0x7a7c18]
ja 0x40d9ac
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d9ac
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7a7a18]
jae 0x40d986
mov edi, ebx
dec edi
jmp 0x40d9a7
cmp si, word [ebx*8 + 0x7a7a18]
jbe 0x40d996
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d9a7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7a7a1c]
call fcn.0040d830
jmp 0x40d9ac
cmp edi, dword [ebp - 8]
jae 0x40d970
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40da5b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40da5b
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.0040a6f8
push dword [ebp - 0x160]
push 0x40da98
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a6f8
push dword [ebp - 0x164]
push 0x40daa8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a6f8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da82
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409b60
pop eax
jmp eax
Function at 0x40dc30
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 0x40dd36
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7cbc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7cbc2c]
jne 0x40dc7c
mov eax, esi
mov edx, 0x7cbc2e
mov ecx, 0x55
call fcn.0040a6f8
push 0x7cbc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dd1e
push 0x7cbc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409b00
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dceb
cmp byte [0x7cbc10], 0
je 0x40dcb0
mov edx, esi
mov eax, ebx
call fcn.0040db14
jmp 0x40dceb
mov edx, esi
mov eax, ebx
call fcn.0040d914
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dceb
cmp dword [esi], 0
je 0x40dcd4
mov eax, esi
mov edx, 0x40dd50
call fcn.0040a850
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d914
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a850
push 0x7cbc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7cbc2c], bx
mov eax, dword [esi]
call fcn.0040a644
mov ecx, eax
mov eax, 0x7cbc2e
mov edx, 0xaa
call fcn.0040d790
push 0x7cbc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd3d
lea eax, [ebp - 4]
call fcn.00409b00
pop eax
jmp eax
Function at 0x40df78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409bf4
xor eax, eax
push ebp
push 0x40e1a0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40dfbe
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40dfd8
mov eax, dword [ebp - 4]
call fcn.0040a644
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d790
cmp word [ebp - 0x21e], 0
je 0x40e183
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e0a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e0a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e0a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e1ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e0a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e220
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e0a7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e254
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e183
xor eax, eax
push ebp
push 0x40e17c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dd78
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e10a
mov eax, dword [ebp - 0x14]
call fcn.00407064
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040a6a4
jmp 0x40e155
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e294
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e155
mov eax, dword [ebp - 0x14]
call fcn.00407064
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e294
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040a6a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e183
cmp dword [ebp - 0xc], 0
je 0x40e170
mov eax, dword [ebp - 0xc]
call fcn.00407080
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1a7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409b60
pop eax
jmp eax
Function at 0x40e4b4
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.00409bf4
xor eax, eax
push ebp
push 0x40e576
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.0040a6f8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a8a8
mov eax, dword [ebx]
call fcn.0040e35c
test al, al
jne 0x40e551
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a6f8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a8a8
mov eax, dword [ebx]
call fcn.0040e35c
test al, al
jne 0x40e551
mov eax, ebx
call fcn.00409b00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e57d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409b60
lea eax, [ebp - 4]
call fcn.00409b00
pop eax
jmp eax

Function at 0x40ff38
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 0x422c90
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 0x422dc0
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 0x422d98
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 0x422d81
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a6f8
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ab74
test eax, eax
jle 0x422d81
mov eax, dword [ebp - 4]
test eax, eax
je 0x422d35
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x422d43
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.0040aa18
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a6a4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a8a8
jmp 0x422d98
add ebx, 2
cmp word [ebx], 0
jne 0x422d7e
add ebx, 4
test ebx, ebx
je 0x422d92
cmp word [ebx], 0
jne 0x422ce2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422dc7
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409b60
lea eax, [ebp - 4]
call fcn.00409b00
pop eax
jmp eax
Function at 0x423174
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.0042be94
test al, al
je 0x42323e
xor edx, edx
mov eax, ebx
call fcn.00424a54
test al, al
je 0x42323e
mov eax, ebx
call fcn.00424808
test al, 0x20
je 0x42323e
mov eax, ebx
call fcn.0040a644
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42323e
test ah, 4
je 0x42323e
test al, 0x10
je 0x4231db
mov edi, 0x2000000
jmp 0x4231dd
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a644
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42323e
xor eax, eax
push ebp
push 0x423237
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00422ebc
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42323e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x423530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x423589
test eax, edx
je 0x42358c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x423547
movzx eax, word [eax]
sub eax, ecx
jmp 0x42356e
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x42356f
add ecx, 4
js 0x42355f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42356c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42356e
xor eax, eax
ret
test eax, eax
je 0x423598
test edx, edx
jne 0x423538
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x424808
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x42495c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4247a8]
call fcn.0040cbb8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4247d8]
call fcn.0040cbb8
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00424aec
test al, al
jne 0x42487e
mov dl, 1
mov eax, esi
call fcn.00424a54
test al, al
je 0x424908
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00425128
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042c3c4
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a644
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x424903
test byte [ebp - 0x14], 1
je 0x4248ce
or bl, 1
test byte [ebp - 0x14], 2
je 0x4248d7
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4248e0
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4248f4
dec eax
je 0x4248f9
dec eax
je 0x4248fe
dec eax
jne 0x424920
or bl, 0x10
jmp 0x424920
or bl, 4
jmp 0x424920
or bl, 8
jmp 0x424920
call fcn.0042d220
push esi
mov ecx, dword [0x7c8944]
mov dl, 1
mov eax, dword [0x41d0f4]
call fcn.0042b098
call fcn.004091f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424963
lea eax, [ebp - 0x1c]
call fcn.00409b00
lea eax, [ebp - 0xc]
mov edx, dword [0x4247d8]
call fcn.0040ccdc
lea eax, [ebp - 8]
mov edx, dword [0x4247a8]
call fcn.0040ccdc
lea eax, [ebp - 4]
call fcn.00409b00
pop eax
jmp eax

Function at 0x424a54
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a644
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x424abe
test ah, 4
je 0x424ab7
test bl, bl
jne 0x424a7c
mov al, 1
jmp 0x424ae5
test al, 0x10
je 0x424a84
xor eax, eax
jmp 0x424ae5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x424aa8
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x424ae5
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x424ae5
test al, 0x10
sete al
jmp 0x424ae5
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x424adf
cmp ebx, 3
je 0x424adf
cmp ebx, 0x7b
je 0x424adf
mov eax, esi
call fcn.00424a14
test al, al
jne 0x424ae3
xor eax, eax
jmp 0x424ae5
mov al, 1
pop edi
pop esi
pop ebx
ret