joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b550
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x208
mov eax, dword [0x488dec]
mov cl, byte [0x488df0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], cl
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x19]
mov esi, str.IResearch_IRNP_Driver
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 5
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0xaa]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
xor bl, bl
push edx
mov byte [esp + 0x14], bl
xor ebp, ebp
stosw word es:[edi], ax
call fcn.0042e950
lea eax, [esp + 0x118]
push eax
call fcn.0042e860
push 0x48e488
push str.InstallDriver
call fcn.0042b9e0
add esp, 0x10
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x42b5f6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x124]
push 0
push ecx
push 1
push 2
push 1
lea edx, [esp + 0xb8]
push 0xf01ff
lea eax, [esp + 0x3c]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x42b653
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0x431
jne 0x42b66b
push 0x48e488
push str.Service_IRNP.sys_already_exists
call fcn.0042b9e0
add esp, 8
xor ebp, ebp
jmp 0x42b665
push 0x48e488
push str.Created_service_for_IRNP.sys
call fcn.0042b9e0
add esp, 8
mov bl, 1
mov byte [esp + 0x10], bl
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test esi, esi
je 0x42b681
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
jne 0x42b697
push 0x48e488
push str.InstallDriver_failed
call fcn.0042b9e0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x208
ret

Function at 0x42dbb0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42dc3e
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x128
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42dc3e
mov edi, dword [esp + 0x134]
cmp dword [esp + 0x10], edi
je 0x42dc11
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x42dbf3
pop edi
pop esi
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x2c]
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, dword [esp + 0x138]
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
add esp, 0x128
ret
Function at 0x42e4a0
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
sub esp, 0x248
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov ebp, dword [esp + 0x258]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp], 0
mov eax, dword [0x48e53c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x114]
push ecx
push str.ProData.dat
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x42e609
mov al, byte [esp + 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test al, 0x10
jne 0x42e567
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x14c]
push 0x104
push eax
call ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42e542
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.00445c80
add esp, 8
test eax, eax
jle 0x42e567
lea edi, [esp + 0x14]
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, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x42e5f2
test byte [esp + 0x118], 0x10
jne 0x42e5df
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x14c]
push 0x104
push edx
call ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42e5ba
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00445c80
add esp, 8
test eax, eax
jle 0x42e5df
lea edi, [esp + 0x14]
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, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42e57a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
Function at 0x42e860
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46c230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4892e4]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp + 0x18], 0
mov dword [esp], eax
lea eax, [esp + 0xc]
mov byte [esp + 0x18], 1
push eax
push 1
push 0
push str.SYSTEMCurrentControlSet_servicesIRNP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42e91e
push esi
push 0x104
call fcn.0045da09
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
push 0
push 0
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42e914
push edi
push esi
lea ecx, [esp + 0xc]
call fcn.0045de51
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push edi
call fcn.0045de51
push 0
push edi
lea ecx, [esp + 0x10]
call fcn.0045c047
test eax, eax
pop edi
jge 0x42e914
call fcn.0042b410
push esi
call fcn.0045da32
add esp, 4
pop esi
lea ecx, [esp]
mov byte [esp + 0x18], 0
call fcn.0045dcc8
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.0045dcc8
mov ecx, dword [esp + 0x10]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x42e950
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esp + 0x114]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ax, word [esp + 0xc]
mov ecx, edx
mov edi, str.iResearchCommonIRNP.sys
mov word [ecx], ax
mov al, byte [esp + 0xe]
mov byte [ecx + 2], al
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x42f790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c2c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0044bba5
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.00449fec
mov edi, dword [0x491000]
lea ecx, [esp + 8]
call fcn.00449fec
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x42f7dc
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.0044a088
lea ecx, [esp + 0xc]
call fcn.0044a088
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.00416fd0
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x473bb4
jne 0x42f84a
mov eax, 4
test cl, 2
jne 0x42f851
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x43bfa8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43bfc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043e5a6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43bfeb
test byte [esp + 8], 2
je 0x43bfeb
call fcn.0043e619
mov dword [eax], 0xd
call fcn.0043e622
mov dword [eax], 5
jmp 0x43bfc4
xor eax, eax
ret
Function at 0x45b0c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0043b020
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45b18b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x45b18b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45b13e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45b149
or bh, 8
and edi, 0x8000000
je 0x45b164
mov eax, dword [0x49259c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x45b18b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45b58b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x45b5af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x45b5ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x45e8c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x45e8e4
cmp dword [edi + 0x3c], 0
jne 0x45e8e4
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00465b1c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0045e911
pop edi
pop esi
pop ebx
ret 8

Function at 0x45ec51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46c79c
call fcn.0043c304
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00465b1c
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x45ec90
call fcn.00465b1c
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45ec9e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x45ecac
or eax, 0xffffffff
jmp 0x45ed94
mov ecx, esi
call fcn.0045ebc7
mov dword [ebp - 0x14], eax
call fcn.0045fa83
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x45ece3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45ece3
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0045fa37
push dword [ebp - 0x14]
call fcn.0045f568
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0045e95f
cmp eax, edi
je 0x45ed56
test byte [esi + 0x24], 0x10
je 0x45ed24
push 4
mov ecx, esi
pop ebx
call fcn.0045e478
test ah, 1
je 0x45ed1c
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004615bb
cmp dword [esi + 0x1c], edi
je 0x45ed56
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0045e55e
jmp 0x45ed56
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x45ed6a
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x45ed83
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x45ed83
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0045ec01
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x461469
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4614ab
call fcn.00465b1c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4614ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4614a2
xor eax, eax
jmp 0x4614b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004614b9
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c8530
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x53c69b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0052e6a9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4c85b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0052bf00
mov eax, dword [eax]
push 0x581254
push eax
call fcn.0051e014
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0052e934
test bl, bl
je 0x4c85b2
push 0x581254
lea ecx, [esp + 0xc]
call fcn.0052ed10
push 0x584dd0
lea ecx, [esp + 0xc]
call fcn.0052ed10
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4c85ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0052e934
jmp 0x4c86b9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4c8672
lea edx, [esp + 0x7c]
push 0x584dcc
push edx
call fcn.0051e014
add esp, 8
test eax, eax
je 0x4c8672
lea eax, [esp + 0x7c]
push 0x584dc8
push eax
call fcn.0051e014
add esp, 8
test eax, eax
je 0x4c8672
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4c8602
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0052e934
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4c8ed0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4c8f32
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4c8f40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x53c71b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x58c098]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4c9078
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4c8fa6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0052e934
xor eax, eax
jmp 0x4c90ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0052eabd
push esi
lea ecx, [esp + 0xc]
call fcn.0052ed4c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x584e08
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4c90cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004c8ed0
test eax, eax
jne 0x4c90cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004c8ed0
test eax, eax
jne 0x4c90cd
lea eax, [esp + 0x14]
push 0x584de4
push eax
call fcn.0051f0f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c90ac
lea ecx, [esp + 0x14]
push 0x584de0
push ecx
call fcn.0051f070
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c90ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4c90af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0052ea6d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4c8fbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0052e934
xor eax, eax
jmp 0x4c90ef
mov byte [esi], 0
push 0x584ddc
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0052e934
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4