joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440700
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440733
push esi
call fcn.0044eac0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44072c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4407b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4407a2
mov eax, dword [esi + 8]
test eax, eax
je 0x440757
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44079e
cmp eax, 2
je 0x4407a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44074a
cmp eax, 3
je 0x44077d
cmp eax, 1
jne 0x44074a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44074a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44074a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004407e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4407c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004407e0
add esp, 4
pop esi
ret

Function at 0x441060
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441081
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441081
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441081
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46ed06
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46ed3e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046cdd7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046cdaf
jmp 0x46ed4a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x470400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x470442
call fcn.00475d7e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x470442
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x470439
xor eax, eax
jmp 0x47044a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00470450
pop edi
pop esi
pop ebx
ret 4
Function at 0x4762ae
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4762dc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4762fa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476214
jmp 0x4762fa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4762fa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00476214
test edi, edi
mov eax, edi
jne 0x4762e4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x424040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
Function at 0x407160
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40726c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x4071e0
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x4071d7
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040b050
mov eax, dword [ebp - 4]
call fcn.0040aec4
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x407210
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040af78
jmp 0x40722c
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040b050
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040aec4
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407254
cmp edi, 0x104
jbe 0x407248
mov eax, dword [ebp - 4]
call fcn.0040aec4
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x407254
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407273
lea eax, [ebp - 4]
call fcn.0040a224
pop eax
jmp eax

Function at 0x40745c
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.0040a224
test esi, esi
jne 0x407492
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.0040a3bc
jmp 0x4074b0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004073a0
mov edi, eax
test esi, esi
je 0x4074b0
cmp dword [ebx], 0
je 0x4074b0
dec esi
jmp 0x407499
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x408e6c
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.0040932c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408ff5
test edi, edi
je 0x408ff5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408f35
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408f10
cmp edi, 0xffffffff
je 0x408ed1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408ed1
mov byte [esp], 0
jmp 0x408ff5
cmp dword [esi], 1
jg 0x408f10
cmp dword [esi], 0
jne 0x408f02
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408f02
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408ff5
lea eax, [esp + 0xc]
call fcn.00408b1c
dec ebp
test ebp, ebp
jg 0x408eb6
cmp edi, 0xffffffff
je 0x408f35
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f33
mov byte [esp], 0
jmp 0x408ff5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408e7a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f35
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409070
mov edx, eax
mov ebx, dword [0x7008fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408f99
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408f97
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408f99
xor edi, edi
cmp byte [esp], 0
je 0x408fbf
mov ebx, dword [esi]
test bl, 1
jne 0x408fd5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f9f
mov byte [esp + 1], 1
jmp 0x408fd5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408fbf
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408f4c
cmp byte [esp], 0
je 0x408ff5
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 0x409ebc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x70005c], 0
je 0x409f23
cmp word [0x700348], 0xd7b2
jne 0x409ee5
cmp dword [0x700350], 0
jbe 0x409ee5
mov eax, 0x700344
call dword [0x700360]
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, 0x409f50
call fcn.0040ac2c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6ed036], 0
jne 0x409f3f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a0e4
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 [0x6ed038], 0
je 0x40a10f
mov edx, edi
mov eax, esi
call dword [0x6ed038]
mov ebx, eax
jmp 0x40a120
mov eax, 8
call fcn.00406fbc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x70005d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a0ac
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 0x40a150
mov eax, ebx
call fcn.00406fd8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40dcb0
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 0x40de17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a224
cmp si, word [0x6eda10]
jb 0x40dd48
cmp si, word [0x6edc10]
ja 0x40dd48
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dd48
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6eda10]
jae 0x40dd22
mov edi, ebx
dec edi
jmp 0x40dd43
cmp si, word [ebx*8 + 0x6eda10]
jbe 0x40dd32
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dd43
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6eda14]
call fcn.0040dbcc
jmp 0x40dd48
cmp edi, dword [ebp - 8]
jae 0x40dd0c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ddf7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ddf7
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.0040af78
push dword [ebp - 0x160]
push 0x40de34
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040af78
push dword [ebp - 0x164]
push 0x40de44
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040af78
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b1b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de1e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a284
pop eax
jmp eax
Function at 0x40dfcc
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 0x40e0d2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x702c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x702c2c]
jne 0x40e018
mov eax, esi
mov edx, 0x702c2e
mov ecx, 0x55
call fcn.0040af78
push 0x702c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e0ba
push 0x702c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a224
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e087
cmp byte [0x702c10], 0
je 0x40e04c
mov edx, esi
mov eax, ebx
call fcn.0040deb0
jmp 0x40e087
mov edx, esi
mov eax, ebx
call fcn.0040dcb0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e087
cmp dword [esi], 0
je 0x40e070
mov eax, esi
mov edx, 0x40e0ec
call fcn.0040b0d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dcb0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b0d0
push 0x702c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x702c2c], bx
mov eax, dword [esi]
call fcn.0040aec4
mov ecx, eax
mov eax, 0x702c2e
mov edx, 0xaa
call fcn.0040db2c
push 0x702c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0d9
lea eax, [ebp - 4]
call fcn.0040a224
pop eax
jmp eax
Function at 0x40e314
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.0040a318
xor eax, eax
push ebp
push 0x40e53c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e35a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e374
mov eax, dword [ebp - 4]
call fcn.0040aec4
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040db2c
cmp word [ebp - 0x21e], 0
je 0x40e51f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e54c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e443
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e54c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e443
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e588
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e443
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e588
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e443
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e5bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e443
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e5f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e51f
xor eax, eax
push ebp
push 0x40e518
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e114
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 0x40e4a6
mov eax, dword [ebp - 0x14]
call fcn.00406fbc
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.0040af24
jmp 0x40e4f1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e630
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e4f1
mov eax, dword [ebp - 0x14]
call fcn.00406fbc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e630
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040af24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e51f
cmp dword [ebp - 0xc], 0
je 0x40e50c
mov eax, dword [ebp - 0xc]
call fcn.00406fd8
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 0x40e543
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a284
pop eax
jmp eax
Function at 0x40e850
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.0040a318
xor eax, eax
push ebp
push 0x40e912
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.0040af78
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b128
mov eax, dword [ebx]
call fcn.0040e6f8
test al, al
jne 0x40e8ed
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040af78
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b128
mov eax, dword [ebx]
call fcn.0040e6f8
test al, al
jne 0x40e8ed
mov eax, ebx
call fcn.0040a224
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e919
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a284
lea eax, [ebp - 4]
call fcn.0040a224
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x425571
test eax, edx
je 0x425574
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42552f
movzx eax, word [eax]
sub eax, ecx
jmp 0x425556
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 0x425557
add ecx, 4
js 0x425547
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x425554
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x425556
xor eax, eax
ret
test eax, eax
je 0x425580
test edx, edx
jne 0x425520
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42697c
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.0040aec4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4269e6
test ah, 4
je 0x4269df
test bl, bl
jne 0x4269a4
mov al, 1
jmp 0x426a0d
test al, 0x10
je 0x4269ac
xor eax, eax
jmp 0x426a0d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4269d0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x426a0d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x426a0d
test al, 0x10
sete al
jmp 0x426a0d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x426a07
cmp ebx, 3
je 0x426a07
cmp ebx, 0x7b
je 0x426a07
mov eax, esi
call fcn.0042693c
test al, al
jne 0x426a0b
xor eax, eax
jmp 0x426a0d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x426a14
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.0040aec4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x426ab2
test esi, 0x400
jne 0x426a49
test esi, 0x10
setne bl
jmp 0x426ab2
cmp byte [esp], 0
je 0x426a7d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426ab2
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x426ab2
test esi, 0x10
je 0x426a89
mov bl, 1
jmp 0x426ab2
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x426ab0
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x426ab2
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret