joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f418
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.00469564
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x44f4bf
test esi, 0x400
jne 0x44f454
test esi, 0x10
setne bl
jmp 0x44f4d9
cmp byte [esp], 0
je 0x44f488
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x44f4d9
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x44f4d9
test esi, 0x10
je 0x44f494
mov bl, 1
jmp 0x44f4d9
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x44f4bb
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x44f4d9
mov bl, 1
jmp 0x44f4d9
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x44f4d3
cmp eax, 3
je 0x44f4d3
cmp eax, 0x7b
jne 0x44f4d7
xor ebx, ebx
jmp 0x44f4d9
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x44f4e4
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44f5b7
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00468ca4
cmp byte [ebp - 9], 0
je 0x44f575
mov eax, ebx
call fcn.00469564
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
test ah, 4
je 0x44f575
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0044e378
test al, al
je 0x44f575
mov eax, dword [ebp - 8]
call fcn.0044f8f8
test al, al
je 0x44f56a
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0044f7e8
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00455064
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.004697a0
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00468ca4
push edi
mov eax, dword [ebp - 4]
call fcn.00469564
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
jne 0x44f58f
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f5be
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004688fc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004688fc
ret

Function at 0x452be4
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 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x452c1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00468a04
jmp 0x452c26
mov eax, ebx
mov edx, esi
call fcn.00468c5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x452c30
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 0x452c52
movzx eax, word [esp]
jmp 0x452c54
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x453910
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 0x453a35
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00453720
mov esi, eax
mov eax, dword [0x55c79c]
cmp byte [eax], 0
je 0x4539dd
mov eax, dword [0x55c7a4]
call fcn.00466880
call fcn.00466500
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 [0x4538e8]
call fcn.0046a754
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 0x453a50
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x453a19
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x55c608]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x55c9f4]
call fcn.0046a848
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 0x453a3c
lea eax, [ebp - 4]
mov edx, dword [0x4538e8]
call fcn.0046a760
ret
Function at 0x454a90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x454b66
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00468ca4
lea eax, [ebp - 4]
call fcn.00468e0c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00469564
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x454b50
mov eax, ebx
call fcn.004662fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x454b49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00469564
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x454b33
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x454b78
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x454b33
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b50
mov eax, dword [ebp - 0x10]
call fcn.00466318
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b6d
lea eax, [ebp - 4]
call fcn.0046889c
ret

Function at 0x455f8c
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.004695f0
add esp, 0x800
pop ebx
ret

Function at 0x46670c
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.0046889c
test esi, esi
jne 0x466742
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.00468a04
jmp 0x466760
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00466650
mov edi, eax
test esi, esi
je 0x466760
cmp dword [ebx], 0
je 0x466760
dec esi
jmp 0x466749
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4676d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00467abc
mov byte [esp], al
cmp byte [esp], 0
jne 0x467859
test edi, edi
je 0x467859
mov byte [esp + 1], 0
test ebp, ebp
jle 0x467790
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x46776b
cmp edi, 0xffffffff
je 0x46772f
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x46772f
mov byte [esp], 0
jmp 0x467859
mov ebx, dword [esi]
cmp ebx, 1
jg 0x46776b
test ebx, ebx
jne 0x467764
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004646bc
test eax, eax
jne 0x467764
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x467859
pause
dec ebp
test ebp, ebp
jg 0x467714
cmp edi, 0xffffffff
je 0x467790
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x46778e
mov byte [esp], 0
jmp 0x467859
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4676de
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004646bc
cmp ebx, eax
jne 0x467790
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004678cc
mov edx, eax
mov ebx, dword [0x55f98c]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4677f7
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4677f5
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4677f7
xor edi, edi
cmp byte [esp], 0
je 0x467820
mov ebx, dword [esi]
test bl, 1
jne 0x467839
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004646bc
cmp ebx, eax
jne 0x4677fd
mov byte [esp + 1], 1
jmp 0x467839
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004646bc
cmp ebx, eax
jne 0x467820
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4677aa
cmp byte [esp], 0
je 0x467859
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x468500
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55f114], 0
je 0x468561
cmp word [0x55f3f0], 0xd7b2
jne 0x468529
cmp dword [0x55f3f8], 0
jbe 0x468529
mov eax, 0x55f3ec
call dword [0x55f408]
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 0x46858c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x54bc5c], 0
jne 0x46857d
push 0
push 0x54c3c4
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x468758
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x54bc2c], 0
je 0x468783
mov edx, edi
mov eax, esi
call dword [0x54bc2c]
mov ebx, eax
jmp 0x468794
mov eax, 8
call fcn.004662fc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x55f115], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x468720
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x4687c9
mov edx, 8
mov eax, ebx
call fcn.00466318
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x46ad04
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 0x46ae69
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046889c
cmp si, word [0x54c41c]
jb 0x46ad9c
cmp si, word [0x54c61c]
ja 0x46ad9c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x46ad9c
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x54c41c]
jae 0x46ad76
mov edi, ebx
dec edi
jmp 0x46ad97
cmp si, word [ebx*8 + 0x54c41c]
jbe 0x46ad86
inc ebx
mov dword [ebp - 8], ebx
jmp 0x46ad97
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x54c420]
call fcn.0046ac14
jmp 0x46ad9c
cmp edi, dword [ebp - 8]
jae 0x46ad60
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x46ae4b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x46ae4b
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.004695f0
push dword [ebp - 0x160]
push 0x46ae84
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004695f0
push dword [ebp - 0x164]
push 0x46ae94
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004695f0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00469828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ae70
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004688fc
ret
Function at 0x46b01c
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 0x46b11f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x561c1d
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x561c36]
jne 0x46b068
mov eax, esi
mov edx, 0x561c38
mov ecx, 0x55
call fcn.004695f0
push 0x561c1d
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x46b109
push 0x561c1d
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0046889c
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x46b0d7
cmp byte [0x561c1c], 0
je 0x46b09c
mov edx, esi
mov eax, ebx
call fcn.0046af00
jmp 0x46b0d7
mov edx, esi
mov eax, ebx
call fcn.0046ad04
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x46b0d7
cmp dword [esi], 0
je 0x46b0c0
mov eax, esi
mov edx, 0x46b138
call fcn.00469748
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0046ad04
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00469748
push 0x561c1d
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x561c36], bx
push 0xaa
mov eax, dword [esi]
call fcn.00469564
push eax
push 0x561c38
call sub.KERNEL32.DLL_lstrcpynW
push 0x561c1d
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b126
lea eax, [ebp - 4]
call fcn.0046889c
ret
Function at 0x46b354
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.00468980
xor eax, eax
push ebp
push 0x46b579
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x46b394
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x46b3ae
push 0x105
mov eax, dword [ebp - 4]
call fcn.00469564
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x46b563
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46b588
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x46b47d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46b588
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x46b47d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46b5c4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x46b47d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46b5c4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x46b47d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46b5f8
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x46b47d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x46b62c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x46b563
xor eax, eax
push ebp
push 0x46b55c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0046b160
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 0x46b4ec
mov eax, dword [ebp - 0x10]
call fcn.004662fc
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.004695b4
jmp 0x46b537
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x46b66c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x46b537
mov eax, dword [ebp - 0x10]
call fcn.004662fc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x46b66c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004695b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b563
cmp dword [ebp - 8], 0
je 0x46b552
mov eax, dword [ebp - 8]
call fcn.00466318
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 0x46b580
lea eax, [ebp - 4]
call fcn.0046889c
ret
Function at 0x46b8b8
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.00468980
xor eax, eax
push ebp
push 0x46b978
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.004695f0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004697a0
mov eax, dword [ebx]
call fcn.0046b780
test al, al
jne 0x46b955
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004695f0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004697a0
mov eax, dword [ebx]
call fcn.0046b780
test al, al
jne 0x46b955
mov eax, ebx
call fcn.0046889c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b97f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004688fc
lea eax, [ebp - 4]
call fcn.0046889c
ret

Function at 0x46c24c
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 0x46c32c
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x55f9a8], 1
jae 0x46c3d5
call fcn.004630f8
call fcn.004660d8
call fcn.0046aaac
mov byte [0x54bc4c], 2
mov dword [0x55f0d0], 0x541408
mov dword [0x55f0d4], 0x541426
mov byte [0x55f116], 2
call fcn.0046c24c
mov dword [0x55f118], eax
mov dword [0x55f0bc], 0x46a1d8
call fcn.00466dd4
mov word [0x55f120], 0xd7b0
mov word [0x55f3f0], 0xd7b0
mov word [0x55f6c0], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x55f108], eax
call fcn.004646cc
mov dword [0x55f104], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x55f990], eax
mov dword [0x55f994], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x55f0fc], eax
call fcn.0046c260
ret

Function at 0x485658
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0046889c
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x48569d
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.004695f0
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x48ac4c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48ad85
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.USER32.DLL_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x430578]
call fcn.004316b4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x48ad5b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysReAllocStringLen
mov eax, dword [ebp - 0xc]
call fcn.0043179c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004695f0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x48ada0
call fcn.004697a0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00431a18
test al, al
je 0x48ad45
lea ecx, [ebp - 4]
mov edx, 0x48ae14
mov eax, dword [ebp - 0xc]
call fcn.00432260
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00456280
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x48ad3e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x48ae2c
mov eax, dword [ebp - 8]
push eax
call fcn.00462140
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x54cd2c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ad45
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ad62
mov eax, dword [ebp - 0xc]
call fcn.00466f00
ret

Function at 0x48ae90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x48aed7
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x48aeba
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x48aecb
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x48aed7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4914d4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4914da
ret