joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4252c1
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x28
mov eax, dword [0x446278]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 2
push 1
lea ecx, [ebp - 0x18]
call fcn.00405350
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0x10]
call fcn.00402ba0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403f1b
push 0x427774
mov ecx, dword [ebp + 8]
call fcn.004024e0
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402860
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00402860
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00402860
mov eax, dword [ebp + 8]
jmp 0x404099
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x30]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp + 0x14]
call fcn.00402ba0
push eax
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00403d80
push eax
lea edx, [ebp - 0x1c]
push edx
push 0
lea ecx, [ebp + 0x14]
call fcn.00402ba0
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x38], eax
jmp 0x403f8c
mov dword [ebp - 4], 4
jmp 0x403f9c
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00404a80
cmp dword [ebp - 0x38], 0
je 0x403ff8
push 0x427f64
mov ecx, dword [ebp + 8]
call fcn.004024e0
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402860
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00402860
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00402860
mov eax, dword [ebp + 8]
jmp 0x404099
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402400
mov ecx, dword [ebp - 0x34]
or ecx, 1
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402860
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00402860
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00402860
mov eax, dword [ebp + 8]
jmp 0x404099
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408674
mov esp, ebp
pop ebp
ret

Function at 0x4045c0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.Name
push 0x426f59
push str.SELECT__FROM_Win32_Process
push str.ROOTcimv2
call fcn.00403880
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jl 0x4045ef
mov al, 1
jmp 0x4045f1
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x404870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x446278]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x42b050
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x4048ab
xor al, al
jmp 0x404964
mov dword [0x447634], 0
mov eax, dword [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x447638], eax
mov dword [ebp - 0x818], str.4jkJ
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x810], 0
mov edx, dword [ebp - 0x810]
add edx, 1
mov dword [ebp - 0x810], edx
mov eax, dword [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x404922
xor al, al
jmp 0x404964
mov ecx, dword [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x808], 0
jne 0x404942
xor al, al
jmp 0x404964
mov edx, dword [ebp - 0x808]
push edx
call fcn.004055f0
add esp, 4
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x808]
mov dword [0x44763c], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408674
mov esp, ebp
pop ebp
ret

Function at 0x404e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404e24
xor eax, eax
jmp 0x404ea4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404e3b
xor eax, eax
jmp 0x404ea4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x404e87
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x404e87
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x404e5e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x404e93
xor eax, eax
jmp 0x404ea4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x404ea1
xor eax, eax
jmp 0x404ea4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4116e3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x446278]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00410347
mov dword [ebp - 0x14], eax
cmp dword [0x4483a8], edi
jne 0x4117d4
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x411761
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4118b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4118b4
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4118b4
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4483a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4483ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4483b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4483b8], eax
test eax, eax
je 0x4117d1
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4483b4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4117f9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4117ec
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41180e
push 4
pop eax
jmp 0x4118b6
cmp dword [ebp - 0x14], edi
je 0x41180e
push dword [0x4483a8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4117f3
mov eax, dword [0x4483b4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41186c
cmp dword [0x4483b8], esi
je 0x41186c
push eax
call ebx
push dword [0x4483b8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41186c
test eax, eax
je 0x41186c
call ecx
test eax, eax
je 0x411861
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x411861
test byte [ebp - 8], 1
jne 0x41186c
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41189c
mov eax, dword [0x4483ac]
cmp eax, esi
je 0x411899
push eax
call ebx
test eax, eax
je 0x411899
call eax
mov edi, eax
test edi, edi
je 0x411899
mov eax, dword [0x4483b0]
cmp eax, esi
je 0x411899
push eax
call ebx
test eax, eax
je 0x411899
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4483a8]
call ebx
test eax, eax
je 0x4118b4
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4118b6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408674
leave
ret
Function at 0x422e6f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040da25
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x422ea7
xor eax, eax
jmp 0x422ed3
cmp esi, dword [ebp - 4]
je 0x422ed0
cmp dword [ebp + 0xc], 0
je 0x422ed0
push dword [edi + 0x9c]
call fcn.00422a7d
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040c061
pop ecx
pop ecx
cmp esi, eax
je 0x422ea3
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x402a34
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046bc
test esi, esi
jne 0x402a6a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004047ac
jmp 0x402a88
call sub.KERNEL32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402948
mov edi, eax
test esi, esi
je 0x402a88
cmp dword [ebx], 0
je 0x402a88
dec esi
jmp 0x402a71
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x453020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40388c
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x40386c
xor eax, eax
push ebp
push 0x403865
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4038a8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40386c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x453020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x453020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404540
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45504c], 0
je 0x4045a1
cmp word [0x455220], 0xd7b2
jne 0x404569
cmp dword [0x455228], 0
jbe 0x404569
mov eax, 0x45521c
call dword [0x455238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45309c
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 0x4045c8
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x453030], 0
jne 0x4045bd
push 0
push 0x453094
push 0x45309c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x405bc8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405df8
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x405c4b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405df8
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x405c4b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e14
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x405cd4
xor eax, eax
push ebp
push 0x405ccd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x405cb2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e34
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x405cb2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cd4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.dll_GetThreadLocale
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405dee
cmp byte [ebp - 0xd], 0
jne 0x405d1b
cmp byte [ebp - 0x12], 0
je 0x405dee
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d34
dec ebx
cmp byte [ebx], 0x2e
je 0x405d43
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d33
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405dee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d80
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405dee
cmp byte [ebp - 0xd], 0
je 0x405dee
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405dee
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406526
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040492c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fec
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406510
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40652d
lea eax, [ebp - 0x10]
call fcn.004046bc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b7c
push eax
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c21
test al, 0x10
jne 0x408c25
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408c2c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404b7c
push eax
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne 0x408c4e
call sub.KERNEL32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b5cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b605
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047ac
jmp 0x40b60e
mov eax, ebx
mov edx, esi
call fcn.00404710
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b618
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b639
mov al, byte [esp]
jmp 0x40b63b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bcc0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb38
mov eax, dword [0x4540b0]
cmp byte [eax], 0
je 0x40bd3c
mov eax, dword [0x453ec0]
call fcn.00402e4c
call fcn.00402874
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.USER32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408e0c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle_1
push eax
call sub.KERNEL32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bd84
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle_1
push eax
call sub.KERNEL32.dll_WriteFile_1
jmp 0x40bd72
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x453e6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x455668]
call fcn.004059d4
push eax
call sub.USER32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c620
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c6f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404754
lea eax, [ebp - 8]
call fcn.00404bcc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b7c
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c6e0
mov eax, ebx
call fcn.0040270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c6d9
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 - 8]
call fcn.00404b7c
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40c6c3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c708
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c6c3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6e0
mov eax, dword [ebp - 0x10]
call fcn.0040272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6fd
lea eax, [ebp - 8]
call fcn.004046bc
ret

Function at 0x40cb74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cbd8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040492c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408868
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbdf
lea eax, [ebp - 0xc]
call fcn.004046bc
ret
Function at 0x41ddec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x455888
cmp dword [edi], 0
jne 0x41de68
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x455884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45342c
mov ecx, 2
call fcn.00402908
mov edx, 0x41ddc4
lea eax, [esi + 5]
call fcn.0041dde4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041dde4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41de3d
mov dword [0x455884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f07c
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 0x41f082
ret

Function at 0x4214c4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x421515
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4214fc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4214ec
jmp 0x421515
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4214fd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429544
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004292c0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404b7c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
je 0x4295a2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x453fd4]
mov dl, 1
mov eax, dword [0x4291e4]
call fcn.0040be80
call fcn.004040f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42ae68
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42adb4
call sub.USER32.dll_EnumWindows
ret

Function at 0x42af88
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42b005
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042a9e8
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.dll_Sleep
call sub.KERNEL32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42afad
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042a5e8
cmp dword [ebp - 4], 0
je 0x42afef
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404b7c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.USER32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b00c
lea eax, [ebp - 4]
call fcn.004046bc
ret