joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2280
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d3a93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004c72eb
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004cc983
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004cde9f
test eax, eax
je 0x4a239c
mov ecx, dword [esp + 0x3c]
call fcn.004cc9b0
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4a2360
push edi
mov ecx, esi
call fcn.004ca01d
mov ecx, esi
call fcn.004a2500
cmp dword [esp + 0x38], 1
jne 0x4a2395
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004ca158
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4a4dc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4a4df3
push esi
call fcn.004a7ed0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4a4dec
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 0x4a4e79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a4e62
mov eax, dword [esi + 8]
test eax, eax
je 0x4a4e17
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 0x4a4e5e
cmp eax, 2
je 0x4a4e62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a4e0a
cmp eax, 3
je 0x4a4e3d
cmp eax, 1
jne 0x4a4e0a
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 0x4a4e0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a4e0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004a4ea0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4a4e88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004a4ea0
add esp, 4
pop esi
ret

Function at 0x4c80e0
Capabilities:
Get graphical window text

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

Function at 0x4c97d5
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 0x4c9817
call fcn.004cf28a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c9817
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c980e
xor eax, eax
jmp 0x4c981f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c9825
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cf7ba
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 0x4cf7e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cf806
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cf720
jmp 0x4cf806
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cf806
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cf720
test edi, edi
mov eax, edi
jne 0x4cf7f0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404a40
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430f00
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x404bef
or ebp, 0xffffffff
cmp eax, ebp
je 0x404bef
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x404bef
mov edi, edx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x404bef
push edx
lea ecx, [esi + 0x38]
call fcn.00429b85
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x404aac
mov eax, 0x440fc0
push eax
lea ecx, [esi + 0x3c]
call fcn.00429b85
mov eax, dword [esp + 0x40]
mov dword [esi + 0x2c], eax
mov eax, dword [0x43f88c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x2c]
lea ecx, [esi + 0x48]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
mov byte [esp + 0x38], 1
mov dword [esp + 0x28], ebx
call fcn.00406e90
add esp, 0x14
test eax, eax
push edi
jne 0x404b0f
push str.Download_URL___s__invalid
push 3
call fcn.00410ad0
add esp, 0xc
jmp 0x404bd5
lea ecx, [esi + 0x44]
call fcn.00429b85
push 1
mov ecx, esi
call fcn.00404c10
cmp eax, ebx
mov dword [esi + 0x50], eax
jne 0x404b62
push str.Create_download_object_failed
push 3
call fcn.00410ad0
add esp, 8
mov ecx, esi
push 1
call fcn.00405790
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x24], bl
call fcn.004299fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call fcn.004299fc
mov eax, esi
jmp 0x404bf1
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
push ecx
mov ecx, eax
call fcn.004066b0
mov edx, dword [esi + 0x50]
push edi
mov dword [edx + 0xc], esi
mov ecx, dword [esi + 0x50]
call fcn.00406950
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push ebx
push esi
push 0x4049d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x404bc6
cmp eax, ebp
je 0x404bc6
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.004299fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call fcn.004299fc
mov eax, 1
jmp 0x404bf1
push str.Create_download_thread_failed
push 2
call fcn.00410ad0
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.004299fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call fcn.004299fc
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x18
Function at 0x404ff0
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430f76
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push 0
push 2
push 0xffffffffffffffff
mov dword [esi + 0x34], eax
call fcn.00407480
mov ecx, dword [esi + 0x50]
add esp, 0x10
call fcn.00406ce0
test eax, eax
je 0x4051db
mov ecx, esi
call fcn.00405e60
mov eax, dword [esi + 0x2c]
test eax, eax
mov eax, dword [esi + 0x40]
je 0x4050d1
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00405200
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0xc]
call fcn.004299fc
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40514a
mov edx, dword [esi + 0x50]
mov eax, dword [edx + 0x58]
test eax, eax
je 0x40514a
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00405200
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x13c], 0
call fcn.0042a1b3
test eax, eax
je 0x405125
mov edx, dword [esi + 0x50]
mov ecx, esi
mov edi, dword [edx + 0x60]
call fcn.00405d90
mov edx, dword [esp + 0x20]
add eax, edi
cmp edx, eax
sete al
test al, al
je 0x405125
mov bl, 1
jmp 0x405127
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0042a1b3
test eax, eax
je 0x405070
mov ecx, dword [esi + 0x50]
mov edx, dword [esp + 0x18]
mov edi, edx
mov eax, dword [ecx + 0xd4]
sub edi, eax
cmp edi, 2
jg 0x405070
sub eax, edx
cmp eax, 2
jg 0x405070
mov ecx, dword [ecx + 0x60]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x405070
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40514a
mov eax, 2
jmp 0x4051db
xor bl, bl
lea ecx, [esp + 0xc]
mov dword [esp + 0x134], 0xffffffff
call fcn.004299fc
test bl, bl
je 0x40514a
mov ecx, esi
call fcn.00405450
test eax, eax
jne 0x4051af
mov eax, dword [esi + 0x50]
mov ecx, esi
mov ebx, dword [eax + 0x60]
call fcn.00405d90
mov edi, eax
add edi, ebx
test ebx, ebx
jl 0x405169
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + 0x58]
test eax, eax
jne 0x40516b
xor edi, edi
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00405200
mov eax, dword [eax]
push edi
push eax
mov dword [esp + 0x13c], 1
call fcn.00411660
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
mov dword [esp + 0x134], 0xffffffff
call fcn.004299fc
test bl, bl
je 0x4051af
xor eax, eax
jmp 0x4051db
mov ecx, esi
call fcn.00405290
test eax, eax
jne 0x4051cd
push str.Assign_task_failed
push 2
call fcn.00410ad0
add esp, 8
xor eax, eax
jmp 0x4051db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x405200
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x430f9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x43f88c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [ecx + 0x40]
lea edx, [esp + 4]
push ecx
push str._s.xhw
push edx
mov dword [esp + 0x20], 1
call fcn.00424f28
mov eax, dword [esp + 0x10]
add esp, 0xc
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00429771
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004299fc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x405790
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x43f88c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0042a51e
mov eax, dword [ebp + 8]
mov ebx, 1
test eax, eax
mov byte [ebp - 4], bl
je 0x4057e9
mov ecx, esi
call fcn.004055f0
jmp 0x40596a
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00405200
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00429b35
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004299fc
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x4058b2
mov ecx, dword [eax + 0x60]
test ecx, ecx
jle 0x4058b2
lea ecx, [ebp - 0x34]
call fcn.0042a4c2
mov edx, dword [ebp - 0x14]
push 0
push 0xb042
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0042a630
mov eax, dword [esi + 0x50]
lea ecx, [ebp - 0x2c]
mov eax, dword [eax + 0x60]
push eax
call fcn.0042a8fe
mov edi, ebx
jmp 0x40587a
mov dword [ebp - 4], ebx
call fcn.0042a500
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x405896
cmp eax, 0xffffffff
je 0x405896
lea ecx, [ebp - 0x2c]
call fcn.0042a84b
test edi, edi
jne 0x4058b2
mov ecx, dword [ebp - 0x14]
push ecx
push str.Set___s__length_failed
push 2
call fcn.00410ad0
add esp, 0xc
jmp 0x405967
mov edx, dword [ebp - 0x14]
push 4
push edx
call fcn.00414cc1
add esp, 8
test eax, eax
jne 0x40596a
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x34]
call fcn.0042a4c2
mov eax, dword [esi + 0x40]
push 8
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 4], ebx
call fcn.0042a500
mov eax, dword [esi + 0x40]
lea ecx, [ebp - 0x14c]
push ecx
push eax
xor edi, edi
call fcn.0042a1b3
test eax, eax
je 0x405932
mov edx, dword [esi + 0x50]
lea ecx, [ebp - 0x14c]
push ecx
mov eax, dword [edx + 0xd4]
mov byte [ebp - 0x13c], 0
mov dword [ebp - 0x148], eax
mov eax, dword [esi + 0x40]
push eax
call fcn.0042a318
mov edi, ebx
jmp 0x40596a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x1c]
push eax
push edx
call fcn.00410fb0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
push str.Set_file___s__status_failed.__s
push 2
mov byte [ebp - 4], 0xa
call fcn.00410ad0
add esp, 0x18
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004299fc
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 8]
push esi
push edx
push 3
push 0xffffffffffffffff
call fcn.00407480
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov byte [esi + 4], bl
mov byte [ebp - 4], 0
call fcn.0042a573
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004299fc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4074d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43136f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x43f88c]
push ebx
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov ebx, 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 8], eax
mov ecx, dword [ecx + 0xf4]
lea eax, [esp + 8]
push eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
mov byte [esp + 0x30], 3
call fcn.004112c0
add esp, 0x10
test eax, eax
jne 0x407549
mov esi, dword [esp + 0x28]
push 0x440fc0
mov ecx, esi
call fcn.00429a6a
mov dword [esp + 0x14], ebx
jmp 0x407596
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40755b
lea edx, [esp + 8]
push edx
call fcn.00429b35
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x407582
push 0x43e71c
lea ecx, [esp + 0x10]
call fcn.00429dd8
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00429e14
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00429771
mov dword [esp + 0x14], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.004299fc
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call fcn.004299fc
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.004299fc
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x407d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407d95
xor al, al
ret 0x18
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407dca
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
ret 0x18
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
ret 0x18

Function at 0x407e20
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4314cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x43f88c]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x70]
lea ecx, [esp + 0x24]
push ecx
push ebp
mov dword [esp + 0x6c], 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
push edi
call fcn.0041509a
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407ef9
lea edx, [esp + 0x70]
lea eax, [esp + 0x18]
push edx
push eax
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x80], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407ef9
test dword [esp + 0x70], 0xfffffffc
jbe 0x407ef9
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov cx, word [eax + 2]
xor edx, edx
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407ef9
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00429b85
cmp esi, ebx
je 0x407f06
push esi
call fcn.00415052
add esp, 4
mov esi, dword [esp + 0x6c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00429771
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], bl
call fcn.004299fc
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8
Function at 0x407f50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4314eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
mov esi, 0xfffffffe
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0x10], 0x100
push eax
push 0x20019
push 0
push str.SoftwareApple_Inc.Apple_Mobile_Device_Support
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407fb6
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40802c
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40801f
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
call fcn.00429a6a
mov ecx, dword [esp + 0x128]
lea edx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x128], 0
call fcn.0040be40
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x120], 0xffffffff
call fcn.004299fc
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 4

Function at 0x408050
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43150b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
mov esi, 0xfffffffe
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0x100
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsiTunes.exe
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4080bc
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x408141
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408134
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408134
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.00407e20
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x12c], 0
call fcn.0040be40
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x124], 0xffffffff
call fcn.004299fc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x409480
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
mov esi, dword [esp + 0x9c]
mov ecx, esi
call fcn.00429987
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4094c6
cmp dword [esp + 0x14], 2
jne 0x4094c6
cmp dword [esp + 8], 6
jb 0x4094c6
push str.VistaAndLater
mov ecx, esi
call fcn.00429b85
pop esi
add esp, 0x94
ret 4

Function at 0x4094d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov edx, dword [esp + 0x44]
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 4]
mov dword [esp + 4], 0x3c
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.Open
mov dword [esp + 0x20], 0x43e3c4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
add esp, 0x3c
ret 0xc

Function at 0x409540
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4318c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
push ebp
push esi
push edi
lea ecx, [esp + 0x36c]
mov dword [esp + 0x364], 0
call fcn.00429f10
push 0
push 2
mov dword [esp + 0x18], 0x128
mov dword [esp + 0x140], 0x224
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
mov ecx, dword [0x43f88c]
test eax, eax
setne al
xor edi, edi
mov dword [esp + 0xc], ecx
test al, al
mov byte [esp + 0x364], 1
je 0x409687
mov edx, dword [esp + 0x18]
push edx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x138]
push eax
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
setne al
test al, al
je 0x40962e
lea ecx, [esp + 0x258]
push ecx
lea ecx, [esp + 0x10]
call fcn.00429b85
lea ecx, [esp + 0xc]
call fcn.00429f10
mov edx, dword [esp + 0x36c]
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.00414fa3
add esp, 8
test eax, eax
je 0x40965b
lea ecx, [esp + 0x138]
push ecx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
setne al
test al, al
jne 0x4095e4
test edi, edi
je 0x409641
mov eax, dword [esp + 0x370]
test eax, eax
jne 0x409662
test edi, edi
jne 0x409687
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
setne al
test al, al
jne 0x4095bf
jmp 0x409687
mov edi, 1
jmp 0x409632
mov eax, dword [esp + 0x18]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409687
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov byte [esp + 0x364], 0
call fcn.004299fc
lea ecx, [esp + 0x36c]
mov dword [esp + 0x364], 0xffffffff
call fcn.004299fc
mov ecx, dword [esp + 0x35c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x35c
ret 8