joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bf918
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push 0x94
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.00486aa0
add esp, 0xc
mov dword [ebp - 0x94], 0x94
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4bf95e
mov dword [ebp - 0x98], 0
jmp 0x4bf9b2
cmp dword [ebp - 0x84], 1
jne 0x4bf96e
mov eax, 1
jmp 0x4bf9b8
cmp dword [ebp - 0x84], 2
jne 0x4bf9b2
cmp dword [ebp - 0x90], 5
jne 0x4bf990
cmp dword [ebp - 0x8c], 0
jne 0x4bf990
mov eax, 2
jmp 0x4bf9b8
cmp dword [ebp - 0x90], 5
jne 0x4bf9a2
cmp dword [ebp - 0x8c], 1
jae 0x4bf9ab
cmp dword [ebp - 0x90], 6
jb 0x4bf9b2
mov eax, 3
jmp 0x4bf9b8
mov eax, dword [ebp - 0x98]
mov esp, ebp
pop ebp
ret

Function at 0x4bfd9a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push edi
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x4bfe24
cmp dword [ebp - 0x90], 4
ja 0x4bfdfc
mov dword [ebp - 0x98], 0
jmp 0x4bfe24
cmp dword [ebp - 0x90], 5
jne 0x4bfe1a
cmp dword [ebp - 0x8c], 1
jae 0x4bfe1a
mov dword [ebp - 0x98], 0
jmp 0x4bfe24
mov dword [ebp - 0x98], 1
mov eax, dword [ebp - 0x98]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4c5c9f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
push 0x30c
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x4c5ccd
mov eax, 0x2001c002
jmp 0x4c5d82
mov byte [ebp - 0x18], 0x25
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x2e
mov byte [ebp - 0x15], 0x25
mov byte [ebp - 0x14], 0x64
mov byte [ebp - 0x13], 0x2e
mov byte [ebp - 0x12], 0x25
mov byte [ebp - 0x11], 0x64
mov byte [ebp - 0x10], 0x2e
mov byte [ebp - 0xf], 0x25
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 0xd], 0x25
mov byte [ebp - 0xc], 0x64
mov byte [ebp - 0xb], 0x28
mov byte [ebp - 0xa], 0x42
mov byte [ebp - 9], 0x75
mov byte [ebp - 8], 0x69
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x64
mov byte [ebp - 5], 0x20
mov byte [ebp - 4], 0x25
mov byte [ebp - 3], 0x64
mov byte [ebp - 2], 0x29
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 8]
and ecx, 0x1fff
push ecx
push 1
push 0x5106ac
mov edx, dword [ebp + 8]
shr edx, 0x11
and edx, 0x7f
push edx
mov eax, dword [ebp + 8]
shr eax, 0x18
and eax, 0xf
push eax
mov ecx, dword [ebp + 8]
shr ecx, 0x1c
and ecx, 0xf
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x104
mov eax, dword [ebp - 0x20]
add eax, 0x41c
push eax
call fcn.004c5960
add esp, 0x24
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4c6299
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed588
push 0x489ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x338], ecx
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x32c], 0
mov byte [ebp - 0x220], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x11c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x324], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x323]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x330], 0
mov eax, dword [ebp - 0x338]
cmp dword [eax], 1
jne 0x4c6343
xor eax, eax
jmp 0x4c6521
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x338]
mov dword [ecx + 0x738], eax
mov edx, dword [ebp - 0x338]
cmp dword [edx + 0x738], 0
jne 0x4c638e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], 0x2001c042
jmp 0x4c64df
push 0x10000000
push 0
push 0
push 0
mov eax, dword [ebp - 0x338]
add eax, 0x110
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x338]
mov dword [ecx + 0x72c], eax
mov edx, dword [ebp - 0x338]
cmp dword [edx + 0x72c], 0
jne 0x4c63e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], 0x2001c043
jmp 0x4c64df
push 0x4c61a2
mov eax, dword [ebp - 0x338]
mov ecx, dword [eax + 0x72c]
push ecx
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4c6419
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], 0x2001c04e
jmp 0x4c64df
push 1
push 0
push 3
push 0
push 0
mov edx, dword [ebp - 0x338]
mov ax, word [edx + 0x728]
push eax
mov ecx, dword [ebp - 0x338]
add ecx, 0xc
push ecx
mov edx, dword [ebp - 0x338]
mov eax, dword [edx + 0x72c]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [ebp - 0x338]
mov dword [ecx + 0x730], eax
mov edx, dword [ebp - 0x338]
cmp dword [edx + 0x730], 0
jne 0x4c64d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0x3e5
je 0x4c648d
mov dword [ebp - 0x328], 0x2001c044
jmp 0x4c64df
push 0x3e8
mov eax, dword [ebp - 0x338]
mov ecx, dword [eax + 0x738]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x4c64d5
cmp dword [ebp - 0x328], 0xffffffff
jne 0x4c64d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], 0x2001c044
jmp 0x4c64df
mov dword [ebp - 0x328], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x4c651b
mov eax, dword [ebp - 0x328]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c8b20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed608
push 0x489ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffdac
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x40], 0x43
mov byte [ebp - 0x3f], 0x48
mov byte [ebp - 0x3e], 0x73
mov byte [ebp - 0x3d], 0x4d
mov byte [ebp - 0x3c], 0x6f
mov byte [ebp - 0x3b], 0x6e
mov byte [ebp - 0x3a], 0x69
mov byte [ebp - 0x39], 0x74
mov byte [ebp - 0x38], 0x6f
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x3a
mov byte [ebp - 0x35], 0x3a
mov byte [ebp - 0x34], 0x47
mov byte [ebp - 0x33], 0x65
mov byte [ebp - 0x32], 0x74
mov byte [ebp - 0x31], 0x53
mov byte [ebp - 0x30], 0x79
mov byte [ebp - 0x2f], 0x73
mov byte [ebp - 0x2e], 0x74
mov byte [ebp - 0x2d], 0x65
mov byte [ebp - 0x2c], 0x6d
mov byte [ebp - 0x2b], 0x42
mov byte [ebp - 0x2a], 0x61
mov byte [ebp - 0x29], 0x73
mov byte [ebp - 0x28], 0x69
mov byte [ebp - 0x27], 0x63
mov byte [ebp - 0x26], 0x49
mov byte [ebp - 0x25], 0x6e
mov byte [ebp - 0x24], 0x66
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0
mov dword [ebp - 4], 0
push 0x104
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.00486aa0
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [ebp - 0x264]
call fcn.004c8e51
cmp eax, 1
jne 0x4c8c3a
push 0x104
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x264]
add ecx, 0x84c
push ecx
call fcn.00485c00
add esp, 0xc
push 0xc
push 0
lea edx, [ebp - 0x254]
push edx
call fcn.00486aa0
add esp, 0xc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x254], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x44]
and eax, 0xffff
cmp eax, 9
je 0x4c8c92
mov ecx, dword [ebp - 0x44]
and ecx, 0xffff
cmp ecx, 6
jne 0x4c8cf5
mov dword [ebp - 0x250], 1
mov dword [ebp - 0x25c], 0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x4c8ce0
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x258]
cmp dword [ebp - 0x25c], 1
jne 0x4c8cf3
mov dword [ebp - 0x24c], 1
jmp 0x4c8d14
mov eax, dword [ebp - 0x44]
and eax, 0xffff
test eax, eax
jne 0x4c8d14
cmp dword [ebp - 0xcc], 1
jne 0x4c8d14
mov dword [ebp - 0x250], 0
push 0xc
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x264]
add edx, 0x950
push edx
call fcn.00485c00
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x4c8d68
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cb4d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x4cb4e2
cmp dword [ebp + 0xc], 0
jne 0x4cb4e6
xor eax, eax
jmp 0x4cb547
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x4cb514
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 8], ecx
jae 0x4cb545
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0xc]
jb 0x4cb543
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 4]
add edx, dword [eax + 8]
cmp dword [ebp + 8], edx
jae 0x4cb543
mov eax, dword [ebp - 4]
jmp 0x4cb547
jmp 0x4cb502
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4cba89
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
je 0x4cbab0
cmp dword [ebp + 0xc], 0
jne 0x4cbabf
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4cbb85
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
and ecx, 0xfffff000
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x4cbb00
mov eax, dword [ebp - 4]
jmp 0x4cbb85
mov dword [ebp - 0x18], 0
jmp 0x4cbb12
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x400
jae 0x4cbb66
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4]
xor edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax*4]
cmp edx, dword [ebp - 0xc]
je 0x4cbb64
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
xor edx, edx
test edx, edx
je 0x4cbb64
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
jmp 0x4cbb09
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4cd320
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed698
push 0x489ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4cd370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4cd399
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4cd3af
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed6a8
push 0x489ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4cd41a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x4cd460
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4cd43a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x4cd460
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0xffffffff
cmp dword [ebp - 0x24], 0x1f4000
jbe 0x4cd460
mov eax, dword [ebp + 8]
push eax
call fcn.004cd320
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4cd489
cmp dword [ebp - 0x20], 0xffffffff
je 0x4cd4a0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cdf9e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed6f8
push 0x489ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffac
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [ebp + 8], 0xffffffff
je 0x4cdfd0
cmp dword [ebp + 0x10], 0
jne 0x4cdfda
mov eax, 0x57
jmp 0x4ce0b1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x60], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp eax, 1
je 0x4ce02b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x4ce085
mov ecx, dword [ebp - 0x60]
and ecx, 0xffff
cmp ecx, 0x5a4d
je 0x4ce045
mov dword [ebp - 0x20], 0xb
jmp 0x4ce085
lea edx, [ebp - 0x1c]
push edx
push 0xf8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp eax, 1
je 0x4ce073
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x4ce085
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x4ce085
mov dword [ebp - 0x20], 0xb
mov dword [ebp - 4], 0xffffffff
jmp 0x4ce0ae
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4ce235
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ce262
mov eax, dword [ebp + 0x14]
jmp 0x4ce2a7
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0x4ce29e
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x4ce2a4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ce3c1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4ce416
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4ce48c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x18]
call fcn.004d2910
mov dword [ebp - 4], 1
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4ce52a
mov edx, dword [ebp - 0x20]
lea eax, [edx + edx + 2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004d2a82
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
call fcn.004d2b08
cmp dword [ebp + 0x14], 0
je 0x4ce538
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
cmp dword [ebp - 0x1c], 0
jne 0x4ce546
lea edx, [ebp - 0x18]
mov dword [ebp - 0x40], edx
jmp 0x4ce570
push 0xffffffffffffffff
push 0x510b00
lea ecx, [ebp - 0x38]
call fcn.004d2926
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
or al, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004d2967
mov edx, dword [ebp - 0x3c]
or edx, 2
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4ce5a8
and dword [ebp - 0x3c], 0xfffffffe
lea ecx, [ebp - 0x38]
call fcn.004d29c1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004d29c1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ce5c7
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd174
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4ce60c
mov eax, dword [ebp - 0x14]
jmp 0x4ce6d3
cmp dword [ebp - 0x14], 0
jne 0x4ce6c6
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.004ce48c
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x103
jne 0x4ce651
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004d29c1
jmp 0x4ce6c6
cmp dword [ebp - 0x14], 0
jne 0x4ce6b2
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d2926
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004d3487
lea ecx, [ebp - 0x2c]
call fcn.004d3020
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004ce5c7
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ce6a6
lea ecx, [ebp - 0x20]
call fcn.004d3020
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004d29c1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004d29c1
jmp 0x4ce60c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4cfa9b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x4cfab4
cmp dword [ebp + 0x10], 0
jne 0x4cfabe
mov eax, 0x30000002
jmp 0x4cfbb4
mov eax, dword [ebp + 0x10]
push eax
call fcn.0048ab32
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4cfadd
mov eax, 0x3000000d
jmp 0x4cfbb4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00485c00
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
lea edx, [ebp + 0x14]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x4cfb15
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jae 0x4cfb66
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 4
div ecx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov al, byte [eax]
xor al, byte [ecx + edx]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], al
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov al, byte [edx]
xor al, byte [ebp - 4]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], al
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0x4cfb0c
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4cfb89
mov eax, 0x30000005
jmp 0x4cfbb4
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
je 0x4cfb98
mov eax, 0x30000009
jmp 0x4cfbb4
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
cmp dword [ebp - 8], 0
je 0x4cfbb2
mov eax, dword [ebp - 8]
push eax
call fcn.00488be3
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4cfbba
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4cfc02
jmp 0x4cfc76
mov edx, dword [ebp - 0xc]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4cfc20
jmp 0x4cfc76
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
je 0x4cfc3c
jmp 0x4cfc76
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0x509df0
mov eax, dword [ebp - 8]
push eax
call sub.VERSION.dll_VerQueryValueA
cmp eax, 1
je 0x4cfc59
jmp 0x4cfc76
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 8], 0
je 0x4cfc8f
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0xc