joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406460
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
call fcn.00412430
mov edi, str.ishare_user.dat
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push eax
push 2
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x24]
push 0xc0000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4064e7
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
push 0x7fc
push 0
mov dword [esp + 0x14], 0x7fc
call fcn.00406180
mov edx, dword [esp + 0x14]
add esp, 8
lea ecx, [esp + 0xc]
push 0
push ecx
push edx
push 0x428478
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
push esi
jne 0x40652d
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret
Function at 0x406580
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
xor eax, eax
push 0x424c48
push 0x20019
mov ecx, 0x64
mov edi, 0x424ab8
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
rep stosd dword es:[edi], eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4065ea
mov eax, dword [0x424c48]
push 0x424ab4
push 0x424ab8
push 0
push eax
mov dword [0x424ab4], 0x18e
call edi
mov ecx, dword [0x424c48]
test eax, eax
push ecx
je 0x4066c5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x424c48
push 0x20019
push 0
push str.SOFTWAREClasseshttp_shellopencommand
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x40662e
mov edi, str._C:PROGRA1Plus_MICROS1iexplore.exe_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x424ab8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
mov eax, dword [0x424c48]
push 0x424ab4
push 0x424ab8
push 0
push eax
mov dword [0x424ab4], 0x18e
call edi
test eax, eax
je 0x406685
mov ecx, dword [0x424c48]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str._C:PROGRA1Plus_MICROS1iexplore.exe_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x424ab8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
mov eax, dword [0x424c48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str..exe
push 0x424ab8
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4066cb
mov dl, byte [0x424ab8]
mov cl, 0x22
cmp dl, cl
jne 0x4066be
pop edi
mov byte [eax + 4], cl
mov byte [eax + 5], 0
pop esi
ret
pop edi
mov byte [eax + 4], 0
pop esi
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
ret

Function at 0x406820
Capabilities:
Create thread

Disassembly:
mov edx, dword [0x424a94]
push ebx
push esi
push edi
lea eax, [edx + edx*4]
mov ecx, 0x32
lea eax, [eax + eax*4]
lea ebx, [eax*8 + 0x424518]
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
cmp edx, 7
mov dword [0x424a94], edx
pop ebx
jl 0x406877
xor edx, edx
mov dword [0x424a94], edx
mov eax, dword [0x424a98]
cmp edx, eax
jne 0x406895
inc eax
cmp eax, 7
mov dword [0x424a98], eax
jl 0x406895
mov dword [0x424a98], 0
mov eax, dword [0x424a90]
test eax, eax
jne 0x4068a3
jmp fcn.00406780
ret
Function at 0x406cb0
Capabilities:
Create udp socket

Disassembly:
push esi
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x424508], eax
jne 0x406ccb
xor al, al
pop esi
ret
mov al, byte [0x4294b2]
mov esi, dword [sym.imp.WS2_32.dll_htons]
inc al
push 0xf000
mov byte [0x4294b2], al
mov word [0x4244f8], 2
mov dword [0x4244fc], 0
call esi
mov word [0x4244fa], ax
mov eax, dword [0x424508]
push 0x10
push 0x4244f8
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x406d40
mov dl, byte [0x4294b2]
mov ecx, dword [esp + 8]
inc dl
push 1
mov byte [0x4294b2], dl
mov edx, dword [0x424508]
push 0x465
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x406d50
mov eax, dword [0x424508]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
ret
push 0xf000
mov dword [0x4244e0], 0x10
mov word [0x4244e8], 2
call esi
mov word [0x4244ea], ax
mov dword [0x4244ec], 0
mov al, 1
pop esi
ret

Function at 0x406d80
Capabilities:
Send data
Send data on socket

Disassembly:
test dword [0x42874c], 0x80000
je 0x406d8f
xor eax, eax
ret
mov eax, dword [esp + 0xc]
test eax, eax
jge 0x406d9a
xor eax, eax
ret
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0x10
push 0x4244e8
push 0
push eax
mov eax, dword [0x424508]
push edx
push eax
mov dword [0x4244ec], ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, eax
inc eax
neg eax
sbb eax, eax
mov dword [0x4244d8], ecx
and eax, ecx
ret
Function at 0x4080e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x424508]
push ebx
push 0x4244e0
push 0x4244f8
push 0
push 0x640
push 0x423e98
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
mov dword [0x4244dc], eax
je 0x408287
mov eax, dword [0x42842c]
cmp eax, 0xa
jl 0x40812b
call dword [sym.imp.MSVCRT.dll_clock]
mov dword [0x4290d0], eax
mov eax, dword [0x42842c]
mov bl, byte [0x423e98]
cmp bl, 7
jne 0x40814b
cmp byte [0x423e9c], 0xb
jne 0x40814b
push 2
call fcn.0040f0b0
add esp, 4
pop ebx
ret
mov ecx, dword [0x429490]
mov edx, dword [0x4244fc]
cmp ecx, edx
je 0x4081e0
cmp ecx, 0x1010101
jne 0x408287
mov ecx, dword [0x42944c]
test ecx, ecx
je 0x40817e
cmp dword [0x429450], 1
je 0x40819c
cmp eax, 1
jne 0x40818a
cmp bl, 2
je 0x40819c
pop ebx
ret
cmp eax, 9
jne 0x408287
cmp bl, 2
jne 0x408287
push esi
push edi
push 0x429490
mov dword [0x429490], edx
call fcn.0040a1d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov bl, byte [0x423e98]
mov edx, ecx
mov esi, edi
mov edi, 0x428cac
mov eax, dword [0x42842c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
cmp bl, 7
jne 0x408221
push 8
call fcn.0040f0b0
add esp, 4
test al, al
je 0x408287
mov eax, dword [0x42944c]
test eax, eax
je 0x408215
cmp dword [0x429450], 1
jl 0x408215
push 1
call fcn.0040e330
add esp, 4
pop ebx
ret
push 3
call fcn.0040d080
add esp, 4
pop ebx
ret
test dword [0x42874c], 0x80000
je 0x408247
mov eax, dword [0x429440]
test eax, eax
je 0x408287
mov eax, dword [0x41e16c]
cmp eax, 3
jl 0x408287
cmp eax, 0x64
jl 0x408274
pop ebx
ret
cmp bl, 0x20
jae 0x408274
dec eax
je 0x40826d
dec eax
je 0x40825e
sub eax, 7
jne 0x408287
call fcn.00407f70
pop ebx
ret
mov eax, dword [esp + 8]
push eax
call fcn.00407e50
add esp, 4
pop ebx
ret
call fcn.004073a0
pop ebx
ret
cmp bl, 0x4d
jne 0x408287
cmp dword [0x4244dc], 2
jl 0x408287
call fcn.00406dd0
pop ebx
ret
Function at 0x4087d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x84
mov dword [0x427e84], 0x94
push ebx
push esi
push edi
xor ebx, ebx
push 0x427e84
mov dword [0x424ca8], ebx
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov edi, 0x42052c
or ecx, 0xffffffff
xor eax, eax
push 0x80
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x427e50
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40890e
push ebp
lea edx, [esp + 0x14]
push 0x20
push edx
push 0x427e50
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
mov dword [esp + 0x10], ebx
cmp ebp, ebx
je 0x4088c6
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, 0x424cac
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x424ca8]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x4088c6
mov eax, dword [eax]
push eax
call edi
push eax
call ebx
mov ecx, eax
mov dword [esi], eax
and ecx, 0xff
cmp ecx, 0xa9
je 0x4088b6
cmp ecx, 0x7f
je 0x4088b6
cmp ecx, 0xff
je 0x4088b6
test eax, eax
je 0x4088b6
mov ecx, dword [esp + 0x10]
inc ecx
add esi, 4
mov dword [esp + 0x10], ecx
cmp esi, 0x424ccc
je 0x408902
inc dword [0x424ca8]
jmp 0x40886f
mov esi, dword [0x429470]
test esi, esi
je 0x408902
mov eax, dword [0x424cac]
cmp eax, esi
je 0x408902
mov edx, eax
mov dword [0x424cac], esi
test edx, edx
je 0x408902
mov ecx, dword [0x424ca8]
cmp ecx, 1
jle 0x408902
mov eax, 0x424cb0
dec ecx
cmp dword [eax], esi
jne 0x4088fc
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x4088f6
mov eax, dword [esp + 0x10]
pop ebp
mov dword [0x424ca8], eax
jmp 0x408913
mov eax, dword [0x424ca8]
test eax, eax
jne 0x408955
push 0x424ca8
call fcn.0040f030
mov edx, dword [0x424ca8]
add esp, 4
test edx, edx
je 0x408953
mov edi, str.drcom
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x427e50
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x84
ret
Function at 0x4089e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x198
push ebp
mov ebp, dword [esp + 0x1a0]
test ebp, ebp
jne 0x408a04
mov dword [0x429424], 0xa
pop ebp
add esp, 0x198
ret
mov eax, dword [0x429428]
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push 0x41e854
push ecx
mov dword [0x429424], 0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xad]
mov byte [esp + 0xac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xac]
push 0x104
push edx
stosb byte es:[edi], al
call fcn.00412430
mov edi, str.update.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa0]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.3.723106
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
test ecx, ecx
jle 0x408aad
mov al, byte [edi + str.3.723106]
cmp al, 0x30
jl 0x408aa8
cmp al, 0x39
jle 0x408aad
inc edi
cmp edi, ecx
jl 0x408a9a
lea eax, [esp + 0xa0]
push eax
push str.Version
push str.Common
call fcn.00405fb0
add esp, 0xc
mov esi, eax
lea ecx, [edi + str.3.723106]
mov dl, byte [ecx]
mov al, dl
cmp dl, byte [esi]
jne 0x408af3
test al, al
je 0x408aef
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x408af3
add ecx, 2
add esi, 2
test al, al
jne 0x408acf
xor eax, eax
jmp 0x408af8
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
test eax, eax
je 0x408b1b
lea eax, [esp + 0xa0]
push eax
push str.3.72310600
push str.Version
push str.Common
call edi
lea ecx, [esp + 0xa0]
push ecx
push str.VersionDll
push str.Common
call fcn.00405fb0
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0x1c]
mov dl, byte [ecx]
mov al, dl
cmp dl, byte [esi]
jne 0x408b5f
test al, al
je 0x408b5b
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x408b5f
add ecx, 2
add esi, 2
test al, al
jne 0x408b3b
xor eax, eax
jmp 0x408b64
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408b81
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x1c]
push eax
push ecx
push str.VersionDll
push str.Common
call edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x5c]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.update.exe
push 0
mov dword [esp + 0x84], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x408be9
cmp ebp, 1
jne 0x408be9
push ebp
push eax
push 0x37
mov dword [0x429460], eax
call fcn.004047d0
add esp, 4
push eax
call fcn.00409af0
add esp, 0xc
pop ebp
add esp, 0x198
ret
mov dword [0x429460], 1
pop ebp
add esp, 0x198
ret
Function at 0x408c00
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408c6a
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408c5f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp edx, eax
jne 0x408c5f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
ret

Function at 0x408c70
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408c9e
xor eax, eax
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x408cd1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x4091a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4091df
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x409232
mov ebp, dword [esp + 0x11c]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push ebp
push eax
push ecx
call fcn.00408cf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40924a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
inc edi
push 0x104
push edx
push edi
push eax
call ebx
test eax, eax
je 0x409202
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x409550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push str.tcpipdog.dll
call fcn.00415f80
add esp, 4
test eax, eax
je 0x4095b7
call fcn.004094d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4095b7
mov edi, str.TcpIpDog.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov esi, edi
mov edx, ecx
mov edi, 0x423610
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x423610
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
je 0x4095b7
call fcn.00409270
pop edi
ret

Function at 0x4095c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
je 0x40962a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40962a
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4095e8
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
sete al
pop esi
ret
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40962a
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40961f
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
ret
Function at 0x409af0
Capabilities:
Check os version
Print debug messages

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
mov esi, dword [esp + 0x218]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov ebp, dword [esp + 0x220]
push ebp
push esi
call fcn.00415a30
mov ebx, dword [esp + 0x22c]
push ebx
push esi
call fcn.00409920
mov eax, dword [0x429418]
add esp, 0x10
test eax, eax
je 0x409b5a
cmp ebp, 5
jne 0x409b5a
push 0x30
push 0x2d
call fcn.004047d0
add esp, 4
push eax
mov eax, dword [0x428cd4]
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
cmp dword [0x42944c], 1
je 0x409b71
mov ecx, dword [0x429458]
test ecx, ecx
jne 0x409b71
test eax, eax
je 0x409b81
test dword [0x42868c], 0x800000
je 0x409d16
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409d16
test dword [0x428684], 0x10000
je 0x409ba8
push esi
call fcn.00418280
add esp, 4
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [0x428cd0]
mov dword [esp + 0x10], eax
push ecx
call fcn.00401370
add esp, 4
cmp eax, 0x64
jl 0x409be7
mov edx, dword [0x428cd0]
dec eax
push eax
push edx
call fcn.004015e0
mov eax, dword [0x428cd0]
push eax
call fcn.00401370
add esp, 0xc
cmp eax, 0x64
jge 0x409bc6
push esi
call fcn.00418d30
mov edi, eax
add esp, 4
test edi, edi
jne 0x409c01
push esi
call fcn.00418d80
add esp, 4
mov edi, eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1e]
lea edx, [edi + esi]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x20]
and ecx, 0xffff
push eax
mov eax, dword [str._02d:_02d:_02d____s]
and edx, 0xffff
push ecx
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x428cd0]
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.00401520
add esp, 0x20
cmp ebp, 4
je 0x409c9b
test byte [0x429498], 1
jne 0x409c9b
test edi, edi
jne 0x409c9b
test byte [0x42868c], 0x20
jne 0x409c9b
cmp ebx, 3
jne 0x409c85
mov ecx, dword [0x428cd4]
push edi
push esi
push ecx
call fcn.00418ba0
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
cmp ebx, 2
je 0x409ccb
cmp ebx, 3
je 0x409ccb
mov eax, dword [0x428cd4]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x428cd4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov ecx, eax
and ecx, 0xff
cmp ecx, 5
jb 0x409ce9
jne 0x409d04
xor edx, edx
mov dl, ah
cmp dl, 1
jae 0x409d04
mov eax, dword [0x428cd4]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x428cd4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0x428cd4]
push 0
push esi
push edx
call fcn.00418ba0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x409d30
Capabilities:
Print debug messages

Disassembly:
test dword [0x42868c], 0x800000
jne 0x409d4d
push str.debug
call fcn.00415f80
add esp, 4
test eax, eax
je 0x409d6a
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [esp + 0xc]
push 1
push eax
push esi
call fcn.00409af0
add esp, 0xc
pop esi
ret

Function at 0x409e80
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, 0x428f34
or ecx, 0xffffffff
xor eax, eax
push 0x12d
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x423158
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
push esi
push 0x423158
push 0x50000000
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowA]
test eax, eax
mov dword [0x423220], eax
je 0x409ef4
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.00409da0
add esp, 4
push 0
push 0x3e8
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x40a1e0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x428cc8]
push eax
push 0x12f
push 0
push 0x12f
push ecx
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov edx, dword [0x428cd4]
push edx
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov eax, dword [0x429458]
test eax, eax
jne 0x40a21d
mov eax, dword [0x429418]
test eax, eax
je 0x40a22b
mov eax, dword [0x428cd4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x40a3a0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x228
push ebx
push esi
push edi
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
mov byte [esp + 0xf], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x238]
xor bl, bl
push eax
push 8
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a3e7
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x228
ret
lea ecx, [esp + 0x10]
push ebp
push ecx
push esi
mov dword [esp + 0x1c], 0x224
call sub.KERNEL32.DLL_Module32First
test eax, eax
je 0x40a455
mov edi, dword [esp + 0x240]
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
mov edx, dword [esp + 0x23c]
mov eax, dword [esp + 0x1c]
cmp eax, edx
jne 0x40a43d
test bl, bl
je 0x40a43b
lea eax, [esp + 0x34]
push eax
call ebp
lea ecx, [esp + 0x38]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
jne 0x40a44e
jmp 0x40a43d
mov bl, 1
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.DLL_Module32Next
test eax, eax
je 0x40a45a
jmp 0x40a40c
mov byte [esp + 0x13], 1
jmp 0x40a45a
mov byte [esp + 0x13], 0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x228
ret