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 0x40726c
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4640f0], 0
jne 0x40733e
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 0x4072b4
cmp dword [esp + 0x1c], 3
jne 0x407314
cmp dword [esp + 0x20], 0x33
jbe 0x407314
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x407348
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40733e
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x407378
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40733e
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x40733e
cmp byte [esp + 9], 0
jne 0x40733e
jmp 0x407329
push 0
push 0x407378
push 0x407380
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x40733e
mov eax, dword [0x4640e4]
call fcn.00404a24
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4640e8], eax
add esp, 0xac
ret

Function at 0x407c2c
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 0x407cf3
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 0x407cdd
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, 0x407d08
call fcn.00404b68
test eax, eax
jne 0x407cbe
mov eax, ebx
call fcn.00404564
jmp 0x407cdd
push ebx
mov edx, dword [ebx]
mov eax, 0x407d14
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 0x407cfa
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x407d18
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 0x407dc0
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 0x407da5
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 0x407da5
push esi
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 8]
mov eax, 0x407dd8
call fcn.00404b68
test eax, eax
jle 0x407da5
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407dc7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x407df0
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 0x407e72
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 0x407e57
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.00408328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e79
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret
Function at 0x407ed0
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 0x408060
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404824
cmp eax, 2
jl 0x408035
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x408078
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 0x40800d
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 0x407fd6
mov eax, dword [ebp - 0xc]
mov edx, 0x408084
call fcn.00404970
je 0x407ff8
mov eax, dword [ebp - 0xc]
mov edx, 0x408090
call fcn.00404970
je 0x407ff8
lea eax, [ebp - 0x158]
mov ecx, 0x40809c
mov edx, dword [ebp - 8]
call fcn.00404870
mov eax, dword [ebp - 0x158]
call fcn.00407ed0
jmp 0x407ff8
mov eax, dword [ebp - 8]
call fcn.00404a24
mov esi, eax
push esi
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x407ff8
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 0x407f55
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 0x408035
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 0x408067
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404588
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404588
ret
Function at 0x4081ec
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 0x4082fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
call fcn.00407a28
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 4]
call fcn.004045fc
xor edx, edx
mov eax, 2
call fcn.00407744
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.00407764
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4082cc
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.00407a28
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 4]
call fcn.00404970
jne 0x4082bd
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.00407784
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x40826e
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408303
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00404588
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x408684
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
add esp, 0xffffffd8
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.00408680
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
jne 0x4086e0
cmp eax, dword [esp + 0x18]
jb 0x4086c0
jmp 0x4086e2
jl 0x4086c0
call fcn.00408680
sub eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0x28
ret

Function at 0x4087dc
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 0x408869
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 0x408847
test ebx, ebx
je 0x408847
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 0x40884e
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 0x408870
lea eax, [ebp - 4]
call fcn.00404564
ret

Function at 0x408be0
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 0x408c40
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.004079ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c47
lea eax, [ebp - 0x1c]
call fcn.00404564
ret

Function at 0x408c4c
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 0x408ccb
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, 0x408ce0
call fcn.0040482c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00407a28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cd2
lea eax, [ebp - 0x10c]
call fcn.00404564
ret
Function at 0x408de8
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 0x408e8b
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 0x408e92
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x408e9c
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 0x408f60
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 0x408f33
mov eax, dword [ebx]
call fcn.00404a24
mov edx, eax
mov eax, ebx
call fcn.0040475c
jmp 0x408f3a
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 0x408f67
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret
Function at 0x408f70
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 0x409044
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 0x408fdd
lea eax, [ebp + 8]
mov edx, 0x40905c
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 0x40904b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
lea eax, [ebp + 8]
call fcn.00404564
ret

Function at 0x409060
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 0x409105
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 0x40910c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x409118
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 0x40919a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, 0x4091b0
call fcn.00407e84
test al, al
jne 0x409184
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 0x4091a1
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x409244
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
dec dword [ebx - 0x4e1707bb]
mov bh, 0xff
push dword [ebx]
rcl byte [ebp + 0x68], 0xd3
xchg edx, eax
inc eax
add byte [edi + edi*8 + 0x30], ah
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x409284
lea eax, [ebp - 8]
mov edx, 0x4092ec
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 0x4092da
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x40925a
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
dec dword [ebx - 0x4e1707bb]
mov bh, 0xff
push dword [ebx]
rcl byte [ebp + 0x68], 0xd3
xchg edx, eax
inc eax
add byte [edi + edi*8 + 0x30], ah
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x409284
lea eax, [ebp - 8]
mov edx, 0x4092ec
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 0x4092da
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

Function at 0x4092f0
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 0x409353
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 0x40935a
lea eax, [ebp - 4]
call fcn.00404564
ret
Function at 0x409364
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 0x4093fa
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 0x409401
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret

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

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

Function at 0x40de38
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40dcb0
mov eax, dword [0x4651cc]
cmp byte [eax], 0
je 0x40deb4
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.0040afb8
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 0x40defc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40deea
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