joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40573c
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.00405bc8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4058c5
test edi, edi
je 0x4058c5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405805
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4057e0
cmp edi, 0xffffffff
je 0x4057a1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4057a1
mov byte [esp], 0
jmp 0x4058c5
cmp dword [esi], 1
jg 0x4057e0
cmp dword [esi], 0
jne 0x4057d2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4057d2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4058c5
lea eax, [esp + 0xc]
call fcn.004053f8
dec ebp
test ebp, ebp
jg 0x405786
cmp edi, 0xffffffff
je 0x405805
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405803
mov byte [esp], 0
jmp 0x4058c5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40574a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405805
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405934
mov edx, eax
mov ebx, dword [0x41f8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405869
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405867
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405869
xor edi, edi
cmp byte [esp], 0
je 0x40588f
mov ebx, dword [esi]
test bl, 1
jne 0x4058a5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40586f
mov byte [esp + 1], 1
jmp 0x4058a5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40588f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40581c
cmp byte [esp], 0
je 0x4058c5
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 0x40636c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x421b94
cmp dword [ebp + 0xc], 2
jl 0x406380
mov ebx, 0x421bc4
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 0x4063b8
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402794
mov dword [0x41f01c], eax
mov eax, 0x40279c
mov dword [0x41f020], eax
mov eax, ebx
call fcn.00406250
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 0x4063ed
cmp al, 3
jge 0x4063ed
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4063fe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x406409
call dword [ecx + eax*4]
cmp dword [0x41f03c], 0
jne 0x40641f
mov byte [0x41f044], 1
fnstcw word [0x41d018]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004066b8
call fcn.00406300
ret 4

Function at 0x406620
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41f054], 0
je 0x406687
cmp word [0x41f340], 0xd7b2
jne 0x406649
cmp dword [0x41f348], 0
jbe 0x406649
mov eax, 0x41f33c
call dword [0x41f358]
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, 0x4066b4
call fcn.00406d98
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41d022], 0
jne 0x4066a3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408660
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 0x4087c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004068a4
cmp si, word [0x41d9e8]
jb 0x4086f8
cmp si, word [0x41dbe8]
ja 0x4086f8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4086f8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41d9e8]
jae 0x4086d2
mov edi, ebx
dec edi
jmp 0x4086f3
cmp si, word [ebx*8 + 0x41d9e8]
jbe 0x4086e2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4086f3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41d9ec]
call fcn.00408580
jmp 0x4086f8
cmp edi, dword [ebp - 8]
jae 0x4086bc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4087a7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4087a7
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.00406f30
push dword [ebp - 0x160]
push 0x4087e0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406f30
push dword [ebp - 0x164]
push 0x4087f0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406f30
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004070e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087cc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406904
ret
Function at 0x408978
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 0x408a7c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x421c0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x421c24]
jne 0x4089c4
mov eax, esi
mov edx, 0x421c26
mov ecx, 0x55
call fcn.00406f30
push 0x421c0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a66
push 0x421c0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004068a4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a33
cmp byte [0x421c08], 0
je 0x4089f8
mov edx, esi
mov eax, ebx
call fcn.0040885c
jmp 0x408a33
mov edx, esi
mov eax, ebx
call fcn.00408660
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408a33
cmp dword [esi], 0
je 0x408a1c
mov eax, esi
mov edx, 0x408a94
call fcn.00407008
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408660
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407008
push 0x421c0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x421c24], bx
mov eax, dword [esi]
call fcn.00406e9c
mov ecx, eax
mov eax, 0x421c26
mov edx, 0xaa
call fcn.004084e0
push 0x421c0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a83
lea eax, [ebp - 4]
call fcn.004068a4
ret
Function at 0x408cac
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.00406988
xor eax, eax
push ebp
push 0x408ed1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408cec
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408d06
mov eax, dword [ebp - 4]
call fcn.00406e9c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004084e0
cmp word [ebp - 0x21a], 0
je 0x408ebb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ee0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ee0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f1c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408dd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408ebb
xor eax, eax
push ebp
push 0x408eb4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408abc
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 0x408e44
mov eax, dword [ebp - 0x10]
call fcn.004044b4
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.00406ef4
jmp 0x408e8f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408fc4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e8f
mov eax, dword [ebp - 0x10]
call fcn.004044b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408fc4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ebb
cmp dword [ebp - 8], 0
je 0x408eaa
mov eax, dword [ebp - 8]
call fcn.004044d0
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 0x408ed8
lea eax, [ebp - 4]
call fcn.004068a4
ret
Function at 0x4091c0
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.00406988
xor eax, eax
push ebp
push 0x409280
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.00406f30
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407060
mov eax, dword [ebx]
call fcn.00409088
test al, al
jne 0x40925d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406f30
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407060
mov eax, dword [ebx]
call fcn.00409088
test al, al
jne 0x40925d
mov eax, ebx
call fcn.004068a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409287
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406904
lea eax, [ebp - 4]
call fcn.004068a4
ret

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

Disassembly:
cmp eax, edx
je 0x413b91
test eax, edx
je 0x413b94
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x413b4f
movzx eax, word [eax]
sub eax, ecx
jmp 0x413b76
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 0x413b77
add ecx, 4
js 0x413b67
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x413b74
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x413b76
xor eax, eax
ret
test eax, eax
je 0x413ba0
test edx, edx
jne 0x413b40
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x415e1c
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 0x415e55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004069fc
jmp 0x415e5e
mov eax, ebx
mov edx, esi
call fcn.00406b78
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415e68
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
test eax, eax
jle 0x415e8a
movzx eax, word [esp]
jmp 0x415e8c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x417188
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 0x4172ad
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416f90
mov esi, eax
mov eax, dword [0x41e694]
cmp byte [eax], 0
je 0x417255
mov eax, dword [0x41e5ac]
call fcn.004047d8
call fcn.00404608
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417158]
call fcn.00407f98
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4172c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x417291
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41e584]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42262c]
call fcn.00408184
push eax
call sub.user32.dll_LoadStringW
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 0x4172b4
lea eax, [ebp - 4]
mov edx, dword [0x417158]
call fcn.004080bc
ret
Function at 0x418340
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 0x418440
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406bc0
lea eax, [ebp - 4]
call fcn.00406cd4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e9c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41842a
mov eax, ebx
call fcn.004044b4
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x418423
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.00406e9c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41840d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x418454
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41840d
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 0x41842a
mov eax, dword [ebp - 0x10]
call fcn.004044d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418447
lea eax, [ebp - 4]
call fcn.004068a4
ret

Function at 0x418ee0
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.00406c68
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040acd0
mov edi, eax
cmp edi, 0x104
jbe 0x418e8b
mov eax, edi
add eax, eax
call fcn.004044b4
mov esi, eax
jmp 0x418e8d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040acd0
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418ec6
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 0x418eb0
mov eax, esp
cmp esi, eax
je 0x418ed3
mov eax, esi
call fcn.004044d0
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 0x418f0c
cmp bl, 0
je 0x418f08
cmp bl, 0x41
jl 0x418f03
cmp bl, 0x5a
jg 0x418f03
or bl, 0x20
xor al, bl
inc esi
jmp 0x418ee7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418e4c

Function at 0x419138
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
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00406f30
add esp, 0x800
pop ebx
ret
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x6caa1130
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6051071c
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4019ef
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [0x416270]
cmp eax, 0xffffffff
je 0x401a37
mov eax, dword [0x416270]
sub esp, 0xc
push eax
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test eax, eax
jne 0x401a37
call sub.KERNEL32.dll_GetLastError
sub esp, 8
push eax
push 0x40b194
call sym._report_system_error
add esp, 0x10
mov dword [ebp - 0x28], 1
jmp 0x401c2f
mov edx, dword [0x416260]
mov eax, dword [0x416220]
cmp edx, eax
jbe 0x401a57
call sym._done
mov dword [ebp - 0x28], 1
jmp 0x401c2f
mov ecx, dword [0x416260]
mov eax, dword [0x40a010]
add eax, 9
mov edx, dword [0x416d50]
push ecx
push eax
push edx
push str._1_s___2_s___3_s_
call sym._format_string
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
sub esp, 8
push 0x2f
push dword [ebp - 0x18]
call sym._strchr
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401b26
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
sub esp, 8
push 0
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_CreateDirectoryA
add esp, 8
test eax, eax
jne 0x401b1b
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xb7
je 0x401b1b
sub esp, 8
push dword [ebp - 0x1c]
push str.Failed_to_create_directory__1_s_
call sym._format_string
add esp, 0x10
mov dword [ebp - 0x10], eax
sub esp, 0xc
push dword [ebp - 0x1c]
call sym._free
add esp, 0x10
sub esp, 8
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sym._report_system_error
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x10]
call sym._free
add esp, 0x10
mov dword [ebp - 0x28], 1
jmp 0x401c2f
mov eax, dword [ebp - 0x18]
mov byte [eax], 0x5c
jmp 0x401a84
sub esp, 4
push 0
push 0
push 2
push 0
push 1
push 2
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_CreateFileA
add esp, 4
mov dword [0x416270], eax
mov eax, dword [0x416270]
cmp eax, 0xffffffff
jne 0x401ba6
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0xc], eax
sub esp, 8
push dword [ebp - 0x1c]
push str.Failed_to_create_file__1_s_
call sym._format_string
add esp, 0x10
mov dword [ebp - 8], eax
sub esp, 0xc
push dword [ebp - 0x1c]
call sym._free
add esp, 0x10
sub esp, 8
push dword [ebp - 0xc]
push dword [ebp - 8]
call sym._report_system_error
add esp, 0x10
sub esp, 0xc
push dword [ebp - 8]
call sym._free
add esp, 0x10
mov dword [ebp - 0x28], 1
jmp 0x401c2f
sub esp, 0xc
push dword [ebp - 0x1c]
call sym._free
add esp, 0x10
mov eax, dword [0x416260]
lea ebx, [eax + 1]
mov eax, dword [0x416260]
sub esp, 0xc
push eax
call sym._strlen
add esp, 0x10
lea eax, [ebx + eax]
mov dword [0x416260], eax
mov eax, dword [0x416260]
sub esp, 0xc
push eax
call sym._atoll
add esp, 0x10
mov dword [0x416280], eax
mov dword [0x416284], edx
mov eax, dword [0x416280]
mov edx, dword [0x416284]
mov dword [0x416290], eax
mov dword [0x416294], edx
mov eax, dword [0x416260]
lea ebx, [eax + 1]
mov eax, dword [0x416260]
sub esp, 0xc
push eax
call sym._strlen
add esp, 0x10
lea eax, [ebx + eax]
mov dword [0x416260], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 4]
leave
ret