joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012d0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4012f0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x401306
push 0x80004005
call fcn.00401030
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401330
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x401348
push 0x80004005
call fcn.00401030
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401355
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4019d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x415734]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x401a3e
test ecx, ecx
je 0x401a30
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x401a4c
test ecx, ecx
je 0x401af1
push ecx
jmp 0x401aeb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x401abe
jmp 0x401a80
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.004019d0
mov edi, eax
test edi, edi
jne 0x401b0d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x401a80
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401ad5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401af1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00406716
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401b1c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x401af3
Function at 0x4046a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x40e030
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x415734]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x415714]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x40472d
call fcn.004011c0
mov esi, eax
jmp 0x404815
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x404749
call fcn.004011c0
jmp 0x40480c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x404762
call fcn.004011c0
jmp 0x40480c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x404798
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x404786
lea ecx, [ebp]
call fcn.00401970
lea ecx, [ebp - 0x1c]
call fcn.00401900
mov eax, 0x8007000e
jmp 0x404832
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00402120
mov dword [ebp - 4], 1
jmp 0x4047c1
mov ebx, dword [ebp]
test ebx, ebx
jne 0x4047cf
mov esi, 0x8007000e
jmp 0x40480e
call dword [0x415714]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4047f0
call fcn.004011c0
jmp 0x40480c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403f00
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x404830
lea ecx, [ebp]
call fcn.00401970
jmp 0x404830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00406716
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4053e0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x4053fc
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x405190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x405424
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x405e20
Capabilities:
Accept command line arguments
Delete registry value

Disassembly:
push ecx
cmp byte [0x4164cc], 0
push edi
je 0x405e30
or edi, 0xffffffff
jmp 0x405e69
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, 0x4164d8
call fcn.00405cc0
cmp al, 1
jne 0x405e63
mov edx, dword [esp + 0x18]
push edx
mov ecx, 0x4164d8
call fcn.00405c10
jmp 0x405e67
mov eax, dword [esp + 4]
mov edi, eax
mov ecx, dword [esp + 0x14]
mov edx, str._RegServer
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x405e98
test ax, ax
je 0x405e94
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x405e98
add ecx, 4
add edx, 4
test ax, ax
jne 0x405e72
xor eax, eax
jmp 0x405e9d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405ee9
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPreviewHandlers
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ee9
push esi
mov esi, dword [esp + 0x1c]
push str.DC6EFB56_9CFA_464D_8880_44885D7DC193
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x405ee1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ecx
ret 0x10
mov eax, edi
pop edi
pop ecx
ret 0x10

Function at 0x406716
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415734]
jne 0x406720
repz ret
jmp fcn.00408feb
Function at 0x408574
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4158a8]
je 0x40858f
inc edi
cmp edi, 0x17
jb 0x408580
cmp edi, 0x17
jae 0x40870f
push ebp
push 3
call fcn.0040bbd0
cmp eax, 1
pop ecx
je 0x4086db
push 3
call fcn.0040bbd0
test eax, eax
pop ecx
jne 0x4085c3
cmp dword [0x41577c], 1
je 0x4086db
cmp ebx, 0xfc
je 0x40870e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x416768
push ebp
call fcn.0040bb6b
add esp, 0xc
test eax, eax
je 0x4085f9
push esi
push esi
push esi
push esi
push esi
call fcn.00408b3f
add esp, 0x14
push 0x104
mov esi, 0x416781
push esi
push 0
mov byte [0x416885], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40863d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040bb6b
add esp, 0xc
test eax, eax
je 0x40863d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408b3f
add esp, 0x14
push esi
call fcn.0040bae0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408682
push esi
call fcn.0040bae0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x416a7c
push 0x4113ac
sub ecx, eax
push ecx
push eax
call fcn.0040ba1f
add esp, 0x14
test eax, eax
je 0x408682
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00408b3f
add esp, 0x14
jmp 0x408684
xor esi, esi
push 0x4113a8
push ebx
push ebp
call fcn.0040b9ae
add esp, 0xc
test eax, eax
je 0x4086a4
push esi
push esi
push esi
push esi
push esi
call fcn.00408b3f
add esp, 0x14
push dword [edi*8 + 0x4158ac]
push ebx
push ebp
call fcn.0040b9ae
add esp, 0xc
test eax, eax
je 0x4086c6
push esi
push esi
push esi
push esi
push esi
call fcn.00408b3f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040b7f1
add esp, 0xc
jmp 0x40870e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40870e
cmp ebp, 0xffffffff
je 0x40870e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4158ac]
push dword [esi]
call fcn.0040bae0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40b7f1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409e53
xor ebx, ebx
cmp dword [0x41700c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40b8c7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b9a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b9a7
push eax
call fcn.00409de5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41700c], eax
call esi
push eax
call fcn.00409de5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417010], eax
call esi
push eax
call fcn.00409de5
mov dword [0x417014], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408301
test eax, eax
pop ecx
pop ecx
je 0x40b895
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408b3f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40b8c7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00409de5
cmp eax, ebx
pop ecx
mov dword [0x41701c], eax
je 0x40b8c7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409de5
pop ecx
mov dword [0x417018], eax
mov eax, dword [0x417018]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40b94c
cmp dword [0x41701c], ecx
je 0x40b94c
push eax
call fcn.00409e5c
push dword [0x41701c]
mov esi, eax
call fcn.00409e5c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40b94c
cmp edi, ebx
je 0x40b94c
call esi
cmp eax, ebx
je 0x40b919
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b919
test byte [ebp - 0x18], 1
jne 0x40b94c
lea eax, [ebp - 0x10]
push eax
call fcn.00408338
test eax, eax
pop ecx
je 0x40b934
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408b3f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40b943
or dword [ebp + 0x10], 0x200000
jmp 0x40b987
or dword [ebp + 0x10], 0x40000
jmp 0x40b987
mov eax, dword [0x417010]
cmp eax, dword [ebp - 8]
je 0x40b987
push eax
call fcn.00409e5c
cmp eax, ebx
pop ecx
je 0x40b987
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b987
mov eax, dword [0x417014]
cmp eax, dword [ebp - 8]
je 0x40b987
push eax
call fcn.00409e5c
cmp eax, ebx
pop ecx
je 0x40b987
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41700c]
call fcn.00409e5c
cmp eax, ebx
pop ecx
je 0x40b9a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ea9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cec
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cec
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e93
inc ebx
jmp 0x402e7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402eb0
lea eax, [ebp - 8]
call fcn.00404a08
ret

Function at 0x402eb8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a08
test esi, esi
jne 0x402eef
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404af8
jmp 0x402f10
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cec
mov dword [esp], eax
test esi, esi
je 0x402f10
cmp dword [ebx], 0
je 0x402f10
dec esi
jmp 0x402ef7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403ae8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x473020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403b60
xor eax, eax
push ebp
push 0x403b59
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 0x403b9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x473020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x473020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404884
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47804c], 0
je 0x4048e5
cmp word [0x478220], 0xd7b2
jne 0x4048ad
cmp dword [0x478228], 0
jbe 0x4048ad
mov eax, 0x47821c
call dword [0x478238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x473090
push 0xfffffffffffffff5
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 0x40490c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x473030], 0
jne 0x404901
push 0
push 0x473088
push 0x473090
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x406954
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 0x4069ba
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404c78
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036ac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4069a4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069c1
lea eax, [ebp - 0x10]
call fcn.00404a08
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4095ad
test al, 0x10
jne 0x4095b1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c1dc
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
test eax, eax
jle 0x40c215
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404af8
jmp 0x40c21e
mov eax, ebx
mov edx, esi
call fcn.00404a5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c228
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
test eax, eax
jle 0x40c249
mov al, byte [esp]
jmp 0x40c24b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d248
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 0x40d31e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404aa0
lea eax, [ebp - 8]
call fcn.00404f18
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ec8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d308
mov eax, ebx
call fcn.00402a80
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d301
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.00404ec8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d2eb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d330
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d2eb
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 0x40d308
mov eax, dword [ebp - 0x10]
call fcn.00402ab0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d325
lea eax, [ebp - 8]
call fcn.00404a08
ret
Function at 0x40d904
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 0x40d968
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404c78
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004091f4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d96f
lea eax, [ebp - 0xc]
call fcn.00404a08
ret

Function at 0x41f100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x478888
cmp dword [edi], 0
jne 0x41f17c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x478884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x473420
mov ecx, 2
call fcn.00402cac
mov edx, 0x41f0d8
lea eax, [esi + 5]
call fcn.0041f0f8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f0f8
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 0x41f151
mov dword [0x478884], 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 0x4206f8
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 0x4206fe
ret

Function at 0x422bfc
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 0x422c4d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422c34
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422c24
jmp 0x422c4d
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 0x422c35
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c8a8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404eb8
xor eax, eax
push ebp
push 0x42c9d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42c9a9
xor eax, eax
push ebp
push 0x42c9a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404cc8
inc eax
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42c977
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42c966
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404cc8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404ec8
mov edx, ebx
pop ecx
call fcn.00402cac
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c96d
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x477760]
mov dl, 1
mov eax, dword [0x407d74]
call fcn.0040ca64
call fcn.0040441c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c9dd
lea eax, [ebp - 4]
call fcn.00404a08
ret