joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006205
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100b2d0]
push edi
xor edi, edi
cmp word [0x100c898], di
mov dword [ebp - 4], eax
jne 0x1006247
cmp dword [0x100c884], edi
jne 0x100623e
call fcn.010043ec
test eax, eax
je 0x1006259
cmp word [0x100c898], di
jne 0x1006247
call fcn.01004bc8
test eax, eax
je 0x1006259
call fcn.0100435e
test eax, eax
je 0x1006259
call fcn.01005f21
test eax, eax
jne 0x1006260
xor eax, eax
jmp 0x100636a
push ebx
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001264
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.010066cf
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
mov ebx, 0x100bc44
je 0x10062b3
push 0x10014a8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10062b3
push edi
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100c884], edi
jne 0x10062da
cmp dword [0x100c490], edi
jne 0x10062da
call fcn.010047b3
test eax, eax
jne 0x10062da
xor eax, eax
jmp 0x1006368
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1006301
push edi
push 0x10
push edi
push edi
push 0x4bc
push edi
call fcn.01003ebe
call fcn.01003aa1
mov dword [0x100ba5c], eax
jmp 0x10062d3
cmp dword [0x100c88c], edi
jne 0x1006312
call fcn.01005a36
test eax, eax
je 0x10062d3
test byte [0x100cba8], 0xc0
jne 0x1006330
xor eax, eax
mov ax, word [0x100ba64]
push eax
call fcn.01001f93
mov dword [0x100bb84], eax
jmp 0x1006336
mov dword [0x100bb84], edi
cmp dword [0x100c884], edi
jne 0x100634f
cmp dword [0x100c490], edi
jne 0x100634f
call fcn.01005abc
test eax, eax
je 0x10062d3
cmp word [0x100c898], di
jne 0x1006365
cmp dword [0x100c884], edi
jne 0x1006365
call fcn.01004de5
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.010064de
leave
ret

Function at 0x100645c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.0100646b
jmp fcn.010063e0

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1006741
xor eax, eax
jmp 0x1006749
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4
Function at 0x10068b3
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100b2d0]
and dword [ebp - 0xa8], 0
cmp dword [0x100b2dc], 0xfffffffe
mov dword [ebp - 4], eax
mov dword [ebp - 0xb0], 0xc
jne 0x10069d6
and dword [0x100b2dc], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10069d6
cmp dword [ebp - 0x94], 1
jne 0x10069d6
cmp dword [ebp - 0xa0], 4
jne 0x10069d6
cmp dword [ebp - 0x9c], 0xa
jae 0x10069d6
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10069d6
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x10014b8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10069d6
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x1001271
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10069d6
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100678f
test eax, eax
je 0x10069d6
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x10069cc
cmp dword [ebp - 0xa8], 0xd
jne 0x10069d6
mov dword [0x100b2dc], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100b2dc]
call fcn.010064de
leave
ret

Function at 0x10069ea
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x1006a22
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1006a26
xor eax, eax
jmp 0x1006a3c
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x1007d39
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x1007d76
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1007d53
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1007d92
dec esi
je 0x1007d8b
dec esi
jne 0x1007d97
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x401a49
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov esi, ecx
test esi, esi
mov edi, edx
mov dword [ebp - 0xc], edi
je 0x401c0f
test edi, edi
je 0x401c0f
mov eax, dword [esi + 0x54]
test eax, eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
je 0x401a9c
push dword [ebp + 8]
push 0
push 0x1400
push eax
call ebx
lea eax, [edi + 0x10]
push eax
push 0
push 0x1401
push dword [esi + 0x54]
call ebx
mov eax, dword [esi + 0x58]
test eax, eax
je 0x401a9c
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ab7
and eax, 0xfffffffa
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, 0x10000
lea ecx, [ebp - 0x2c]
call fcn.004018ff
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x2c], eax
jne 0x401af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401c02
mov ecx, dword [edi + 0x14]
test ecx, ecx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1c], 0x4018c3
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ecx
ja 0x401b64
test eax, eax
ja 0x401b64
lea eax, [edi + 0x20]
push eax
push 0
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x2c]
call fcn.0040191f
test eax, eax
mov dword [ebp - 4], eax
jne 0x401b3b
push dword [edi + 0x28]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x401b58
push dword [ebp - 4]
push 0
push 0x1403
push eax
call ebx
mov esi, dword [esi + 0x58]
test esi, esi
je 0x401b58
call esi
mov eax, dword [ebp - 4]
pop ebx
jmp 0x401c12
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x24]
xor ecx, ecx
cmp ecx, dword [ebp - 0x10]
jb 0x401b79
ja 0x401b77
cmp edi, eax
jbe 0x401b79
mov edi, eax
sub eax, edi
sbb dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x50]
call fcn.00401f9f
add esp, 0x14
test eax, eax
jne 0x401be9
cmp dword [ebp - 8], edi
jne 0x401bf2
add dword [ebp - 0x24], edi
lea ecx, [ebp - 0x2c]
call fcn.00401948
test eax, eax
mov dword [ebp - 4], eax
jne 0x401c02
mov eax, dword [esi + 0x54]
test eax, eax
je 0x401bd3
push edi
push 0
push 0x1402
push eax
call ebx
mov eax, dword [esi + 0x58]
test eax, eax
je 0x401bd3
call eax
test eax, eax
je 0x401bfb
cmp dword [ebp - 0x10], 0
ja 0x401b61
jb 0x401be1
cmp dword [ebp - 0x14], 0
ja 0x401b61
mov edi, dword [ebp - 0xc]
jmp 0x401b0f
mov dword [ebp - 4], 0x1e
jmp 0x401c02
mov dword [ebp - 4], 0x26
jmp 0x401c02
mov dword [ebp - 4], 0x4c7
lea ecx, [ebp - 0x2c]
call fcn.0040191f
jmp 0x401b3b
push 0x57
pop eax
pop edi
pop esi
leave
ret 4
Function at 0x4071f0
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.00409c8c
test esi, esi
jne 0x407226
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.00409e14
jmp 0x407244
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407134
mov edi, eax
test esi, esi
je 0x407244
cmp dword [ebx], 0
je 0x407244
dec esi
jmp 0x40722d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408924
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.00408db0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408aad
test edi, edi
je 0x408aad
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4089ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4089c8
cmp edi, 0xffffffff
je 0x408989
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408989
mov byte [esp], 0
jmp 0x408aad
cmp dword [esi], 1
jg 0x4089c8
cmp dword [esi], 0
jne 0x4089ba
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089ba
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408aad
lea eax, [esp + 0xc]
call fcn.004085e0
dec ebp
test ebp, ebp
jg 0x40896e
cmp edi, 0xffffffff
je 0x4089ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089eb
mov byte [esp], 0
jmp 0x408aad
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408932
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b1c
mov edx, eax
mov ebx, dword [0x5e28fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a51
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a4f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a51
xor edi, edi
cmp byte [esp], 0
je 0x408a77
mov ebx, dword [esi]
test bl, 1
jne 0x408a8d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a57
mov byte [esp + 1], 1
jmp 0x408a8d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a77
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408a04
cmp byte [esp], 0
je 0x408aad
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 0x409924
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5e205c], 0
je 0x40998b
cmp word [0x5e2348], 0xd7b2
jne 0x40994d
cmp dword [0x5e2350], 0
jbe 0x40994d
mov eax, 0x5e2344
call dword [0x5e2360]
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, 0x4099b8
call fcn.0040a434
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5dc032], 0
jne 0x4099a7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409b4c
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 [0x5dc034], 0
je 0x409b77
mov edx, edi
mov eax, esi
call dword [0x5dc034]
mov ebx, eax
jmp 0x409b88
mov eax, 8
call fcn.00406e70
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5e205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b14
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 0x409bb8
mov eax, ebx
call fcn.00406e8c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c830
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 0x40c995
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c8c
cmp si, word [0x5dca00]
jb 0x40c8c8
cmp si, word [0x5dcc00]
ja 0x40c8c8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c8c8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5dca00]
jae 0x40c8a2
mov edi, ebx
dec edi
jmp 0x40c8c3
cmp si, word [ebx*8 + 0x5dca00]
jbe 0x40c8b2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c8c3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5dca04]
call fcn.0040c750
jmp 0x40c8c8
cmp edi, dword [ebp - 8]
jae 0x40c88c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c977
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c977
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.0040a7d4
push dword [ebp - 0x160]
push 0x40c9b0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a7d4
push dword [ebp - 0x164]
push 0x40c9c0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a7d4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aa0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c99c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409cec
ret
Function at 0x40cb48
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 0x40cc4c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5e4c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5e4c2c]
jne 0x40cb94
mov eax, esi
mov edx, 0x5e4c2e
mov ecx, 0x55
call fcn.0040a7d4
push 0x5e4c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc36
push 0x5e4c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c8c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc03
cmp byte [0x5e4c10], 0
je 0x40cbc8
mov edx, esi
mov eax, ebx
call fcn.0040ca2c
jmp 0x40cc03
mov edx, esi
mov eax, ebx
call fcn.0040c830
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc03
cmp dword [esi], 0
je 0x40cbec
mov eax, esi
mov edx, 0x40cc64
call fcn.0040a92c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c830
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a92c
push 0x5e4c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5e4c2c], bx
mov eax, dword [esi]
call fcn.0040a730
mov ecx, eax
mov eax, 0x5e4c2e
mov edx, 0xaa
call fcn.0040c6b0
push 0x5e4c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc53
lea eax, [ebp - 4]
call fcn.00409c8c
ret
Function at 0x40ce7c
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.00409d70
xor eax, eax
push ebp
push 0x40d0a1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cebc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ced6
mov eax, dword [ebp - 4]
call fcn.0040a730
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c6b0
cmp word [ebp - 0x21a], 0
je 0x40d08b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfa5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfa5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfa5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d0ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfa5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d120
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cfa5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d154
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d08b
xor eax, eax
push ebp
push 0x40d084
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cc8c
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 0x40d014
mov eax, dword [ebp - 0x10]
call fcn.00406e70
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.0040a798
jmp 0x40d05f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d194
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d05f
mov eax, dword [ebp - 0x10]
call fcn.00406e70
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d194
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d08b
cmp dword [ebp - 8], 0
je 0x40d07a
mov eax, dword [ebp - 8]
call fcn.00406e8c
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 0x40d0a8
lea eax, [ebp - 4]
call fcn.00409c8c
ret
Function at 0x40d390
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.00409d70
xor eax, eax
push ebp
push 0x40d450
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.0040a7d4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a984
mov eax, dword [ebx]
call fcn.0040d258
test al, al
jne 0x40d42d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a7d4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a984
mov eax, dword [ebx]
call fcn.0040d258
test al, al
jne 0x40d42d
mov eax, ebx
call fcn.00409c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d457
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409cec
lea eax, [ebp - 4]
call fcn.00409c8c
ret

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

Disassembly:
cmp eax, edx
je 0x422295
test eax, edx
je 0x422298
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422253
movzx eax, word [eax]
sub eax, ecx
jmp 0x42227a
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 0x42227b
add ecx, 4
js 0x42226b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422278
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42227a
xor eax, eax
ret
test eax, eax
je 0x4222a4
test edx, edx
jne 0x422244
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Function at 0x423794
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.0040a730
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42383b
test esi, 0x400
jne 0x4237d0
test esi, 0x10
setne bl
jmp 0x42386b
cmp byte [esp], 0
je 0x423804
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42386b
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42386b
test esi, 0x10
je 0x423810
mov bl, 1
jmp 0x42386b
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423837
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42386b
mov bl, 1
jmp 0x42386b
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x423865
cmp eax, 3
je 0x423865
cmp eax, 0xa1
je 0x423865
cmp eax, 0x7b
je 0x423865
cmp eax, 0x35
je 0x423865
cmp eax, 0x15
je 0x423865
cmp eax, 0x43
jne 0x423869
xor ebx, ebx
jmp 0x42386b
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42751c
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 0x427555
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409e14
jmp 0x42755e
mov eax, ebx
mov edx, esi
call fcn.0040a06c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4