joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005cbbd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef0
call fcn.100828c0
mov eax, dword [0x100f6604]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea eax, [ebp - 0x7d4]
xor esi, esi
push 0x7d0
push eax
inc esi
call fcn.100015b9
add esp, 0x10
lea eax, [ebp - 0x2ee8]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x7d4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1005cc1e
push 2
pop eax
jmp 0x1005cc7e
lea eax, [ebp - 0x2eec]
mov dword [ebp - 0x2eec], 0x2710
push eax
lea eax, [ebp - 0x2ee4]
push eax
lea eax, [ebp - 0x2ef0]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005cc70
push 4
lea eax, [ebp - 0x2ee4]
push str.pci_
push eax
call fcn.100aa409
add esp, 0xc
neg eax
sbb eax, eax
and esi, eax
push dword [ebp - 0x2ee8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10082613
leave
ret
Function at 0x1005cc8b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b5c
call fcn.100828c0
mov eax, dword [0x100f6604]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x13
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2b58]
push eax
push 0x20119
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x54]
xor esi, esi
xor edi, edi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1005cce0
push 2
pop eax
jmp 0x1005ce5f
push ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x3e8
push eax
lea eax, [ebp - 0x43c]
mov ebx, esi
push eax
push esi
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005ce40
lea eax, [ebp - 0x2b54]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005ce14
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x2710
push eax
lea eax, [ebp - 0x2b4c]
push eax
lea eax, [ebp - 0x2b5c]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x2b54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005ce0c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2b4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005cda3
test dl, dl
je 0x1005cd9f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005cda3
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005cd83
xor eax, eax
jmp 0x1005cda7
sbb eax, eax
or eax, edi
test eax, eax
jne 0x1005ce0c
lea eax, [ebp - 0x2b50]
mov dword [ebp - 0x2b50], 0x2710
push eax
lea eax, [ebp - 0x2b4c]
push eax
lea eax, [ebp - 0x2b5c]
push eax
push 0
push str.MatchingDeviceId
push dword [ebp - 0x2b54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005ce0c
lea eax, [ebp - 0x2b4c]
push eax
push str.MatchingDeviceId:___s__n
call fcn.1005d5f6
push 4
lea eax, [ebp - 0x2b4c]
push str.pci_
push eax
call fcn.100aa409
add esp, 0x14
test eax, eax
je 0x1005ce4a
push dword [ebp - 0x2b54]
call esi
xor eax, eax
mov dword [ebp - 0x2b50], 0x3e8
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x2b50]
inc ebx
push eax
lea eax, [ebp - 0x43c]
push eax
push ebx
push dword [ebp - 0x2b58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1005cd17
jmp 0x1005ce54
push dword [ebp - 0x2b54]
call esi
xor edi, edi
push dword [ebp - 0x2b58]
call esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10082613
leave
ret
Function at 0x1005d2c3
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.100828c0
mov eax, dword [0x100f6604]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.100852c0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100852c0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.1005d615
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005d352
mov al, 1
jmp 0x1005d45b
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.100852c0
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.100852c0
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.100852c0
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1005d3d4
mov bl, 2
jmp 0x1005d452
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1005d46a
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1005d46a
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005d415
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.1005c899
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005d438
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.1005c899
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10082613
leave
ret
Function at 0x1005ddad
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100f6604]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1005de2a
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.1009a58e
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x1005de2a
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10082613
leave
ret

Function at 0x1005df34
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x100f6604]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.100852c0
add esp, 0xc
test esi, esi
je 0x1005dfcd
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x1005dfcd
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x1005dfaf
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.100847c0
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x100d2c34
push eax
call fcn.1005dd92
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x1005df7b
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.1005dfe0
jmp 0x1005dfcf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10082613
leave
ret 0xc
Function at 0x1005dfe0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x100f6604]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x1005e197
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.1005dea7
mov cx, word [0x100fa0f8]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x100fa0f8], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.100852c0
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.1005de59
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1005e197
test ebx, ebx
jne 0x1005e0b9
xor eax, eax
inc eax
jmp 0x1005e199
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.100852c0
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x1005e181
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x1005e181
mov ecx, edi
call fcn.1005dea7
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x1005e17e
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x1005e17e
cmp byte [ebp + ecx - 0x104], 0
jne 0x1005e17e
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x1005e1aa
lea esi, [edi + 4]
mov ecx, edi
call fcn.1005dea7
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x1005e0d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10082613
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x1005e0b1
Function at 0x10067680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x100fa108], 0
push esi
mov esi, dword [ebp + 8]
jne 0x1006778b
push 0x100fa10c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10067779
test esi, esi
jne 0x1006776e
push ebx
push edi
push 0x100d3700
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x1006774e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x1006774e
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1006774e
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x1006774e
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x1006774e
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x1006774e
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x10067762
push 0
call fcn.1009a67b
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x100fa108], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
nop
call esi
cmp dword [0x100fa108], 0
je 0x10067780
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10067790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x1006789c
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x100677d0
cmp edx, 0xc
ja 0x10067908
jmp dword [edx*4 + 0x10067958]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100b090b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b0513

Function at 0x100c1383
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c11c1
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004060ae
leave
ret 4
Function at 0x401d66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7f94]
mov eax, 0x8014
call fcn.00415410
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x7f90], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x7c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x74]
mov esi, edx
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.SOFTWAREGodlike_DevelopersRAM_Saver_Pro
push 0x80000001
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401dea
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0x4000
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401de1
lea eax, [ebp - 0x70]
push eax
call fcn.00408b93
pop ecx
mov esi, eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x7f90]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004060ae
add ebp, 0x7f94
leave
ret

Function at 0x401e04
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov edi, edx
push eax
push esi
push 6
push esi
push esi
push esi
push str.SOFTWAREGodlike_DevelopersRAM_Saver_Pro
push 0x80000001
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401e38
xor eax, eax
jmp 0x401e62
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push 1
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401e57
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402122
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
push 0xa
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.00408ce4
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, 0x41c1d4
push 0
push eax
call fcn.004020bf
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4021f9
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xbc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x44], 0x44
push ecx
xor esi, esi
mov word [ebp - 0x12], ax
xor edi, edi
mov dword [ebp - 0x40], esi
lea eax, [ebp + 0x10]
mov dword [ebp - 0x3c], esi
inc edi
mov dword [ebp - 0x38], esi
push str.CONTROL.EXE__s
push eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x14], di
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40227a
push dword [ebp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp]
call esi
mov eax, edi
jmp 0x40227c
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.004060ae
add ebp, 0x78
leave
ret
Function at 0x403e3c
Capabilities:
Get memory capacity
Read .ini file

Disassembly:
push esi
push edi
mov esi, 0x422a80
mov edi, 0x41c6d0
push esi
push 0
push edi
push str.Options
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x42200c], eax
cmp eax, 2
jne 0x403eac
push 0x422010
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [0x42201c], 0
ja 0x403e90
cmp dword [0x422018], 0x3fef2000
jae 0x403e90
and dword [0x42200c], 0
push esi
push 0x41c60c
jmp 0x403ea0
push esi
mov dword [0x42200c], 1
push 0x41c620
push edi
push 0x41c610
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
ret
Function at 0x404296
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x422018]
xor edx, edx
push ebx
mov ebx, 0xffa80
div ebx
push ebp
push esi
push edi
push 0x64
pop edi
xor edx, edx
xor ebp, ebp
div edi
push ebp
push ebx
push dword [0x422024]
mov edi, eax
xor esi, esi
push dword [0x422020]
inc esi
imul edi, ecx
call fcn.004156b0
cmp edx, ebp
ja 0x4042db
jb 0x4042d7
cmp eax, edi
jae 0x4042db
mov esi, edi
sub esi, eax
imul eax, esi, 0xffa80
push 0x49
mov dword [0x421a04], eax
pop eax
mov word [0x4207d8], ax
cmp dword [0x4207dc], ebp
je 0x40430b
lea eax, [esp + 0x10]
push eax
push ebp
push ebp
push 0x401e68
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x404368
Capabilities:
Read .ini file

Disassembly:
push esi
push 0x422a80
xor esi, esi
push esi
push str.Nosaver
push 0x41c610
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 2
push esi
test eax, eax
jne 0x40438c
push 1
jmp 0x40438d
push esi
push 0x11
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
pop esi
ret

Function at 0x4044cb
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x422058
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.monram.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 5
mov eax, 0x41c59c
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
push str.open
push dword [0x421b34]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004060ae
leave
ret
push 0x422a80
push 0
push 0x41c628
push 0x41c610
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x4043c5
jmp fcn.00404429

Function at 0x4044ef
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x422058
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.moncpu.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 5
mov eax, 0x41c59c
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
push str.open
push dword [0x421b34]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004060ae
leave
ret
push 0x422a80
push 0
push str.MonCPU
push 0x41c610
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x404448
jmp fcn.004044ac