joyce8/EMBER2024-capa huggingface dataset:
Function at 0x602bc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x602cc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x61cb1c]
call fcn.004068e0
call fcn.004068a4
cmp byte [0x615e24], 0
je 0x602c60
call fcn.00425464
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea edx, [ebp - 4]
mov eax, dword [0x616448]
call fcn.004263d8
push dword [ebp - 4]
push 0x602ce0
push dword [0x61cb20]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040abfc
mov edx, dword [ebp - 0x14]
mov eax, 0x61c840
call fcn.00407abc
call fcn.00407cc8
call fcn.004068a4
mov eax, 0x61c840
call fcn.00407508
call fcn.004068a4
mov byte [0x615e24], 0
mov dl, 1
mov eax, dword [0x61cb20]
call fcn.00422eb0
test al, al
je 0x602c95
push 1
push 0x602cf0
push 0x602cf0
mov eax, dword [0x61cb20]
call fcn.0040a908
push eax
push 0x602cf4
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x602c9f
mov eax, dword [0x61cb20]
call fcn.00602ad4
mov eax, dword [0x61c83c]
call fcn.005b24bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x602cce
lea eax, [ebp - 0x14]
call fcn.00409d38
lea eax, [ebp - 4]
call fcn.00409d38
ret
Function at 0x1001bdc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.01001beb
jmp fcn.01001b4b

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x7e386a73
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x11f113e
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4071b4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4072c0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x407234
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x40722b
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040c17c
mov eax, dword [ebp - 4]
call fcn.0040bff0
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x407264
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040c0a4
jmp 0x407280
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040c17c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040bff0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4072a8
cmp edi, 0x104
jbe 0x40729c
mov eax, dword [ebp - 4]
call fcn.0040bff0
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x4072a8
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072c7
lea eax, [ebp - 4]
call fcn.0040b458
pop eax
jmp eax

Function at 0x407540
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.0040b458
test esi, esi
jne 0x407576
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.0040b5f0
jmp 0x407594
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407420
mov edi, eax
test esi, esi
je 0x407594
cmp dword [ebx], 0
je 0x407594
dec esi
jmp 0x40757d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x40a064
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.0040a524
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a1ed
test edi, edi
je 0x40a1ed
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a12d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a108
cmp edi, 0xffffffff
je 0x40a0c9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a0c9
mov byte [esp], 0
jmp 0x40a1ed
cmp dword [esi], 1
jg 0x40a108
cmp dword [esi], 0
jne 0x40a0fa
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a0fa
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a1ed
lea eax, [esp + 0xc]
call fcn.00409d14
dec ebp
test ebp, ebp
jg 0x40a0ae
cmp edi, 0xffffffff
je 0x40a12d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a12b
mov byte [esp], 0
jmp 0x40a1ed
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a072
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a12d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a268
mov edx, eax
mov ebx, dword [0x6838fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a191
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a18f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a191
xor edi, edi
cmp byte [esp], 0
je 0x40a1b7
mov ebx, dword [esi]
test bl, 1
jne 0x40a1cd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a197
mov byte [esp + 1], 1
jmp 0x40a1cd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a1b7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a144
cmp byte [esp], 0
je 0x40a1ed
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 0x40b0b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x68305c], 0
je 0x40b11b
cmp word [0x683348], 0xd7b2
jne 0x40b0dd
cmp dword [0x683350], 0
jbe 0x40b0dd
mov eax, 0x683344
call dword [0x683360]
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, 0x40b148
call fcn.0040bd44
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x678036], 0
jne 0x40b137
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b318
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 [0x678038], 0
je 0x40b343
mov edx, edi
mov eax, esi
call dword [0x678038]
mov ebx, eax
jmp 0x40b354
mov eax, 8
call fcn.00407004
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x68305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b2e0
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 0x40b384
mov eax, ebx
call fcn.00407020
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ee64
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 0x40efcb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b458
cmp si, word [0x678a30]
jb 0x40eefc
cmp si, word [0x678c30]
ja 0x40eefc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40eefc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x678a30]
jae 0x40eed6
mov edi, ebx
dec edi
jmp 0x40eef7
cmp si, word [ebx*8 + 0x678a30]
jbe 0x40eee6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40eef7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x678a34]
call fcn.0040ed80
jmp 0x40eefc
cmp edi, dword [ebp - 8]
jae 0x40eec0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40efab
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40efab
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.0040c0a4
push dword [ebp - 0x160]
push 0x40efe8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c0a4
push dword [ebp - 0x164]
push 0x40eff8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c0a4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c2dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40efd2
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b4b8
pop eax
jmp eax
Function at 0x40f180
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 0x40f286
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x685c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x685c2c]
jne 0x40f1cc
mov eax, esi
mov edx, 0x685c2e
mov ecx, 0x55
call fcn.0040c0a4
push 0x685c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40f26e
push 0x685c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b458
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f23b
cmp byte [0x685c10], 0
je 0x40f200
mov edx, esi
mov eax, ebx
call fcn.0040f064
jmp 0x40f23b
mov edx, esi
mov eax, ebx
call fcn.0040ee64
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40f23b
cmp dword [esi], 0
je 0x40f224
mov eax, esi
mov edx, 0x40f2a0
call fcn.0040c1fc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ee64
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c1fc
push 0x685c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x685c2c], bx
mov eax, dword [esi]
call fcn.0040bff0
mov ecx, eax
mov eax, 0x685c2e
mov edx, 0xaa
call fcn.0040ece0
push 0x685c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f28d
lea eax, [ebp - 4]
call fcn.0040b458
pop eax
jmp eax
Function at 0x40f4c8
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.0040b54c
xor eax, eax
push ebp
push 0x40f6f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40f50e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40f528
mov eax, dword [ebp - 4]
call fcn.0040bff0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040ece0
cmp word [ebp - 0x21e], 0
je 0x40f6d3
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f700
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f700
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f73c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f73c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f770
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f5f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f7a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40f6d3
xor eax, eax
push ebp
push 0x40f6cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040f2c8
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 0x40f65a
mov eax, dword [ebp - 0x14]
call fcn.00407004
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.0040c050
jmp 0x40f6a5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f7e4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40f6a5
mov eax, dword [ebp - 0x14]
call fcn.00407004
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f7e4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f6d3
cmp dword [ebp - 0xc], 0
je 0x40f6c0
mov eax, dword [ebp - 0xc]
call fcn.00407020
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 0x40f6f7
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b4b8
pop eax
jmp eax
Function at 0x40fa04
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.0040b54c
xor eax, eax
push ebp
push 0x40fac6
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.0040c0a4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c254
mov eax, dword [ebx]
call fcn.0040f8ac
test al, al
jne 0x40faa1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040c0a4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040c254
mov eax, dword [ebx]
call fcn.0040f8ac
test al, al
jne 0x40faa1
mov eax, ebx
call fcn.0040b458
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40facd
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b4b8
lea eax, [ebp - 4]
call fcn.0040b458
pop eax
jmp eax

Function at 0x411630
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 0x426858
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 0x426988
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 0x426960
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 0x426949
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040c0a4
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c520
test eax, eax
jle 0x426949
mov eax, dword [ebp - 4]
test eax, eax
je 0x4268fd
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x42690b
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.0040c3c4
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040c050
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040c254
jmp 0x426960
add ebx, 2
cmp word [ebx], 0
jne 0x426946
add ebx, 4
test ebx, ebx
je 0x42695a
cmp word [ebx], 0
jne 0x4268aa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42698f
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040b4b8
lea eax, [ebp - 4]
call fcn.0040b458
pop eax
jmp eax
Function at 0x426d3c
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.00430d3c
test al, al
je 0x426e06
xor edx, edx
mov eax, ebx
call fcn.00428a20
test al, al
je 0x426e06
mov eax, ebx
call fcn.004285f0
test al, 0x20
je 0x426e06
mov eax, ebx
call fcn.0040bff0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x426e06
test ah, 4
je 0x426e06
test al, 0x10
je 0x426da3
mov edi, 0x2000000
jmp 0x426da5
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040bff0
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x426e06
xor eax, eax
push ebp
push 0x426dff
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00426a84
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426e06
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 0x4270fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x427155
test eax, edx
je 0x427158
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x427113
movzx eax, word [eax]
sub eax, ecx
jmp 0x42713a
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 0x42713b
add ecx, 4
js 0x42712b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x427138
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42713a
xor eax, eax
ret
test eax, eax
je 0x427164
test edx, edx
jne 0x427104
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x42849c
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 0x42857d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x428560
test edi, edi
je 0x428560
xor edx, edx
mov eax, 6
call fcn.00430d3c
test al, al
je 0x428560
lea edx, [ebp - 4]
mov eax, edi
call fcn.004291f8
mov eax, dword [ebp - 4]
call fcn.004285f0
test al, 0x20
je 0x428560
mov eax, esi
call fcn.004294bc
test al, al
je 0x428526
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0043126c
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040c1fc
mov eax, dword [ebp - 8]
call fcn.0040bff0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x428535
mov eax, esi
call fcn.0040bff0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x428546
test bl, 0x10
je 0x428546
mov ebx, 1
jmp 0x428548
xor ebx, ebx
push ebx
mov eax, esi
call fcn.0040bff0
push eax
mov eax, edi
call fcn.0040bff0
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 0x428584
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b4b8
pop eax
jmp eax

Function at 0x4285f0
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 0x428744
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x428590]
call fcn.0040e3b8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4285c0]
call fcn.0040e3b8
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00428ab8
test al, al
jne 0x428666
mov dl, 1
mov eax, esi
call fcn.00428a20
test al, al
je 0x4286f0
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00429338
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0043126c
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.0040bff0
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4286eb
test byte [ebp - 0x14], 1
je 0x4286b6
or bl, 1
test byte [ebp - 0x14], 2
je 0x4286bf
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4286c8
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4286dc
dec eax
je 0x4286e1
dec eax
je 0x4286e6
dec eax
jne 0x428708
or bl, 0x10
jmp 0x428708
or bl, 4
jmp 0x428708
or bl, 8
jmp 0x428708
call fcn.004320c8
push esi
mov ecx, dword [0x682458]
mov dl, 1
mov eax, dword [0x420ad4]
call fcn.0042ff0c
call fcn.0040ab14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42874b
lea eax, [ebp - 0x1c]
call fcn.0040b458
lea eax, [ebp - 0xc]
mov edx, dword [0x4285c0]
call fcn.0040e4dc
lea eax, [ebp - 8]
mov edx, dword [0x428590]
call fcn.0040e4dc
lea eax, [ebp - 4]
call fcn.0040b458
pop eax
jmp eax