joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d4c1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x487590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x4888a0]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0043f5f5
mov dword [ebp - 0x14], eax
cmp dword [0x48b1b4], edi
jne 0x45d5b2
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x45d53f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x45d692
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x45d692
push 0x4780a8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d692
push eax
call ebx
push 0x4780b4
push esi
mov dword [0x48b1b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x48b1b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x48b1bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48b1c4], eax
test eax, eax
je 0x45d5af
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48b1c0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x45d5d7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45d5ca
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x45d5ec
push 4
pop eax
jmp 0x45d694
cmp dword [ebp - 0x14], edi
je 0x45d5ec
push dword [0x48b1b4]
call dword [0x4888a4]
push 3
jmp 0x45d5d1
mov eax, dword [0x48b1c0]
mov ebx, dword [0x4888a4]
cmp eax, esi
je 0x45d64a
cmp dword [0x48b1c4], esi
je 0x45d64a
push eax
call ebx
push dword [0x48b1c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x45d64a
test eax, eax
je 0x45d64a
call ecx
test eax, eax
je 0x45d63f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x45d63f
test byte [ebp - 8], 1
jne 0x45d64a
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x45d67a
mov eax, dword [0x48b1b8]
cmp eax, esi
je 0x45d677
push eax
call ebx
test eax, eax
je 0x45d677
call eax
mov edi, eax
test edi, edi
je 0x45d677
mov eax, dword [0x48b1bc]
cmp eax, esi
je 0x45d677
push eax
call ebx
test eax, eax
je 0x45d677
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x48b1b4]
call ebx
test eax, eax
je 0x45d692
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x45d694
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437bed
leave
ret
Function at 0x45fd08
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00447d75
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x45fd40
xor eax, eax
jmp 0x45fd6c
cmp esi, dword [ebp - 4]
je 0x45fd69
cmp dword [ebp + 0xc], 0
je 0x45fd69
push dword [edi + 0x9c]
call fcn.0045f916
push dword [edi + 0x9c]
mov esi, eax
call fcn.00437bfc
pop ecx
pop ecx
cmp esi, eax
je 0x45fd3c
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc
Function at 0x9ae058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009ae1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9ae07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ae06a
add dl, dl
jne 0x9ae089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ae0dc
xor eax, eax
add dl, dl
jne 0x9ae096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ae17d
add dl, dl
jne 0x9ae0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ae0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ae0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ae0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ae0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ae075
mov eax, 1
add dl, dl
jne 0x9ae0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ae0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ae0e1
sub eax, ebx
mov ebx, 1
jne 0x9ae128
mov ecx, 1
add dl, dl
jne 0x9ae10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ae119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ae105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ae075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ae13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ae14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ae136
cmp eax, 0x7d00
jae 0x9ae16d
cmp eax, 0x500
jb 0x9ae168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ae075
cmp eax, 0x7f
ja 0x9ae170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ae075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ae19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9ae075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406d18
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.004094e8
test esi, esi
jne 0x406d4e
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.00409670
jmp 0x406d6c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406c5c
mov edi, eax
test esi, esi
je 0x406d6c
cmp dword [ebx], 0
je 0x406d6c
dec esi
jmp 0x406d55
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4081c4
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.0040860c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40834e
test edi, edi
je 0x40834e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40828e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408269
cmp edi, 0xffffffff
je 0x408229
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408229
mov byte [esp], 0
jmp 0x40834e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408269
test ebx, ebx
jne 0x40825b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40825b
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40834e
lea eax, [esp + 0xc]
call fcn.00407ea4
dec ebp
test ebp, ebp
jg 0x40820e
cmp edi, 0xffffffff
je 0x40828e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40828c
mov byte [esp], 0
jmp 0x40834e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4081d2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40828e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004083bc
mov edx, eax
mov ebx, dword [0x4d68f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4082f2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4082f0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4082f2
xor edi, edi
cmp byte [esp], 0
je 0x408318
mov ebx, dword [esi]
test bl, 1
jne 0x40832e
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4082f8
mov byte [esp + 1], 1
jmp 0x40832e
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408318
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4082a5
cmp byte [esp], 0
je 0x40834e
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 0x409178
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d6058], 0
je 0x4091df
cmp word [0x4d6344], 0xd7b2
jne 0x4091a1
cmp dword [0x4d634c], 0
jbe 0x4091a1
mov eax, 0x4d6340
call dword [0x4d635c]
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, 0x40920c
call fcn.00409d10
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d202e], 0
jne 0x4091fb
push 0
push 0x4d29c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4093a8
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 [0x4d2030], 0
je 0x4093d3
mov edx, edi
mov eax, esi
call dword [0x4d2030]
mov ebx, eax
jmp 0x4093e4
mov eax, 8
call fcn.004069b8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d6059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409370
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 0x409414
mov eax, ebx
call fcn.004069d4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bb70
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 0x40bcd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004094e8
cmp si, word [0x4d2a00]
jb 0x40bc08
cmp si, word [0x4d2c00]
ja 0x40bc08
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bc08
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d2a00]
jae 0x40bbe2
mov edi, ebx
dec edi
jmp 0x40bc03
cmp si, word [ebx*8 + 0x4d2a00]
jbe 0x40bbf2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bc03
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d2a04]
call fcn.0040ba90
jmp 0x40bc08
cmp edi, dword [ebp - 8]
jae 0x40bbcc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bcb7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bcb7
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.0040a0b0
push dword [ebp - 0x160]
push 0x40bcf0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a0b0
push dword [ebp - 0x164]
push 0x40bd00
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a0b0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a2e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcdc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409548
ret
Function at 0x40be88
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 0x40bf8c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d8b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d8ba0]
jne 0x40bed4
mov eax, esi
mov edx, 0x4d8ba2
mov ecx, 0x55
call fcn.0040a0b0
push 0x4d8b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bf76
push 0x4d8b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004094e8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf43
cmp byte [0x4d8b84], 0
je 0x40bf08
mov edx, esi
mov eax, ebx
call fcn.0040bd6c
jmp 0x40bf43
mov edx, esi
mov eax, ebx
call fcn.0040bb70
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bf43
cmp dword [esi], 0
je 0x40bf2c
mov eax, esi
mov edx, 0x40bfa4
call fcn.0040a208
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bb70
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a208
push 0x4d8b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d8ba0], bx
mov eax, dword [esi]
call fcn.0040a00c
mov ecx, eax
mov eax, 0x4d8ba2
mov edx, 0xaa
call fcn.0040b9f0
push 0x4d8b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf93
lea eax, [ebp - 4]
call fcn.004094e8
ret
Function at 0x40c1bc
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.004095cc
xor eax, eax
push ebp
push 0x40c3e1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c1fc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c216
mov eax, dword [ebp - 4]
call fcn.0040a00c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b9f0
cmp word [ebp - 0x21a], 0
je 0x40c3cb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c3f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c42c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c42c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c460
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c2e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c494
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c3cb
xor eax, eax
push ebp
push 0x40c3c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bfcc
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 0x40c354
mov eax, dword [ebp - 0x10]
call fcn.004069b8
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.0040a074
jmp 0x40c39f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c4d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c39f
mov eax, dword [ebp - 0x10]
call fcn.004069b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c4d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3cb
cmp dword [ebp - 8], 0
je 0x40c3ba
mov eax, dword [ebp - 8]
call fcn.004069d4
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 0x40c3e8
lea eax, [ebp - 4]
call fcn.004094e8
ret
Function at 0x40c6d0
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.004095cc
xor eax, eax
push ebp
push 0x40c790
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.0040a0b0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a260
mov eax, dword [ebx]
call fcn.0040c598
test al, al
jne 0x40c76d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a0b0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a260
mov eax, dword [ebx]
call fcn.0040c598
test al, al
jne 0x40c76d
mov eax, ebx
call fcn.004094e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c797
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409548
lea eax, [ebp - 4]
call fcn.004094e8
ret
Function at 0x41da70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41dac9
test eax, edx
je 0x41dacc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41da87
movzx eax, word [eax]
sub eax, ecx
jmp 0x41daae
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 0x41daaf
add ecx, 4
js 0x41da9f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41daac
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41daae
xor eax, eax
ret
test eax, eax
je 0x41dad8
test edx, edx
jne 0x41da78
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Function at 0x41e9e8
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.0040a00c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ea52
test ah, 4
je 0x41ea4b
test bl, bl
jne 0x41ea10
mov al, 1
jmp 0x41ea79
test al, 0x10
je 0x41ea18
xor eax, eax
jmp 0x41ea79
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ea3c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41ea79
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41ea79
test al, 0x10
sete al
jmp 0x41ea79
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41ea73
cmp ebx, 3
je 0x41ea73
cmp ebx, 0x7b
je 0x41ea73
mov eax, esi
call fcn.0041e9a8
test al, al
jne 0x41ea77
xor eax, eax
jmp 0x41ea79
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4224ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x422525
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409670
jmp 0x42252e
mov eax, ebx
mov edx, esi
call fcn.004098c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422538
Capabilities:
Get geographical location

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