joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf0b0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x120], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x576d60
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x11c], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4cf1ec
mov byte [ebp - 0x118], bl
push 0x103
push ebx
lea eax, [ebp - 0x117]
push eax
call fcn.004ff6f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x118]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4cf167
mov edx, dword [str.psapi.dll]
mov dword [eax], edx
mov ecx, dword [0x5779d8]
mov dword [eax + 4], ecx
mov dx, word [0x5779dc]
mov word [eax + 8], dx
mov cl, byte [0x5779de]
mov byte [eax + 0xa], cl
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0xc], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4cf1f2
push str.EnumProcesses
push eax
call edi
mov dword [esi + 0x24], eax
push str.EnumProcessModules
mov eax, dword [esi + 0xc]
push eax
call edi
mov dword [esi + 0x28], eax
push 0x577998
mov ecx, dword [esi + 0xc]
push ecx
call edi
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x24], ebx
je 0x4cf1f2
cmp dword [esi + 0x28], ebx
je 0x4cf1f2
cmp eax, ebx
je 0x4cf1f2
mov dword [esi + 8], 1
jmp 0x4cf1f2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi + 8], ebx
jne 0x4cf26b
push 0x57797c
mov edx, dword [ebp - 0x11c]
push edx
call edi
mov dword [esi + 0x10], eax
push 0x57796c
mov eax, dword [ebp - 0x11c]
push eax
call edi
mov dword [esi + 0x14], eax
push 0x57795c
mov ecx, dword [ebp - 0x11c]
push ecx
call edi
mov dword [esi + 0x18], eax
push str.Module32First
mov edx, dword [ebp - 0x11c]
push edx
call edi
mov dword [esi + 0x1c], eax
push str.Module32Next
mov eax, dword [ebp - 0x11c]
push eax
call edi
mov dword [esi + 0x20], eax
cmp dword [esi + 0x10], ebx
je 0x4cf26b
cmp dword [esi + 0x14], ebx
je 0x4cf26b
cmp dword [esi + 0x18], ebx
je 0x4cf26b
cmp dword [esi + 0x1c], ebx
je 0x4cf26b
cmp eax, ebx
je 0x4cf26b
mov dword [esi + 4], 1
cmp dword [esi + 4], ebx
jne 0x4cf275
cmp dword [esi + 8], ebx
je 0x4cf27b
mov dword [esi], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4cf2a8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4cfd90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546d98
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], eax
je 0x4cfec0
mov ebx, dword [esi + 0x28]
sub ebx, dword [esi + 0x20]
mov dword [ebp - 0x30], ebx
mov edi, dword [esi + 0x2c]
sub edi, dword [esi + 0x24]
mov dword [ebp - 0x2c], edi
cmp dword [esi + 0x40], eax
je 0x4cfe13
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x1c]
dec eax
je 0x4cfe0a
dec eax
jne 0x4cfe13
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edi
jmp 0x4cfe13
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ebx
cmp dword [esi + 0x4c], 0
je 0x4cfe24
add ebx, 4
mov dword [ebp - 0x30], ebx
add edi, 4
jmp 0x4cfe3e
cmp dword [esi + 0x50], 0
je 0x4cfe41
mov eax, dword [esi + 0x1c]
dec eax
je 0x4cfe3b
dec eax
jne 0x4cfe41
add ebx, 2
mov dword [ebp - 0x30], ebx
jmp 0x4cfe41
add edi, 2
mov dword [ebp - 0x2c], edi
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
lea edx, [eax + edi]
push edx
lea edx, [ecx + ebx]
push edx
push eax
push ecx
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
push edi
push ebx
mov ecx, dword [esi + 0x24]
push ecx
mov edx, dword [esi + 0x20]
push edx
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
lea ecx, [ebp - 0x3c]
call fcn.00498260
mov byte [ebp - 4], 1
mov edi, edi
lea ecx, [ebp - 0x3c]
call fcn.00498ec0
test eax, eax
je 0x4cfe9f
mov ecx, dword [eax]
mov edx, dword [ecx]
mov edi, dword [eax + 8]
push edi
mov eax, dword [eax + 4]
push eax
mov edx, dword [edx + 0x10]
call edx
jmp 0x4cfe80
push 5
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00498280
jmp 0x4cfed2
push eax
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
Function at 0x4d66a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 5
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov edi, dword [ebp + 0xc]
push edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.004d61a0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4d677d
push edi
push ebx
call fcn.004d6400
add esp, 8
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4d6771
push edi
push ebx
call fcn.004d6580
add esp, 8
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4d6763
lea ecx, [ebp - 0x1c]
push ecx
push 0xc0000000
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4d6763
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push esi
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
push ecx
push edi
push ebx
call fcn.004d62e0
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call fcn.004808a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d7240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x34], edi
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x40], ebx
cmp ebx, 0xffffffff
je 0x4d73f2
mov dword [ebp - 0x18], esi
add edi, 4
mov ecx, edi
call fcn.00498030
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.00498900
mov esi, eax
test esi, esi
je 0x4d72d8
mov ecx, esi
call fcn.00497c50
test eax, eax
je 0x4d72ce
mov al, byte [eax + 0x20]
test al, al
je 0x4d72ce
inc dword [ebp - 0x18]
push esi
mov ecx, edi
call fcn.00498910
jmp 0x4d72b3
mov dword [ebp - 4], 0
jmp 0x4d72f1
mov esi, dword [ebp - 0x34]
add esi, 4
mov ecx, esi
call fcn.004980a0
mov dword [ebp - 0x20], 0xa528b384
mov dword [ebp - 0x1c], 1
push 0
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
mov ecx, esi
call fcn.00498030
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00498900
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4d73c0
mov ecx, eax
call fcn.00497c50
mov esi, eax
test esi, esi
je 0x4d73a9
mov al, byte [esi + 0x20]
test al, al
je 0x4d73a9
mov dword [ebp - 0x30], 0x713e9882
mov edx, dword [esi + 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [esi + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7365
sub eax, edx
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24], eax
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0x10
lea edx, [ebp - 0x30]
push edx
push ebx
call edi
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [esi + 4]
push edx
push ebx
call edi
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [esi + 0x10]
push edx
push ebx
call edi
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00498910
mov dword [ebp - 0x38], eax
jmp 0x4d7336
mov dword [ebp - 4], 0
jmp 0x4d73d9
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.004980a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
Function at 0x4d8a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547c4b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.004d7190
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d8b33
push 0
lea eax, [ebp - 0x34]
push eax
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
cmp dword [ebp - 0x34], 0xc
jne 0x4d8b2c
cmp dword [ebp - 0x20], 0xa528b384
jne 0x4d8b2c
cmp dword [ebp - 0x1c], 1
jne 0x4d8b2c
jmp 0x4d8ae0
cmp dword [ebp - 0x18], 0
jbe 0x4d8bd4
push 0
lea edx, [ebp - 0x34]
push edx
push 0x10
lea eax, [ebp - 0x30]
push eax
push esi
call edi
cmp dword [ebp - 0x34], 0x10
jne 0x4d8b2c
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00480850
add esp, 4
mov ebx, eax
push 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x28]
push eax
push ebx
push esi
call edi
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x28]
je 0x4d8b51
push ebx
call fcn.004808a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x24]
push edx
call fcn.00480850
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x24]
je 0x4d8b8a
push ebx
call fcn.004808a0
push edi
call fcn.004808a0
add esp, 8
jmp 0x4d8b2c
push 0x24
call fcn.00480850
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4d8bae
mov ecx, dword [ebp - 0x24]
push ecx
push edi
push ebx
mov ecx, eax
call fcn.004d7420
jmp 0x4d8bb0
xor eax, eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [eax + 8], edx
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.00498400
dec dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4d8ae0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x4d8b33
Function at 0x4dc040
Capabilities:
Check internet connectivity via wininet
Create http request
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push esi
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x4dc0b9
push edi
push esi
push esi
push esi
push esi
push str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_4.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, esi
je 0x4dc0b1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push esi
lea edx, [ebp - 0x10]
push edx
push 0x4dbd90
push 0xfa0
push esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
call fcn.005008fb
add esp, 0x18
mov esi, eax
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4dc0c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x128
mov ebx, eax
lea eax, [ebp - 0x12c]
push edi
push eax
call fcn.004ff6f0
add esp, 0xc
push edi
push 2
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x12c]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4dc141
lea ebx, [ebx]
cmp ebx, dword [ebp - 0x124]
je 0x4dc13b
lea edx, [ebp - 0x12c]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4dc120
jmp 0x4dc141
mov edi, dword [ebp - 0x114]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4dc230
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.004dc0c0
mov esi, eax
push esi
push 0
push 0x410
mov dword [ebp - 0xa08], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4dc311
push 0x800
lea ecx, [ebp - 0xa04]
push ecx
push 0
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x4dc311
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
lea ecx, [ebp - 0xa04]
push 0
push ecx
call fcn.004ff982
lea eax, [ebp - 0x204]
add esp, 0x14
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dc2b0
push edi
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4dc2c1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x104]
and ecx, 3
push str.RoboHTML.exe
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00500b92
add esp, 8
pop edi
test eax, eax
je 0x4dc30b
mov dword [0x5c2c1c], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xa08]
lea eax, [ebp - 0xa0c]
push eax
push 0x4dc160
mov dword [ebp - 0xa0c], 0
mov dword [ebp - 0xa08], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0xa0c]
mov dword [0x5c2c1c], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4dd8a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x5781f8]
mov eax, dword [str.robohelp_csh.htm]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x5781f4]
mov dword [ebp - 0x118], edx
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x120], eax
mov eax, dword [0x5781fc]
mov dword [ebp - 0x11c], ecx
mov cl, byte [0x578200]
push edx
push 0x104
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x110], cl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test edi, edi
je 0x4dd984
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dd910
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x120]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dd924
sub eax, esi
lea eax, [eax + edx + 1]
cmp eax, dword [ebp + 8]
jae 0x4dd984
lea eax, [ebp - 0x10c]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4dd942
lea eax, [edi - 1]
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4dd950
mov edx, dword [str.robohelp_csh.htm]
mov dword [eax], edx
mov ecx, dword [0x5781f4]
mov dword [eax + 4], ecx
mov edx, dword [0x5781f8]
mov dword [eax + 8], edx
mov ecx, dword [0x5781fc]
mov dword [eax + 0xc], ecx
mov dl, byte [0x578200]
mov byte [eax + 0x10], dl
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dd990
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x120]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dd9a4
mov ecx, dword [ebp - 4]
sub eax, esi
pop edi
xor ecx, ebp
lea eax, [eax + edx + 1]
pop esi
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4dd9d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
push edi
mov ecx, esi
call fcn.004dd8a0
add esp, 4
mov dword [ebp - 0x2c4], eax
cmp eax, edi
ja 0x4ddb47
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, 0x2c
mov esi, str._html__r_n_head__meta_http_equivContent_Type_content_text_html__charsetutf_8____head__r_n_script_language_Javascript___r_n_____r_ndocument.location__s___r_n______r_n__script__r_n__html_
lea edi, [ebp - 0xb8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c8], eax
movsb byte es:[edi], byte [esi]
cmp eax, 0xffffffff
je 0x4ddb41
push 0x551f8c
push ebx
call fcn.004ff5b7
add esp, 8
test eax, eax
jne 0x4ddabe
push 0x5c
push ebx
call fcn.005056ca
add esp, 8
test eax, eax
je 0x4dda74
push 0x5c
push eax
mov byte [eax], 0x2f
call fcn.005056ca
add esp, 8
test eax, eax
jne 0x4dda62
mov eax, dword [str.file:__]
mov ecx, dword [0x578208]
mov dword [ebp - 0x2c0], eax
mov eax, ebx
mov dword [ebp - 0x2bc], ecx
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dda90
lea edi, [ebp - 0x2c0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4ddaa0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x2c0]
lea eax, [ebp - 0xb8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ddac7
sub eax, edx
mov esi, eax
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ddad7
sub eax, edi
lea edi, [eax + esi - 1]
push edi
mov dword [ebp - 0x2cc], 0
call fcn.004fc6be
push ebx
lea edx, [ebp - 0xb8]
push edx
mov esi, eax
push edi
push esi
call fcn.004ff284
mov eax, esi
add esp, 0x14
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4ddb10
mov edi, dword [ebp - 0x2c8]
push 0
sub eax, ecx
lea ecx, [ebp - 0x2cc]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004fedfc
add esp, 4
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4ddc00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004ff6f0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x54]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esi, [eax + 1]
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4ddc69
mov edx, dword [ebp - 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
xor esi, esi
call edi
mov eax, dword [ebp - 0xc]
push eax
call edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e17c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4e17d9
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4e17e3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4e2290
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54892b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
push eax
push edx
lea ecx, [ebp - 0x11c]
call fcn.0040e320
mov ebx, eax
cmp ebx, esi
je 0x4e2324
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x4e231d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x11c], esi
mov eax, ebx
jmp 0x4e23f7
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x11c]
push esi
push esi
push esi
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x110]
push edx
push esi
push eax
mov dword [ebp - 0x120], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4e23ac
jmp 0x4e2360
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.004e2290
mov ebx, eax
cmp ebx, esi
jne 0x4e22ff
lea edx, [ebp - 0x12c]
push edx
mov edx, dword [ebp - 0x11c]
push esi
push esi
push esi
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x110]
push ecx
push esi
push edx
mov dword [ebp - 0x120], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4e2360
mov eax, dword [ebp - 0x11c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x4e23c5
push eax
call ebx
mov dword [ebp - 0x11c], esi
mov eax, dword [ebp - 0x124]
push eax
mov ecx, edi
mov dword [ebp - 0x118], esi
call fcn.004e1620
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x4e23f5
push eax
call ebx
mov dword [ebp - 0x11c], esi
mov eax, edi
mov dword [ebp - 0x118], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4