joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499585
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 0x49969d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49969d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004d05f4
mov esi, eax
test esi, esi
je 0x49969d
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 0x49969d
mov ecx, esi
call fcn.00499510
cmp edi, eax
jge 0x49969d
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 0x499623
mov dword [esp + 0x34], 1
jmp 0x49967e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49969d
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.00498a80
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 0x4a1ba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4a1c06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4a1c06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4a1be7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a1f90
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4a1fc8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4a2ca0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4a2ce9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4a3160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4de910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a2d10
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a2d90
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a2d90
lea ecx, [esi + 0xc]
call fcn.004ceb52
lea ecx, [esi + 0x10]
call fcn.004ceb52
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a4320
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a4320
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a4320
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004cebc7
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004cebc7
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a7350
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8a4958]
xor edx, edx
cmp eax, edx
jne 0x4a7376
xor eax, eax
mov byte [eax + 0x8a4858], al
inc eax
cmp eax, 0x100
jl 0x4a735e
mov dword [0x8a4958], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8a4858
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a7407
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 0x4a73da
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 0x4a73a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a7410
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 0x4a7463
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 0x4a744a
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 0x4ade20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ded0e
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.004ae740
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x8405fc
call fcn.004ce908
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4adeb3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ce908
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4adeac
push 0
mov ecx, eax
call fcn.004a4f90
mov dword [esi + 0xc], eax
jmp 0x4adeb5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4adeb5
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 0x4d0f98
Capabilities:
Get graphical window text

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

Function at 0x4d268a
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 0x4d26cc
call fcn.004d8448
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d26cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d26c3
xor eax, eax
jmp 0x4d26d4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d26da
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d8978
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 0x4d89a6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d89c4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d88de
jmp 0x4d89c4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d89c4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d88de
test edi, edi
mov eax, edi
jne 0x4d89ae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x10496
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push 0x24
push 0x10370
call fcn.00010a54
cmp dword [ebp + 8], 0
je 0x10517
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10517
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
jl 0x10517
nop
nop
nop
nop
mov edi, edi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
call sub.ntoskrnl.exe_KeStackAttachProcess
and dword [ebp - 4], 0
push esi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1050a
nop
nop
nop
nop
mov edi, edi
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 0x14]
push esi
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1052a
lea eax, [ebp - 0x34]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00010a8f
ret 0x10
lea eax, [ebp - 0x34]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
or dword [ebp - 4], 0xffffffff
mov al, bl
jmp 0x10519

Function at 0x1053c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push 0x24
push 0x10380
call fcn.00010a54
cmp dword [ebp + 8], 0
je 0x105c3
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x105c3
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
jl 0x105c3
nop
nop
nop
nop
mov edi, edi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
call sub.ntoskrnl.exe_KeStackAttachProcess
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x105b6
push 1
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
call fcn.00010464
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0001047c
mov bl, 1
jmp 0x105d6
lea eax, [ebp - 0x34]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00010a8f
ret 0x10
lea eax, [ebp - 0x34]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
or dword [ebp - 4], 0xffffffff
mov al, bl
jmp 0x105c5
Function at 0x108d0
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
mov esi, 0x10b08
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebx]
mov word [0x10b08], ax
mov ax, word [ebx]
add ax, 2
mov word [0x10b0a], ax
movzx eax, ax
push 0x68736563
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor edi, edi
cmp eax, edi
mov dword [0x10b0c], eax
jne 0x10923
mov eax, 0xc000009a
jmp 0x10a3a
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x1087a
lea eax, [ebp - 8]
push eax
mov dword [esi + 0x38], 0x105e8
mov dword [esi + 0x40], 0x10612
mov dword [esi + 0x70], 0x10704
mov dword [esi + 0x74], 0x1085a
mov dword [esi + 0x44], 0x106b6
mov dword [esi + 0x48], 0x106b6
mov dword [esi + 0x78], 0x1085a
mov dword [esi + 0x50], 0x1085a
mov dword [esi + 0x54], 0x1085a
mov dword [esi + 0x58], 0x1085a
mov dword [esi + 0x64], 0x1085a
mov dword [esi + 0x68], 0x1085a
mov dword [esi + 0x6c], 0x1085a
mov dword [esi + 0xa0], 0x1085a
mov dword [esi + 0x34], 0x10664
call ebx
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push 0x22
lea eax, [ebp - 8]
push eax
push 8
push esi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
cmp esi, edi
jge 0x109db
push edi
push dword [0x10b0c]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [0x10b0c], edi
jmp 0x10a38
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x28]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
or dword [eax + 0x1c], 0x10
push 0x108aa
lea eax, [ebp - 0x10]
push eax
call ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
push dword [ebp + 0xc]
mov esi, eax
test esi, esi
jge 0x10a32
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
push 0
push dword [0x10b0c]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and dword [0x10b0c], 0
jmp 0x10a38
call dword [sym.imp.ntoskrnl.exe_IoRegisterShutdownNotification]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406700
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.004b0810
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.PCStoreInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x406810
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4067dd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x550998
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x4067cb
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4067cb
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0
push eax
push 0x3e8
push 1
push 0
push 0
push 0x1400
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x4067fb
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x406808
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.00406250
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
Function at 0x40a180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], esi
push edi
test ebx, ebx
jne 0x40a19d
xor edi, edi
jmp 0x40a2f4
cmp dword [ebp + 0x14], 0
je 0x40a2cd
push 0x1440
call fcn.0041fce0
mov edi, eax
add esp, 4
test edi, edi
je 0x40a263
mov ecx, dword [ebp + 0x40]
xor edx, edx
mov dword [ebp - 0x28], edx
test ecx, ecx
je 0x40a1d7
mov eax, dword [ecx]
lea edx, [ebp - 0x4c]
push edx
call dword [eax]
mov edx, eax
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp + 8]
lea esi, [edi + 0x1418]
mov dword [edi], ecx
mov dword [edi + 0x1414], 1
mov dword [esi + 0x24], 0
test edx, edx
je 0x40a201
mov eax, dword [edx]
mov ecx, edx
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push 0x1000
lea esi, [edi + 4]
push 0
push esi
call fcn.004b0810
push 0x800
push ebx
push esi
call fcn.004e2cf6
push 0x410
lea esi, [edi + 0x1004]
push 0
push esi
call fcn.004b0810
mov eax, dword [ebp - 4]
add esp, 0x24
test eax, eax
je 0x40a249
push 0x208
push eax
push esi
call fcn.004e2cf6
add esp, 0xc
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40a265
mov edx, dword [ecx]
lea eax, [ebp - 0x4c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x40a265
xor edi, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], vtable.CSimpleThread.0
push eax
push 0
push edi
push 0x40a320
push 0
push 0
mov dword [ebp - 0xc], 0x40a320
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.004e3120
add esp, 0x18
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], vtable.CSimpleThread.0
test eax, eax
je 0x40a2c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x40a2f4
sub esp, 0x28
mov edi, esp
mov dword [edi + 0x24], 0
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x40a2e8
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.0040a5c0
mov edi, eax
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x40a30c
mov esi, dword [ecx]
lea eax, [ebp + 0x1c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x40a400
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00455d30
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0x10]
push 0x4000
push 0
push eax
call fcn.004b0810
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40a4f8
test edi, edi
je 0x40a4f8
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40a4f8
cmp eax, 0x3fff
ja 0x40a4f8
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40a4f8
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x550900
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40a4f8
mov esi, dword [ebp + 0x14]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.004b0810
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.0040b820
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00455d1a
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a580
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40a5a5
test byte [ebp - 4], 7
je 0x40a5a5
mov eax, 1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x40a5c0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x40a662
cmp word [esi], di
je 0x40a662
test eax, eax
je 0x40a61e
cmp word [eax], di
je 0x40a61e
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x40a662
jmp 0x40a65d
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b0810
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x40a662
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x40a693
mov dword [ebp - 0x424], edi
lea edx, [ebp - 0x424]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x40a693
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret 0x30
Function at 0x40b7c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b819
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b819
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40b80a
cmp esi, edx
jae 0x40b819
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40b7f8
cmp esi, edx
jae 0x40b819
cmp word [esi], 0
je 0x40b819
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret