joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f7360
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x5f7415
cmp dword [ebp + 4], 0xffffffff
jne 0x5f7415
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x8f523c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x5f73dd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x5f73dd
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.005f6160
add esp, 0x10
test eax, eax
jne 0x5f7400
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.005f66a0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x5f7870
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x5f7938
mov al, byte [ecx]
test al, al
je 0x5f7938
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x5f789b
cmp al, 0x5c
jne 0x5f789d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5f7893
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x5f78d4
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.00653b04
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.005f7870
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x5f9b70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5f9ba3
push esi
call fcn.005fea70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5f9b9c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5f9c29
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5f9c12
mov eax, dword [esi + 8]
test eax, eax
je 0x5f9bc7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5f9c0e
cmp eax, 2
je 0x5f9c12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5f9bba
cmp eax, 3
je 0x5f9bed
cmp eax, 1
jne 0x5f9bba
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 0x5f9bba
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5f9bba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005f9c60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5f9c49
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.005f9c60
add esp, 4
pop esi
ret

Function at 0x62a4a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x62a4ab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x62a5ae
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x8ba538]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x8ba538]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x8ba538]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x8ba538]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x8ba538]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x8ba538]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x8ba538]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x8ba538]
xor eax, edx
inc ecx
dec edi
jne 0x62a4c6
pop edi
test esi, esi
je 0x62a5d0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x8ba538]
xor eax, edx
inc ecx
dec esi
jne 0x62a5b2
pop esi
pop ebx
not eax
ret
Function at 0x653abe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x653ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00655019
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x653b01
test byte [esp + 8], 2
je 0x653b01
call fcn.0065508c
mov dword [eax], 0xd
call fcn.00655095
mov dword [eax], 5
jmp 0x653ada
xor eax, eax
ret

Function at 0x665d09
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x665d41
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.00663d93
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00663d6b
jmp 0x665d4d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6673f7
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 0x667439
call fcn.0066db43
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x667439
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x667430
xor eax, eax
jmp 0x667441
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00667447
pop edi
pop esi
pop ebx
ret 4

Function at 0x66e073
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 0x66e0a1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x66e0bf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0066dfd9
jmp 0x66e0bf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x66e0bf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0066dfd9
test edi, edi
mov eax, edi
jne 0x66e0a9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407528
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.0040a370
test esi, esi
jne 0x40755e
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.0040a4f8
jmp 0x40757c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040746c
mov edi, eax
test esi, esi
je 0x40757c
cmp dword [ebx], 0
je 0x40757c
dec esi
jmp 0x407565
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408eb4
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.00409374
mov byte [esp], al
cmp byte [esp], 0
jne 0x40903d
test edi, edi
je 0x40903d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408f7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408f58
cmp edi, 0xffffffff
je 0x408f19
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f19
mov byte [esp], 0
jmp 0x40903d
cmp dword [esi], 1
jg 0x408f58
cmp dword [esi], 0
jne 0x408f4a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408f4a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40903d
lea eax, [esp + 0xc]
call fcn.00408b64
dec ebp
test ebp, ebp
jg 0x408efe
cmp edi, 0xffffffff
je 0x408f7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f7b
mov byte [esp], 0
jmp 0x40903d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408ec2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004090b8
mov edx, eax
mov ebx, dword [0x7918fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408fe1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408fdf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408fe1
xor edi, edi
cmp byte [esp], 0
je 0x409007
mov ebx, dword [esi]
test bl, 1
jne 0x40901d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408fe7
mov byte [esp + 1], 1
jmp 0x40901d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409007
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408f94
cmp byte [esp], 0
je 0x40903d
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 0x40a008
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x79105c], 0
je 0x40a06f
cmp word [0x791348], 0xd7b2
jne 0x40a031
cmp dword [0x791350], 0
jbe 0x40a031
mov eax, 0x791344
call dword [0x791360]
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, 0x40a09c
call fcn.0040ac44
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x786036], 0
jne 0x40a08b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a230
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 [0x786038], 0
je 0x40a25b
mov edx, edi
mov eax, esi
call dword [0x786038]
mov ebx, eax
jmp 0x40a26c
mov eax, 8
call fcn.004071a4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x79105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a1f8
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 0x40a29c
mov eax, ebx
call fcn.004071c0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e254
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 0x40e3bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a370
cmp si, word [0x786a10]
jb 0x40e2ec
cmp si, word [0x786c10]
ja 0x40e2ec
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e2ec
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x786a10]
jae 0x40e2c6
mov edi, ebx
dec edi
jmp 0x40e2e7
cmp si, word [ebx*8 + 0x786a10]
jbe 0x40e2d6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e2e7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x786a14]
call fcn.0040e170
jmp 0x40e2ec
cmp edi, dword [ebp - 8]
jae 0x40e2b0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e39b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e39b
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.0040b26c
push dword [ebp - 0x160]
push 0x40e3d8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b26c
push dword [ebp - 0x164]
push 0x40e3e8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b26c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b4a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3c2
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a3d0
pop eax
jmp eax
Function at 0x40e570
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 0x40e676
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x793c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x793c2c]
jne 0x40e5bc
mov eax, esi
mov edx, 0x793c2e
mov ecx, 0x55
call fcn.0040b26c
push 0x793c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e65e
push 0x793c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a370
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e62b
cmp byte [0x793c10], 0
je 0x40e5f0
mov edx, esi
mov eax, ebx
call fcn.0040e454
jmp 0x40e62b
mov edx, esi
mov eax, ebx
call fcn.0040e254
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e62b
cmp dword [esi], 0
je 0x40e614
mov eax, esi
mov edx, 0x40e690
call fcn.0040b3c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e254
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b3c4
push 0x793c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x793c2c], bx
mov eax, dword [esi]
call fcn.0040b1b4
mov ecx, eax
mov eax, 0x793c2e
mov edx, 0xaa
call fcn.0040e0d0
push 0x793c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e67d
lea eax, [ebp - 4]
call fcn.0040a370
pop eax
jmp eax
Function at 0x40e8a8
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.0040a454
xor eax, eax
push ebp
push 0x40ead1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e8e8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e902
mov eax, dword [ebp - 4]
call fcn.0040b1b4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040e0d0
cmp word [ebp - 0x21a], 0
je 0x40eab9
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eae0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9d1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eae0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9d1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eb1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9d1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eb1c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9d1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eb50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e9d1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40eb84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40eab9
xor eax, eax
push ebp
push 0x40eab2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040e6b8
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 0x40ea40
mov eax, dword [ebp - 0x10]
call fcn.004071a4
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.0040b218
jmp 0x40ea8b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ebc4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ea8b
mov eax, dword [ebp - 0x10]
call fcn.004071a4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ebc4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eab9
cmp dword [ebp - 8], 0
je 0x40eaa6
mov eax, dword [ebp - 8]
call fcn.004071c0
mov eax, dword [ebp - 0xc]
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 0x40ead8
lea eax, [ebp - 4]
call fcn.0040a370
pop eax
jmp eax
Function at 0x40ede4
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.0040a454
xor eax, eax
push ebp
push 0x40eea6
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.0040b26c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b41c
mov eax, dword [ebx]
call fcn.0040ec8c
test al, al
jne 0x40ee81
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b26c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b41c
mov eax, dword [ebx]
call fcn.0040ec8c
test al, al
jne 0x40ee81
mov eax, ebx
call fcn.0040a370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eead
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a3d0
lea eax, [ebp - 4]
call fcn.0040a370
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x425e0d
test eax, edx
je 0x425e10
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x425dcb
movzx eax, word [eax]
sub eax, ecx
jmp 0x425df2
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 0x425df3
add ecx, 4
js 0x425de3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x425df0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x425df2
xor eax, eax
ret
test eax, eax
je 0x425e1c
test edx, edx
jne 0x425dbc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4273d4
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
test eax, eax
jne 0x427401
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4274d4
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.0040b1b4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42753e
test ah, 4
je 0x427537
test bl, bl
jne 0x4274fc
mov al, 1
jmp 0x427565
test al, 0x10
je 0x427504
xor eax, eax
jmp 0x427565
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427528
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x427565
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x427565
test al, 0x10
sete al
jmp 0x427565
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42755f
cmp ebx, 3
je 0x42755f
cmp ebx, 0x7b
je 0x42755f
mov eax, esi
call fcn.00427494
test al, al
jne 0x427563
xor eax, eax
jmp 0x427565
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x42756c
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.0040b1b4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42760a
test esi, 0x400
jne 0x4275a1
test esi, 0x10
setne bl
jmp 0x42760a
cmp byte [esp], 0
je 0x4275d5
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42760a
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42760a
test esi, 0x10
je 0x4275e1
mov bl, 1
jmp 0x42760a
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x427608
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42760a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret