joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100033b0
Capabilities:
Get number of processors
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10009cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1000f024]
push ebx
push ebp
push esi
mov ebx, dword [eax*4 + 0x1000f5a0]
xor eax, eax
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x29], ecx
push edi
mov dword [esp + 0x31], ecx
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [esp + 0x35], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x39], ecx
mov byte [esp + 0x14], al
mov word [esp + 0x3d], cx
mov dword [esp + 0x10], eax
mov byte [esp + 0x2c], al
mov byte [esp + 0x3f], cl
mov dword [esp + 0x18], eax
lea ebp, [ebx + 0x73]
xor edx, edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], edx
lea ecx, [ebp - 0x74]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
push edx
push 1
push eax
push ecx
mov dword [esp + 0x4c], edx
call esi
push eax
call edi
mov edx, dword [esp + 0x14]
push 0
and edx, 0xff
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call esi
push eax
call edi
push 0
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
call esi
push eax
call edi
push 0
lea edx, [esp + 0x14]
push 2
lea eax, [ebp + 4]
push edx
push eax
call esi
push eax
call edi
mov al, byte [esp + 0x14]
test al, al
je 0x10003497
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x100034c2
mov eax, dword [esp + 0x18]
add ebx, 0x7c
add ebp, 0x7c
inc eax
cmp eax, 0x28
mov dword [esp + 0x18], eax
jl 0x10003418
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x1c]
xor edi, edi
push edi
push edi
xor eax, eax
push edi
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], eax
push 0x450
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], eax
call fcn.10001b00
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.100015a0
add esp, 0x20
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
and edx, 0xffff
mov dword [esp + 0x48], edi
push edx
push str.vv__d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
cmp ax, 2
jae 0x1000354a
push edi
lea edx, [esp + 0x18]
push 1
mov byte [esp + 0x1c], 0
push edx
dec ebx
jmp 0x10003571
cmp ax, 0x3e8
jbe 0x10003557
add eax, 0xfc18
jmp 0x10003562
cmp ax, 0x64
jae 0x10003566
add eax, 0xffff
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
push 2
push eax
add ebx, 0x77
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call fcn.100086d4
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x10004e00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x124
mov eax, dword [ecx + 0x28]
cmp eax, 1
jg 0x10004e22
mov eax, dword [ecx + 0x24]
lea ecx, [esp + 8]
push eax
push 0x1000fc4c
push ecx
jmp 0x10004e31
mov edx, dword [ecx + eax*4 + 0x28]
lea eax, [esp + 8]
push edx
push 0x1000fc4c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 4]
mov dword [esp], 0x104
push ebx
push ecx
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2Logical_Disk_Manager_Service
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004ee0
lea edx, [esp + 4]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004ee0
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x130]
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x10004ee0
cmp byte [ebx], 0
jne 0x10004ed3
mov al, byte [esp + 0x24]
test al, al
je 0x10004ed3
push esi
push edi
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, ebx
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
mov eax, 1
pop ebx
add esp, 0x124
ret
xor eax, eax
pop ebx
add esp, 0x124
ret

Function at 0x10004f00
Capabilities:
Enumerate processes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
push 0x128
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10004f7e
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCRT.dll__strcmpi]
lea edi, [esi + 0x24]
push ebx
push edi
call ebp
add esp, 8
test eax, eax
jne 0x10004f55
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10004f7e
push ebx
push edi
call ebp
add esp, 8
test eax, eax
je 0x10004f4c
mov ecx, dword [esp + 0x10]
push esi
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10004f64
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x10005930
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x10005950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x10008db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10008e21
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10008e21
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x10008e0a
jmp 0x10008e21
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x6c0b5c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp], ebp
btc eax, 0x15
bt ecx, ebx
not bp
shr al, 1
mov ebp, esp
lea eax, [ebx - 0x3111a9a2]
movsx eax, dl
sub esp, 0x10
push 0x72f823b5
xor ah, 0xc3
cmp bl, bl
btr eax, edi
mov dword [esp], esi
jge 0x6c2ea4
rcl al, 1
shr al, 1
aas
push edi
mov al, 0x2d
push ebx
rol ah, cl
push edx
seta al
sar al, cl
pushal
rol ah, 2
mov eax, dword [ebp + 8]
push dword [esp + 8]
cmp bp, dx
test eax, eax
mov word [esp], 0x129f
mov byte [esp + 4], al
jmp 0x588982
jmp 0x58e16e
not ah
aas
aam 0x1e
push edi
pushal
btc eax, edx
shld ax, cx, 4
xor ah, ah
mov dword [esp + 0x1c], ebx
rol al, cl
rol eax, 0x11
mov dword [esp + 0x18], edx
shr eax, cl
rcl al, cl
mov eax, dword [ebp + 8]
push esi
push esi
bt bp, ax
test eax, eax
jmp 0x58a3b6
Function at 0x402440
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push esi
push edi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40a4f8
call edi
push 0x40a4f8
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0x40a4f7
cmp byte [eax], 0x5c
je 0x402477
dec eax
cmp byte [eax], 0x5c
jne 0x402471
push str.InprocServer32
inc eax
push eax
call edi
lea eax, [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push eax
push 0x40a4f8
push SysReAllocStringLen
call edi
test eax, eax
je 0x4024b3
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x10c
ret
lea eax, [esp + 0x10]
push eax
call fcn.00402630
add esp, 4
test eax, eax
jne 0x4024dd
push 0
push 0
push 0xf
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x10c
ret
lea eax, [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x402520
push 0
push eax
push 0x13
call fcn.00401c00
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
add esp, 0x10c
ret
lea eax, [esp + 0xc]
push eax
push 0x40a4f8
push SysReAllocStringLen
call edi
test eax, eax
je 0x402558
push 0
push eax
push 0x13
call fcn.00401c00
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
add esp, 0x10c
ret
push str.Apartment
call esi
push eax
push str.Apartment
mov eax, dword [esp + 0x10]
push 1
push 0
push str.ThreadingModel
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4025a9
push 0
push eax
push 0x13
call fcn.00401c00
mov eax, dword [esp + 0x14]
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
xor eax, eax
pop edi
pop esi
add esp, 0x10c
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
test eax, eax
je 0x4025d9
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x10c
ret
mov eax, 1
pop edi
pop esi
add esp, 0x10c
ret
Function at 0x402630
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push ebp
mov ebx, 0x102
push str.autprx32.dll
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esi], 0
call edi
sub ebx, eax
push ebx
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, eax
test ebx, ebx
je 0x4026ba
mov ebp, 0x102
push str.autprx32.dll
call edi
sub ebp, eax
cmp ebp, ebx
jl 0x4026ba
push 0x409680
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.autprx32.dll
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40a4f8
call fcn.004025f0
add esp, 4
test eax, eax
je 0x4026ba
push 0x40a4f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebx, 0x102
push str.autprx32.dll
call edi
sub ebx, eax
push ebx
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, eax
test ebx, ebx
je 0x402733
mov ebp, 0x102
push str.autprx32.dll
call edi
sub ebp, eax
cmp ebp, ebx
jl 0x402733
push 0x409680
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.autprx32.dll
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40a4f8
call fcn.004025f0
add esp, 4
test eax, eax
je 0x402733
push 0x40a4f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
push str.autprx32.dll
push 0
push 0x10
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402750
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 0x14]
push edi
push 0x40a4f8
call ebx
push 0x40a4f8
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0x40a4f7
cmp byte [eax], 0x5c
je 0x402785
dec eax
cmp byte [eax], 0x5c
jne 0x40277f
cmp dword [0x4091c4], 0
je 0x402818
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00403a10
add esp, 8
test eax, eax
je 0x4027c6
cmp dword [esp + 0x18], 0
je 0x4027d2
mov eax, dword [esp + 0xc]
push 0x409684
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 4
ret
push 0x4092cc
call esi
push eax
push 0x4092cc
mov eax, dword [esp + 0x14]
push 1
push 0
push str.RemoteServerName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4027bb
push 0
push eax
push 0x13
call fcn.00401c00
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
push str.NetworkAddress
inc eax
push eax
call ebx
lea eax, [esp + 0xc]
push eax
push 0x40a4f8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x402850
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
push 0x4092cc
call esi
push eax
push 0x4092cc
mov eax, dword [esp + 0x14]
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x402891
push 0
push eax
push 0x13
call fcn.00401c00
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4027c6
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4028c0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
push esi
push edi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40a4f8
call edi
push 0x40a4f8
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0x40a4f7
cmp byte [eax], 0x5c
je 0x4028f4
dec eax
cmp byte [eax], 0x5c
jne 0x4028ee
push str.ProtocolSequence
inc eax
push eax
call edi
lea eax, [esp + 8]
push eax
push 0x40a4f8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40292b
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 4
ret
push 0x4093d0
call esi
push eax
push 0x4093d0
mov eax, dword [esp + 0x10]
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x40296b
push 0
push eax
push 0x13
call fcn.00401c00
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
add esp, 4
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40298f
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 4
ret
mov eax, 1
pop edi
pop esi
add esp, 4
ret
Function at 0x403070
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
push esi
push edi
push ebp
xor edi, edi
mov esi, dword [esp + 0x11c]
push eax
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4030c1
cmp eax, 0x3f2
je 0x4030b1
cmp eax, 2
je 0x4030b1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x10]
push 0x28a
push 0x409f88
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0
push eax
call ebx
test eax, eax
jne 0x403130
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
push 0x409680
push eax
call ebp
lea eax, [esp + 0x14]
push 0x409f88
push eax
call ebp
lea eax, [esp + 0x14]
push eax
call fcn.00403070
add esp, 4
test eax, eax
jne 0x40311a
inc edi
mov eax, dword [esp + 0x10]
push 0x28a
push 0x409f88
push edi
push eax
call ebx
test eax, eax
je 0x4030e4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40314c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x403185
cmp eax, 0x3f2
je 0x403175
cmp eax, 2
je 0x403175
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x403290
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push edi
mov edx, dword [esp + 0x118]
push eax
mov eax, dword [esp + 0x118]
push ecx
mov dword [esp + 0x10], 0x104
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4032df
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x108
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [esp + eax + 0xc]
lea eax, [esp + 0xc]
cmp edi, eax
jbe 0x403307
cmp byte [edi], 0x5c
je 0x403306
dec edi
lea eax, [esp + 0xc]
cmp edi, eax
ja 0x4032f6
jmp 0x403307
inc edi
push str.autprx.dll
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
call esi
test eax, eax
jne 0x403327
mov eax, 1
pop edi
pop esi
add esp, 0x108
ret
push str.autprx16.dll
push edi
call esi
test eax, eax
jne 0x403341
mov eax, 1
pop edi
pop esi
add esp, 0x108
ret
push str.autprx32.dll
push edi
call esi
pop edi
cmp eax, 1
sbb eax, eax
pop esi
neg eax
add esp, 0x108
ret
Function at 0x403360
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push ebp
xor edi, edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], esi
push eax
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 0x40a4f8]
cmp byte [ebx], 0x5c
je 0x40339b
dec ebx
cmp byte [ebx], 0x5c
jne 0x403395
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
mov byte [ebx], 0
push 0x40a4f8
push SysReAllocStringLen
call ebp
test eax, eax
jne 0x403564
mov eax, dword [esp + 0x10]
push 0x28a
push 0x409f88
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x403559
mov ebp, dword [esp + 0x14]
push str.LocalServer
push 0x409f88
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4033fe
mov ebp, str.LocalServer
jmp 0x40348b
push str.LocalServer32
push 0x409f88
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403419
mov ebp, str.LocalServer32
jmp 0x40348b
push str.InprocServer
push 0x409f88
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403453
cmp dword [0x4091c4], 0
jne 0x40344c
mov eax, dword [esp + 0x10]
push str.InprocServer
push eax
call fcn.00403290
add esp, 8
test eax, eax
jne 0x403490
mov ebp, str.InprocServer
jmp 0x40348b
push str.InprocServer32
push 0x409f88
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403490
cmp dword [0x4091c4], 0
jne 0x403486
mov eax, dword [esp + 0x10]
push str.InprocServer32
push eax
call fcn.00403290
add esp, 8
test eax, eax
jne 0x403490
mov ebp, str.InprocServer32
mov edi, 1
test edi, edi
je 0x40353a
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
xor edi, edi
mov dword [esp + 0x18], 0x28a
push 0x409f88
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push ebp
mov byte [ebx], 0x5c
mov byte [ebx + 1], 0
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40a4f8
call fcn.00403070
add esp, 4
mov byte [ebx + 1], 0
push 0x4096b8
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push ecx
push 0x40a4f8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0x409f88
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
push eax
push 0x409f88
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40353b
inc esi
mov eax, dword [esp + 0x10]
push 0x28a
push 0x409f88
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4033e0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4038a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov ax, word [0x4096c8]
push ebx
mov word [esp + 6], ax
push esi
push edi
xor ebx, ebx
push ebp
xor esi, esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
push 0x4095f0
call fcn.00403ed0
mov dword [esp + 0x18], eax
add esp, 4
cmp eax, ebx
je 0x4039b7
mov al, byte [eax + 0x104]
cmp al, 0xff
jne 0x4038f7
cmp byte [0x4094d4], 0xff
je 0x403900
mov al, byte [0x4094d4]
mov esi, 1
mov byte [esp + 0x12], al
test esi, esi
je 0x403959
mov eax, dword [esp + 0x14]
push eax
push 0x40a4f8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x18]
push eax
push 0x40a4f8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40396b
lea eax, [esp + 0x12]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x16]
push eax
push 1
push ebx
push ecx
call ebp
test eax, eax
jne 0x403982
mov eax, dword [esp + 0x18]
push eax
call edi
test eax, eax
jne 0x4039a0
xor esi, esi
lea eax, [esp + 0x14]
push eax
call fcn.00403f00
add esp, 4
jmp 0x4038c6
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push 0
push eax
push 0x13
call fcn.00401c00
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call edi
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push 0
push eax
push 0x13
call fcn.00401c00
add esp, 0xc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4043a0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x4043ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4043cd
push eax
call fcn.00404800
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x404600
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40972c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40461e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x409728], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x409724], bl
jne 0x404678
cmp dword [0x40aa5c], 0
je 0x404666
mov edi, dword [0x40aa58]
sub edi, 4
cmp dword [0x40aa5c], edi
ja 0x404666
mov eax, dword [edi]
test eax, eax
je 0x40465b
call eax
sub edi, 4
cmp dword [0x40aa5c], edi
jbe 0x404653
push 0x409014
push 0x409010
call fcn.004046b0
add esp, 8
push 0x40901c
push 0x409018
call fcn.004046b0
add esp, 8
test ebx, ebx
jne 0x40469f
mov dword [0x40972c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret