joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408318
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.004087c0
mov byte [esp], al
cmp byte [esp], 0
jne 0x4084a1
test edi, edi
je 0x4084a1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4083e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4083bc
cmp edi, 0xffffffff
je 0x40837d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40837d
mov byte [esp], 0
jmp 0x4084a1
cmp dword [esi], 1
jg 0x4083bc
cmp dword [esi], 0
jne 0x4083ae
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4083ae
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4084a1
lea eax, [esp + 0xc]
call fcn.00407fec
dec ebp
test ebp, ebp
jg 0x408362
cmp edi, 0xffffffff
je 0x4083e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4083df
mov byte [esp], 0
jmp 0x4084a1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408326
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4083e1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040851c
mov edx, eax
mov ebx, dword [0x4ac8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408445
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408443
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408445
xor edi, edi
cmp byte [esp], 0
je 0x40846b
mov ebx, dword [esi]
test bl, 1
jne 0x408481
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40844b
mov byte [esp + 1], 1
jmp 0x408481
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40846b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4083f8
cmp byte [esp], 0
je 0x4084a1
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 0x409350
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ac058], 0
je 0x4093b7
cmp word [0x4ac344], 0xd7b2
jne 0x409379
cmp dword [0x4ac34c], 0
jbe 0x409379
mov eax, 0x4ac340
call dword [0x4ac35c]
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, 0x4093e4
call fcn.00409f1c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a8036], 0
jne 0x4093d3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409578
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 [0x4a8038], 0
je 0x4095a3
mov edx, edi
mov eax, esi
call dword [0x4a8038]
mov ebx, eax
jmp 0x4095b4
mov eax, 8
call fcn.00406f40
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ac059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409540
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 0x4095e4
mov eax, ebx
call fcn.00406f5c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40cda0
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 0x40cf07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004096b8
cmp si, word [0x4a8a10]
jb 0x40ce38
cmp si, word [0x4a8c10]
ja 0x40ce38
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ce38
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4a8a10]
jae 0x40ce12
mov edi, ebx
dec edi
jmp 0x40ce33
cmp si, word [ebx*8 + 0x4a8a10]
jbe 0x40ce22
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ce33
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4a8a14]
call fcn.0040ccbc
jmp 0x40ce38
cmp edi, dword [ebp - 8]
jae 0x40cdfc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40cee7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cee7
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.0040a204
push dword [ebp - 0x160]
push 0x40cf24
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a204
push dword [ebp - 0x164]
push 0x40cf34
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a204
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a43c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf0e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409718
pop eax
jmp eax
Function at 0x40d0bc
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 0x40d1c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4aec10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4aec28]
jne 0x40d108
mov eax, esi
mov edx, 0x4aec2a
mov ecx, 0x55
call fcn.0040a204
push 0x4aec10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d1aa
push 0x4aec10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004096b8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d177
cmp byte [0x4aec0c], 0
je 0x40d13c
mov edx, esi
mov eax, ebx
call fcn.0040cfa0
jmp 0x40d177
mov edx, esi
mov eax, ebx
call fcn.0040cda0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d177
cmp dword [esi], 0
je 0x40d160
mov eax, esi
mov edx, 0x40d1dc
call fcn.0040a35c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040cda0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a35c
push 0x4aec10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4aec28], bx
mov eax, dword [esi]
call fcn.0040a168
mov ecx, eax
mov eax, 0x4aec2a
mov edx, 0xaa
call fcn.0040cc1c
push 0x4aec10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1c9
lea eax, [ebp - 4]
call fcn.004096b8
pop eax
jmp eax
Function at 0x40d404
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.004097ac
xor eax, eax
push ebp
push 0x40d62c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d44a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d464
mov eax, dword [ebp - 4]
call fcn.0040a168
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040cc1c
cmp word [ebp - 0x21e], 0
je 0x40d60f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40d63c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d533
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40d63c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d533
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40d678
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d533
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40d678
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d533
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40d6ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d533
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40d6e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d60f
xor eax, eax
push ebp
push 0x40d608
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040d204
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 0x40d596
mov eax, dword [ebp - 0x14]
call fcn.00406f40
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.0040a1c8
jmp 0x40d5e1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40d720
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d5e1
mov eax, dword [ebp - 0x14]
call fcn.00406f40
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40d720
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040a1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d60f
cmp dword [ebp - 0xc], 0
je 0x40d5fc
mov eax, dword [ebp - 0xc]
call fcn.00406f5c
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 0x40d633
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409718
pop eax
jmp eax
Function at 0x40d940
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.004097ac
xor eax, eax
push ebp
push 0x40da02
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.0040a204
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a3b4
mov eax, dword [ebx]
call fcn.0040d7e8
test al, al
jne 0x40d9dd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a204
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a3b4
mov eax, dword [ebx]
call fcn.0040d7e8
test al, al
jne 0x40d9dd
mov eax, ebx
call fcn.004096b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da09
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409718
lea eax, [ebp - 4]
call fcn.004096b8
pop eax
jmp eax

Function at 0x40f268
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 0x410d94
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00410d80
add esp, 0x208
pop ebx
ret

Function at 0x41c048
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41c0a1
test eax, edx
je 0x41c0a4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c05f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c086
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 0x41c087
add ecx, 4
js 0x41c077
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c084
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c086
xor eax, eax
ret
test eax, eax
je 0x41c0b0
test edx, edx
jne 0x41c050
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420a20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x420a59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409850
jmp 0x420a62
mov eax, ebx
mov edx, esi
call fcn.00409aa8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420a6c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x420a90
movzx eax, word [esp]
jmp 0x420a92
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x421ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x421fe7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00421cc8
mov esi, eax
mov eax, dword [0x4ab848]
cmp byte [eax], 0
je 0x421f8d
mov eax, dword [0x4ab6a4]
call fcn.004073b8
call fcn.004070b4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x421e90]
call fcn.0040c324
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x422000
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x421fc9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ab674]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4af634]
call fcn.0040c8c0
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421fee
lea eax, [ebp - 4]
mov edx, dword [0x421e90]
call fcn.0040c448
pop eax
jmp eax
Function at 0x422ca8
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x422ceb
mov eax, dword [ebp - 0x10c]
mov dword [0x4af8f8], eax
mov eax, 0x4af8fc
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040a204
mov eax, 0x4af900
call fcn.004096b8
xor eax, eax
mov dword [0x4af904], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x4af7bc], 0xa
jl 0x422e41
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x422e4c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x422e41
xor eax, eax
push ebp
push 0x422e3a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x422ea8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x422d9a
cmp dword [ebp - 8], 2
jle 0x422d9a
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x422d6d
adc edx, 0
mov eax, 0x4af900
call fcn.0040a2dc
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4af900]
call fcn.0040a168
push eax
push 0
push 0
push 0x422ea8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x422df4
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x422ec8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x422df4
cmp dword [ebp - 8], 2
jle 0x422df4
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x422dc9
adc edx, 0
mov eax, 0x4af900
call fcn.0040a2dc
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4af900]
call fcn.0040a168
push eax
push 0
push 0
push 0x422ec8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x4af904
push 0
push 0
push 0x422edc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x422e21
xor eax, eax
mov dword [0x4af904], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422e41
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x4aa2c0], 1
mov esp, ebp
pop ebp
ret
Function at 0x42444c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42446c
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x424486
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x424481
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42448b
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x4244f9
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x424542
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x4244b7
inc dword [ebp - 0xc]
jmp 0x4244cf
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x4244cf
cmp dword [ebp - 0xc], 0
jle 0x4244cf
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x4244f1
xor eax, eax
jmp 0x4244ed
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x4244ec
mov eax, esi
jmp 0x424545
inc eax
cmp eax, ecx
jle 0x4244d9
inc esi
cmp esi, dword [ebp - 8]
jl 0x4244a3
jmp 0x424542
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x424542
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42451a
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42453c
xor eax, eax
jmp 0x424538
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x424537
mov eax, esi
jmp 0x424545
inc eax
cmp eax, ecx
jle 0x424524
inc esi
cmp esi, dword [ebp - 8]
jl 0x424502
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4246b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4246d3
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4246e3
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x424805
test ebx, ebx
jl 0x424805
test esi, esi
jle 0x424805
mov eax, dword [ebp - 8]
call fcn.0040a168
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a168
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x4247a2
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x424805
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x424787
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x424756
inc dword [ebp - 0x14]
jmp 0x424766
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x424766
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x424771
or eax, 0xffffffff
jmp 0x424787
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x424784
inc eax
jmp 0x424787
or eax, 0xffffffff
test eax, eax
jl 0x42478f
cmp esi, eax
jg 0x424744
cmp esi, eax
jg 0x42479a
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x424808
inc edx
dec dword [ebp - 0x1c]
jne 0x424740
jmp 0x424805
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x424805
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x4247ec
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x4247cb
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x4247d6
or eax, 0xffffffff
jmp 0x4247ec
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x4247e9
inc eax
jmp 0x4247ec
or eax, 0xffffffff
test eax, eax
jl 0x4247f4
cmp esi, eax
jg 0x4247b4
cmp esi, eax
jg 0x4247ff
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x424808
inc edx
dec dword [ebp - 0x1c]
jne 0x4247b0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426498
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4264e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042642c
mov eax, dword [ebp - 4]
call fcn.0040a168
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4264e7
lea eax, [ebp - 4]
call fcn.004096b8
pop eax
jmp eax
Function at 0x426700
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x426797
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x42674b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00409850
jmp 0x42677f
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x426762
lea eax, [ebp - 4]
call fcn.004096b8
jmp 0x426775
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004265b8
mov ebx, eax
test esi, esi
je 0x426775
dec esi
jmp 0x426752
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00409aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42679e
lea eax, [ebp - 4]
call fcn.004096b8
pop eax
jmp eax

Function at 0x4267a8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041ce9c
add esp, 0x208
pop ebx
ret

Function at 0x426808
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041ce9c
add esp, 0x208
pop ebx
ret