joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404774
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.00406428
test esi, esi
jne 0x4047aa
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.00406580
jmp 0x4047c8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404658
mov edi, eax
test esi, esi
je 0x4047c8
cmp dword [ebx], 0
je 0x4047c8
dec esi
jmp 0x4047b1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405618
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.004058b4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057a2
test edi, edi
je 0x4057a2
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4056e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4056bd
cmp edi, 0xffffffff
je 0x40567d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40567d
mov byte [esp], 0
jmp 0x4057a2
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4056bd
test ebx, ebx
jne 0x4056af
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4056af
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057a2
lea eax, [esp + 0xc]
call fcn.004053ac
dec ebp
test ebp, ebp
jg 0x405662
cmp edi, 0xffffffff
je 0x4056e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056e0
mov byte [esp], 0
jmp 0x4057a2
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405626
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4056e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405810
mov edx, eax
mov ebx, dword [0x4448f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405746
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405744
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405746
xor edi, edi
cmp byte [esp], 0
je 0x40576c
mov ebx, dword [esi]
test bl, 1
jne 0x405782
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40574c
mov byte [esp + 1], 1
jmp 0x405782
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40576c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4056f9
cmp byte [esp], 0
je 0x4057a2
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 0x406184
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x444054], 0
je 0x4061eb
cmp word [0x444340], 0xd7b2
jne 0x4061ad
cmp dword [0x444348], 0
jbe 0x4061ad
mov eax, 0x44433c
call dword [0x444358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x43b9c0
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, 0x406218
call fcn.00406bac
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43b02e], 0
jne 0x406207
push 0
push 0x43b9ba
push 0x43b9c0
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40822c
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 0x408391
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406428
cmp si, word [0x43b9f8]
jb 0x4082c4
cmp si, word [0x43bbf8]
ja 0x4082c4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4082c4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x43b9f8]
jae 0x40829e
mov edi, ebx
dec edi
jmp 0x4082bf
cmp si, word [ebx*8 + 0x43b9f8]
jbe 0x4082ae
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4082bf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x43b9fc]
call fcn.0040814c
jmp 0x4082c4
cmp edi, dword [ebp - 8]
jae 0x408288
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408373
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408373
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.00406f20
push dword [ebp - 0x160]
push 0x4083ac
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406f20
push dword [ebp - 0x164]
push 0x4083bc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406f20
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004070ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408398
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406488
ret
Function at 0x408544
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 0x408648
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x446b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x446b9c]
jne 0x408590
mov eax, esi
mov edx, 0x446b9e
mov ecx, 0x55
call fcn.00406f20
push 0x446b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408632
push 0x446b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406428
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4085ff
cmp byte [0x446b80], 0
je 0x4085c4
mov edx, esi
mov eax, ebx
call fcn.00408428
jmp 0x4085ff
mov edx, esi
mov eax, ebx
call fcn.0040822c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4085ff
cmp dword [esi], 0
je 0x4085e8
mov eax, esi
mov edx, 0x408660
call fcn.0040700c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040822c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040700c
push 0x446b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x446b9c], bx
mov eax, dword [esi]
call fcn.00406e8c
mov ecx, eax
mov eax, 0x446b9e
mov edx, 0xaa
call fcn.004080ac
push 0x446b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40864f
lea eax, [ebp - 4]
call fcn.00406428
ret
Function at 0x408878
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.0040650c
xor eax, eax
push ebp
push 0x408a9d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4088b8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4088d2
mov eax, dword [ebp - 4]
call fcn.00406e8c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004080ac
cmp word [ebp - 0x21a], 0
je 0x408a87
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408aac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408aac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ae8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ae8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4089a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408a87
xor eax, eax
push ebp
push 0x408a80
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408688
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 0x408a10
mov eax, dword [ebp - 0x10]
call fcn.004043b4
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.00406ee4
jmp 0x408a5b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408b90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408a5b
mov eax, dword [ebp - 0x10]
call fcn.004043b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408b90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ee4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a87
cmp dword [ebp - 8], 0
je 0x408a76
mov eax, dword [ebp - 8]
call fcn.004043d0
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 0x408aa4
lea eax, [ebp - 4]
call fcn.00406428
ret
Function at 0x408d8c
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.0040650c
xor eax, eax
push ebp
push 0x408e4c
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.00406f20
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407064
mov eax, dword [ebx]
call fcn.00408c54
test al, al
jne 0x408e29
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406f20
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407064
mov eax, dword [ebx]
call fcn.00408c54
test al, al
jne 0x408e29
mov eax, ebx
call fcn.00406428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e53
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406488
lea eax, [ebp - 4]
call fcn.00406428
ret

Function at 0x4095ac
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 0x414d78
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.00406e8c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414de2
test ah, 4
je 0x414ddb
test bl, bl
jne 0x414da0
mov al, 1
jmp 0x414e09
test al, 0x10
je 0x414da8
xor eax, eax
jmp 0x414e09
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x414dcc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x414e09
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x414e09
test al, 0x10
sete al
jmp 0x414e09
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x414e03
cmp ebx, 3
je 0x414e03
cmp ebx, 0x7b
je 0x414e03
mov eax, esi
call fcn.00414d38
test al, al
jne 0x414e07
xor eax, eax
jmp 0x414e09
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x414e10
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.00406e8c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x414eb7
test esi, 0x400
jne 0x414e4c
test esi, 0x10
setne bl
jmp 0x414ee7
cmp byte [esp], 0
je 0x414e80
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x414ee7
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x414ee7
test esi, 0x10
je 0x414e8c
mov bl, 1
jmp 0x414ee7
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x414eb3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x414ee7
mov bl, 1
jmp 0x414ee7
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x414ee1
cmp eax, 3
je 0x414ee1
cmp eax, 0xa1
je 0x414ee1
cmp eax, 0x7b
je 0x414ee1
cmp eax, 0x35
je 0x414ee1
cmp eax, 0x15
je 0x414ee1
cmp eax, 0x43
jne 0x414ee5
xor ebx, ebx
jmp 0x414ee7
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x414ef0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00406e8c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x414f45
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414f3f
test ah, 4
je 0x414f3f
test al, 0x10
je 0x414f3f
mov eax, esi
call fcn.00406e8c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x414f45
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4188f4
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 0x41892d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406580
jmp 0x418936
mov eax, ebx
mov edx, esi
call fcn.004067d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418940
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 0x418962
movzx eax, word [esp]
jmp 0x418964
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x419ab4
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 0x419bd9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004198bc
mov esi, eax
mov eax, dword [0x443c60]
cmp byte [eax], 0
je 0x419b81
mov eax, dword [0x443b1c]
call fcn.00404890
call fcn.00404508
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x419a84]
call fcn.00407b60
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 0x419bf4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419bbd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x443ae4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x446c4c]
call fcn.00407d4c
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 0x419be0
lea eax, [ebp - 4]
mov edx, dword [0x419a84]
call fcn.00407c84
ret

Function at 0x41b794
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.004068f4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040958c
mov edi, eax
cmp edi, 0x104
jbe 0x41b73f
mov eax, edi
add eax, eax
call fcn.004043b4
mov esi, eax
jmp 0x41b741
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040958c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41b77a
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 0x41b764
mov eax, esp
cmp esi, eax
je 0x41b787
mov eax, esi
call fcn.004043d0
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 0x41b7c0
cmp bl, 0
je 0x41b7bc
cmp bl, 0x41
jl 0x41b7b7
cmp bl, 0x5a
jg 0x41b7b7
or bl, 0x20
xor al, bl
inc esi
jmp 0x41b79b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41b700

Function at 0x41b9d4
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.00406f20
add esp, 0x800
pop ebx
ret
Function at 0x4221e4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push esi
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x4222a2
cmp dword [esp + 4], 0
jbe 0x4222a2
inc dword [esp + 8]
mov eax, dword [esp + 8]
call fcn.004043b4
mov edi, eax
cmp dword [0x43cad8], 2
sete bl
mov ebp, dword [esp + 4]
dec ebp
cmp ebp, 0
jb 0x42229b
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebp
push esi
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x422295
push esp
push 0x2001f
push 0
push edi
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x422295
test bl, bl
je 0x422285
mov eax, dword [esp]
call fcn.004221e4
push edi
push esi
call sub.advapi32.dll_RegDeleteKeyW
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
dec ebp
cmp ebp, 0xffffffff
jne 0x422245
mov eax, edi
call fcn.004043d0
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4222ac
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x422405
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push 0
mov eax, esi
call fcn.00406e8c
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4223ea
mov eax, dword [ebp - 0xc]
call fcn.004221e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 8]
mov edx, esi
call fcn.00406820
mov dx, 0x5c
mov eax, dword [ebp - 8]
call fcn.004221bc
mov ebx, eax
test ebx, ebx
je 0x4223e8
mov eax, dword [ebp - 8]
call fcn.00406e8c
mov edx, eax
mov ecx, ebx
dec ecx
lea eax, [ebp - 4]
call fcn.00406580
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push 0
mov eax, dword [ebp - 4]
call fcn.00406e8c
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4223e8
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x4223e8
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406820
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 1
call fcn.0040721c
mov eax, dword [ebp - 4]
call fcn.00406e8c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [ebp - 0x10], 0
ja 0x4223e8
cmp dword [ebp - 0x18], 1
ja 0x4223e8
mov esi, dword [ebp - 8]
test esi, esi
je 0x4223d2
sub esi, 4
mov esi, dword [esi]
mov eax, ebx
dec eax
mov ecx, esi
sub ecx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040721c
jmp 0x42230d
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42240c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406488
ret

Function at 0x42245c
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push esp
push 0x20006
push 0
mov eax, edi
call fcn.00406e8c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4224a3
mov eax, ebp
call fcn.00406e8c
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4224ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.00406428
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00406e8c
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x422563
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406e8c
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x42255a
cmp dword [ebp - 0x10], 1
jne 0x42255a
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x42251b
adc edx, 0
mov eax, esi
call fcn.00406f8c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x422546
mov eax, esi
call fcn.00406428
jmp 0x42255a
mov bl, 1
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x422552
adc edx, 0
dec edx
mov eax, esi
call fcn.00406f8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00406e8c
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4225db
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406e8c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4225d2
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4