joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6f8415ff
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x434
call sym.inject.dll_GetGlobalKey
mov ecx, dword [sym.inject.dll___RegOpenKey]
mov eax, dword [sym.inject.dll_hGlobalKey]
lea edx, [ebp - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Software_facebook
mov dword [esp], eax
call ecx
sub esp, 0xc
test eax, eax
jne 0x6f8416a5
mov dword [ebp - 0x18], 4
mov ebx, dword [sym.inject.dll___RegQueryValueEx]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProcessID
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x6f84167f
mov eax, 0
jmp 0x6f841709
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.inject____d__d_n
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
jmp 0x6f8416fe
mov eax, 0
jmp 0x6f841709
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.inject.dll_GetProcessParent
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.inject____d__d_n
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 8], eax
jne 0x6f8416fe
mov eax, 1
jmp 0x6f841709
cmp dword [ebp + 8], 0
jne 0x6f8416ac
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x6f841d25
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov dword [esp], str.IN_PatchDLL___n
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.inject.dll_MapFileToMemory
mov dword [ebp - 0x14], eax
mov edx, dword [sym.inject.dll___wsprintf]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Mapped_file__s__x__d_n
lea eax, [ebp - 0x820]
mov dword [esp], eax
call edx
lea eax, [ebp - 0x820]
mov dword [esp], eax
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x6f841de8
mov edx, dword [sym.inject.dll___memcmp]
mov dword [esp + 8], 0xb
mov dword [esp + 4], str.NOT_PATCHED
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call edx
test eax, eax
jne 0x6f841de2
mov edx, dword [sym.inject.dll___memcpy]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x6f8441f6
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call edx
jmp 0x6f841df0
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], eax
jb 0x6f841da0
mov dword [esp], str.Patched_signature_n
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
mov edx, dword [sym.inject.dll___CreateFile]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edx
sub esp, 0x1c
mov dword [ebp - 0x18], eax
mov dword [esp], str.Opened_file_n
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
cmp dword [ebp - 0x18], 0xffffffff
je 0x6f841eb7
mov dword [esp], str.WRITING_n
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
mov ecx, dword [sym.inject.dll___WriteFile]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x20]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call ecx
sub esp, 0x14
mov dword [esp], str.WROTE_n
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
mov edx, dword [sym.inject.dll___CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call edx
sub esp, 4
jmp 0x6f841eb8
nop
leave
ret
Function at 0x6f841eba
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [ebp - 0xa4], 0x9c
lea eax, [ebp - 0xa4]
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
sub esp, 4
mov eax, dword [ebp - 0xa0]
cmp eax, 5
ja 0x6f841f1e
jmp 0x6f841ef0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, 0x6c
call fcn.6f841eeb
add esp, 0x28
lea eax, [eax + 0x5122324e]
mov dword [sym.inject.dll_m2], eax
jmp 0x6f841f5b
jmp 0x6f841f25
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, 0x6c
call fcn.6f841f20
add esp, 0x28
cmp ax, 0xd
je 0x6f841f50
mov ax, 0xd
lea eax, [eax + 0x51223337]
mov dword [sym.inject.dll_m2], eax
mov eax, dword [sym.inject.dll_m2]
leave
ret

Function at 0x6f841eeb
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x6f841f20
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x6f842468
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword fs:[0x30]
mov dword [sym.inject.dll_Peb], eax
mov eax, dword [sym.inject.dll_Peb]
add eax, 0xc
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x6f84252b
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], 0x208
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.inject.dll____memset
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
cmp ax, 0x207
ja 0x6f8424dd
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
shr ax, 1
movzx eax, ax
jmp 0x6f8424e2
mov eax, 0x103
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym.inject.dll____wcsncpy
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym.inject.dll_xwcslwr
mov dword [esp], eax
call sym.inject.dll_CalcHashW
cmp eax, 0x4b1ffe8e
jne 0x6f842523
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
jmp 0x6f84253c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0x6f84249f
mov eax, 0
leave
ret

Function at 0x6f842710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], 0x6f8443b0
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x6f842760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x6f842786
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x6f84281a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x6f8427d5
cmp eax, 0x40
je 0x6f8427d5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x6f842779
cmp eax, 0x40
je 0x6f842779
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x6f842779
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6f842710
lea esi, [esi]
lea edi, [edi]
Function at 0x4076d4
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.0040a3bc
test esi, esi
jne 0x40770a
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.0040a554
jmp 0x407728
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407618
mov edi, eax
test esi, esi
je 0x407728
cmp dword [ebx], 0
je 0x407728
dec esi
jmp 0x407711
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409004
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.004094c4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40918d
test edi, edi
je 0x40918d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4090a8
cmp edi, 0xffffffff
je 0x409069
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409069
mov byte [esp], 0
jmp 0x40918d
cmp dword [esi], 1
jg 0x4090a8
cmp dword [esi], 0
jne 0x40909a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40909a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40918d
lea eax, [esp + 0xc]
call fcn.00408cb8
dec ebp
test ebp, ebp
jg 0x40904e
cmp edi, 0xffffffff
je 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090cb
mov byte [esp], 0
jmp 0x40918d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409012
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090cd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409208
mov edx, eax
mov ebx, dword [0x5fa8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409131
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40912f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409131
xor edi, edi
cmp byte [esp], 0
je 0x409157
mov ebx, dword [esi]
test bl, 1
jne 0x40916d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409137
mov byte [esp + 1], 1
jmp 0x40916d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409157
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4090e4
cmp byte [esp], 0
je 0x40918d
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 0x40a054
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5fa05c], 0
je 0x40a0bb
cmp word [0x5fa348], 0xd7b2
jne 0x40a07d
cmp dword [0x5fa350], 0
jbe 0x40a07d
mov eax, 0x5fa344
call dword [0x5fa360]
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, 0x40a0e8
call fcn.0040abd4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5f4036], 0
jne 0x40a0d7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a27c
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 [0x5f4038], 0
je 0x40a2a7
mov edx, edi
mov eax, esi
call dword [0x5f4038]
mov ebx, eax
jmp 0x40a2b8
mov eax, 8
call fcn.00406fcc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5fa05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a244
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 0x40a2e8
mov eax, ebx
call fcn.00406fe8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40db38
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 0x40dc9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a3bc
cmp si, word [0x5f4a18]
jb 0x40dbd0
cmp si, word [0x5f4c18]
ja 0x40dbd0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dbd0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5f4a18]
jae 0x40dbaa
mov edi, ebx
dec edi
jmp 0x40dbcb
cmp si, word [ebx*8 + 0x5f4a18]
jbe 0x40dbba
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dbcb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f4a1c]
call fcn.0040da54
jmp 0x40dbd0
cmp edi, dword [ebp - 8]
jae 0x40db94
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dc7f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dc7f
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.0040aebc
push dword [ebp - 0x160]
push 0x40dcbc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aebc
push dword [ebp - 0x164]
push 0x40dccc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aebc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b0f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dca6
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a41c
pop eax
jmp eax
Function at 0x40de54
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 0x40df5a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5fcc18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5fcc30]
jne 0x40dea0
mov eax, esi
mov edx, 0x5fcc32
mov ecx, 0x55
call fcn.0040aebc
push 0x5fcc18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40df42
push 0x5fcc18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a3bc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40df0f
cmp byte [0x5fcc14], 0
je 0x40ded4
mov edx, esi
mov eax, ebx
call fcn.0040dd38
jmp 0x40df0f
mov edx, esi
mov eax, ebx
call fcn.0040db38
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40df0f
cmp dword [esi], 0
je 0x40def8
mov eax, esi
mov edx, 0x40df74
call fcn.0040b014
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040db38
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b014
push 0x5fcc18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5fcc30], bx
mov eax, dword [esi]
call fcn.0040ae20
mov ecx, eax
mov eax, 0x5fcc32
mov edx, 0xaa
call fcn.0040d9b4
push 0x5fcc18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df61
lea eax, [ebp - 4]
call fcn.0040a3bc
pop eax
jmp eax
Function at 0x40e19c
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.0040a4b0
xor eax, eax
push ebp
push 0x40e3c4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e1e2
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e1fc
mov eax, dword [ebp - 4]
call fcn.0040ae20
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d9b4
cmp word [ebp - 0x21e], 0
je 0x40e3a7
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2cb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2cb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e410
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2cb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e410
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2cb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e444
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e2cb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e478
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e3a7
xor eax, eax
push ebp
push 0x40e3a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040df9c
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 0x40e32e
mov eax, dword [ebp - 0x14]
call fcn.00406fcc
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.0040ae80
jmp 0x40e379
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e4b8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e379
mov eax, dword [ebp - 0x14]
call fcn.00406fcc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e4b8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ae80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3a7
cmp dword [ebp - 0xc], 0
je 0x40e394
mov eax, dword [ebp - 0xc]
call fcn.00406fe8
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 0x40e3cb
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a41c
pop eax
jmp eax
Function at 0x40e6d8
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.0040a4b0
xor eax, eax
push ebp
push 0x40e79a
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.0040aebc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b06c
mov eax, dword [ebx]
call fcn.0040e580
test al, al
jne 0x40e775
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aebc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b06c
mov eax, dword [ebx]
call fcn.0040e580
test al, al
jne 0x40e775
mov eax, ebx
call fcn.0040a3bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7a1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a41c
lea eax, [ebp - 4]
call fcn.0040a3bc
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x424691
test eax, edx
je 0x424694
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42464f
movzx eax, word [eax]
sub eax, ecx
jmp 0x424676
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 0x424677
add ecx, 4
js 0x424667
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x424674
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x424676
xor eax, eax
ret
test eax, eax
je 0x4246a0
test edx, edx
jne 0x424640
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4258d8
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.0040ae20
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x425976
test esi, 0x400
jne 0x42590d
test esi, 0x10
setne bl
jmp 0x425976
cmp byte [esp], 0
je 0x425941
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425976
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x425976
test esi, 0x10
je 0x42594d
mov bl, 1
jmp 0x425976
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x425974
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x425976
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42a2d8
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 0x42a311
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a554
jmp 0x42a31a
mov eax, ebx
mov edx, esi
call fcn.0040a7ac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42a324
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 0x42a348
movzx eax, word [esp]
jmp 0x42a34a
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret