joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ea40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x41ea87
cmp byte [esi + 1], 0
je 0x41ea8f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x41eaa1
cmp byte [esi + 1], 0
je 0x41ea95
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x41eaa9
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x41ea61
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x41eaa9
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x41eabb
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.004f33c3
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x41ead5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x41ebe9
jmp 0x41eaf9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x41eb08
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x41eb1f
mov ebx, 0x404
cmp byte [esi], 0
je 0x41eb44
cmp byte [esi + 1], 0
je 0x41ebe9
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41eb47
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x41eb70
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41eb6b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x41eb99
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x41eb81
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.004f4d50
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x41ebe9
lea eax, [ebx - 3]
test eax, eax
jle 0x41ebdd
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x41ebcf
cmp byte [eax + ecx + 1], 0x4b
jne 0x41ebcf
cmp byte [eax + ecx + 2], 5
jne 0x41ebcf
cmp byte [eax + ecx + 3], 6
je 0x41ebd5
test eax, eax
jg 0x41ebb0
jmp 0x41ebdd
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x41ebe9
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x41eaf0
mov eax, dword [ebp - 0x10]
push eax
call fcn.004f3161
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fb00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x41fb96
cmp dword [esi + 4], 0xffffffff
jne 0x41fb96
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41fb30
mov eax, dword [0x568408]
mov dword [edi], eax
cmp ebx, 1
jne 0x41fb61
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, ebx
je 0x41fb61
mov eax, 0x2000000
pop edi
pop ecx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push ecx
mov edi, ebx
call fcn.0041e790
add esp, 0xc
test eax, eax
jne 0x41fb84
mov eax, dword [ebp + 8]
pop edi
pop ecx
pop ebp
ret 8
call fcn.0041ec00
mov dword [esi], eax
mov eax, dword [0x587628]
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8

Function at 0x421e00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x4d8], 0
je 0x421e85
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0x100
jne 0x421e64
cmp bx, 0xd
jne 0x421e64
cmp byte [esi + 0x4de], 0
je 0x421e44
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x421e64
cmp byte [esi + 0x4df], 0
jne 0x421e64
mov edi, dword [esi + 0x40]
test edi, edi
je 0x421e5b
push 0
push 0
push str.return
mov ecx, esi
call fcn.0040f190
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x4d8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ebx
push edi
call edx
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x442320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x442344
cmp eax, edi
jge 0x44233c
call fcn.00441a00
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor eax, eax
test edi, edi
jle 0x44236f
mov ecx, dword [esi + 0xc]
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + eax - 4], dl
shr ecx, 8
mov ebx, edi
inc eax
mov dword [esi + 0xc], ecx
test ebx, ebx
jg 0x442350
mov dword [esi + 8], ebx
cmp eax, 4
jge 0x44238e
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jb 0x44237c
xor ecx, ecx
jmp 0x442384
mov dl, byte [ecx]
inc ecx
mov dword [esi], ecx
movzx ecx, dl
mov byte [ebp + eax - 4], cl
inc eax
cmp eax, 4
jl 0x442372
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edx, byte [ebp - 2]
movzx ebx, ah
movzx eax, al
shl ebx, 8
add ebx, eax
shl ecx, 8
mov eax, ebx
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x4423c7
mov dword [0x587478], str.zlib_corrupt
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
add ecx, ebx
cmp ecx, dword [esi + 4]
jbe 0x4423e3
pop edi
pop esi
mov dword [0x587478], 0x56b68c
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
add edx, ebx
cmp edx, dword [esi + 0x18]
jbe 0x4423fa
mov ecx, ebx
mov edi, esi
call fcn.00441a40
test eax, eax
je 0x4423be
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
push ebx
push edi
push eax
call fcn.004f4d50
mov eax, dword [esi + 0x10]
add edi, ebx
add esp, 0xc
add eax, ebx
mov dword [esi], edi
pop edi
mov dword [esi + 0x10], eax
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44aae0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x44ab50
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.004f5ab0
mov ebx, esp
test ebx, ebx
je 0x44ab50
mov ecx, dword [edi + 4]
push esi
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [edi + 0x10]
add esi, 0x1b8
push ebx
or eax, 0xffffffff
call fcn.0040a8e0
mov esi, dword [edi + 0x10]
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push 0
push 0
push str.textchanged
mov ecx, esi
call eax
mov ecx, esi
mov edi, eax
call fcn.0040f190
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret
Function at 0x4554c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
push ebx
mov dword [eax + 0x594], 0
cmp dword [edi + 4], 0
push esi
jne 0x455567
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x9c], edx
mov edx, dword [eax + 0x1c]
call edx
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [eax]
sub ebx, edx
push ebx
sub esi, ecx
push esi
push edx
push ecx
push 0
push 0x40000000
push 0
push eax
mov eax, edi
call fcn.004114e0
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
mov ebx, dword [ecx + 0x4a8]
call eax
mov esi, eax
mov eax, ebx
call fcn.0040f930
mov ecx, dword [eax]
mov edx, dword [edi + 4]
push 1
push ecx
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x90]
push edx
call eax
mov ecx, dword [eax]
cmp word [ecx], 0
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
sete bl
cmp eax, edx
je 0x45559a
push eax
call fcn.004f3161
add esp, 4
test bl, bl
je 0x4555ad
mov eax, dword [edi + 0x10]
add eax, 0x584
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 4]
add ecx, 0x584
push ecx
push 0
push 0x1002
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov byte [edi + 0x18], 1
pop ebx
call fcn.004f2889
mov esp, ebp
pop ebp
ret 4
Function at 0x457c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5286f6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x58771c], 1
mov esi, 7
jne 0x457cb7
or dword [0x58771c], 1
xor eax, eax
push 0x52af50
mov dword [0x587714], esi
mov dword [0x587710], 0
mov word [0x587700], ax
call fcn.004f3a4c
add esp, 4
mov eax, dword [0x587710]
push 0x5641f8
xor edi, edi
mov ecx, 0x587700
call fcn.00401f90
test eax, eax
jne 0x457d87
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x234], dx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457d05
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00403af0
push 0x568408
mov eax, esi
push eax
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 4], 0
call fcn.00402000
add esp, 0xc
mov edi, eax
mov esi, 0x587700
mov byte [ebp - 4], 1
call fcn.00402120
mov esi, 8
cmp dword [ebp - 0x23c], esi
jb 0x457d70
mov edx, dword [ebp - 0x250]
push edx
call fcn.004f287e
add esp, 4
cmp dword [ebp - 0x220], esi
jb 0x457d87
mov eax, dword [ebp - 0x234]
push eax
call fcn.004f287e
add esp, 4
mov eax, 0x587700
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.004f2889
mov esp, ebp
pop ebp
ret

Function at 0x457db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52872b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 1
mov esi, 7
test byte [0x5876fc], al
jne 0x457e1a
or dword [0x5876fc], eax
xor eax, eax
push 0x52af90
mov dword [0x5876f4], esi
mov dword [0x5876f0], 0
mov word [0x5876e0], ax
call fcn.004f3a4c
add esp, 4
mov eax, dword [0x5876f0]
push 0x5641f8
xor edi, edi
mov ecx, 0x5876e0
call fcn.00401f90
test eax, eax
jne 0x457ec2
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x234], dx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
lea edx, [eax + 2]
jmp 0x457e70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457e70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00403af0
push 0
mov eax, esi
push eax
or eax, 0xffffffff
mov ecx, 0x5876e0
mov dword [ebp - 4], 0
call fcn.00402710
cmp dword [ebp - 0x220], 8
jb 0x457ec2
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004f287e
add esp, 4
mov eax, 0x5876e0
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.004f2889
mov esp, ebp
pop ebp
ret
Function at 0x458180
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528670
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov edi, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push eax
mov eax, 0x5641f8
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
call fcn.00403af0
lea edx, [ebp - 0x58]
push edx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4582c6
lea edx, [esi + 1]
push edx
call fcn.004f1ede
add esp, 4
push eax
push esi
push 0
push edi
mov dword [ebp - 0x54], eax
mov dword [eax], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4582c6
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0x568408
xor edi, edi
push ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, edi
jne 0x45826f
push edi
mov eax, 0x5641f8
lea esi, [ebp - 0x2c]
call fcn.00403af0
mov dword [ebx + 0x10], edi
xor edx, edx
mov edi, esi
mov dword [ebx + 0x14], 7
mov esi, ebx
mov word [ebx], dx
call fcn.00402120
cmp dword [ebp - 0x18], 8
jb 0x4582f5
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x4582ed
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx esi, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push esi
push edx
push ecx
push str._d._d._d._d
lea eax, [ebp - 0x48]
call fcn.004578e0
add esp, 0x14
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402120
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 8
jb 0x4582ba
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004f287e
add esp, 4
mov edx, dword [ebp - 0x54]
push edx
call fcn.004f287e
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
lea edi, [ebp - 0x2c]
mov esi, ebx
mov word [ebx], ax
call fcn.00402120
cmp dword [ebp - 0x18], 8
jb 0x4582f5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f287e
add esp, 4
mov eax, ebx
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.004f2889
mov esp, ebp
pop ebp
ret
Function at 0x458790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5274f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x581980]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea esi, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.004594b0
mov esi, 8
mov eax, 0x210
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x16], edi
cmp dword [ebp + 0x1c], esi
jb 0x4587e5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
jmp 0x4587eb
lea edx, [ebp + 8]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x1a], edi
jne 0x458837
cmp eax, edi
je 0x458813
cmp dword [ebp + 0x1c], esi
jb 0x458848
mov ecx, dword [ebp + 8]
push ecx
jmp 0x458840
cmp dword [ebp + 0x1c], esi
jb 0x458824
mov edx, dword [ebp + 8]
push edx
call fcn.004f287e
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x1c], esi
jb 0x458848
mov eax, dword [ebp + 8]
push eax
call fcn.004f287e
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4588a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
push ecx
mov edi, 1
mov dword [ebp - 0x50], 0x5c
call fcn.00459550
push eax
xor ecx, ecx
lea esi, [ebp - 0x2c]
lea edx, [ebp + 8]
call fcn.00459480
mov edi, eax
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00402120
mov edi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jb 0x458920
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004f287e
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x45892b
lea eax, [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
mov eax, dword [ebp + 8]
setne byte [ebp - 0x49]
cmp dword [ebp + 0x1c], edi
jae 0x458945
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
jne 0x458964
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x458957
lea eax, [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45896d
mov byte [ebp - 0x49], 1
jmp 0x458a36
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 2
push edx
lea edi, [eax + 1]
mov dword [ebp - 0x50], 0x5c
call fcn.00459550
inc eax
push eax
xor ecx, ecx
lea esi, [ebp - 0x48]
lea edx, [ebp + 8]
call fcn.00459480
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402120
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], esi
jb 0x4589d3
mov eax, dword [ebp - 0x48]
push eax
call fcn.004f287e
add esp, 4
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov dword [ebp - 0x50], esp
push edx
lea eax, [ebp + 8]
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00402710
call fcn.004588a0
add esp, 0x1c
test al, al
je 0x458a23
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x458a12
lea eax, [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x458a23
mov byte [ebp - 0x49], 1
cmp dword [ebp - 0x18], esi
jb 0x458a34
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f287e
add esp, 4
mov edi, esi
cmp dword [ebp + 0x1c], edi
jb 0x458a47
mov edx, dword [ebp + 8]
push edx
call fcn.004f287e
add esp, 4
mov al, byte [ebp - 0x49]
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.004f2889
mov esp, ebp
pop ebp
ret
Function at 0x459e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527f96
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x581980]
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 - 4], 1
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, 8
mov dword [ebp - 0x258], edi
cmp dword [ebp + 0x1c], ebx
jae 0x459e6d
lea eax, [ebp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x234]
call fcn.004578e0
add esp, 8
mov byte [ebp - 4], 2
call fcn.00459940
test eax, eax
je 0x459ed7
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0x459e99
lea eax, [ebp + 8]
push eax
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x250]
call fcn.004578e0
add esp, 8
mov edi, eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00402120
cmp dword [ebp - 0x23c], ebx
jb 0x459ed5
mov eax, dword [ebp - 0x250]
push eax
call fcn.004f287e
add esp, 4
xor edi, edi
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x254], edi
mov word [ebp - 0x218], cx
call fcn.004f50f0
mov eax, dword [ebp - 0x234]
add esp, 0xc
cmp dword [ebp - 0x220], ebx
jae 0x459f0f
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x254]
push ecx
push 1
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x459f77
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x25c], 0x208
cmp dword [ebp + 0x38], ebx
jae 0x459f3e
lea eax, [ebp + 0x24]
lea edx, [ebp - 0x25c]
push edx
mov edx, dword [ebp - 0x254]
lea ecx, [ebp - 0x218]
push ecx
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x459f6a
mov dword [ebp - 0x258], 1
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], ebx
jb 0x459f8e
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004f287e
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
cmp dword [ebp + 0x1c], ebx
jb 0x459fb9
mov eax, dword [ebp + 8]
push eax
call fcn.004f287e
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], edi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], ebx
jb 0x459fd6
mov edx, dword [ebp + 0x24]
push edx
call fcn.004f287e
add esp, 4
mov eax, dword [ebp - 0x258]
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.004f2889
mov esp, ebp
pop ebp
ret
Function at 0x45a000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45a09f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x45a050
mov ecx, str.explorer.exe
lea eax, [ebp - 0x20c]
jmp 0x45a060
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45a086
test dx, dx
je 0x45a082
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45a086
add eax, 4
add ecx, 4
test dx, dx
jne 0x45a060
xor eax, eax
jmp 0x45a08b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x45a090
inc edi
lea ecx, [ebp - 0x230]
push ecx
push esi
call ebx
test eax, eax
jne 0x45a050
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp edi, 1
setge al
pop edi
xor ecx, ebp
pop esi
call fcn.004f2889
mov esp, ebp
pop ebp
ret

Function at 0x45a0c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45a100
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45a193
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45a156
test dx, dx
je 0x45a152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45a156
add eax, 4
add ecx, 4
test dx, dx
jne 0x45a130
xor eax, eax
jmp 0x45a15b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x45a181
mov ecx, dword [ebp - 0x228]
push ecx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x45a1a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call ebx
lea edx, [ebp - 0x230]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45a120
push edi
call ebx
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004f2889
mov esp, ebp
pop ebp
ret