joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c9c0
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ce90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x49cf34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x20]
xor ebx, ebx
push 0x464728
xor esi, esi
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], ebx
call fcn.0043cbc0
add esp, 8
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 0xc], ebx
je 0x43caeb
push 5
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x43caeb
mov edx, dword [ebp - 0x20]
push 0x17
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], eax
cmp esi, ebx
je 0x43cae1
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push esi
call ebx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x43cacd
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x11], cl
lea ecx, [ebp - 0x11]
push ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00407050
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
sub eax, edi
cmp eax, dword [ebp - 0x18]
jne 0x43cac0
test edi, edi
je 0x43cac0
lea edx, [ebp - 0x18]
push edx
push eax
push edi
push esi
call ebx
test eax, eax
je 0x43cac0
cmp dword [edi + 4], 2
je 0x43cac0
mov eax, dword [edi + 8]
mov ecx, dword [edi]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 2
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea ecx, [ebp - 0x34]
call fcn.00406e90
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
push ecx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
xor ebx, ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43cb1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x43cb1b
cmp esi, ebx
je 0x43cb26
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x43cb34
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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 0x43d8d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cef0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x49cf34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x49c620
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.0043cbc0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x43d9a6
mov edi, dword [ebp + 8]
cmp ebx, 2
jge 0x43d9a6
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test ebx, ebx
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43d99d
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test edi, edi
jne 0x43d969
lea eax, [edi + 0xd]
jmp 0x43d989
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x461098
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x43d99d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc ebx
jmp 0x43d922
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d9e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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 eax, esi
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 0x43dc20
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cf1b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x49cf34]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
call fcn.004073d0
add esp, 0xc
cmp eax, edi
je 0x43ddc8
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x43ddc8
lea ecx, [ebp - 0x230]
push str.03007495_09bb_4334_987a_ae7586bca024_9a321bc78c02af107e2390662f9a5441_
push ecx
call fcn.004075e0
add esp, 8
push 0x45ed60
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x43ddc8
push esi
call eax
cmp eax, edi
je 0x43dd4d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43dd4d
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.0044fd70
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x43ddc8
lea edx, [ebp - 0x21c]
push edx
push edi
push edi
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x43ddc8
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x43ddc8
push 0x45ed40
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], edi
call fcn.00451c50
add esp, 0xc
test eax, eax
jne 0x43ddc8
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x43ddc8
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
push 1
push eax
call fcn.00451b18
mov edx, dword [ebp - 0x220]
push edx
call fcn.00451965
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.00451776
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp esi, eax
push ecx
sete bl
call fcn.0045156e
add esp, 0x1c
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x43ddf3
push eax
call fcn.0044f85e
add esp, 4
jmp 0x43ddf3
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044fd61
mov esp, ebp
pop ebp
ret
Function at 0x43e3a0
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cfc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x49cf34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x43e584
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43e3e3
sub eax, edx
sar eax, 1
je 0x43e584
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43e584
push 0x14
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x43e576
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x43e584
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x43e584
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x43e584
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
mov byte [ebp - 4], 1
call fcn.004073d0
add esp, 0xc
cmp eax, ebx
je 0x43e55d
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x43e55d
mov edi, dword [ebp + 8]
push 0x45ed40
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.00451c50
add esp, 0xc
test eax, eax
jne 0x43e55d
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x43e55d
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.00451b18
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.0045156e
add esp, 0x14
cmp esi, ebx
je 0x43e55d
mov eax, dword [0x49ceb4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49ceb4
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004062b0
cmp eax, ebx
je 0x43e555
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], ebx
je 0x43e555
push edi
lea ecx, [ebp + 8]
call fcn.00406390
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0043e0a0
push esi
lea ecx, [ebp + 8]
call fcn.0043df60
cmp eax, ebx
je 0x43e54d
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x43e54d
mov ecx, dword [ebp + 8]
push 1
push ebx
push ebx
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.00402b60
lea ecx, [ebp - 0x1c]
call fcn.00402b60
lea ecx, [ebp - 0x2c]
call fcn.00406e90
jmp 0x43e584
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x14], 1
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
Function at 0x43ec60
Capabilities:
Enumerate processes
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d036
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x49cf34]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x2d0], edi
cmp edi, ebx
je 0x43edcb
cmp edi, 0xffffffff
je 0x43edcb
push 0x228
lea eax, [ebp - 0x2c0]
push ebx
push eax
call fcn.0044fd70
add esp, 0xc
lea ecx, [ebp - 0x2c4]
push ecx
push edi
mov dword [ebp - 0x2c4], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x43edb9
push 0xfde9
lea eax, [ebp - 0x2a0]
lea edx, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], edx
call fcn.0043d600
mov ecx, dword [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 1
call fcn.0043ea80
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 3
cmp eax, edx
je 0x43ed47
push eax
call fcn.004506e8
add esp, 4
lea ecx, [ebp - 0x2cc]
call fcn.0043de20
mov esi, dword [ebp - 0x2cc]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ed60
sub eax, edx
mov edx, esi
or ecx, 0xffffffff
mov edi, edi
mov ebx, eax
dec eax
test ebx, ebx
je 0x43ed8f
movzx ebx, byte [edx]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x45e930]
inc edx
jmp 0x43ed70
not ecx
lea eax, [esi - 0x10]
or edx, 0xffffffff
cmp dword [ebp + 8], ecx
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
jne 0x43edf9
lea ebx, [edx + 2]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43edb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x43eddb
cmp edi, 0xffffffff
je 0x43edcb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
test edi, edi
je 0x43eddb
cmp edi, 0xffffffff
je 0x43eddb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044fd61
mov esp, ebp
pop ebp
ret
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ee0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c4]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x43ecf1
mov ebx, dword [ebp - 0x2c8]
jmp 0x43edb9
Function at 0x43f280
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x49cf34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x43f445
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43f2c3
sub eax, edx
sar eax, 1
je 0x43f445
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406390
mov eax, dword [0x49ceb4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49ceb4
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x49ceb4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49ceb4
mov byte [ebp - 4], 2
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 0x45edd8
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043eb30
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0043e110
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x24]
setne bl
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43f369
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x43f3e2
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
call fcn.00402890
push 1
push 0x45edd8
lea ecx, [ebp + 8]
call fcn.00402890
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x43f31a
push str.CreateDirectoryW
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43f3ca
push 0
push esi
call eax
test eax, eax
jne 0x43f45a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43f45a
mov dword [ebp - 0x14], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f402
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f422
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f445
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
cmp dword [ebp + 0xc], 0
je 0x43f31a
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x43f31a
Function at 0x4402d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x440342
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x440311
cmp eax, 2
jne 0x44032c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x44033c
test eax, eax
je 0x440337
test al, 1
jne 0x44032c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x44033c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x440630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d248
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x49cf34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x49ccb0
push eax
mov dword [ebp - 4], 0
call fcn.0043cbc0
add esp, 8
lea ecx, [ebp - 0x14]
push 0x49cd24
push ecx
mov byte [ebp - 4], 1
call fcn.0043cbc0
add esp, 8
mov edx, dword [0x49ceb4]
mov eax, dword [edx + 0xc]
mov ecx, 0x49ceb4
mov byte [ebp - 4], 2
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push 0
push 0x6a
mov byte [ebp - 4], 3
call fcn.00405ce0
add esp, 8
test eax, eax
je 0x4406c4
push 0x6a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406050
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 0
je 0x44075e
mov edx, dword [ebp - 0x14]
cmp dword [edx - 0xc], 0
je 0x44075e
cmp dword [esi - 0xc], 0
je 0x44075e
xor eax, eax
mov dword [ebp - 0x20], eax
cmp eax, 2
jge 0x44075e
xor ecx, ecx
test eax, eax
setne cl
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
lea eax, [ecx - 0x7fffffff]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 2
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x440758
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov eax, edi
mov dword [ebp - 0x30], eax
test esi, esi
je 0x44074d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, edi
test eax, eax
je 0x440758
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
inc eax
jmp 0x4406e6
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44077e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4407a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4407c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x44fd61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49cf34]
jne 0x44fd6b
repz ret
jmp fcn.004537df

Function at 0x458f41
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49cf34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00452dd7
and dword [ebp - 0x14], 0
cmp dword [0x49ecb4], 0
mov dword [ebp - 0x18], eax
jne 0x458ff4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45909c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45909c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x49ecb4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49ecb8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49ecbc], eax
call edi
push eax
call esi
mov dword [0x49ecc4], eax
test eax, eax
je 0x458ff4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49ecc0], eax
mov eax, dword [0x49ecc0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45904d
cmp dword [0x49ecc4], ecx
je 0x45904d
push eax
call esi
push dword [0x49ecc4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45904d
test ebx, ebx
je 0x45904d
call edi
test eax, eax
je 0x459044
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x459044
test byte [ebp - 8], 1
jne 0x45904d
or dword [ebp + 0x10], 0x200000
jmp 0x459080
mov eax, dword [0x49ecb8]
cmp eax, dword [ebp - 0x18]
je 0x459080
push eax
call esi
test eax, eax
je 0x459080
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x459080
mov eax, dword [0x49ecbc]
cmp eax, dword [ebp - 0x18]
je 0x459080
push eax
call esi
test eax, eax
je 0x459080
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49ecb4]
call esi
test eax, eax
je 0x45909c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45909e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fd61
leave
ret

Function at 0x404bf3
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x404bf5
ret