joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472030
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x472063
push esi
call fcn.004802a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47205c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4720e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4720d2
mov eax, dword [esi + 8]
test eax, eax
je 0x472087
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4720ce
cmp eax, 2
je 0x4720d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47207a
cmp eax, 3
je 0x4720ad
cmp eax, 1
jne 0x47207a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47207a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47207a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00472110
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4720f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00472110
add esp, 4
pop esi
ret

Function at 0x472980
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4729a1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4729a1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4729a1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x48de90
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x55a474]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x48dea3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x48dee4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x55a51c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x48df16
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48df1a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x48df0b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x48df38
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48df3c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x48df2d
xor ecx, ecx
mov eax, 0x55a484
xor ebx, ebx
mov bl, byte [ecx + 0x55a52c]
cmp byte [esp + ebx + 0x14], 0
je 0x48df67
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x55a544]
cmp byte [esp + ebx + 0x14], 0
je 0x48df7e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x48df4e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x48ded7
lea edx, [esp + 0x84]
push edx
call fcn.0048dfc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4920f8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d78ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004c851f
mov dword [esi], method.CTreeCtrl.virtual_0
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.0044c940
call fcn.00494c80
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.00494c80
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.00494c80
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.00494c80
mov dword [edi], 0x53a3e4
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.004c55e5
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x53a4b4
mov eax, dword [0x562a08]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.00494c80
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.004c55e5
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CTreeCtrl.virtual_0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4921e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d7974
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CTreeCtrl.virtual_0
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.004c560e
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x53a3e0
call fcn.00494e80
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.004c6e58
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 6
call fcn.004cdce6
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.004c560e
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x53a3e0
call fcn.00494e80
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x53a3e0
call fcn.00494e80
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x53a3e0
call fcn.00494e80
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x53a3e0
call fcn.00494e80
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004c5247
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x492de0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x492e83
test eax, eax
jbe 0x492e83
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x492e83
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x492e2e
xor esi, esi
jmp 0x492e34
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x492e5f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004951a0
add esi, eax
push esi
mov ebx, esi
call fcn.004951a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x492e40
pop ebp
test edi, edi
pop edi
jne 0x492e83
test ebx, ebx
je 0x492e83
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004b6b50
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x492fa5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4930bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4930bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c8971
mov esi, eax
test esi, esi
je 0x4930bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4930bd
mov ecx, esi
call fcn.00492f30
cmp edi, eax
jge 0x4930bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x493043
mov dword [esp + 0x34], 1
jmp 0x49309e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4930bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00490cc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x49a000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x58d6e0]
xor edx, edx
cmp eax, edx
jne 0x49a026
xor eax, eax
mov byte [eax + 0x58d5e0], al
inc eax
cmp eax, 0x100
jl 0x49a00e
mov dword [0x58d6e0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x58d5e0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49a0b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49a08a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49a058
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49a130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49a183
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49a16a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a0b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d807e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a1420
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x53ac6c
call fcn.004c6b99
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a0b93
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c6b99
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a0b8c
push 0
mov ecx, eax
call fcn.00497c30
mov dword [esi + 0xc], eax
jmp 0x4a0b95
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a0b95
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4c9315
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c934d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c72ff
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c72d7
jmp 0x4c9359
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4caa07
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4caa49
call fcn.004d06ee
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4caa49
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4caa40
xor eax, eax
jmp 0x4caa51
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004caa57
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d0c1e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d0c4c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d0c6a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d0b84
jmp 0x4d0c6a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d0c6a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d0b84
test edi, edi
mov eax, edi
jne 0x4d0c54
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401240
Capabilities:
Delete service

Disassembly:
push ebx
push esi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x401293
mov eax, dword [esp + 0xc]
push ebp
push edi
push 0x10000
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x401289
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x401286
mov ebx, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
ret
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4012a0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40130f
mov eax, dword [esp + 0x28]
push ebp
push esi
push 0x20
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x401302
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x4012fa
cmp eax, 3
jne 0x4012ff
push 0x78
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
add esp, 0x1c
ret
mov eax, ebx
pop edi
pop ebx
add esp, 0x1c
ret
Function at 0x4019a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
push 0x416580
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test al, al
je 0x401b8b
push str.SogouExplorer.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x401b8b
mov dword [0x416578], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x84
push esi
call edi
push 0x8e
push esi
mov dword [0x41657c], eax
call edi
push 0xaf
push esi
mov ebx, eax
call edi
push 0x13b
push esi
mov dword [ebp - 0x18], eax
call edi
push 0x414280
push esi
mov dword [ebp - 0xc], eax
call edi
mov edi, eax
test ebx, ebx
mov dword [ebp - 0x1c], edi
je 0x401b8b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401b8b
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x401b8b
add ebx, 0xe
add eax, 0x6e
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
mov edx, dword [ebx - 7]
and edx, 0xffffff
cmp edx, 0xe80575
jne 0x401b8b
cmp dword [eax], 0xf7fc858d
jne 0x401b8b
cmp dword [ecx], 0x424548b
jne 0x401b8b
push esi
call fcn.004018d0
add esp, 4
mov dword [0x416578], eax
test eax, eax
je 0x401b8b
test edi, edi
je 0x401b8b
mov ecx, dword [0x41657c]
test ecx, ecx
je 0x401b8b
cmp dword [eax + 1], 0xec8b55ff
jne 0x401b8b
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test al, al
je 0x401b8b
pushal
pushfd
lea eax, [0x416578]
mov eax, dword [eax]
mov ecx, dword [eax]
cmp ecx, 0x8b55ff8b
jne 0x401af8
lea edx, [0x401950]
sub edx, eax
sub edx, 5
mov ecx, 0xe8
xchg dword [eax], ecx
inc eax
xchg dword [eax], edx
popfd
popal
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
push 0x40
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test al, al
je 0x401b8b
pushal
pushfd
lea eax, [ebp - 0xc]
mov eax, dword [eax]
mov ecx, 0xc346f633
xchg dword [eax], ecx
popfd
popal
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x10
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test al, al
je 0x401b8b
pushal
pushfd
lea eax, [ebp - 0x10]
mov eax, dword [eax]
lea edx, [0x416d80]
mov ecx, 0xb890
xchg dword [eax], ecx
inc eax
inc eax
xchg dword [eax], edx
popfd
popal
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test al, al
je 0x401b8b
pushal
pushfd
lea eax, [ebp - 8]
mov eax, dword [eax]
inc eax
lea edx, [0x416580]
xchg dword [eax], edx
popfd
popal
lea esi, [ebp - 0x14]
push esi
call dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ba0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x160
mov al, 0xc8
mov cl, 0xf0
push esi
mov byte [esp + 0x13], al
mov byte [esp + 0x16], al
mov byte [esp + 0x17], cl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x3b], al
push edi
mov cl, 0xc2
lea eax, [esp + 8]
push 0x41
mov dl, 0xec
mov byte [esp + 0x2b], cl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], cl
mov byte [esp + 0x4b], cl
push eax
push 0x12
lea ecx, [esp + 0x5c]
mov byte [esp + 0x14], 0xe1
mov byte [esp + 0x15], 0xd7
mov byte [esp + 0x16], 0xd2
mov byte [esp + 0x17], 0xf3
mov byte [esp + 0x18], 0xe5
mov byte [esp + 0x19], 0xd9
mov byte [esp + 0x1a], 0xc6
mov byte [esp + 0x1b], 0xe2
mov byte [esp + 0x1c], 0xee
mov byte [esp + 0x1d], 0xd5
mov byte [esp + 0x1e], 0xfd
mov byte [esp + 0x1f], 0xc4
mov byte [esp + 0x20], 0xc0
mov byte [esp + 0x21], 0xf7
mov byte [esp + 0x22], 0xe7
mov byte [esp + 0x24], 0xd4
mov byte [esp + 0x25], dl
mov byte [esp + 0x28], 0xdb
mov byte [esp + 0x29], 0xf6
mov byte [esp + 0x2c], 0xc5
mov byte [esp + 0x2d], 0xeb
mov byte [esp + 0x2f], 0xe4
mov byte [esp + 0x30], 0xc7
mov byte [esp + 0x31], 0xea
mov byte [esp + 0x32], 0xe6
mov byte [esp + 0x34], 0xdc
mov byte [esp + 0x35], dl
mov byte [esp + 0x38], 0xc0
mov byte [esp + 0x39], 0xeb
mov byte [esp + 0x3a], 0xfd
mov byte [esp + 0x3c], 0xdc
mov byte [esp + 0x3d], 0xc4
mov byte [esp + 0x3e], 0xc1
mov byte [esp + 0x3f], 0xc9
mov byte [esp + 0x40], 0xdb
mov byte [esp + 0x41], 0xf6
mov byte [esp + 0x42], 0xe7
mov byte [esp + 0x43], 0xd3
mov byte [esp + 0x44], 0xd3
mov byte [esp + 0x45], 0xf4
mov byte [esp + 0x46], 0xf8
mov byte [esp + 0x47], 0xfb
mov byte [esp + 0x48], 0xe1
mov byte [esp + 0x49], 0xf7
mov byte [esp + 0x4a], 0xf3
mov byte [esp + 0x4c], 0xc7
mov byte [esp + 0x4d], 0xdd
mov byte [esp + 0x4e], dl
mov byte [esp + 0x4f], 0xd7
mov byte [esp + 0x50], 0xde
mov byte [esp + 0x51], 0xf7
mov byte [esp + 0x52], 0xe6
mov byte [esp + 0x54], 0xc0
call fcn.004020e0
mov esi, dword [esp + 0x16c]
mov dword [esp + 0x4c], 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401da2
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x64]
push edx
push eax
push str.UninstallString
lea ecx, [esp + 0x60]
call fcn.00402170
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x401da2
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x104
push 0x416580
lea edx, [esp + 0x6c]
push 0xffffffffffffffff
push edx
push 0
push 0
call edi
test eax, eax
je 0x401da2
push 0x104
push 0x416d80
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
test eax, eax
je 0x401da2
call fcn.004019a0
lea ecx, [esp + 0x50]
call fcn.00402130
pop edi
mov eax, 1
pop esi
add esp, 0x160
ret
lea ecx, [esp + 0x50]
call fcn.00402130
pop edi
xor eax, eax
pop esi
add esp, 0x160
ret
Function at 0x4022e0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x410
test eax, eax
push esi
mov esi, dword [esp + 0x418]
push edi
je 0x402310
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402310
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402329
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
call fcn.00403280
test eax, eax
je 0x402355
push esi
call fcn.00402510
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x410
ret
mov al, byte [0x417584]
test al, al
jne 0x40237e
push 0x104
push 0x417584
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push 0x417584
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4024fb
lea ecx, [esp + 0x10c]
push ecx
call fcn.00402510
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push str.NUL_s_n
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x4142f0
push 0x417584
call edi
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x402428
push 0x4142ec
push 0x417584
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4024fb
push ebx
push ebp
push esi
call dword [sym.imp.MSVCRT.dll_rewind]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_fgets]
push esi
lea ecx, [esp + 0x220]
push 0x208
push ecx
call edi
add esp, 0x10
test eax, eax
je 0x4024ac
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x218]
push edx
call ebp
lea eax, [esp + 0x21c]
push str._rename_
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x4024c7
push esi
lea ecx, [esp + 0x21c]
push 0x208
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x402475
mov edi, dword [sym.imp.MSVCRT.dll_fputs]
push esi
push str._rename__n
call edi
lea edx, [esp + 0x18]
push esi
push edx
call edi
add esp, 0x10
jmp 0x4024e1
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 0x14
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x410
ret
pop edi
xor eax, eax
pop esi
add esp, 0x410
ret