joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406138
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 0x40619e
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.004047d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031ec
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406188
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061a5
lea eax, [ebp - 0x10]
call fcn.00404564
ret

Function at 0x40725c
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4640f0], 0
jne 0x40732e
mov byte [0x4640f0], 1
xor eax, eax
mov dword [0x4640e8], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x4072a4
cmp dword [esp + 0x1c], 3
jne 0x407304
cmp dword [esp + 0x20], 0x33
jbe 0x407304
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x407338
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40732e
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x407368
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40732e
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x40732e
cmp byte [esp + 9], 0
jne 0x40732e
jmp 0x407319
push 0
push 0x407368
push 0x407370
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x40732e
mov eax, dword [0x4640e4]
call fcn.00404a24
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4640e8], eax
add esp, 0xac
ret

Function at 0x407c1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x407ce3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404564
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x407ccd
mov eax, ebx
mov edx, 0x73
call fcn.00404bb0
push 0
lea eax, [ebp - 8]
push eax
push 0x73
mov eax, ebx
call fcn.00404a7c
push eax
push esi
call sub.kernel32.dll_ReadFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebx]
mov eax, 0x407cf8
call fcn.00404b68
test eax, eax
jne 0x407cae
mov eax, ebx
call fcn.00404564
jmp 0x407ccd
push ebx
mov edx, dword [ebx]
mov eax, 0x407d04
call fcn.00404b68
mov ecx, eax
dec ecx
sub ecx, 0x50
mov eax, dword [ebx]
mov edx, 0x51
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407cea
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x407d08
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x407db0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
call sub.kernel32.dll_OpenFile
mov esi, eax
cmp esi, 0xffffffff
je 0x407d95
lea eax, [ebp - 8]
mov edx, 0x186a0
call fcn.00404bb0
push 0
lea eax, [ebp - 0xc]
push eax
push 0x186a0
lea eax, [ebp - 8]
call fcn.00404a7c
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x407d95
push esi
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 8]
mov eax, 0x407dc8
call fcn.00404b68
test eax, eax
jle 0x407d95
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407db7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x407de0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
mov eax, dword [ebp - 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x407e62
push dword fs:[eax]
mov dword fs:[eax], esp
xor bl, 1
neg bl
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test byte [ebp + 0x10], bl
je 0x407e47
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.00408318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e69
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret
Function at 0x407ec0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x408050
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404824
cmp eax, 2
jl 0x408025
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x408068
mov edx, dword [ebp - 4]
call fcn.00404870
mov eax, dword [ebp - 0x150]
call fcn.00404a24
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407ffd
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004047d4
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404870
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004047d4
test byte [ebp - 0x14c], 0x10
je 0x407fc6
mov eax, dword [ebp - 0xc]
mov edx, 0x408074
call fcn.00404970
je 0x407fe8
mov eax, dword [ebp - 0xc]
mov edx, 0x408080
call fcn.00404970
je 0x407fe8
lea eax, [ebp - 0x158]
mov ecx, 0x40808c
mov edx, dword [ebp - 8]
call fcn.00404870
mov eax, dword [ebp - 0x158]
call fcn.00407ec0
jmp 0x407fe8
mov eax, dword [ebp - 8]
call fcn.00404a24
mov esi, eax
push esi
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x407fe8
push 0x20
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x407f45
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.00404a24
mov ebx, eax
push ebx
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x408025
push 0x20
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408057
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404588
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404588
ret
Function at 0x4081dc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4082ec
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
call fcn.00407a18
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 4]
call fcn.004045fc
xor edx, edx
mov eax, 2
call fcn.00407734
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.00407754
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4082bc
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004047d4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00407a18
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 4]
call fcn.00404970
jne 0x4082ad
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov edx, edi
mov eax, esi
call fcn.00407774
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x40825e
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4082f3
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00404588
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x408748
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x4087d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x4087b3
test ebx, ebx
je 0x4087b3
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, esi
call fcn.0040475c
jmp 0x4087ba
mov eax, esi
call fcn.00404564
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087dc
lea eax, [ebp - 4]
call fcn.00404564
ret

Function at 0x408b4c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408bac
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x15]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x15]
mov ecx, 0x11
call fcn.004047d4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.004079dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bb3
lea eax, [ebp - 0x1c]
call fcn.00404564
ret

Function at 0x408bb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408c37
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004047d4
lea eax, [ebp - 0x10c]
mov edx, 0x408c4c
call fcn.0040482c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00407a18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c3e
lea eax, [ebp - 0x10c]
call fcn.00404564
ret
Function at 0x408d54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a14
mov eax, dword [ebp - 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x408df7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x4666cc
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x4666d0], eax
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [0x4666d0], eax
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dfe
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x408e08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404a14
mov eax, dword [ebp - 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x408ecc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4666cc
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x4666d0], eax
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00404bb0
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebx]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [0x4666d0], eax
cmp dword [0x4666d0], 0
jne 0x408e9f
mov eax, dword [ebx]
call fcn.00404a24
mov edx, eax
mov eax, ebx
call fcn.0040475c
jmp 0x408ea6
mov eax, ebx
call fcn.00404564
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ed3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret
Function at 0x408edc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a14
mov eax, dword [ebp - 8]
call fcn.00404a14
mov eax, dword [ebp + 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x408fb0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4666cc
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
mov dword [0x4666d0], eax
cmp dword [ebp + 8], 0
jne 0x408f49
lea eax, [ebp + 8]
mov edx, 0x408fc8
call fcn.004045fc
mov eax, dword [ebp + 8]
call fcn.00404824
push eax
lea eax, [ebp + 8]
call fcn.00404a7c
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x4666d0], eax
cmp dword [0x4666d0], 0
sete bl
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fb7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
lea eax, [ebp + 8]
call fcn.00404564
ret

Function at 0x408fcc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a14
mov eax, dword [ebp - 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x409071
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4666cc
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
mov dword [0x4666d0], eax
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x4666d0], eax
cmp dword [0x4666d0], 0
sete bl
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409078
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x409084
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x409106
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, 0x40911c
call fcn.00407e74
test al, al
jne 0x4090f0
mov eax, dword [ebp - 4]
call fcn.00404a24
mov ebx, eax
push ebx
push esi
call sub.advapi32.dll_RegDeleteKeyA
push 0
push 0x4666cc
push 0
push 6
push 2
push 0
push 0
push ebx
push esi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
sete al
mov ebx, eax
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40910d
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x4091b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a14
mov eax, dword [ebp - 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x40923f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x4091f0
lea eax, [ebp - 8]
mov edx, 0x409258
call fcn.004045fc
mov eax, dword [ebp - 8]
call fcn.00404824
push eax
lea eax, [ebp - 8]
call fcn.00404a7c
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
push ebx
call sub.advapi32.dll_RegSetValueExA
mov dword [0x4666d0], eax
cmp dword [0x4666d0], 0
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409246
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x40925c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x4092bf
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
push ebx
call sub.advapi32.dll_RegSetValueExA
mov dword [0x4666d0], eax
cmp dword [0x4666d0], 0
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092c6
lea eax, [ebp - 4]
call fcn.00404564
ret

Function at 0x4092d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a14
mov eax, dword [ebp - 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x409366
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4666cc
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00404a24
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x4666d0], eax
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov dword [0x4666d0], eax
cmp dword [0x4666d0], 0
sete bl
mov eax, dword [0x4666cc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40936d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x40d760
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 0x40d799
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404654
jmp 0x40d7a2
mov eax, ebx
mov edx, esi
call fcn.004045b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d7ac
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 0x40d7cd
mov al, byte [esp]
jmp 0x40d7cf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40de54
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40dccc
mov eax, dword [0x4651cc]
cmp byte [eax], 0
je 0x40ded0
mov eax, dword [0x464fec]
call fcn.00402e18
call fcn.0040287c
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.0040afd4
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 0x40df18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40df06
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x464f98]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466660]
call fcn.0040564c
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 0x40e76c
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 0x40e842
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045fc
lea eax, [ebp - 8]
call fcn.00404a74
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e82c
mov eax, ebx
call fcn.00402714
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e825
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.00404a24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e80f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e854
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e80f
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 0x40e82c
mov eax, dword [ebp - 0x10]
call fcn.00402734
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e849
lea eax, [ebp - 8]
call fcn.00404564
ret

Function at 0x40ecc0
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 0x40ed24
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.004047d4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ab64
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ed2b
lea eax, [ebp - 0xc]
call fcn.00404564
ret
Function at 0x41ce00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x466cf4
cmp dword [edi], 0
jne 0x41ce7c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x466cf0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x464494
mov ecx, 2
call fcn.0040291c
mov edx, 0x41cdd8
lea eax, [esi + 5]
call fcn.0041cdf8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cdf8
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 0x41ce51
mov dword [0x466cf0], 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 0x41e090
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 0x41e096
ret

Function at 0x4204d8
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 0x420529
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420510
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420500
jmp 0x420529
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 0x420511
pop ebx
mov esp, ebp
pop ebp
ret