joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405740
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.00405bcc
mov byte [esp], al
cmp byte [esp], 0
jne 0x4058c9
test edi, edi
je 0x4058c9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405809
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4057e4
cmp edi, 0xffffffff
je 0x4057a5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4057a5
mov byte [esp], 0
jmp 0x4058c9
cmp dword [esi], 1
jg 0x4057e4
cmp dword [esi], 0
jne 0x4057d6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4057d6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4058c9
lea eax, [esp + 0xc]
call fcn.004053fc
dec ebp
test ebp, ebp
jg 0x40578a
cmp edi, 0xffffffff
je 0x405809
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405807
mov byte [esp], 0
jmp 0x4058c9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40574e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405809
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405938
mov edx, eax
mov ebx, dword [0x47b8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40586d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40586b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40586d
xor edi, edi
cmp byte [esp], 0
je 0x405893
mov ebx, dword [esi]
test bl, 1
jne 0x4058a9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405873
mov byte [esp + 1], 1
jmp 0x4058a9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405893
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405820
cmp byte [esp], 0
je 0x4058c9
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 0x406370
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x47db94
cmp dword [ebp + 0xc], 2
jl 0x406384
mov ebx, 0x47dbc4
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4063bc
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402774
mov dword [0x47b01c], eax
mov eax, 0x40277c
mov dword [0x47b020], eax
mov eax, ebx
call fcn.00406254
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4063f1
cmp al, 3
jge 0x4063f1
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x406402
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x40640d
call dword [ecx + eax*4]
cmp dword [0x47b03c], 0
jne 0x406423
mov byte [0x47b044], 1
fnstcw word [0x479018]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004066bc
call fcn.00406304
ret 4

Function at 0x406624
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47b054], 0
je 0x40668b
cmp word [0x47b340], 0xd7b2
jne 0x40664d
cmp dword [0x47b348], 0
jbe 0x40664d
mov eax, 0x47b33c
call dword [0x47b358]
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, 0x4066b8
call fcn.00406f78
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x479022], 0
jne 0x4066a7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408bc8
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 0x408d2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004068c0
cmp si, word [0x4799e8]
jb 0x408c60
cmp si, word [0x479be8]
ja 0x408c60
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408c60
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4799e8]
jae 0x408c3a
mov edi, ebx
dec edi
jmp 0x408c5b
cmp si, word [ebx*8 + 0x4799e8]
jbe 0x408c4a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408c5b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4799ec]
call fcn.00408ae8
jmp 0x408c60
cmp edi, dword [ebp - 8]
jae 0x408c24
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408d0f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d0f
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.00407384
push dword [ebp - 0x160]
push 0x408d48
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407384
push dword [ebp - 0x164]
push 0x408d58
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407384
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004075bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d34
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406920
ret
Function at 0x408ee0
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 0x408fe4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x47dc0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x47dc24]
jne 0x408f2c
mov eax, esi
mov edx, 0x47dc26
mov ecx, 0x55
call fcn.00407384
push 0x47dc0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408fce
push 0x47dc0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004068c0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f9b
cmp byte [0x47dc08], 0
je 0x408f60
mov edx, esi
mov eax, ebx
call fcn.00408dc4
jmp 0x408f9b
mov edx, esi
mov eax, ebx
call fcn.00408bc8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408f9b
cmp dword [esi], 0
je 0x408f84
mov eax, esi
mov edx, 0x408ffc
call fcn.004074dc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408bc8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074dc
push 0x47dc0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x47dc24], bx
mov eax, dword [esi]
call fcn.004072e0
mov ecx, eax
mov eax, 0x47dc26
mov edx, 0xaa
call fcn.00408a48
push 0x47dc0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408feb
lea eax, [ebp - 4]
call fcn.004068c0
ret
Function at 0x409214
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.004069a4
xor eax, eax
push ebp
push 0x409439
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409254
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40926e
mov eax, dword [ebp - 4]
call fcn.004072e0
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408a48
cmp word [ebp - 0x21a], 0
je 0x409423
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409448
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40933d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409448
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40933d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409484
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40933d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409484
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40933d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40933d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409423
xor eax, eax
push ebp
push 0x40941c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409024
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 0x4093ac
mov eax, dword [ebp - 0x10]
call fcn.004044ac
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.00407348
jmp 0x4093f7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40952c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4093f7
mov eax, dword [ebp - 0x10]
call fcn.004044ac
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40952c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409423
cmp dword [ebp - 8], 0
je 0x409412
mov eax, dword [ebp - 8]
call fcn.004044c8
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 0x409440
lea eax, [ebp - 4]
call fcn.004068c0
ret
Function at 0x409728
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.004069a4
xor eax, eax
push ebp
push 0x4097e8
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.00407384
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407534
mov eax, dword [ebx]
call fcn.004095f0
test al, al
jne 0x4097c5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407384
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407534
mov eax, dword [ebx]
call fcn.004095f0
test al, al
jne 0x4097c5
mov eax, ebx
call fcn.004068c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097ef
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406920
lea eax, [ebp - 4]
call fcn.004068c0
ret

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

Disassembly:
cmp eax, edx
je 0x414121
test eax, edx
je 0x414124
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4140df
movzx eax, word [eax]
sub eax, ecx
jmp 0x414106
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 0x414107
add ecx, 4
js 0x4140f7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x414104
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x414106
xor eax, eax
ret
test eax, eax
je 0x414130
test edx, edx
jne 0x4140d0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x416414
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 0x41644d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406a48
jmp 0x416456
mov eax, ebx
mov edx, esi
call fcn.00406ca0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416460
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 0x416482
movzx eax, word [esp]
jmp 0x416484
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x417780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4178a5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417588
mov esi, eax
mov eax, dword [0x47a9dc]
cmp byte [eax], 0
je 0x41784d
mov eax, dword [0x47a8f0]
call fcn.004047dc
call fcn.00404600
jmp [edx]
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417750]
call fcn.00408500
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4178c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417889
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x47a8c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47e620]
call fcn.004086ec
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4178ac
lea eax, [ebp - 4]
mov edx, dword [0x417750]
call fcn.00408624
ret
Function at 0x418938
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418a38
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406ce8
lea eax, [ebp - 4]
call fcn.00406e50
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004072e0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x418a22
mov eax, ebx
call fcn.004044ac
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x418a1b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004072e0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x418a05
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x418a4c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x418a05
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418a22
mov eax, dword [ebp - 0x10]
call fcn.004044c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418a3f
lea eax, [ebp - 4]
call fcn.004068c0
ret

Function at 0x4194d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406d90
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b05c
mov edi, eax
cmp edi, 0x104
jbe 0x419483
mov eax, edi
add eax, eax
call fcn.004044ac
mov esi, eax
jmp 0x419485
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b05c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4194be
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4194a8
mov eax, esp
cmp esi, eax
je 0x4194cb
mov eax, esi
call fcn.004044c8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x419504
cmp bl, 0
je 0x419500
cmp bl, 0x41
jl 0x4194fb
cmp bl, 0x5a
jg 0x4194fb
or bl, 0x20
xor al, bl
inc esi
jmp 0x4194df
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x419444

Function at 0x419730
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407384
add esp, 0x800
pop ebx
ret
Function at 0x41d8bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x38]
cmp eax, edx
jge 0x41d8ec
lea eax, [ebp - 0x38]
call fcn.0041c01c
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x34]
cmp eax, edx
jge 0x41d90a
call fcn.0041aef0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jle 0x41d917
call fcn.0041aef0
call fcn.0041d86c
cmp dword [0x47a6f0], 0
jne 0x41d939
mov edx, 0x588795
mov eax, dword [0x47a5e4]
call fcn.0041abc0
mov dword [0x47a6f0], eax
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jge 0x41d985
inc dword [ebp - 0x24]
imul eax, dword [ebp - 0x1c], 0x32c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
call fcn.00404770
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x28]
jne 0x41d979
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 1
jl 0x41d944
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x32a
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
call fcn.00404770
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x28]
jne 0x41d9bd
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x1c]
call fcn.00404764
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 3
jne 0x41d98a
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jle 0x41d9f0
call fcn.0041aef0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41da2c
call fcn.0041aa58
imul eax, dword [ebp - 0x24], 0x3a7
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 0x34a
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, 0x376
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x442308
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 4], eax
add dword [ebp - 0x10], 0x30f
mov eax, eax
add edx, 0xa
sub edx, ebx
mov eax, eax
jmp 0x442324
imul eax, dword [0x47a850], 0x8088405
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x18]
cmp eax, edx
jle 0x44234d
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.0042f1f0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x10]
call fcn.00404764
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x18]
cmp eax, edx
jle 0x44237c
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x10]
call fcn.00404764
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x4423a7
imul eax, dword [ebp - 0x1c], 0x1b9
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jne 0x442358
mov eax, dword [ebp - 0xc]
mov dword [0x47a850], eax
imul eax, dword [ebp - 0x1c], 0x1a6
mov dword [ebp - 0x18], eax
mov eax, 0x38c
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
imul eax, dword [ebp - 0x1c], 0x1b3
mov dword [ebp - 0x18], eax
mov eax, 0x379
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
sub eax, 0x17f
mov dword [ebp - 0x18], eax
mov eax, 0x366
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00408108
mov eax, edx
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
sub eax, 0x19a
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0041a99c
sub dword [ebp - 0x18], 0x167
mov eax, 0x36d
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
call fcn.00404770
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jne 0x442468
mov eax, dword [ebp - 0x10]
imul dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
call fcn.00404770
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
cmp eax, edx
jle 0x442492
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jne 0x442440
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret