joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b330
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 0x44b4db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44b4bc
mov dl, 1
mov eax, dword [0x412458]
call fcn.00403eac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c14
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44b4ab
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.0043933c
test al, al
je 0x44b49e
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, 0x44b4ec
lea eax, [ebp - 0x254]
call fcn.004095a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44b49e
xor eax, eax
push ebp
push 0x44b497
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44b524
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44b480
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e84
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 0x44b480
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b49e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b3a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415f34
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 0x44b4e2
lea eax, [ebp - 0x260]
call fcn.00404c14
ret

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

Disassembly:
push ecx
mov eax, dword [0x458bb0]
cmp byte [eax + 0xa5], 0
jne 0x44be81
cmp dword [0x458bc8], 0
jne 0x44be42
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44bdcc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458bc8], eax
cmp dword [0x458bc4], 0
jne 0x44be5d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458bc4], eax
cmp dword [0x458bcc], 0
jne 0x44be81
push esp
push 0
push 0
push 0x44bd70
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458bcc], eax
pop edx
ret
Function at 0x44bf78
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44bf8f
add esp, 0xfffffff0
call fcn.004041e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419d44
mov eax, dword [0x456f90]
cmp word [eax + 2], 0
jne 0x44bfb7
mov eax, dword [0x456f90]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d650
mov eax, dword [0x457038]
cmp word [eax + 2], 0
jne 0x44bfd1
mov eax, dword [0x457038]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d848
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41203c]
call fcn.00403eac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41203c]
call fcn.00403eac
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bf18]
call fcn.00421b98
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44c158
mov eax, dword [0x456eb8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421f68
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44dde8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456eb8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cbe0
test eax, eax
je 0x44c0c6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f98
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cc08
test eax, eax
je 0x44c0da
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404e84
mov eax, dword [0x456dbc]
cmp byte [eax], 0
jne 0x44c10e
mov eax, ebx
call fcn.0044c280
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044dfc4
mov eax, ebx
call fcn.0044e988
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c14e
call fcn.00404240
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c500
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bb0]
cmp dword [eax + 0x30], 0
je 0x44c5aa
cmp dword [ebx + 0x94], 0
jne 0x44c5a4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c490
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44c5a4
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 0x44c56a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c5a4
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.004143a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c579
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44d10c
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 0x44d141
push pe_nt_image_headers32
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.00404d04
jmp 0x44d14e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c68
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e1a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44e1e1
mov eax, esi
call fcn.00434b44
test al, al
je 0x44e1e1
mov eax, dword [ebx + 0x84]
call fcn.00434840
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e1e1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434840
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4045a4
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.00406a64
test esi, esi
jne 0x4045dc
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.00406ba0
jmp 0x4045fa
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044e8
mov edi, eax
test esi, esi
je 0x4045fa
cmp dword [ebx], 0
je 0x4045fa
dec esi
jmp 0x4045e3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e64
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d1054], 0
je 0x405ec5
cmp word [0x4d1330], 0xd7b2
jne 0x405e8d
cmp dword [0x4d1338], 0
jbe 0x405e8d
mov eax, 0x4d132c
call dword [0x4d1348]
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
push 0x405ef0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ce030], 0
jne 0x405ee1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406050
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 [0x4ce034], 0
je 0x406076
mov edx, esi
mov eax, ebx
call dword [0x4ce034]
jmp 0x406085
mov eax, 8
call fcn.00404230
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4d1055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406018
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 0x408a48
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 0x408baf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a64
cmp si, word [0x4ce7d0]
jb 0x408ae2
cmp si, word [0x4ce9d0]
ja 0x408ae2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408ae2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ce7d0]
jae 0x408abc
mov edi, ebx
dec edi
jmp 0x408add
cmp si, word [ebx*8 + 0x4ce7d0]
jbe 0x408acc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408add
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4ce7d4]
call fcn.00408958
jmp 0x408ae2
cmp edi, dword [ebp - 0xc]
jae 0x408aa6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408b91
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b91
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.00406c4c
push dword [ebp - 0x164]
push 0x408bcc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c4c
push dword [ebp - 0x168]
push 0x408bdc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c4c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bb6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a5c
ret
Function at 0x408be0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408dc6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d3b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4d3b74]
cmp ax, word [ebp - 2]
jne 0x408c38
mov eax, dword [ebp - 6]
mov edx, 0x4d3b78
mov ecx, 0x55
call fcn.00406c4c
push 0x4d3b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408db0
push 0x4d3b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406a64
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d78
cmp byte [0x4d3b58], 0
je 0x408d2e
call dword [0x4d3b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4d3b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408d27
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4d3b4c]
test al, al
je 0x408d00
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404230
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4d3b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408cf5
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408cf1
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408cde
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d78
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4d3b54]
cmp dword [ebp - 0x10], 0
je 0x408d26
mov eax, dword [ebp - 0x10]
call fcn.0040424c
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408a48
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408d78
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408d5d
mov eax, dword [ebp - 6]
mov edx, 0x408de0
call fcn.00406e60
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408a48
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406e60
mov eax, dword [ebp - 6]
push 0x4d3b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4d3b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406af0
push eax
push 0x4d3b78
call sub.kernel32.dll_lstrcpynW
push 0x4d3b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dcd
lea eax, [ebp - 0x1c]
call fcn.00406a54
ret
Function at 0x409004
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.00406a4c
xor eax, eax
push ebp
push 0x4091e9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409044
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40905e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406af0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4091d3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4090ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4090ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40922c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4090ed
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409260
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4091d3
xor eax, eax
push ebp
push 0x4091cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408e08
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 0x40915c
mov eax, dword [ebp - 0x10]
call fcn.00404230
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.00406c10
jmp 0x4091a7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4092a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4091a7
mov eax, dword [ebp - 0x10]
call fcn.00404230
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4092a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091d3
cmp dword [ebp - 8], 0
je 0x4091c2
mov eax, dword [ebp - 8]
call fcn.0040424c
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 0x4091f0
lea eax, [ebp - 4]
call fcn.00406a54
ret
Function at 0x4094b4
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.00406a4c
mov eax, dword [ebp - 0x21c]
call fcn.00406a4c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409653
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406a64
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406af0
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 0x409554
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409566
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409551
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40961f
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 0x40958f
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.00409004
cmp dword [ebp - 0x220], 0
je 0x4095c7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004093a8
pop ecx
mov ebx, eax
jmp 0x40961f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408be0
mov eax, dword [ebp - 0x224]
call fcn.004093a8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409612
cmp byte [0x4d3b58], 0
jne 0x409612
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408be0
mov eax, dword [ebp - 0x228]
call fcn.004093a8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40961f
push ebp
call fcn.00409458
pop ecx
mov ebx, eax
test bl, bl
je 0x409635
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40965a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406a5c
ret

Function at 0x409de8
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 0x40d2f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4d3c50
push 0xa
push 0x40d384
mov eax, dword [0x4d3c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d314
call fcn.00419400
push ebx
mov eax, dword [0x4d3c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d32b
call fcn.00419400
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d33d
call fcn.00419400
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4d3c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4d3c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4d3c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4d3c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4d3c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x4d3c68], edx
pop esi
pop ebx
ret

Function at 0x411e6c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411f15
test eax, edx
je 0x411f18
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411e95
push edx
mov edx, eax
mov eax, esp
call fcn.00406c68
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411eab
push eax
lea eax, [esp + 8]
call fcn.00406c68
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411eba
movzx eax, word [eax]
sub eax, ecx
jmp 0x411ee1
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 0x411efb
add ecx, 4
js 0x411ed2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411ef8
push eax
mov eax, ecx
mov edx, 2
call fcn.004060f0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411edf
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411ee1
xor eax, eax
ret
test eax, eax
je 0x411f28
test edx, edx
jne 0x411e7c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4167a0
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 0x4167d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406ba0
jmp 0x4167e2
mov eax, ebx
mov edx, esi
call fcn.00406a64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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