joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448505
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 0x44861d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44861d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045ceda
mov esi, eax
test esi, esi
je 0x44861d
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 0x44861d
mov ecx, esi
call fcn.00448470
cmp edi, eax
jge 0x44861d
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 0x4485a3
mov dword [esp + 0x34], 1
jmp 0x4485fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44861d
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.00447a70
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 0x45d87d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45d8b5
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.0045b934
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045b90c
jmp 0x45d8c1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45ef72
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 0x45efb4
call fcn.00464a27
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45efb4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45efab
xor eax, eax
jmp 0x45efbc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045efc2
pop edi
pop esi
pop ebx
ret 4
Function at 0x464f57
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 0x464f85
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x464fa3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464ebd
jmp 0x464fa3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464fa3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464ebd
test edi, edi
mov eax, edi
jne 0x464f8d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48fb83
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x480630]
push ebx
mov ebx, dword [0x475aa0]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0x475a9c]
lea edx, [esp + 0x10]
push edx
push 0x20019
xor eax, ebp
push 0
mov dword [esp + 0x148], eax
mov eax, dword [0x475a94]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x475a98]
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402c34
mov byte [esp + 0x30], al
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c0e
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.00402950
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, esi
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebx
jmp 0x402c49
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebx
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret 4
Function at 0x402c70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x480630]
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 0x10]
mov byte [esp + 0x30], 0
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [ebp + 8]
mov eax, ebx
shr eax, 0x10
movzx ecx, ah
push ecx
movzx eax, al
push eax
movzx ecx, bh
push ecx
movzx eax, bl
push eax
mov eax, edx
mov ecx, edx
shr ecx, 0x18
push ecx
shr eax, 0x10
movzx eax, al
push eax
movzx eax, word [esp + 0x36]
movzx ecx, dh
push ecx
movzx ecx, word [esp + 0x38]
mov dword [esp + 0x3c], edx
movzx edx, dl
push edx
push eax
push ecx
push esi
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x60]
push 0x104
push edx
mov dword [esp + 0x5c], ebx
call fcn.00458137
add esp, 0x38
lea eax, [esp + 0x10]
push eax
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402d59
lea ecx, [esp + 0x10]
push ecx
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x402d59
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x30]
push edx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x10]
inc eax
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push esi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402d8c
xor esi, esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4031d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push edi
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
ja 0x4031fa
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
lea ecx, [edi + 1]
push esi
push ecx
call fcn.00456452
mov edx, dword [esp + 0x10]
add esp, 4
mov esi, eax
push esi
push edi
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40322c
push esi
call fcn.004572e5
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4708a4
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40321a
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push str._d_d_d_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.004572e5
add esp, 0x1c
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x4033a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x480630]
xor eax, ebp
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [esp + 0xc], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
mov eax, 0x104
lea ecx, [esp + 0x14]
call fcn.00403330
add esp, 4
test eax, eax
je 0x403419
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x11c]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x403430
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x480630]
xor eax, ebp
mov dword [esp + 0x224], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [esp + 0xc], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x120], 0
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
mov eax, 0x104
lea ecx, [esp + 0x124]
mov dword [esp + 0x14], 0xffffffff
call fcn.00403330
add esp, 4
test eax, eax
je 0x403545
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x18], bl
mov ecx, 0x41
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x120]
push ecx
push 0x104
lea edx, [esp + 0x20]
push edx
push 0x4708d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x10], eax
cmp byte [esp + 0x18], bl
je 0x403545
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push 0x4708d4
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call fcn.004582d0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
ja 0x403548
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push str.0X_X
push edx
call fcn.004582d0
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
ja 0x403548
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push 0x4708c8
push ecx
call fcn.004582d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
ja 0x403548
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x22c]
pop edi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret

Function at 0x403560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x480630]
xor eax, ebp
mov dword [esp + 0x11c], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x14]
stosb byte es:[edi], al
push edx
mov eax, 0x104
lea ecx, [esp + 0x1c]
call fcn.00403330
add esp, 4
test eax, eax
je 0x4035ef
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x403b90
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x480630]
xor eax, ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esp + 0x224], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x10], eax
xor eax, eax
test esi, esi
mov ecx, 0x41
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
je 0x403c2a
cmp byte [esi], 0
je 0x403c2a
push 0x5c
push esi
call fcn.00457c44
add esp, 8
test eax, eax
jne 0x403c5f
push 0x105
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.00457e22
add esp, 8
test eax, eax
je 0x403c0f
mov byte [eax + 1], 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x105
sub ecx, eax
push ecx
push esi
lea edx, [esp + eax + 0x20]
push edx
jmp 0x403c59
push 0x105
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, 0x105
sub edx, eax
push edx
push 0x47090c
lea eax, [esp + eax + 0x20]
push eax
call ebx
lea esi, [esp + 0x18]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403d8c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
shl ecx, 0xa
cmp eax, ecx
jbe 0x403d55
cmp eax, 0xffffffff
je 0x403d55
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x105
push esi
lea edx, [esp + 0x128]
xor eax, eax
mov byte [esp + 0x128], 0
mov ecx, 0x41
lea edi, [esp + 0x129]
push edx
rep stosd dword es:[edi], eax
call ebx
lea eax, [esp + 0x120]
push 0x2e
push eax
call fcn.00457e22
add esp, 8
test eax, eax
je 0x403ce8
mov byte [eax], 0
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, 0x105
sub edx, eax
push edx
push str.2.log
lea eax, [esp + eax + 0x128]
push eax
call ebx
push 0x80
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x4040e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4040fd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00407440
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40413c
call fcn.004154a0
mov esi, eax
test esi, esi
je 0x40413c
cmp dword [esi + 0x30], 4
jne 0x40413c
mov eax, dword [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40413c
call fcn.004178f0
mov ecx, dword [esi + 0x19c]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x30]
call fcn.00415510
call fcn.00417960
pop esi
jmp 0x4302c0
mov ecx, dword [0x482da8]
test ecx, ecx
push esi
mov esi, ecx
je 0x4302db
call fcn.004300e0
push esi
call fcn.004572e5
add esp, 4
pop esi
ret
Function at 0x406490
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46b800
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, 1
call fcn.004154a0
push 0x470bc0
mov ecx, esi
mov ebx, eax
call fcn.00404d30
lea edi, [esi + 4]
push 0x470bc0
mov ecx, edi
call fcn.00404d30
push edi
push esi
call fcn.00405780
mov eax, dword [esi]
push str.SoftManager
push eax
call fcn.00457f3f
add esp, 0x10
test eax, eax
je 0x406584
mov eax, dword [esi]
push str.dep360
push eax
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x406584
mov eax, dword [esi]
push str.QQPCSoftMgr
push eax
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x406584
mov eax, dword [esi]
push str.360sd
push eax
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x406584
mov eax, dword [esi]
push str.KSafe
push eax
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x406584
mov eax, dword [esi]
push str.utool
push eax
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x406584
mov eax, dword [esi]
push str.MainCon
push eax
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x406584
mov eax, dword [esi]
push str.DriverGenius
push eax
call fcn.00457f3f
add esp, 8
test eax, eax
jne 0x40668c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x470c44
push 0x470c44
xor ebp, ebp
call edi
push eax
mov ecx, esi
call fcn.00403ab0
mov ecx, esi
call fcn.00405bd0
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [0x4800d8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00404d30
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4065e6
push 0x470c08
push 0x470c08
call edi
push eax
jmp 0x4065ee
mov ebx, dword [ebx + 0x44]
mov edx, dword [ebx - 8]
push ebx
push edx
lea ecx, [esp + 0x18]
call fcn.00403ab0
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406649
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.DisplayIcon
push esi
call edi
push str.DisplayName
push esi
call edi
push str.DisplayVersion
push esi
call edi
push str.InstallLocation
push esi
call edi
mov eax, dword [0x4800dc]
lea ecx, [ebx - 0xc]
cmp ecx, eax
je 0x40666c
lea edi, [ebx - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40666c
push edi
call fcn.00457c3f
add esp, 4
test esi, esi
je 0x4066b0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea edx, [esp + 0x14]
push edx
push 0
push esi
push 0x406470
push 0
push 0
mov dword [esp + 0x2c], 0
call fcn.00458630
add esp, 0x18
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret