joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443b80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47efb8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x443bb9
inc eax
mov dword [esi + 0x10], eax
jmp 0x443ccc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x443bcd
mov eax, 0xffffffc7
jmp 0x443cce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x443bde
cmp dword [esi + 8], eax
jne 0x443bcd
cmp dword [esi + 8], eax
jne 0x443bf7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x443bf7
mov eax, 0xffffffc7
jmp 0x443cce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x443c0b
push eax
mov ecx, ebx
call fcn.004433b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00414e70
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x443c3c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00414e90
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00442b20
test eax, eax
mov dword [esp + 0x38], eax
je 0x443c6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x487e60
call fcn.00415070
mov eax, dword [esp + 0x38]
jmp 0x443cce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004439e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x443cb3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00443a00
mov esi, eax
test esi, esi
jne 0x443ce3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004439e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x443c85
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x487e60
call fcn.00415070
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x487e60
call fcn.00415070
mov eax, esi
jmp 0x443cce

Function at 0x446e00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x446e60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x446e60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x446e60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x446e60
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x446ea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x44cff0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00478325
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044c990
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00478253
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00474b17
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00474b17
push 1
push 0
push 0
mov ecx, esi
call fcn.00474abf
push 1
push 0
push 1
mov ecx, esi
call fcn.00474abf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478397
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44d170
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00478325
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044c990
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00478253
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44d234
cmp dword [esp + 0x40], 1
jne 0x44d232
cmp ecx, eax
jge 0x44d234
mov eax, ecx
cmp eax, 0xc8
jge 0x44d240
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044cff0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478397
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44d9c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f673
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.00472f35
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.004785cd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00479ae9
test eax, eax
je 0x44dadc
mov ecx, dword [esp + 0x3c]
call fcn.004785fa
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 0x44daa0
push edi
mov ecx, esi
call fcn.00475c62
mov ecx, esi
call fcn.0044dc40
cmp dword [esp + 0x38], 1
jne 0x44dad5
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.00475d9d
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 0x450500
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x450533
push esi
call fcn.00453610
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45052c
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 0x4505b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4505a2
mov eax, dword [esi + 8]
test eax, eax
je 0x450557
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 0x45059e
cmp eax, 2
je 0x4505a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45054a
cmp eax, 3
je 0x45057d
cmp eax, 1
jne 0x45054a
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 0x45054a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45054a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004505e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4505c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004505e0
add esp, 4
pop esi
ret

Function at 0x45c630
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 0x45c6d3
test eax, eax
jbe 0x45c6d3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45c6d3
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 0x45c67e
xor esi, esi
jmp 0x45c684
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45c6af
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00415810
add esi, eax
push esi
mov ebx, esi
call fcn.00415810
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45c690
pop ebp
test edi, edi
pop edi
jne 0x45c6d3
test ebx, ebx
je 0x45c6d3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004626d0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45c815
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 0x45c92d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c92d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00473387
mov esi, eax
test esi, esi
je 0x45c92d
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 0x45c92d
mov ecx, esi
call fcn.0045c780
cmp edi, eax
jge 0x45c92d
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 0x45c8b3
mov dword [esp + 0x34], 1
jmp 0x45c90e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45c92d
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.0045bd30
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 0x473d2a
Capabilities:
Get graphical window text

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

Function at 0x47541f
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 0x475461
call fcn.0047aecf
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x475461
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x475458
xor eax, eax
jmp 0x475469
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047546f
pop edi
pop esi
pop ebx
ret 4
Function at 0x47b3ff
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 0x47b42d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47b44b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047b365
jmp 0x47b44b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47b44b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047b365
test edi, edi
mov eax, edi
jne 0x47b435
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x427a3e
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
push esi
pop ebx
mov dword [ebp - 8], esi
call fcn.0041f2cf
push edx
pop ecx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x427ac6
push 2
push esi
push esi
push edi
call fcn.0041f2cf
push eax
pop ecx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x427ac6
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x427b5d
jg 0x427aa0
or esi, esi
je 0x427b5d
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
or eax, eax
jne 0x427ad2
call fcn.00416b81
mov dword [eax], 0xc
call fcn.00416b81
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.00427c1c
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
or eax, eax
jl 0x427afa
jg 0x427af3
cmp esi, 0x1000
jb 0x427afa
mov eax, 0x1000
jmp 0x427afc
push esi
pop eax
push eax
push dword [ebp - 0xc]
push edi
call fcn.0041c714
add esp, 0xc
cmp eax, 0xffffffff
je 0x427b23
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x427b3e
jg 0x427ae5
test esi, esi
je 0x427b3e
jmp 0x427ae5
call fcn.00416b4d
cmp dword [eax], 5
jne 0x427b38
call fcn.00416b81
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.00427c1c
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x427bc3
test eax, eax
jg 0x427bcf
jl 0x427b67
or esi, esi
jae 0x427bcf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0041f2cf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x427ac6
push edi
call fcn.00424a9e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
push eax
pop ebx
push edx
pop eax
mov ecx, ebx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x427bcf
call fcn.00416b81
mov dword [eax], 0xd
call fcn.00416b4d
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x427ac6
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.0041f2cf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x427ac6
xor eax, eax
jmp 0x427acd

Function at 0x43b651
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop edi
sub edx, 0x3d5d7385
inc ecx
call fcn.0043b699
push 0x167b466b
pop edx
sub edx, ecx
dec edx
xor dword [eax], edi
add edx, 1
dec edx
inc eax
and edx, edx
add ecx, edx
add edx, 0xc18ba23b
cmp eax, ebx
jne fcn.0043b651
dec ecx
ret
Function at 0x401020
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x427250]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xc], 1
push 0x24
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.0040d600
add esp, 0xc
push 0x9c
push 0
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0040d600
add esp, 0xc
mov dword [ebp - 0xd8], 0x9c
lea edx, [ebp - 0xd8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401090
mov eax, 1
jmp 0x401185
push 0x4222d0
push 0x4222e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010b9
lea eax, [ebp - 0x30]
push eax
call dword [ebp - 8]
jmp 0x4010c3
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xc8], 2
jne 0x40117b
cmp dword [ebp - 0xd4], 4
jbe 0x40117b
cmp dword [ebp - 0xd4], 6
jne 0x401124
cmp dword [ebp - 0xd0], 0
jne 0x401105
movzx edx, byte [ebp - 0x3e]
cmp edx, 1
jne 0x401105
cmp dword [ebp + 8], 0
je 0x401105
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xd0], 1
jne 0x401124
movzx eax, byte [ebp - 0x3e]
cmp eax, 1
jne 0x401124
cmp dword [ebp + 8], 0
je 0x401124
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xd4], 5
jne 0x40113e
cmp dword [ebp - 0xd0], 2
jne 0x40113e
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [ebp - 0xd4], 5
jne 0x401160
cmp dword [ebp - 0xd0], 1
jne 0x401160
movzx eax, word [ebp - 0x44]
cmp eax, 1
jg 0x401160
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xd4], 5
jne 0x401179
cmp dword [ebp - 0xd0], 0
jne 0x401179
mov dword [ebp - 0xc], 0
jmp 0x401182
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0040d67a
mov esp, ebp
pop ebp
ret 4
Function at 0x401c50
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xca0
mov eax, dword [0x427250]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xca0], ecx
mov eax, dword [ebp - 0xca0]
mov dword [eax], vtable.URL.0
lea ecx, [ebp - 0xc99]
call fcn.0040a810
push eax
mov ecx, dword [ebp - 0xca0]
add ecx, 0xc
call fcn.00402fb0
lea ecx, [ebp - 0xc99]
call fcn.004030e0
lea ecx, [ebp - 0xc9a]
call fcn.0040a810
push eax
mov ecx, dword [ebp - 0xca0]
add ecx, 0x24
call fcn.00402fb0
lea ecx, [ebp - 0xc9a]
call fcn.004030e0
lea ecx, [ebp - 0xc9b]
call fcn.0040a810
push eax
mov ecx, dword [ebp - 0xca0]
add ecx, 0x3c
call fcn.00402fb0
lea ecx, [ebp - 0xc9b]
call fcn.004030e0
lea ecx, [ebp - 0xc9c]
call fcn.0040a810
push eax
mov ecx, dword [ebp - 0xca0]
add ecx, 0x54
call fcn.00402fb0
lea ecx, [ebp - 0xc9c]
call fcn.004030e0
mov dword [ebp - 0x114], 0x824
push 0x2000000
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0xb50]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403d90
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x401d3e
jmp 0x401e96
mov eax, dword [ebp - 0x114]
mov byte [ebp + eax - 0xb50], 0
push 0x3c
push 0
lea ecx, [ebp - 0xb8c]
push ecx
call fcn.0040d600
add esp, 0xc
mov dword [ebp - 0xb8c], 0x3c
mov dword [ebp - 0xb78], 0x100
lea edx, [ebp - 0x220]
mov dword [ebp - 0xb7c], edx
mov dword [ebp - 0xb5c], 0x800
lea eax, [ebp - 0x110]
mov dword [ebp - 0xb60], eax
mov dword [ebp - 0xb6c], 0x80
lea ecx, [ebp - 0xc98]
mov dword [ebp - 0xb70], ecx
mov dword [ebp - 0xb64], 0x80
lea edx, [ebp - 0x328]
mov dword [ebp - 0xb68], edx
lea eax, [ebp - 0xb8c]
push eax
push 0
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0xb50]
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x401de7
jmp 0x401e96
mov eax, dword [ebp - 0xb7c]
add eax, dword [ebp - 0xb78]
mov byte [eax], 0
mov ecx, dword [ebp - 0xb60]
add ecx, dword [ebp - 0xb5c]
mov byte [ecx], 0
mov edx, dword [ebp - 0xb70]
add edx, dword [ebp - 0xb6c]
mov byte [edx], 0
mov eax, dword [ebp - 0xb68]
add eax, dword [ebp - 0xb64]
mov byte [eax], 0
mov ecx, dword [ebp - 0xb7c]
push ecx
mov ecx, dword [ebp - 0xca0]
add ecx, 0xc
call fcn.00403000
mov edx, dword [ebp - 0xb60]
push edx
mov ecx, dword [ebp - 0xca0]
add ecx, 0x24
call fcn.00403000
mov eax, dword [ebp - 0xb70]
push eax
mov ecx, dword [ebp - 0xca0]
add ecx, 0x3c
call fcn.00403000
mov ecx, dword [ebp - 0xb68]
push ecx
mov ecx, dword [ebp - 0xca0]
add ecx, 0x54
call fcn.00403000
movzx edx, word [ebp - 0xb74]
mov eax, dword [ebp - 0xca0]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xca0]
mov edx, dword [ebp - 0xb80]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0xca0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d67a
mov esp, ebp
pop ebp
ret 4
Function at 0x4026a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x427250]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x114]
call fcn.00402d30
test eax, eax
je 0x40272c
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.0040d600
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.SilverLight.exe
lea edx, [ebp - 0x110]
push edx
call fcn.0040dbb0
add esp, 8
push 0x422858
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
call fcn.00402740
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d67a
mov esp, ebp
pop ebp
ret

Function at 0x402740
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x44], 0
push 0x38
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.0040d600
add esp, 0xc
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x38], str.open
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4027d5
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0
jne 0x4027cb
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8