joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422796
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bb524
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x14]
push edx
push 9
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4228c1
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x40]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4228b7
cmp dword [esp + 0x10], ebx
je 0x4228b7
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4228b7
inc eax
push eax
lea esi, [esp + 0x28]
call fcn.0042c1b4
mov dword [esp + 0x50], ebx
xor esi, esi
cmp dword [esp + 0x10], ebx
jbe 0x4228a6
push dword [esp + 0x38]
xor edi, edi
lea eax, [esp + 0x28]
call fcn.00425dd6
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x42289f
lea eax, [esp + 0x24]
call fcn.00425dd6
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00408518
mov byte [esp + 0x50], 1
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
call fcn.00413ad9
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x1c]
call fcn.00408559
inc esi
cmp esi, dword [esp + 0x10]
jb 0x42284c
or dword [esp + 0x50], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x2c]
call fcn.00409bf1
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005796dc
mov esp, ebp
pop ebp
ret

Function at 0x4228df
Capabilities:
Query environment variable

Disassembly:
push 0x48
mov eax, 0x5b7fea
call fcn.005870c4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov edi, ecx
push edi
lea esi, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
call fcn.00408172
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call ebx
push dword [ebp - 0x4c]
mov edi, eax
inc edi
inc edi
call fcn.004084c2
mov dword [ebp - 0x54], esi
push edi
lea esi, [ebp - 0x2c]
call fcn.0042c1b4
mov byte [ebp - 4], 2
push edi
xor edi, edi
mov eax, esi
call fcn.00425dd6
push eax
push dword [ebp - 0x50]
call ebx
test eax, eax
je 0x42295d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x422954
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call fcn.004085bd
mov byte [ebp - 4], 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00409bf1
mov byte [ebp - 4], 0
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00409bf1
mov eax, dword [ebp - 0x4c]
call fcn.00587147
ret
Function at 0x422e65
Capabilities:
Resolve dns

Disassembly:
push 0x10
mov eax, 0x5bb4b7
call fcn.0058708e
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
push dword [ebp + 8]
call fcn.00413a77
mov dword [ebp - 4], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
push str.sandbox2.jrdesklabs.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
je 0x422ef2
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], 0x64
jae 0x422ef2
mov eax, dword [ebp - 0x14]
shl eax, 2
mov ecx, dword [esi + 0xc]
cmp dword [eax + ecx], edi
je 0x422eed
mov eax, dword [eax + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004083d7
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], edi
je 0x422ee2
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
call fcn.00426c70
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00408418
inc dword [ebp - 0x14]
jmp 0x422ea1
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
call fcn.00587133
ret

Function at 0x422f08
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x5bb47b
call fcn.0058705b
lea esi, [ebp - 0x1c]
call fcn.0047a7b0
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004740f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dword [esp], 0x689974
push ecx
mov ecx, eax
call fcn.0040fcd8
pop ecx
pop ecx
mov byte [ebp - 4], 2
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408559
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
call fcn.0047a7f0
mov al, bl
call fcn.00587133
ret
Function at 0x422f7b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x5b1e4c
call fcn.0058705b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], esi
mov edi, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 2
call fcn.0040813b
mov dword [ebp - 4], ebx
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
inc eax
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42305b
lea eax, [ebp - 0x18]
push eax
xor edi, edi
mov eax, esi
call fcn.00425dd6
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call esi
cmp eax, 0xea
jne 0x42301f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
inc ecx
call fcn.00425df6
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00425dd6
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call esi
cmp eax, ebx
jne 0x42304a
cmp dword [ebp - 0x14], 1
je 0x423035
cmp dword [ebp - 0x14], 2
je 0x423035
cmp dword [ebp - 0x14], 7
jne 0x42304a
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jbe 0x42304a
shr eax, 1
mov ecx, eax
mov eax, dword [ebp - 0x10]
call fcn.00425df6
jmp 0x423052
mov eax, dword [ebp - 0x10]
call fcn.004082b6
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
call fcn.00587133
ret
Function at 0x4236f3
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x58
mov eax, 0x5b4d6a
call fcn.0058705b
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.0057e5e0
mov dword [ebp - 0x64], edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x34], ax
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x38], esi
call fcn.004084c2
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.__s___s
call fcn.00417a4d
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 0x10]
call fcn.00408793
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor esi, esi
test eax, eax
jne 0x42379f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408559
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408559
mov eax, esi
call fcn.00587133
ret
inc esi
jmp 0x423774
Function at 0x423c3b
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x5ae873
call fcn.0058705b
mov dword [ebp - 4], 1
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [0x6de964], bl
je 0x423c67
cmp byte [ebp + 0x14], bl
je 0x423c67
mov eax, 0x102
jmp 0x423c6a
push 2
pop eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x423ca4
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408559
call fcn.00587133
ret

Function at 0x423d8b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x5b7f26
call fcn.0058705b
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.004084c2
mov dword [ebp - 4], ebx
xor esi, esi
push str.SoftwareVibraniumHome20Global
lea eax, [ebp - 0x10]
inc esi
push eax
mov dword [ebp - 0x18], esi
call fcn.00408518
mov dword [ebp - 4], esi
xor eax, eax
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.0057e5e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push ebx
push str.Renewed
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x400
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x423e2f
mov eax, dword [ebp - 0x14]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
push edi
call fcn.004085bd
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00408559
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.005796dc
add ebp, 0x804
leave
ret
Function at 0x424f55
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bd9b5
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x1b0], eax
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
xor eax, eax
push 0x18e
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.0057e5e0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
mov edi, 0x6ddd08
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push 0x57
mov word [0x6ddd08], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x6ddd0a], ax
lea eax, [esp + 0xc]
push eax
call fcn.00422e65
pop ecx
and dword [esp + 0x1c8], 0
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
sar eax, 2
test eax, eax
je 0x425019
ja 0x425008
call fcn.0057a4ca
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x6ddd0c], eax
or dword [esp + 0x1c8], 0xffffffff
lea eax, [esp + 0xc]
push eax
call fcn.00413f38
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.005796dc
mov esp, ebp
pop ebp
ret
Function at 0x42d4a4
Capabilities:
Read .ini file

Disassembly:
push 0x80c
mov eax, 0x5b7c9a
call fcn.005870c4
mov eax, dword [ebp + 8]
and dword [ebp - 0x814], 0
mov dword [ebp - 0x818], esi
mov dword [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x810]
push 0x400
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x68845c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
push esi
call fcn.00408518
mov dword [ebp - 0x814], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00408559
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00408559
mov eax, esi
call fcn.00587147
ret 0xc
Function at 0x42e130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x54
mov eax, 0x5c0d00
call fcn.005870fa
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x68766c
push 0x4e28
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x42e307
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x42e2f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x42e2f5
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046ecdd
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
call fcn.00426650
test al, al
jne 0x42e2e7
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004258f8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
call fcn.00413a77
mov byte [ebp - 4], 4
push 0x687678
lea eax, [ebp - 0x34]
push eax
call fcn.004083d7
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x42e1ef
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004083d7
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0042e096
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.00408418
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00408418
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x54]
sar eax, 2
mov edi, dword [ebp - 0x38]
cmp edi, eax
jae 0x42e2cb
push 0x687680
lea esi, [ebp - 0x60]
call fcn.00413f62
xor ecx, ecx
mov esi, eax
call fcn.00419eda
mov ebx, eax
test ebx, ebx
jle 0x42e2c1
lea eax, [ebx + 1]
lea ecx, [ebp - 0x48]
push ecx
lea esi, [ebp - 0x60]
mov dword [ebp - 0x34], eax
call fcn.00413f62
mov ecx, dword [ebp - 0x34]
mov edx, eax
call fcn.0042f682
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x3c]
push eax
call fcn.00413f62
push eax
mov ecx, ebx
call fcn.0042f6b8
mov byte [ebp - 4], 8
push eax
push 0x6de914
call fcn.0042f822
mov edi, eax
mov eax, dword [ebp - 0x34]
call fcn.0040843b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.00408418
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.00408418
inc dword [ebp - 0x38]
xor ebx, ebx
jmp 0x42e22c
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
call fcn.00413f38
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00409713
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x40]
call fcn.00426633
xor ebx, ebx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], ebx
je 0x42e307
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FreeResource]
or dword [ebp - 4], 0xffffffff
call fcn.00587156
ret

Function at 0x42f492
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x6def10
push 0x42f4b0
push eax
push eax
call fcn.0057b57b
add esp, 0x18
mov dword [0x6df1dc], eax
ret
Function at 0x431181
Capabilities:
Link many functions at runtime

Disassembly:
push 0xc
mov eax, 0x5bb16a
call fcn.0058708e
mov edi, 0x6df5c0
mov dword [ebp - 0x18], edi
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
call fcn.00431536
pop ecx
mov byte [ebp - 4], 2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x6df5a4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00408559
mov eax, dword [0x6df5a4]
test eax, eax
je 0x43122f
push str.install
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [0x6df5ac], eax
push str.uninstall
push dword [0x6df5a4]
call esi
mov dword [0x6df5b0], eax
push str.createMyClass
push dword [0x6df5a4]
call esi
mov dword [0x6df5a8], eax
push str.close
push dword [0x6df5a4]
call esi
mov dword [0x6df5b4], eax
push str.setParams
push dword [0x6df5a4]
call esi
mov dword [0x6df5b8], eax
and dword [ebp - 4], 0
jmp 0x431244
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00587133
ret

Function at 0x431705
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x5b485b
call fcn.0058708e
xor ebx, ebx
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], ebx
push str.SELECT_filepath_FROM_pcdb_WHERE_filepath____COLLATE_NOCASE_
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [0x6de8ec]
call fcn.00488370
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push dword [eax]
push 1
lea eax, [ebp - 0x20]
call fcn.00488210
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00488000
mov byte [ebp - 4], 2
cmp byte [ebp - 0x2c], bl
jne 0x43175a
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 1
lea esi, [ebp - 0x34]
call fcn.00487a90
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00487dd0
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x15]
call fcn.00587133
ret 4

Function at 0x431920
Capabilities:
Enumerate processes

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x234]
push edi
mov byte [esi + 0x230], 0
cmp eax, 0xffffffff
je 0x43195a
cmp byte [esi], 0
lea ecx, [esi + 4]
push ecx
push eax
jne 0x43194a
mov byte [esi], 1
call sub.KERNEL32.dll_Process32FirstW
jmp 0x43194f
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x43195a
mov byte [esi + 0x230], 1
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add esi, 4
mov ecx, 0x8c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret 4

Function at 0x431ab4
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
jbe 0x431ac9
sub ecx, eax
mov dl, byte [ecx + eax]
xor dl, 0x67
mov byte [eax], dl
inc eax
dec esi
jne 0x431abd
pop esi
ret
Function at 0x431bba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x14]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.004319d0
test eax, eax
jge 0x431bec
push 0x57
pop eax
jmp 0x431c25
add ebx, 0x21c
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.004319d0
test eax, eax
jl 0x431be7
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x431c23
call fcn.00433193
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x431c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431c25
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x432191
Capabilities:
Delete file

Disassembly:
add ecx, 0x21c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret

Function at 0x4325b7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.004319d0
test eax, eax
jge 0x4325e9
push 0x57
pop eax
jmp 0x432622
add ebx, 0x218
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.004319d0
test eax, eax
jl 0x4325e4
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x432620
call fcn.00433193
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x432620
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x432622
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x432629
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
mov edi, eax
and eax, 0x100
xor ebx, ebx
and edi, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 8], 1
mov dword [ebp - 8], eax
jne 0x4326ae
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
lea eax, [esi + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x432692
push 2
push eax
lea eax, [esi + 0x218]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x432692
or dword [esi + 8], 1
jmp 0x43269f
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x4326ae
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 8], 2
jne 0x4326f8
test ebx, ebx
jne 0x4326f8
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [esi + 0x10]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4326f3
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x4326e3
or dword [esi + 8], 2
jmp 0x4326e8
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4326f8
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4327cd
Capabilities:
Delete file

Disassembly:
add ecx, 0x218
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret
Function at 0x432864
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ebx + 0x18]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
and dword [ebx + 0x434], 0
lea eax, [ebx + 0x24]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.004319d0
test eax, eax
jge 0x4328a6
mov dword [ebp + 0xc], 0x57
jmp 0x432954
lea eax, [ebx + 0x22c]
mov dword [ebp - 8], eax
push eax
lea esi, [ebp - 4]
mov eax, edi
call fcn.004319d0
test eax, eax
jl 0x43289a
mov edi, dword [ebp + 0xc]
test byte [edi + 4], 1
je 0x4328f7
mov ebx, dword [ebp - 8]
call fcn.00433193
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4328e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x432954
mov edi, dword [ebp + 8]
call fcn.00432d11
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x432954
jmp 0x432950
push dword [edi + 0x41c]
lea esi, [ebp - 4]
mov eax, 0x200
call fcn.004319d0
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x43289a
mov esi, dword [ebp - 4]
inc esi
inc esi
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebx + 4], edx
test edx, edx
je 0x432954
push dword [edi + 0x41c]
mov eax, esi
call fcn.00431971
test eax, eax
jl 0x43289a
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov dword [ebx + 0x434], eax
and dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43299e
Capabilities:
Delete file
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
mov edi, eax
and eax, 0x100
xor ebx, ebx
and edi, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 0x1c], 1
mov dword [ebp - 0xc], eax
jne 0x432a68
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
lea eax, [esi + 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x432a4c
push dword [ebp - 4]
call fcn.00432c2b
mov ebx, eax
test ebx, ebx
jne 0x432a4c
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x432a48
push dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
lea ebx, [ecx + edx + 4]
push eax
call fcn.00431b0d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x432a3f
or dword [esi + 0x1c], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x432a59
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x432a68
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 0x1c], 2
jne 0x432ab4
test ebx, ebx
jne 0x432ab4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
lea eax, [esi + 0x24]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432aaf
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x432a9f
or dword [esi + 0x1c], 2
jmp 0x432aa4
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x432ab4
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4