joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442b98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442bd0]
push pe_nt_image_headers32
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442bb1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442bc0
or bl, 4
test esi, 0x20000000
je 0x442bcb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449294
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4492a6
add esp, 0xfffffff0
call fcn.00403a10
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419908
mov eax, dword [0x453d88]
mov dword [eax + 4], ebx
mov dword [eax], 0x449638
mov eax, dword [0x453d94]
mov dword [eax + 4], ebx
mov dword [eax], 0x449644
mov eax, ebx
call fcn.00449650
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x445a68
push eax
push 0
push 0
mov eax, dword [0x453ec0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b330]
call fcn.0041c798
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b330]
call fcn.0041c798
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b330]
call fcn.0041c798
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00449aa0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449968
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449968
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449968
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4493e3
call fcn.00403a68
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44974c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4498f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4498d8
mov dl, 1
mov eax, dword [0x411f3c]
call fcn.004036c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404464
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4498c7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043768c
test al, al
je 0x4498ba
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x449908
lea eax, [ebp - 0x254]
call fcn.00408f28
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4498ba
xor eax, eax
push ebp
push 0x4498b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x449940
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44989c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004046d4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44989c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004046d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4498ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4497bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415aa0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4498fe
lea eax, [ebp - 0x260]
call fcn.00404464
ret

Function at 0x44a240
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x455b40]
cmp byte [eax + 0xa5], 0
jne 0x44a2b1
cmp dword [0x455b58], 0
jne 0x44a272
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a1fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455b58], eax
cmp dword [0x455b54], 0
jne 0x44a28d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455b54], eax
cmp dword [0x455b5c], 0
jne 0x44a2b1
push esp
push 0
push 0
push 0x44a1a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455b5c], eax
pop edx
ret
Function at 0x44a944
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455b40]
cmp dword [eax + 0x30], 0
je 0x44a9ee
cmp dword [ebx + 0x94], 0
jne 0x44a9e8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a8d4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a9e8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a9ae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a9e8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413e9c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a9bd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b54c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b581
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404554
jmp 0x44b58e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044b8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c51c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c55d
mov eax, esi
call fcn.00432e44
test al, al
je 0x44c55d
mov eax, dword [ebx + 0x84]
call fcn.00432be4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c55d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432be4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44e9b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404914
mov edi, dword [ebp + 8]
add edi, 0xffffff00
xor eax, eax
push ebp
push 0x44ead1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x46
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.00404724
test eax, eax
jle 0x44eaa0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x18]
add eax, 0xba
xor edx, edx
push edx
push eax
lea eax, [ebx + 1]
cdq
call fcn.00405250
mov ebx, eax
mov eax, dword [ebp - 0x18]
add eax, 0xba
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [edi + ebx]
add eax, esi
cdq
call fcn.00405250
mov esi, eax
mov al, byte [edi + ebx]
mov dl, byte [edi + esi]
mov byte [edi + ebx], dl
mov byte [edi + esi], al
xor eax, eax
mov al, byte [edi + ebx]
xor edx, edx
mov dl, byte [edi + esi]
add eax, edx
mov edx, dword [ebp - 0x18]
add edx, 0xba
mov ecx, edx
xor edx, edx
div ecx
mov al, byte [edi + edx]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
mov cl, byte [ebp - 0xd]
xor dl, cl
call fcn.0040464c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
call fcn.0040472c
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x44ea13
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004044b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ead8
lea eax, [ebp - 0x20]
call fcn.00404464
lea eax, [ebp - 0x14]
call fcn.00404464
lea eax, [ebp - 4]
call fcn.00404464
ret
Function at 0x4045d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406f4c
test esi, esi
jne 0x404610
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.00407088
jmp 0x40462e
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044bc
mov edi, eax
test esi, esi
je 0x40462e
cmp dword [ebx], 0
je 0x40462e
dec esi
jmp 0x404617
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4063a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d6050], 0
je 0x406409
cmp word [0x4d632c], 0xd7b2
jne 0x4063d1
cmp dword [0x4d6334], 0
jbe 0x4063d1
mov eax, 0x4d6328
call dword [0x4d6344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x4d37a0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406434
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4d3030], 0
jne 0x406425
push 0
push 0x4d3798
push 0x4d37a0
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406594
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4d3038], 0
je 0x4065ba
mov edx, esi
mov eax, ebx
call dword [0x4d3038]
jmp 0x4065c9
mov eax, 8
call fcn.00404204
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4d6051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40655c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408d6c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408ed3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406f4c
cmp si, word [0x4d37e0]
jb 0x408e06
cmp si, word [0x4d39e0]
ja 0x408e06
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408e06
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d37e0]
jae 0x408de0
mov edi, ebx
dec edi
jmp 0x408e01
cmp si, word [ebx*8 + 0x4d37e0]
jbe 0x408df0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408e01
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4d37e4]
call fcn.00408c7c
jmp 0x408e06
cmp edi, dword [ebp - 0xc]
jae 0x408dca
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408eb5
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x408eb5
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407134
push dword [ebp - 0x164]
push 0x408ef0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407134
push dword [ebp - 0x168]
push 0x408f00
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407134
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004074ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408eda
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406f44
ret
Function at 0x40908c
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 0x409191
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d8b58
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x4d8b70]
jne 0x4090d8
mov eax, esi
mov edx, 0x4d8b74
mov ecx, 0x55
call fcn.00407134
push 0x4d8b58
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40917b
push 0x4d8b58
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406f4c
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409149
cmp byte [0x4d8b54], 0
je 0x40910e
mov edx, esi
mov eax, ebx
call fcn.00408f6c
jmp 0x409149
mov edx, esi
mov eax, ebx
call fcn.00408d6c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409149
cmp dword [esi], 0
je 0x409132
mov eax, esi
mov edx, 0x4091ac
call fcn.00407348
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408d6c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407348
push 0x4d8b58
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x4d8b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406fd8
push eax
push 0x4d8b74
call sub.KERNEL32.DLL_lstrcpynW
push 0x4d8b58
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409198
lea eax, [ebp - 4]
call fcn.00406f3c
ret
Function at 0x4093d0
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.00406f34
xor eax, eax
push ebp
push 0x4095b5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409410
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40942a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406fd8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40959f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4094b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4094b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4094b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40962c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40959f
xor eax, eax
push ebp
push 0x409598
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004091d4
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 0x409528
mov eax, dword [ebp - 0x10]
call fcn.00404204
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.004070f8
jmp 0x409573
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40966c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409573
mov eax, dword [ebp - 0x10]
call fcn.00404204
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40966c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004070f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40959f
cmp dword [ebp - 8], 0
je 0x40958e
mov eax, dword [ebp - 8]
call fcn.00404220
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 0x4095bc
lea eax, [ebp - 4]
call fcn.00406f3c
ret
Function at 0x409880
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406f34
mov eax, dword [ebp - 0x21c]
call fcn.00406f34
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409a1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406f4c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406fd8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409920
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409932
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40991d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4099eb
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40995b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004093d0
cmp dword [ebp - 0x220], 0
je 0x409993
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409774
pop ecx
mov ebx, eax
jmp 0x4099eb
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040908c
mov eax, dword [ebp - 0x224]
call fcn.00409774
pop ecx
mov ebx, eax
test bl, bl
jne 0x4099de
cmp byte [0x4d8b54], 0
jne 0x4099de
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040908c
mov eax, dword [ebp - 0x228]
call fcn.00409774
pop ecx
mov ebx, eax
test bl, bl
jne 0x4099eb
push ebp
call fcn.00409824
pop ecx
mov ebx, eax
test bl, bl
je 0x409a01
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a26
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406f44
ret

Function at 0x40d16c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4d8c4c
push 0xa
push 0x40d200
mov eax, dword [0x4d8c3c]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d190
call fcn.0041985c
push ebx
mov eax, dword [0x4d8c3c]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d1a7
call fcn.0041985c
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d1b9
call fcn.0041985c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4d8c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4d8c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4d8c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4d8c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4d8c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4d8c64], edx
pop esi
pop ebx
ret
Function at 0x411f8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412035
test eax, edx
je 0x412038
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411fb5
push edx
mov edx, eax
mov eax, esp
call fcn.00407150
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411fcb
push eax
lea eax, [esp + 8]
call fcn.00407150
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411fda
movzx eax, word [eax]
sub eax, ecx
jmp 0x412001
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 0x41201b
add ecx, 4
js 0x411ff2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412018
push eax
mov eax, ecx
mov edx, 2
call fcn.00406634
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411fff
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412001
xor eax, eax
ret
test eax, eax
je 0x412048
test edx, edx
jne 0x411f9c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406fd8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41327e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41329f
cmp ebx, 3
je 0x41329f
cmp ebx, 0x7b
je 0x41329f
mov eax, esi
call fcn.00413220
test al, al
jne 0x4132a3
xor eax, eax
jmp 0x4132a5
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406fd8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4132c1
test al, 0x10
jne 0x4132c5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x416980
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 0x4169b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407088
jmp 0x4169c2
mov eax, ebx
mov edx, esi
call fcn.00406f4c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4169cc
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 0x4169ee
movzx eax, word [esp]
jmp 0x4169f0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret