joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458a50
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 0x458bfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x458bdc
mov dl, 1
mov eax, dword [0x4130e4]
call fcn.00403d50
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404b0c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458bcb
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.00446990
test al, al
je 0x458bbe
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, 0x458c0c
lea eax, [ebp - 0x254]
call fcn.00409b50
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x458bbe
xor eax, eax
push ebp
push 0x458bb7
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 0x458c44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458ba0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d7c
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 0x458ba0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458bbe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458ac1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417368
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 0x458c02
lea eax, [ebp - 0x260]
call fcn.00404b0c
ret

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

Disassembly:
push ecx
mov eax, dword [0x46fbe4]
cmp byte [eax + 0xa5], 0
jne 0x4595b5
cmp dword [0x46fbfc], 0
jne 0x459576
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459500
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46fbfc], eax
cmp dword [0x46fbf8], 0
jne 0x459591
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46fbf8], eax
cmp dword [0x46fc00], 0
jne 0x4595b5
push esp
push 0
push 0
push 0x4594a4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46fc00], eax
pop edx
ret
Function at 0x459c48
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46fbe4]
cmp dword [eax + 0x30], 0
je 0x459cf2
cmp dword [ebx + 0x94], 0
jne 0x459cec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459bd8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459cec
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 0x459cb2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459cec
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.00415030
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459cc1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a850
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 0x45a885
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.00404bfc
jmp 0x45a892
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404b60
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ba44
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ba85
mov eax, esi
call fcn.00441fbc
test al, al
je 0x45ba85
mov eax, dword [ebx + 0x84]
call fcn.00441cb8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ba85
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441cb8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4010c0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.USER32.dll_GetKeyboardType]
push edi
mov ebx, eax
call esi
cmp eax, 7
jne 0x4010f8
push 1
call esi
and eax, 0xff00
cmp eax, 0xd00
je 0x4010f3
cmp eax, 0x400
jne 0x4010f8
mov edi, 1
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x40111a
mov ecx, dword [0x653f44]
push 0x653c78
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x64f3e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6505b8
push 0x64f3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
cld
add bh, bh
adc eax, sym.imp.MSVCRT.dll___set_app_type
pop ecx
or dword [0xa541c4], 0xffffffff
or dword [0xa541c8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0xa541c0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0xa541bc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0xa541cc], eax
call fcn.0064f55f
cmp dword [0x653460], ebx
jne 0x64f463
push 0x64f55c
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0064f54a
push 0x65300c
push 0x653008
call sub.MSVCRT.dll__initterm
mov eax, dword [0xa541b8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0xa541b4]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x653004
push section..data5
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x64f4f6
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64f4ca
cmp al, 0x22
jne 0x64f4bc
cmp byte [esi], 0x22
jne 0x64f4d3
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64f4dd
cmp al, 0x20
jbe 0x64f4cf
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x64f501
movzx eax, word [ebp - 0x2c]
jmp 0x64f504
cmp byte [esi], 0x20
jbe 0x64f4d3
inc esi
mov dword [ebp - 0x74], esi
jmp 0x64f4f6
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x405124
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.004053d4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4052b0
test edi, edi
je 0x4052b0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4051e7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4051c2
cmp edi, 0xffffffff
je 0x405183
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405183
mov byte [esp], 0
jmp 0x4052b0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4051c2
test ebx, ebx
jne 0x4051b8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040240c
test eax, eax
jne 0x4051b8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4052b0
call 0x405418
dec ebp
test ebp, ebp
jg 0x405168
cmp edi, 0xffffffff
je 0x4051e7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4051e5
mov byte [esp], 0
jmp 0x4052b0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405132
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040240c
cmp ebx, eax
jne 0x4051e7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405320
mov edx, eax
mov ebx, dword [0x4288ec]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40524e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40524c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40524e
xor edi, edi
cmp byte [esp], 0
je 0x405277
mov ebx, dword [esi]
test bl, 1
jne 0x405290
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040240c
cmp ebx, eax
jne 0x405254
mov byte [esp + 1], 1
jmp 0x405290
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040240c
cmp ebx, eax
jne 0x405277
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405201
cmp byte [esp], 0
je 0x4052b0
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 0x405c78
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x428050], 0
je 0x405cdf
cmp word [0x428338], 0xd7b2
jne 0x405ca1
cmp dword [0x428340], 0
jbe 0x405ca1
mov eax, 0x428334
call dword [0x428350]
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, 0x405d0c
call fcn.0040652c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42602e], 0
jne 0x405cfb
push 0
push 0x4269ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4077c0
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 0x407925
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405f10
cmp si, word [0x4269f8]
jb 0x407858
cmp si, word [0x426bf8]
ja 0x407858
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407858
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4269f8]
jae 0x407832
mov edi, ebx
dec edi
jmp 0x407853
cmp si, word [ebx*8 + 0x4269f8]
jbe 0x407842
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407853
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4269fc]
call fcn.004076d0
jmp 0x407858
cmp edi, dword [ebp - 8]
jae 0x40781c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x407907
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407907
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.00406800
push dword [ebp - 0x160]
push 0x407940
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406800
push dword [ebp - 0x164]
push 0x407950
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406800
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004069cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40792c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405f70
ret
Function at 0x407ad8
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 0x407bdb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x42ab78
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x42ab90]
jne 0x407b24
mov eax, esi
mov edx, 0x42ab92
mov ecx, 0x55
call fcn.00406800
push 0x42ab78
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407bc5
push 0x42ab78
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405f10
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407b93
cmp byte [0x42ab74], 0
je 0x407b58
mov edx, esi
mov eax, ebx
call fcn.004079bc
jmp 0x407b93
mov edx, esi
mov eax, ebx
call fcn.004077c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407b93
cmp dword [esi], 0
je 0x407b7c
mov eax, esi
mov edx, 0x407bf4
call fcn.004068ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004077c0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004068ec
push 0x42ab78
call sub.kernel32.dll_EnterCriticalSection
mov word [0x42ab90], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040676c
push eax
push 0x42ab92
call sub.kernel32.dll_lstrcpynW
push 0x42ab78
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407be2
lea eax, [ebp - 4]
call fcn.00405f10
ret
Function at 0x407e10
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.00405ff4
xor eax, eax
push ebp
push 0x408035
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407e50
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407e6a
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040676c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40801f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408044
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407f39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408044
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407f39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408080
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407f39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408080
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407f39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4080b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407f39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4080e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40801f
xor eax, eax
push ebp
push 0x408018
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407c1c
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 0x407fa8
mov eax, dword [ebp - 0x10]
call fcn.00404144
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.004067c4
jmp 0x407ff3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408128
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407ff3
mov eax, dword [ebp - 0x10]
call fcn.00404144
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408128
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004067c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40801f
cmp dword [ebp - 8], 0
je 0x40800e
mov eax, dword [ebp - 8]
call fcn.00404160
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 0x40803c
lea eax, [ebp - 4]
call fcn.00405f10
ret
Function at 0x40831c
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.00405ff4
xor eax, eax
push ebp
push 0x4083dc
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.00406800
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406944
mov eax, dword [ebx]
call fcn.004081e4
test al, al
jne 0x4083b9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406800
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406944
mov eax, dword [ebx]
call fcn.004081e4
test al, al
jne 0x4083b9
mov eax, ebx
call fcn.00405f10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083e3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405f70
lea eax, [ebp - 4]
call fcn.00405f10
ret

Function at 0x408a6c
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 0x419690
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 0x4196c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406068
jmp 0x4196d2
mov eax, ebx
mov edx, esi
call fcn.004062c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4196dc
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 0x4196fe
movzx eax, word [esp]
jmp 0x419700
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41a3d4
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 0x41a4f9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041a1dc
mov esi, eax
mov eax, dword [0x427888]
cmp byte [eax], 0
je 0x41a4a1
mov eax, dword [0x42777c]
call fcn.00404498
call fcn.00404298
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 [0x41a3a4]
call fcn.0040724c
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 0x41a514
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41a4dd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x427750]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42ac40]
call fcn.00407304
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 0x41a500
lea eax, [ebp - 4]
mov edx, dword [0x41a3a4]
call fcn.00407258
ret

Function at 0x41bd60
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.004063b0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408a4c
mov edi, eax
cmp edi, 0x104
jbe 0x41bd0b
mov eax, edi
add eax, eax
call fcn.00404144
mov esi, eax
jmp 0x41bd0d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408a4c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41bd46
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 0x41bd30
mov eax, esp
cmp esi, eax
je 0x41bd53
mov eax, esi
call fcn.00404160
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 0x41bd8c
cmp bl, 0
je 0x41bd88
cmp bl, 0x41
jl 0x41bd83
cmp bl, 0x5a
jg 0x41bd83
or bl, 0x20
xor al, bl
inc esi
jmp 0x41bd67
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41bccc

Function at 0x41bf80
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.00406800
add esp, 0x800
pop ebx
ret
Function at 0x41ccc0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x198], 6
jb 0x41cd72
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x1d8], 0x3c
mov dword [ebp - 0x1d4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1d8]
push eax
mov dword [ebp - 0x1cc], str.runas
mov dword [ebp - 0x1c4], str._softwarecad
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 1
mov dword [ebp - 0x1b8], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret