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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516128
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x22
xor eax, eax
xor edi, edi
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.0040392d
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0040511f
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
jae 0x4298c2
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429929
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push str.Start
push ecx
mov dword [ebp - 0x38], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x429929
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x429913
cmp eax, 0xffffffff
je 0x429913
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x429925
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
jmp 0x429953
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
cmp eax, edi
je 0x42993f
cmp eax, 0xffffffff
je 0x42993f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x429951
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x429a13
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512c0f
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 0x4c], edi
call fcn.00429670
add esp, 8
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1c], edi
jne 0x429a80
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
cmp dword [ebp - 0x18], 8
jb 0x429b52
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x429b4a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edi
jae 0x429a8f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edx, edx
mov ebx, eax
cmp dword [ebp - 0x50], edi
jle 0x429b33
mov ecx, dword [ebx]
mov eax, ecx
mov word [ebp - 0x48], dx
lea edx, [eax + 2]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x4c], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x429ac3
sub eax, dword [ebp - 0x4c]
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.0040392d
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x48]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
call fcn.00403fa0
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jb 0x429b18
mov edx, dword [ebp - 0x48]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x429b52
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x429b4a
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
cmp dword [ebp - 0x18], 8
jb 0x429b52
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x429b70
Capabilities:
Check if file exists
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512c54
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x429be8
cmp edi, 0xffffffff
je 0x429be8
push 0x14
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x6c], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 1
test esi, esi
je 0x429be5
cmp esi, 0xffffffff
jne 0x429bf2
push edi
call ebx
mov eax, 0xa
jmp 0x429cdd
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x429c2e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xa
jmp 0x429cdd
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x68]
cmp ecx, dword [edx + 0x20]
jne 0x429c18
push str.wpscloudsvr
lea ecx, [ebp - 0x48]
call fcn.0040bc49
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.00429853
add esp, 4
cmp eax, 4
lea ecx, [ebp - 0x48]
sete bl
mov byte [ebp - 4], 1
call fcn.0040dcc2
test bl, bl
je 0x429c7f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xb
jmp 0x429cdd
push str.wpscloudsvr
lea ecx, [ebp - 0x48]
call fcn.0040bc49
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 3
call fcn.00429a13
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x429ca8
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x64]
sete bl
call fcn.0040dcc2
lea ecx, [ebp - 0x48]
call fcn.0040dcc2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
test bl, bl
je 0x429cdb
mov eax, 0xd
jmp 0x429cdd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x42a068
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512d34
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x206
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x218], ax
call fcn.00402e70
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [ebp - 0x250], ax
mov edi, 7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x42a0ee
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x250]
call fcn.0040392d
xor edx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
push 0xb
push esi
push str.wpscloudsvr
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.004079d8
mov edi, 8
cmp eax, 0xffffffff
je 0x42a220
lea eax, [ebp - 0x26c]
push eax
mov ecx, ebx
call fcn.00429cf9
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00403fa0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], edi
jb 0x42a186
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.00404f7d
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x42a19a
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a209
push esi
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.0042afb1
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x220], edi
jb 0x42a1d5
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], edi
jb 0x42a205
mov eax, dword [ebp - 0x250]
push eax
call fcn.00404f7d
add esp, 4
mov eax, ebx
jmp 0x42a255
cmp dword [ebp - 0x220], edi
jb 0x42a220
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], edi
jb 0x42a250
mov eax, dword [ebp - 0x250]
push eax
call fcn.00404f7d
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x42a271
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512da1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x42a2c2
cmp edi, 0xffffffff
jne 0x42a2e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 4
test edi, edi
je 0x42a2e0
cmp edi, 0xffffffff
je 0x42a2e0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x42a3cb
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00429faf
cmp dword [eax + 0x14], 8
jb 0x42a2fa
mov eax, dword [eax]
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 3
push ecx
push 0xf01ff
push str.WPS_Office_Cloud_Service
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x42a33e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test esi, esi
je 0x42a35b
cmp esi, 0xffffffff
jne 0x42a38b
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 4
test esi, esi
je 0x42a380
cmp esi, 0xffffffff
je 0x42a380
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x42a3cb
mov ecx, ebx
call fcn.0042a068
push esi
mov ecx, ebx
call fcn.00428ed0
cmp dword [ebx + 0x14], 8
jb 0x42a3a7
mov ecx, dword [ebx]
mov dword [ebp - 0x30], ecx
jmp 0x42a3aa
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x30]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
push esi
call ebx
push edi
call ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x42aec1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517a18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x42aefd
mov eax, dword [esi]
jmp 0x42aeff
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42af90
cmp dword [esi + 0x14], edi
jb 0x42af18
mov eax, dword [esi]
jmp 0x42af1a
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x42af90
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x42af90
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0042ab35
add esp, 8
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
je 0x42af65
push ecx
call fcn.0042aec1
add esp, 4
test eax, eax
jne 0x42af6e
lea ecx, [ebp - 0x2c]
call fcn.0040dcc2
xor eax, eax
jmp 0x42af95
cmp dword [esi + 0x14], 8
jb 0x42af76
mov esi, dword [esi]
push 0
push esi
call edi
test eax, eax
jne 0x42af88
call ebx
cmp eax, 0xb7
jne 0x42af62
lea ecx, [ebp - 0x2c]
call fcn.0040dcc2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret

Function at 0x42afb1
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512bda
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0042ab35
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.0042aec1
add esp, 0xc
test eax, eax
jne 0x42b018
cmp dword [ebp - 0x18], 8
jb 0x42b014
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
jmp 0x42b04e
cmp dword [esi + 0x14], 8
jb 0x42b020
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x42b02a
mov eax, dword [edi]
jmp 0x42b02c
mov eax, edi
mov ecx, dword [ebp + 0x10]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x42b04c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x42c0cf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.0042a7ec
test eax, eax
je 0x42c237
push ebx
mov ebx, 1
push edi
test byte [0x5679c8], bl
jne 0x42c117
or dword [0x5679c8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x5679c4], eax
mov eax, dword [0x5679c4]
push 0xa
push 0x10
push 0x5679a4
push eax
call fcn.00454044
push 0xa
push 0x10
push 0x567984
push esi
call fcn.00454044
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x567964
push eax
call fcn.00454044
mov ecx, 8
mov esi, str.kcrashdumper.exe
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x28]
add esp, 0x10
push ecx
mov dword [0x567960], ebx
mov dword [0x56795c], 0
mov dword [0x567958], 0xc
movsw word es:[edi], word [esi]
call fcn.0042a7ec
push eax
push 0x52a114
push 0x567158
call fcn.0042c093
call fcn.0042a7f2
push eax
push 0x567984
push 0x567964
push 0x5679a4
push 0x567158
push str._s__pid_s__tid_s__exp_s__callfrom1__module_s
push 0x566058
call fcn.0042c0b1
add esp, 0x2c
push 0x566044
push 0x566000
push 0
push 0
push 0
push ebx
push 0
push 0
push 0x566058
mov edx, 0xa
push 0x567158
mov dword [0x566000], 0x44
mov dword [0x56602c], ebx
mov word [0x566030], dx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
mov dword [0x565fd8], eax
pop ebx
test eax, eax
je 0x42c237
mov eax, dword [0x566044]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x566048]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x566044]
push edx
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040330b
mov esp, ebp
pop ebp
ret

Function at 0x42c6aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42c6c5
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42c6fc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x42c6f8
jmp 0x42c6ea
cmp esi, eax
jae 0x42c6fc
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x42c6ea
cmp esi, eax
jb 0x42c703
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42ca34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5136b3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
je 0x42cb17
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x10], ebx
je 0x42cb17
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x42ca82
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410e0a
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], edi
jb 0x42ca97
mov eax, dword [esi]
jmp 0x42ca99
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.00410e0a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00411113
cmp eax, ebx
je 0x42cb2c
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x42cad2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42caf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cb17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
mov edi, 4
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x42cb5b
cmp dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x1c]
je 0x42cb5e
mov edi, dword [ebp + 0x14]
cmp esi, ebx
je 0x42cb69
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42cb88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cbae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d7de
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x42d81f
cmp dword [esi], 0xffffffff
jne 0x42d81f
mov eax, dword [ebp + 8]
test eax, eax
je 0x42d80f
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 4]
push ecx
push 0
push edx
push eax
push 0
push 0
call fcn.00454e33
add esp, 0x18
mov dword [esi], eax
xor eax, eax
cmp dword [esi], eax
mov byte [esi + 8], 1
setne al
pop esi
pop ebp
ret 8
xor al, al
pop esi
pop ebp
ret 8

Function at 0x43111e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x431187
lea eax, [ebp - 0x234]
push eax
push esi
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x234], 0x103
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
push 0x228
lea ecx, [ebp - 0x22c]
push ebx
push ecx
mov dword [ebp - 0x230], 0x22c
call fcn.00402e70
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4311c8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x230]
push edx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4311fb
jmp 0x4311de
cmp dword [ebp - 0x228], edi
je 0x4311f9
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4311de
jmp 0x4311fb
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret