joyce8/EMBER2024-capa huggingface dataset:
Function at 0x158d1f4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
endbr32
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x28], eax
mov eax, 0x100
call fcn.0157fc5b
test eax, eax
je 0x158d290
mov ebx, eax
xor ecx, ecx
mov esi, 0xff
mov edi, 8
mov eax, ecx
mov edx, ecx
sar eax, 1
and eax, 0x77777777
sub edx, eax
mov eax, edx
mov edx, ecx
sar edx, 2
and edx, 0x33333333
sub eax, edx
mov edx, ecx
sar edx, 3
and edx, 0x11111111
sub eax, edx
mov edx, eax
sar eax, 4
add eax, edx
and eax, 0xf0f0f0f
cdq
idiv esi
mov eax, edi
sub eax, edx
mov byte [ebx + ecx], al
inc ecx
cmp ecx, 0x100
jne 0x158d220
jmp 0x158d29a
sub esp, 0xc
push dword [ebp - 0x24]
call fcn.0157dbe9
add esp, 0x10
sub esp, 0xc
push ebx
call fcn.0157dbe9
mov eax, dword [ebp - 0x30]
add esp, 0x10
or eax, dword [ebp - 0x2c]
jne 0x158d3bb
or esi, 0xffffffff
mov edi, esi
jmp 0x158d3c5
mov eax, 0x10000
xor esi, esi
call fcn.0157fc5b
xor edi, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x158d3a8
push eax
mov edx, dword [ebp - 0x30]
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push 0
push 0x10000
call fcn.0158f0ad
mov dword [ebp - 0x20], eax
xor eax, eax
add esp, 0x10
cmp eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
sbb eax, dword [ebp - 0x1c]
jge 0x158d26a
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x24]
adc dword [ebp - 0x2c], edx
shrd eax, edx, 2
add eax, 0x3fffffff
lea ecx, [ecx + eax*4]
cmp ecx, dword [ebp - 0x24]
jb 0x158d34e
mov eax, dword [ecx]
movzx edx, ah
movzx edx, byte [ebx + edx]
mov dword [ebp - 0x34], edx
movzx edx, al
movzx edx, byte [ebx + edx]
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x34], edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
shr eax, 0x18
movzx edx, byte [ebx + edx]
movzx eax, byte [ebx + eax]
add edx, dword [ebp - 0x34]
add edx, eax
mov eax, edx
cdq
add esi, eax
adc edi, edx
sub ecx, 4
jmp 0x158d30c
mov eax, dword [ebp - 0x20]
and eax, 3
cmp eax, 2
je 0x158d37b
cmp eax, 3
je 0x158d367
dec eax
jne 0x158d2c1
jmp 0x158d38f
mov eax, dword [ebp - 0x24]
xor edx, edx
add eax, dword [ebp - 0x20]
movzx eax, byte [eax - 3]
movzx eax, byte [ebx + eax]
add esi, eax
adc edi, edx
mov eax, dword [ebp - 0x24]
xor edx, edx
add eax, dword [ebp - 0x20]
movzx eax, byte [eax - 2]
movzx eax, byte [ebx + eax]
add esi, eax
adc edi, edx
mov eax, dword [ebp - 0x20]
xor edx, edx
add eax, dword [ebp - 0x24]
movzx eax, byte [eax - 1]
movzx eax, byte [ebx + eax]
add esi, eax
adc edi, edx
jmp 0x158d2c1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x158d278
cmp dword [ebp - 0x1c], 0
js 0x158d290
lea esp, [ebp - 0xc]
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407544
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.0040a28c
test esi, esi
jne 0x40757a
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.0040a424
jmp 0x407598
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407488
mov edi, eax
test esi, esi
je 0x407598
cmp dword [ebx], 0
je 0x407598
dec esi
jmp 0x407581
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408ec4
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.00409384
mov byte [esp], al
cmp byte [esp], 0
jne 0x40904d
test edi, edi
je 0x40904d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408f8d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408f68
cmp edi, 0xffffffff
je 0x408f29
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f29
mov byte [esp], 0
jmp 0x40904d
cmp dword [esi], 1
jg 0x408f68
cmp dword [esi], 0
jne 0x408f5a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408f5a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40904d
lea eax, [esp + 0xc]
call fcn.00408b5c
dec ebp
test ebp, ebp
jg 0x408f0e
cmp edi, 0xffffffff
je 0x408f8d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f8b
mov byte [esp], 0
jmp 0x40904d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408ed2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f8d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004090c8
mov edx, eax
mov ebx, dword [0x619900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408ff1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408fef
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408ff1
xor edi, edi
cmp byte [esp], 0
je 0x409017
mov ebx, dword [esi]
test bl, 1
jne 0x40902d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ff7
mov byte [esp + 1], 1
jmp 0x40902d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409017
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408fa4
cmp byte [esp], 0
je 0x40904d
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 0x409f24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61905c], 0
je 0x409f8b
cmp word [0x61934c], 0xd7b2
jne 0x409f4d
cmp dword [0x619354], 0
jbe 0x409f4d
mov eax, 0x619348
call dword [0x619364]
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, 0x409fb8
call fcn.0040aaa0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x60e036], 0
jne 0x409fa7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a14c
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 [0x60e038], 0
je 0x40a177
mov edx, edi
mov eax, esi
call dword [0x60e038]
mov ebx, eax
jmp 0x40a188
mov eax, 8
call fcn.00406e3c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x61905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a114
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 0x40a1b8
mov eax, ebx
call fcn.00406e58
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40ddd4
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 0x40df3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a28c
cmp si, word [0x60ea18]
jb 0x40de6c
cmp si, word [0x60ec18]
ja 0x40de6c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40de6c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x60ea18]
jae 0x40de46
mov edi, ebx
dec edi
jmp 0x40de67
cmp si, word [ebx*8 + 0x60ea18]
jbe 0x40de56
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40de67
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x60ea1c]
call fcn.0040dcf4
jmp 0x40de6c
cmp edi, dword [ebp - 8]
jae 0x40de30
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40df1b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40df1b
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.0040ad8c
push dword [ebp - 0x160]
push 0x40df58
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ad8c
push dword [ebp - 0x164]
push 0x40df68
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ad8c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040afc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df42
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a2ec
pop eax
jmp eax
Function at 0x40e0f0
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 0x40e1f6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x61bc18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x61bc30]
jne 0x40e13c
mov eax, esi
mov edx, 0x61bc32
mov ecx, 0x55
call fcn.0040ad8c
push 0x61bc18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e1de
push 0x61bc18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a28c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e1ab
cmp byte [0x61bc14], 0
je 0x40e170
mov edx, esi
mov eax, ebx
call fcn.0040dfd4
jmp 0x40e1ab
mov edx, esi
mov eax, ebx
call fcn.0040ddd4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e1ab
cmp dword [esi], 0
je 0x40e194
mov eax, esi
mov edx, 0x40e210
call fcn.0040aee8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ddd4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aee8
push 0x61bc18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x61bc30], bx
mov eax, dword [esi]
call fcn.0040acf0
mov ecx, eax
mov eax, 0x61bc32
mov edx, 0xaa
call fcn.0040dc54
push 0x61bc18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1fd
lea eax, [ebp - 4]
call fcn.0040a28c
pop eax
jmp eax
Function at 0x40e438
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.0040a380
xor eax, eax
push ebp
push 0x40e660
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e47e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e498
mov eax, dword [ebp - 4]
call fcn.0040acf0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040dc54
cmp word [ebp - 0x21e], 0
je 0x40e643
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e670
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e567
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e670
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e567
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e6ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e567
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e6ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e567
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e6e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e567
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e714
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e643
xor eax, eax
push ebp
push 0x40e63c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e238
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 0x40e5ca
mov eax, dword [ebp - 0x14]
call fcn.00406e3c
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.0040ad50
jmp 0x40e615
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e754
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e615
mov eax, dword [ebp - 0x14]
call fcn.00406e3c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e754
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ad50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e643
cmp dword [ebp - 0xc], 0
je 0x40e630
mov eax, dword [ebp - 0xc]
call fcn.00406e58
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 0x40e667
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a2ec
pop eax
jmp eax
Function at 0x40e970
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.0040a380
xor eax, eax
push ebp
push 0x40ea32
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.0040ad8c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040af40
mov eax, dword [ebx]
call fcn.0040e81c
test al, al
jne 0x40ea0d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ad8c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040af40
mov eax, dword [ebx]
call fcn.0040e81c
test al, al
jne 0x40ea0d
mov eax, ebx
call fcn.0040a28c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea39
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a2ec
lea eax, [ebp - 4]
call fcn.0040a28c
pop eax
jmp eax

Function at 0x410624
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 0x4256f0
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 0x425845
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 0x42581d
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 0x425806
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040ad8c
mov eax, dword [ebp - 4]
test eax, eax
je 0x425783
mov eax, dword [eax - 4]
mov esi, eax
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b204
dec eax
jne 0x425806
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0043075c
test al, al
je 0x4257ab
mov al, 1
jmp 0x4257ba
mov eax, dword [ebp - 8]
test eax, eax
je 0x4257b5
mov eax, dword [eax - 4]
cmp eax, esi
sete al
test al, al
je 0x425806
mov edi, dword [ebp - 8]
test edi, edi
je 0x4257c8
mov edi, dword [edi - 4]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040b0b0
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040ad50
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040af40
jmp 0x42581d
add ebx, 2
cmp word [ebx], 0
jne 0x425803
add ebx, 4
test ebx, ebx
je 0x425817
cmp word [ebx], 0
jne 0x425742
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42584c
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a2ec
lea eax, [ebp - 4]
call fcn.0040a28c
pop eax
jmp eax
Function at 0x425bfc
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.004302ec
test al, al
je 0x425cc6
xor edx, edx
mov eax, ebx
call fcn.00427528
test al, al
je 0x425cc6
mov eax, ebx
call fcn.004272dc
test al, 0x20
je 0x425cc6
mov eax, ebx
call fcn.0040acf0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x425cc6
test ah, 4
je 0x425cc6
test al, 0x10
je 0x425c63
mov edi, 0x2000000
jmp 0x425c65
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040acf0
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x425cc6
xor eax, eax
push ebp
push 0x425cbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00425940
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425cc6
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 0x425f68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x425fc1
test eax, edx
je 0x425fc4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x425f7f
movzx eax, word [eax]
sub eax, ecx
jmp 0x425fa6
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 0x425fa7
add ecx, 4
js 0x425f97
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x425fa4
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x425fa6
xor eax, eax
ret
test eax, eax
je 0x425fd0
test edx, edx
jne 0x425f70
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x427188
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x427269
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x42724c
test edi, edi
je 0x42724c
xor edx, edx
mov eax, 6
call fcn.004302ec
test al, al
je 0x42724c
lea edx, [ebp - 4]
mov eax, edi
call fcn.00427c20
mov eax, dword [ebp - 4]
call fcn.004272dc
test al, 0x20
je 0x42724c
mov eax, esi
call fcn.00427ee0
test al, al
je 0x427212
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00430804
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040aee8
mov eax, dword [ebp - 8]
call fcn.0040acf0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x427221
mov eax, esi
call fcn.0040acf0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x427232
test bl, 0x10
je 0x427232
mov ebx, 1
jmp 0x427234
xor ebx, ebx
push ebx
mov eax, esi
call fcn.0040acf0
push eax
mov eax, edi
call fcn.0040acf0
push eax
call sub.kernel32.dll_CreateSymbolicLinkW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427270
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a2ec
pop eax
jmp eax

Function at 0x4272dc
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 0x427430
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x42727c]
call fcn.0040d1f8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4272ac]
call fcn.0040d1f8
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.004275c0
test al, al
jne 0x427352
mov dl, 1
mov eax, esi
call fcn.00427528
test al, al
je 0x4273dc
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00427d5c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00430804
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.0040acf0
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4273d7
test byte [ebp - 0x14], 1
je 0x4273a2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4273ab
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4273b4
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4273c8
dec eax
je 0x4273cd
dec eax
je 0x4273d2
dec eax
jne 0x4273f4
or bl, 0x10
jmp 0x4273f4
or bl, 4
jmp 0x4273f4
or bl, 8
jmp 0x4273f4
call fcn.0043164c
push esi
mov ecx, dword [0x6186c8]
mov dl, 1
mov eax, dword [0x41f5fc]
call fcn.0042f4ec
call fcn.00409974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427437
lea eax, [ebp - 0x1c]
call fcn.0040a28c
lea eax, [ebp - 0xc]
mov edx, dword [0x4272ac]
call fcn.0040d31c
lea eax, [ebp - 8]
mov edx, dword [0x42727c]
call fcn.0040d31c
lea eax, [ebp - 4]
call fcn.0040a28c
pop eax
jmp eax