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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
mov dword [ebp - 8], 1
mov eax, ecx
mov dword [ebp - 0xc], ebx
push esi
mov esi, ebx
mov dword [ebp - 0x14], eax
push edi
mov edi, edx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x423e4b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x423d3e
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea eax, [ecx + 0x15]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044183a
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x423d9b
cmp dword [0x443534], 0xffffffff
jne 0x423d82
push ecx
push 2
pop eax
mov edx, eax
call fcn.0041e530
push 2
pop eax
mov edx, 0x405978
mov ecx, eax
call fcn.0041e988
mov eax, 0x8007000e
jmp 0x423e9b
mov eax, dword [0x44353c]
cmp eax, 0xff
jne 0x423db1
call fcn.0041fb3c
mov dword [0x44353c], eax
test eax, eax
je 0x423e39
push eax
push edi
push 0x405990
push dword [ebp - 0x10]
push ebx
call fcn.0040c0b5
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 4]
add esp, 0x14
mov dword [ebp - 4], 0x208
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423dfc
inc eax
cmp dword [ebp - 8], eax
jne 0x423dfc
xor esi, esi
mov dword [ebp - 0xc], eax
jmp 0x423e39
push edi
push 0x4059a4
push dword [ebp - 0x10]
push ebx
call fcn.0040c0b5
add esp, 0x10
mov dword [ebp - 4], 0x208
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423e34
inc eax
cmp dword [ebp - 8], eax
je 0x423df5
mov esi, 0x80004005
push ebx
call fcn.00441807
cmp dword [ebp - 0xc], 0
pop ecx
jne 0x423e79
mov eax, dword [ebp - 0x14]
xor ebx, ebx
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x208
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423e74
cmp dword [ebp - 8], 1
jne 0x423e74
mov esi, ebx
jmp 0x423e7d
mov esi, 0x80004005
test esi, esi
js 0x423e99
test edi, edi
jne 0x423e86
mov edi, 0x4045c8
push edi
push dword [ebp + 8]
push 0x4059b0
push 4
call fcn.0041ea5f
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425af8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xdc], ebx
push esi
push edi
test ebx, ebx
jne 0x425b27
mov eax, 0x80004003
jmp 0x425d37
mov esi, dword [ecx]
test esi, esi
je 0x425d35
xor edi, edi
mov dword [ebp - 0xd8], edi
mov ecx, dword [esi]
test ecx, ecx
je 0x425d2a
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd4], edi
push eax
call fcn.004250aa
test eax, eax
jne 0x425d2a
lea eax, [ebp - 0xd0]
push eax
push 0x4072e8
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x425d2a
lea eax, [ebp - 0xd0]
push eax
push 0x405dac
push 4
call fcn.0041ea5f
add esp, 0xc
lea eax, [ebp - 0xd4]
push edi
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp - 0xd0]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x425d2a
mov ecx, dword [esi]
lea eax, [ebp - 0xd0]
push 0xc8
push eax
call fcn.00424b1c
test eax, eax
je 0x425d1e
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x425be2
cmp dword [eax], 4
je 0x425d1e
mov edi, dword [eax + 0xc]
test edi, edi
je 0x425d1c
mov ecx, dword [ebp - 0xd4]
lea edx, [ebp - 0xd0]
push edi
call fcn.0042217c
mov ebx, eax
test ebx, ebx
je 0x425d16
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xd8]
jne 0x425c0e
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esi]
lea eax, [ebp - 0xd0]
push 0x64
push eax
call fcn.00424b1c
test eax, eax
je 0x425c82
lea ecx, [ebp - 0xd0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x425c54
sub ecx, edx
mov edx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0xd0]
push eax
push ecx
push ecx
push 0x407548
xor ecx, ecx
call fcn.00422749
mov ecx, dword [esi]
lea eax, [ebp - 0xd0]
push eax
call fcn.004250aa
test eax, eax
js 0x425ccb
lea ecx, [ebp - 0xd0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x425c9d
sub ecx, edx
mov edx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0xd0]
push eax
push ecx
push ecx
push 0x4070c0
xor ecx, ecx
call fcn.0041fb3c
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x425d07
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xd8]
jne 0x425cd9
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push ecx
push ecx
push 0x407104
mov edx, ebx
xor ecx, ecx
call fcn.00422749
xor edi, edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xdc]
jmp 0x425d1e
mov ebx, dword [ebp - 0xdc]
xor edi, edi
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 4]
test esi, esi
jne 0x425b39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 8
Function at 0x426701
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x68], ebx
jne 0x4267cb
cmp dword [esi + 0x6c], ebx
jne 0x4267cb
mov eax, dword [esi + 0x2c]
cmp eax, 1
je 0x426776
jle 0x4267cb
cmp eax, 4
jle 0x42673d
cmp eax, 6
jne 0x4267cb
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x426755
mov edx, dword [esi + 0x14]
push ecx
call fcn.0043adac
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
jmp 0x4267cb
cmp dword [0x443534], 0xffffffff
jne 0x426767
push ecx
push 2
pop edx
call fcn.0041e530
push 2
mov edx, 0x405e74
pop ecx
call fcn.0041e988
jmp 0x4267cb
mov ecx, dword [esi + 0x18]
mov dword [ebp - 4], ebx
call fcn.0041f47f
test eax, eax
je 0x4267cb
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4267cb
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4267c4
mov edx, dword [ebp - 4]
xor ecx, ecx
or ecx, eax
or edx, ebx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x54], ebx
jne 0x42680b
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x42680b
call fcn.0041f47f
test eax, eax
jne 0x42680b
mov ecx, dword [esi + 0x1c]
call fcn.0041f47f
test eax, eax
jne 0x42680b
cmp dword [0x443534], 0xffffffff
jne 0x4267fe
push ecx
push 4
pop edx
call fcn.0041e530
push 4
mov edx, 0x405eb0
pop ecx
call fcn.0041e988
mov edx, dword [esi + 0x68]
mov edi, dword [esi + 0x6c]
cmp dword [ebp + 8], ebx
jne 0x42681c
add edx, dword [esi + 0x78]
adc edi, dword [esi + 0x7c]
mov eax, edx
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42e212
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, 0x80004005
cmp dword [edi], 0
je 0x42e3f2
push dword [edi]
lea eax, [ebp - 0x20c]
push 0x4078d8
push 0x104
push eax
call fcn.0040c0b5
add esp, 0x10
test eax, eax
js 0x42e3f2
push ebx
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42e2c3
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x210], eax
jmp 0x42e2c9
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x42e3f1
push dword [edi + 0xc]
mov edx, 0x407930
mov ecx, eax
call fcn.0042dbeb
push dword [edi + 0x64]
mov ecx, dword [ebp - 0x210]
mov edx, 0x40794c
call fcn.0042dbeb
push dword [edi + 0x68]
mov ecx, dword [ebp - 0x210]
mov edx, 0x407964
call fcn.0042dbeb
push dword [edi + 0x5c]
mov ecx, dword [ebp - 0x210]
mov edx, 0x407984
call fcn.0042dbeb
push dword [edi + 0x54]
mov ecx, dword [ebp - 0x210]
mov edx, 0x4079a0
call fcn.0042dbeb
push dword [edi + 0x50]
mov ecx, dword [ebp - 0x210]
mov edx, 0x4079bc
call fcn.0042dbeb
push dword [edi + 0x58]
mov ecx, dword [ebp - 0x210]
mov edx, 0x4079dc
call fcn.0042dbeb
push dword [edi + 0x6c]
mov ecx, dword [ebp - 0x210]
mov esi, 0x4079f8
mov edx, esi
call fcn.0042dbeb
push dword [edi + 0x70]
mov ecx, dword [ebp - 0x210]
mov edx, esi
call fcn.0042dbeb
push dword [edi + 0x74]
mov ecx, dword [ebp - 0x210]
mov edx, 0x407a18
call fcn.0042dbeb
push dword [edi + 0x78]
mov ecx, dword [ebp - 0x210]
mov esi, 0x407a38
mov edx, esi
call fcn.0042dbeb
push dword [edi + 0x7c]
mov ecx, dword [ebp - 0x210]
mov edx, esi
call fcn.0042dbeb
push dword [edi + 0x80]
mov ecx, dword [ebp - 0x210]
mov edx, 0x407a58
call fcn.0042dbeb
add edi, 0x4c
cmp dword [edi], ebx
je 0x42e3e3
push 4
push edi
push 4
push ebx
push 0x407a78
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x431a7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x91c
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x918], eax
mov ecx, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x914], ecx
cmp dword [edi + 0x34], edx
je 0x431abb
mov eax, 0x800704c7
jmp 0x431c17
test eax, eax
je 0x431bfc
test ecx, ecx
je 0x431bfc
lea ebx, [edi + 0x2c]
cmp dword [ebx], edx
jne 0x431b12
cmp dword [edi + 0x38], edx
je 0x431aef
call fcn.004227fd
xor edx, edx
test eax, eax
je 0x431aef
mov ecx, ebx
call fcn.0043bf92
mov esi, eax
xor edx, edx
jmp 0x431af4
mov esi, 0xc00d0bca
cmp dword [ebx], edx
jne 0x431b0c
test esi, esi
js 0x431b01
mov esi, 0x80004005
push esi
push 0x408180
jmp 0x431c0b
mov ecx, dword [ebp - 0x914]
push edx
push edx
push 0x105
lea eax, [ebp - 0x110]
push eax
push 0xffffffffffffffff
push ecx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
lea eax, [ebp - 0x910]
push ecx
push ecx
push 0x800
push eax
push 0xffffffffffffffff
push dword [ebp - 0x918]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x64
pop ecx
mov dword [edi + 0x28], eax
mov dword [edi + 0x30], 1
call fcn.0041de27
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [edi + 0x24], eax
cmp dword [edi + 0x28], ecx
je 0x431c01
mov eax, dword [ebx]
push ecx
push ecx
push ecx
mov esi, dword [eax]
lea ecx, [ebp - 0x110]
push 0x8000080
push 2
push ecx
lea ecx, [ebp - 0x910]
push ecx
mov ecx, dword [esi + 0x14]
push eax
call dword [0x446624]
call dword [esi + 0x14]
mov esi, eax
test esi, esi
js 0x431bd7
jmp 0x431bd0
push 0x258
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x431bd7
cmp dword [edi + 0x30], 0
je 0x431bd7
mov ecx, edi
call fcn.0043167d
mov esi, eax
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x431bae
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x431bf1
test al, 0x10
jne 0x431bf1
test esi, esi
jns 0x431c15
test esi, esi
js 0x431c05
mov esi, 0x80070002
jmp 0x431c05
mov esi, 0x80070057
test esi, esi
jns 0x431c15
push esi
push 0x4081a8
push 4
call fcn.0041ea5f
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 8
Function at 0x433407
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
push 0x408ae0
push 4
inc ebx
call fcn.0041ea5f
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x43346c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x433454
push 0x57
pop eax
push eax
push esi
push 0x408b00
push 2
call fcn.0041ea5f
add esp, 0x10
xor eax, eax
jmp 0x4335d6
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x4334ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43348f
push 0x57
pop eax
push eax
push esi
push 0x408b34
push 2
call fcn.0041ea5f
add esp, 0x10
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x433465
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4334f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4334c9
push 0x57
pop edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x420
je 0x4335d4
push edi
push esi
push 0x408b6c
jmp 0x43345b
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x2c], 0x927c0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x433518
push esi
push 0x408ba4
jmp 0x433599
mov ecx, dword [ebp - 0x1c]
cmp ecx, 4
je 0x4335a5
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
add eax, 0x7530
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x2c]
jle 0x433540
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x433581
cmp ecx, 4
je 0x43357e
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4335e9
mov eax, dword [ebp - 0x28]
mov ecx, 0x1f4
add dword [ebp - 0x24], ecx
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
test eax, eax
jg 0x433544
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x2c]
jg 0x433593
cmp ecx, 4
je 0x4335a5
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0xc]
jne 0x433527
push esi
push 0x408bec
push 2
call fcn.0041fb3c
add esp, 0xc
xor ebx, ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x408aa0
test ebx, ebx
jne 0x4335c3
mov eax, 0x408ab4
push eax
push esi
push 0x408c04
push 4
call fcn.0041ea5f
add esp, 0x10
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4
push esi
push 0x408bc8
jmp 0x433599
Function at 0x434347
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x101
push esi
push 0x4017c0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4343b1
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x409160
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4343a4
cmp dword [ebp - 0xc], edi
je 0x4343a7
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4343b9
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
lea ecx, [ebp - 0x20c]
inc edx
call fcn.0041fda0
test eax, eax
je 0x43441f
push 0x40918c
mov edx, 0x208
lea ecx, [ebp - 0x20c]
call fcn.0040c07b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43441f
test al, 0x10
jne 0x43441f
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441b90
mov esp, ebp
pop ebp
ret

Function at 0x43442d
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor edx, edx
lea ecx, [ebp - 0x20c]
xor esi, esi
inc edx
inc esi
call fcn.0041fda0
test eax, eax
je 0x4344e9
push edi
xor edi, edi
lea ecx, [ebp - 0x20c]
push 0x40918c
mov edx, 0x208
mov dword [ebp - 0x210], edi
call fcn.0040c07b
lea eax, [ebp - 0x210]
push eax
push 0x20106
push edi
push 0x403180
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x210], edi
je 0x4344e8
lea ecx, [ebp - 0x20c]
mov esi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4344aa
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x4091a8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x43905f
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x210], ecx
inc esi
push edi
test eax, eax
jne 0x43908c
mov eax, 0x40aad0
push 1
push 0x40a934
push eax
lea eax, [ebp - 0x22c]
xor ecx, ecx
push eax
lea edx, [ebp - 0x210]
call fcn.00436af8
test eax, eax
je 0x439206
mov eax, dword [0x444f94]
xor esi, esi
mov dword [ebp - 0x218], esi
test eax, eax
je 0x439106
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x439106
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x26d7
push dword [0x443af0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x439106
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x5c5
push dword [0x444f94]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x22c]
call fcn.0043699f
mov ebx, eax
mov dword [ebp - 0x21c], ebx
test ebx, ebx
je 0x439206
push 0x4059e8
push ebx
call dword [sym.imp.msvcrt.dll_wcstok]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4391ff
push edi
push 0x40a318
push 4
call fcn.0041ea5f
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x22c]
add esp, 0xc
mov edx, edi
push eax
push esi
call fcn.00422ff3
test eax, eax
je 0x4391e1
mov ecx, dword [ebp - 0x210]
xor ebx, ebx
mov edx, edi
inc ebx
call fcn.00422ea6
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x214], edi
call fcn.0041de27
cmp edi, ebx
jb 0x4391e1
mov esi, edi
mov ecx, ebx
call fcn.0041dfa0
lea ecx, [ebp - 0x22c]
inc ebx
call fcn.0043699f
mov edi, eax
test edi, edi
je 0x4391c5
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.0041f3f3
push edi
push 0x40a33c
push 4
call fcn.0041fb3c
add esp, 0xc
push edi
call fcn.00441807
pop ecx
lea eax, [ebp - 0x22c]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x4391db
cmp ebx, esi
jbe 0x439187
mov esi, dword [ebp - 0x218]
push 0x4059e8
push esi
call dword [sym.imp.msvcrt.dll_wcstok]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x439139
mov ebx, dword [ebp - 0x21c]
push ebx
call fcn.00441807
pop ecx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4
Function at 0x441ef0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x441f2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x441f26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x441f30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x441f16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x442000
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x442016
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x442031
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4013db
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x45652c]
push esi
push edi
mov edi, ecx
mov dword [ebp + 0x1c0], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x54], edi
je 0x4015aa
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push esi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x58], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4015aa
push ebx
mov dword [ebp - 0x50], esi
push 0x104
lea eax, [ebp + 0xbc]
push eax
push dword [ebp - 0x50]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, esi
mov dword [ebp - 0x5c], eax
jne 0x40159b
lea eax, [ebp + 0xbc]
push eax
call fcn.00431bd4
mov ebx, eax
cmp ebx, esi
pop ecx
jle 0x40159b
push 0x1c
call fcn.00431a0b
cmp eax, esi
pop ecx
je 0x40149a
mov ecx, eax
call fcn.00401000
mov esi, eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
push dword [edi + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test al, al
je 0x40158d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x401567
push eax
call fcn.00431980
test eax, eax
pop ecx
jbe 0x401567
mov ebx, dword [esi + 0x18]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44547c
push ebx
call fcn.00431b18
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jle 0x401567
jmp 0x4014f2
mov edi, dword [ebp - 0x54]
mov edi, dword [edi + 0x10]
jmp 0x401506
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x4c]
je 0x40150c
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x4014f7
jmp 0x40151e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
and dword [ebp - 0x4c], 0
mov byte [esi + 0x14], al
mov byte [esi + 0x15], 1
mov al, byte [ebx]
test al, al
je 0x40153e
cmp al, 0x20
je 0x401533
cmp al, 9
je 0x401533
inc ebx
mov al, byte [ebx]
test al, al
jne 0x401524
cmp byte [ebx], 0
je 0x40153e
inc ebx
cmp byte [ebx], 0
jne 0x401542
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jle 0x401564
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44547c
push ebx
call fcn.00431b18
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jg 0x4014ef
mov edi, dword [ebp - 0x54]
mov ebx, dword [edi + 0xc]
test ebx, ebx
jne 0x401578
mov dword [edi + 0xc], esi
jmp 0x40159b
call dword [eax + 4]
mov ebx, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
mov eax, dword [ebx]
mov ecx, ebx
jne 0x401573
push esi
call dword [eax + 8]
jmp 0x40159b
mov ecx, esi
call fcn.00401029
push esi
call fcn.00431936
pop ecx
inc dword [ebp - 0x50]
xor esi, esi
cmp dword [ebp - 0x5c], esi
je 0x40144b
pop ebx
mov ecx, dword [ebp + 0x1c0]
pop edi
pop esi
call fcn.0043196c
add ebp, 0x1c4
leave
ret