joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c0d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6c0d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x6c0d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6c0d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6c0d94
push eax
push esi
call fcn.006c320b
add esp, 8
pop esi
ret 0x10

Function at 0x6c0da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c0e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x6c0e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x6d9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006c2dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x6c0dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x6c0e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c0ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x6c0eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x6d9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006c2dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x6c0eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x6c0e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x6c1000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x6c1131
push esi
call fcn.006c4145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.006b3080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x6c1131
push 0
push ebp
call fcn.006b33a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.006b3260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x6c108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006b32f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x6c1121
push 0x6d9918
push edi
call fcn.006c23f0
push eax
push ebx
push esi
call fcn.006c0f60
push 0x6d98f8
push edi
call fcn.006c23f0
push eax
push ebx
push esi
call fcn.006c0f60
push 0x6d98d8
push edi
call fcn.006c23f0
push eax
push ebx
push esi
call fcn.006c0f60
push 0x6d98c0
push edi
call fcn.006c23f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.006c0f60
push 0x6d98a0
push edi
call fcn.006c23f0
push eax
push ebx
push esi
call fcn.006c0f60
push 0x6d9888
push edi
call fcn.006c23f0
push eax
push ebx
push esi
call fcn.006c0f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6c21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006c2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006c2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006c2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006c2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6c2230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c22d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x6c22ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.006c2230
mov esi, eax
add esp, 8
test esi, esi
jne 0x6c22ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x6c227e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x6c22ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x6c2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6c2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6d487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6c2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6c2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x406b24
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.00409b68
test esi, esi
jne 0x406b5a
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.00409cf0
jmp 0x406b78
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a68
mov edi, eax
test esi, esi
je 0x406b78
cmp dword [ebx], 0
je 0x406b78
dec esi
jmp 0x406b61
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4088c8
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.00408cac
mov byte [esp], al
cmp byte [esp], 0
jne 0x408a52
test edi, edi
je 0x408a52
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408992
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40896d
cmp edi, 0xffffffff
je 0x40892d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40892d
mov byte [esp], 0
jmp 0x408a52
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40896d
test ebx, ebx
jne 0x40895f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40895f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408a52
lea eax, [esp + 0xc]
call fcn.004085a8
dec ebp
test ebp, ebp
jg 0x408912
cmp edi, 0xffffffff
je 0x408992
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408990
mov byte [esp], 0
jmp 0x408a52
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4088d6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408992
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408ac0
mov edx, eax
mov ebx, dword [0x4e98f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4089f6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4089f4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4089f6
xor edi, edi
cmp byte [esp], 0
je 0x408a1c
mov ebx, dword [esi]
test bl, 1
jne 0x408a32
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089fc
mov byte [esp + 1], 1
jmp 0x408a32
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a1c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4089a9
cmp byte [esp], 0
je 0x408a52
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 0x4097f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e9058], 0
je 0x40985f
cmp word [0x4e9344], 0xd7b2
jne 0x409821
cmp dword [0x4e934c], 0
jbe 0x409821
mov eax, 0x4e9340
call dword [0x4e935c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x4e59d0
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, 0x40988c
call fcn.0040a3a4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e5032], 0
jne 0x40987b
push 0
push 0x4e59ca
push 0x4e59d0
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409a28
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 [0x4e5034], 0
je 0x409a53
mov edx, edi
mov eax, esi
call dword [0x4e5034]
mov ebx, eax
jmp 0x409a64
mov eax, 8
call fcn.004067c4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4e9059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4099f0
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 0x409a94
mov eax, ebx
call fcn.004067e0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c010
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 0x40c175
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409b68
cmp si, word [0x4e5a08]
jb 0x40c0a8
cmp si, word [0x4e5c08]
ja 0x40c0a8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c0a8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e5a08]
jae 0x40c082
mov edi, ebx
dec edi
jmp 0x40c0a3
cmp si, word [ebx*8 + 0x4e5a08]
jbe 0x40c092
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c0a3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e5a0c]
call fcn.0040bf30
jmp 0x40c0a8
cmp edi, dword [ebp - 8]
jae 0x40c06c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c157
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c157
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.0040a744
push dword [ebp - 0x160]
push 0x40c190
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a744
push dword [ebp - 0x164]
push 0x40c1a0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a744
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a97c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c17c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409bc8
ret
Function at 0x40c328
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 0x40c42c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ebb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4ebba0]
jne 0x40c374
mov eax, esi
mov edx, 0x4ebba2
mov ecx, 0x55
call fcn.0040a744
push 0x4ebb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c416
push 0x4ebb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409b68
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c3e3
cmp byte [0x4ebb84], 0
je 0x40c3a8
mov edx, esi
mov eax, ebx
call fcn.0040c20c
jmp 0x40c3e3
mov edx, esi
mov eax, ebx
call fcn.0040c010
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c3e3
cmp dword [esi], 0
je 0x40c3cc
mov eax, esi
mov edx, 0x40c444
call fcn.0040a89c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c010
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a89c
push 0x4ebb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4ebba0], bx
mov eax, dword [esi]
call fcn.0040a6a0
mov ecx, eax
mov eax, 0x4ebba2
mov edx, 0xaa
call fcn.0040be90
push 0x4ebb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c433
lea eax, [ebp - 4]
call fcn.00409b68
ret
Function at 0x40c65c
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.00409c4c
xor eax, eax
push ebp
push 0x40c881
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c69c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c6b6
mov eax, dword [ebp - 4]
call fcn.0040a6a0
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be90
cmp word [ebp - 0x21a], 0
je 0x40c86b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c890
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c890
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c900
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c785
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c934
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c86b
xor eax, eax
push ebp
push 0x40c864
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c46c
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 0x40c7f4
mov eax, dword [ebp - 0x10]
call fcn.004067c4
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.0040a708
jmp 0x40c83f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c974
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c83f
mov eax, dword [ebp - 0x10]
call fcn.004067c4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c974
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c86b
cmp dword [ebp - 8], 0
je 0x40c85a
mov eax, dword [ebp - 8]
call fcn.004067e0
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 0x40c888
lea eax, [ebp - 4]
call fcn.00409b68
ret
Function at 0x40cb70
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.00409c4c
xor eax, eax
push ebp
push 0x40cc30
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.0040a744
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a8f4
mov eax, dword [ebx]
call fcn.0040ca38
test al, al
jne 0x40cc0d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a744
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a8f4
mov eax, dword [ebx]
call fcn.0040ca38
test al, al
jne 0x40cc0d
mov eax, ebx
call fcn.00409b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc37
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409bc8
lea eax, [ebp - 4]
call fcn.00409b68
ret

Function at 0x40d4a8
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 0x41d274
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41d2cd
test eax, edx
je 0x41d2d0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41d28b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41d2b2
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 0x41d2b3
add ecx, 4
js 0x41d2a3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41d2b0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41d2b2
xor eax, eax
ret
test eax, eax
je 0x41d2dc
test edx, edx
jne 0x41d27c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e3c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x41e3ed
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41e4c0
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.0040a6a0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e52a
test ah, 4
je 0x41e523
test bl, bl
jne 0x41e4e8
mov al, 1
jmp 0x41e551
test al, 0x10
je 0x41e4f0
xor eax, eax
jmp 0x41e551
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41e514
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41e551
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41e551
test al, 0x10
sete al
jmp 0x41e551
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41e54b
cmp ebx, 3
je 0x41e54b
cmp ebx, 0x7b
je 0x41e54b
mov eax, esi
call fcn.0041e480
test al, al
jne 0x41e54f
xor eax, eax
jmp 0x41e551
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a6a0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41e5ff
test esi, 0x400
jne 0x41e594
test esi, 0x10
setne bl
jmp 0x41e62f
cmp byte [esp], 0
je 0x41e5c8
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41e62f
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41e62f
test esi, 0x10
je 0x41e5d4
mov bl, 1
jmp 0x41e62f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41e5fb
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41e62f
mov bl, 1
jmp 0x41e62f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41e629
cmp eax, 3
je 0x41e629
cmp eax, 0xa1
je 0x41e629
cmp eax, 0x7b
je 0x41e629
cmp eax, 0x35
je 0x41e629
cmp eax, 0x15
je 0x41e629
cmp eax, 0x43
jne 0x41e62d
xor ebx, ebx
jmp 0x41e62f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422264
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_1
test eax, eax
jle 0x42229d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409cf0
jmp 0x4222a6
mov eax, ebx
mov edx, esi
call fcn.00409f48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4222b0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4222d2
movzx eax, word [esp]
jmp 0x4222d4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret