joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476cf0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
push str.rootwmi
mov ebx, ecx
call esi
push str.MSSmBios_RawSMBiosTables
mov ebp, eax
call esi
mov edi, eax
push 0x4bb284
mov dword [esp + 0x2c], edi
call esi
xor esi, esi
push 2
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x476e9a
push esi
push 2
push esi
push 3
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x476d65
cmp eax, 0x80010119
jne 0x476e41
lea eax, [esp + 0x10]
push eax
push 0x4bf86c
push 1
push esi
push 0x4bf92c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x476e41
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push ebp
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x476e41
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push esi
push esi
push edi
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
jl 0x476e41
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x20]
push edx
push 1
push 0xfa0
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x24], 1
jne 0x476e41
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push esi
push ecx
push eax
call edx
cmp word [esp + 0x30], 0x2011
jne 0x476e41
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 0x10]
cmp edi, esi
je 0x476e41
cmp edi, 0x4000
jg 0x476e41
mov eax, dword [eax + 0xc]
mov ecx, dword [ebx + 0xc]
push edi
push eax
push ecx
call fcn.0048a0d0
mov edx, dword [ebx + 0x10]
add esp, 0xc
mov word [edx + 6], di
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x476e55
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x476e69
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x476e7d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
push ebp
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret
Function at 0x47f001
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x47f03a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047efc4
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047dea7
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x480b5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x480b9e
call fcn.0047b924
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x480b9e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x480bb9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00480712
test ebx, ebx
mov esi, eax
je 0x480bb7
test edi, edi
je 0x480bb7
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x48185c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4a5442
call fcn.0048aafe
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0047b924
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4818a7
call fcn.0047b924
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4818b8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4818c5
or eax, 0xffffffff
jmp 0x481a21
mov ecx, esi
call fcn.004813ae
mov dword [ebp - 0x14], eax
call fcn.0047e056
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x481943
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x481943
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x481943
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00404d20
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x481943
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x481943
mov ecx, ebx
call fcn.0047a929
test eax, eax
je 0x481943
push 0
mov ecx, ebx
call fcn.0047a944
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0047fa3e
push dword [ebp - 0x14]
call fcn.0047dfae
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00481664
xor edi, edi
cmp eax, edi
je 0x4819a0
test byte [esi + 0x3c], 0x10
je 0x48198a
push 4
pop edi
mov ecx, esi
call fcn.0047a810
test ax, 0x100
je 0x481980
push 5
pop edi
push edi
mov ecx, esi
call fcn.0047db51
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4819a0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0047a9ab
or dword [ebp - 4], 0xffffffff
jmp 0x4819cb
cmp dword [ebp - 0x28], edi
je 0x4819d9
push 1
mov ecx, ebx
call fcn.0047a944
cmp dword [ebp - 0x2c], edi
je 0x4819e9
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x481a02
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x481a02
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004813e8
cmp dword [esi + 0x58], edi
je 0x481a1e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0048ab6a
ret
Function at 0x483714
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4da22c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x483754
push 0x4bd6d0
push 4
push eax
call fcn.00488d0e
push eax
call fcn.004137f0
add esp, 0x10
jmp 0x483766
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4837d4
push edi
call fcn.0048ac6a
mov edi, dword [eax]
call fcn.0048ac6a
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004890a1
add esp, 0x18
mov ebx, eax
call fcn.0048ac6a
cmp dword [eax], 0
je 0x4837b4
call fcn.0048ac6a
push dword [eax]
call fcn.00479a93
pop ecx
jmp 0x4837bb
call fcn.0048ac6a
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4837d4
cmp ebx, esi
jae 0x4837d4
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4837d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00488320
leave
ret
Function at 0x4851fe
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 0x48522c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48524a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00485168
jmp 0x48524a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48524a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00485168
test edi, edi
mov eax, edi
jne 0x485234
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4dde08]
test ecx, ecx
je 0x48530d
jmp 0x4851fd
ret 8

Function at 0x488320
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4da22c]
jne 0x48832a
repz ret
jmp fcn.0048cd73

Function at 0x494035
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4dae80]
je 0x494050
inc edi
cmp edi, 0x17
jb 0x494041
cmp edi, 0x17
jae 0x4941d0
push ebp
push 3
call fcn.00499ae3
cmp eax, 1
pop ecx
je 0x49419c
push 3
call fcn.00499ae3
test eax, eax
pop ecx
jne 0x494084
cmp dword [0x4da260], 1
je 0x49419c
cmp ebx, 0xfc
je 0x4941cf
push 0x4be5c4
mov ebx, 0x314
push ebx
mov ebp, 0x4de5b8
push ebp
call fcn.00488d0e
add esp, 0xc
test eax, eax
je 0x4940ba
push esi
push esi
push esi
push esi
push esi
call fcn.0048d9bf
add esp, 0x14
push 0x104
mov esi, 0x4de5d1
push esi
push 0
mov byte [0x4de6d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4940fe
push 0x4be5ac
push 0x2fb
push esi
call fcn.00488d0e
add esp, 0xc
test eax, eax
je 0x4940fe
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048d9bf
add esp, 0x14
push esi
call fcn.0048aa40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x494143
push esi
call fcn.0048aa40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4de8cc
push 0x4be5a8
sub ecx, eax
push ecx
push eax
call fcn.0048a95b
add esp, 0x14
test eax, eax
je 0x494143
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048d9bf
add esp, 0x14
jmp 0x494145
xor esi, esi
push 0x4a78c4
push ebx
push ebp
call fcn.0048a7d4
add esp, 0xc
test eax, eax
je 0x494165
push esi
push esi
push esi
push esi
push esi
call fcn.0048d9bf
add esp, 0x14
push dword [edi*8 + 0x4dae84]
push ebx
push ebp
call fcn.0048a7d4
add esp, 0xc
test eax, eax
je 0x494187
push esi
push esi
push esi
push esi
push esi
call fcn.0048d9bf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C
push ebp
call fcn.00499926
add esp, 0xc
jmp 0x4941cf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4941cf
cmp ebp, 0xffffffff
je 0x4941cf
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4dae84]
push dword [esi]
call fcn.0048aa40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x499926
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048f6b9
xor ebx, ebx
cmp dword [0x4deb1c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4999fc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x499adc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4bf78c
push edi
call esi
cmp eax, ebx
je 0x499adc
push eax
call fcn.0048f64b
mov dword [esp], 0x4bf77c
push edi
mov dword [0x4deb1c], eax
call esi
push eax
call fcn.0048f64b
mov dword [esp], 0x4bf768
push edi
mov dword [0x4deb20], eax
call esi
push eax
call fcn.0048f64b
mov dword [0x4deb24], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048c62f
test eax, eax
pop ecx
pop ecx
je 0x4999ca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048d9bf
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4999fc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048f64b
cmp eax, ebx
pop ecx
mov dword [0x4deb2c], eax
je 0x4999fc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048f64b
pop ecx
mov dword [0x4deb28], eax
mov eax, dword [0x4deb28]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x499a81
cmp dword [0x4deb2c], ecx
je 0x499a81
push eax
call fcn.0048f6c2
push dword [0x4deb2c]
mov esi, eax
call fcn.0048f6c2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x499a81
cmp edi, ebx
je 0x499a81
call esi
cmp eax, ebx
je 0x499a4e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x499a4e
test byte [ebp - 0x18], 1
jne 0x499a81
lea eax, [ebp - 0x10]
push eax
call fcn.0048c666
test eax, eax
pop ecx
je 0x499a69
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048d9bf
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x499a78
or dword [ebp + 0x10], 0x200000
jmp 0x499abc
or dword [ebp + 0x10], 0x40000
jmp 0x499abc
mov eax, dword [0x4deb20]
cmp eax, dword [ebp - 8]
je 0x499abc
push eax
call fcn.0048f6c2
cmp eax, ebx
pop ecx
je 0x499abc
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x499abc
mov eax, dword [0x4deb24]
cmp eax, dword [ebp - 8]
je 0x499abc
push eax
call fcn.0048f6c2
cmp eax, ebx
pop ecx
je 0x499abc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4deb1c]
call fcn.0048f6c2
cmp eax, ebx
pop ecx
je 0x499adc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x499ade
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49c592
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4da22c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049c527
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004890c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x49c5e1
cmp dword [ebp - 0x1c], 5
jb 0x49c5f9
jmp 0x49c5f5
cmp dword [ebp - 0x10], 1
jne 0x49c5f9
cmp dword [ebp - 0x1c], 4
ja 0x49c5f5
jne 0x49c5f9
cmp dword [ebp - 0x18], 0
jbe 0x49c5f9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4bf7fc
call fcn.0049c418
test eax, eax
jge 0x49c61a
mov byte [0x4dc270], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00488320
add ebp, 0x78
leave
ret

Function at 0x49cc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a5a23
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4da22c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
push 0x1000
call fcn.004479e0
or edi, 0xffffffff
xor ebx, ebx
push 0x400
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.CSoftwareInterface.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call fcn.00479967
mov dword [esi + 0x1c], eax
push 0x200
mov byte [eax], bl
call fcn.00479967
mov dword [esi + 0x20], eax
push 0x400
mov byte [eax], bl
call fcn.00479967
mov dword [esi + 0x30], eax
push 0x200
mov byte [eax], bl
call fcn.00479967
mov dword [esi + 0x34], eax
push 0x210
mov byte [eax], bl
call fcn.00479967
add esp, 0x14
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x20], 1
je 0x49ccc3
mov ecx, eax
call fcn.00434110
jmp 0x49ccc5
xor eax, eax
push 0xc
mov byte [esp + 0x24], bl
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov byte [esi + 0x40], bl
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x84], ebx
call fcn.00479967
add esp, 4
cmp eax, ebx
je 0x49cd0e
mov ecx, eax
call fcn.0049cbf0
mov dword [esi + 0x80], eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x49cd60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a5a48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4da22c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CSoftwareInterface.0
mov eax, dword [esi + 0x30]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x49cda8
push eax
call fcn.00479992
add esp, 4
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x49cdbb
push eax
call fcn.00479992
add esp, 4
mov dword [esi + 0x34], edi
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x49cdcb
push eax
call fcn.00479992
add esp, 4
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x49cdde
push eax
call fcn.00479992
add esp, 4
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x49cdf1
push eax
call fcn.00479992
add esp, 4
mov dword [esi + 0x1c], edi
mov ecx, dword [esi + 0x80]
cmp ecx, edi
je 0x49ce18
call fcn.00477540
mov ecx, dword [esi + 0x80]
cmp ecx, edi
je 0x49ce12
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x80], edi
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00447a00
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x49d170
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x49d229
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x49d229
push esi
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x18], eax
jbe 0x49d21d
push eax
call fcn.00479967
mov esi, eax
add esp, 4
test esi, esi
jne 0x49d1bc
pop esi
pop edi
mov eax, 0x8007000e
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x18]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x49d214
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4b311c
push esi
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x49d214
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49d214
mov ecx, dword [eax + 8]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx], edx
call fcn.00479992
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.00479992
add esp, 4
pop esi
pop edi
mov eax, 0x80004005
pop ebx
add esp, 8
ret
pop edi
mov eax, 0x80070057
pop ebx
add esp, 8
ret
Function at 0x49e8d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfile
push reloc.OLEAUT32.dll_SysReAllocString
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x49e8fe
or eax, esi
pop esi
add esp, 0x10
ret
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.EnableFirewall
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49e936
cmp dword [esp + 0xc], 4
jne 0x49e936
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 4]
test eax, eax
je 0x49e945
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x49e9f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.HTTP_shellopencommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x49ea1c
xor eax, eax
pop edi
add esp, 0xc
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0x4a7305
push eax
call esi
test eax, eax
jne 0x49ea6a
cmp dword [esp + 0xc], 1
jne 0x49ea6a
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x4a7305
push ecx
call esi
mov edi, 1
mov eax, dword [esp + 8]
test eax, eax
pop esi
je 0x49ea7a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0xc
ret
Function at 0x401f65
Capabilities:
Encrypt data using tea

Disassembly:
sub esp, 0x30
and dword [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x38], eax
call fcn.00401e0b
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
add ebx, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
pop esi
mov dword [esp + 0x24], 2
add dword [esp + 0x24], 3
mov edx, dword [esp + 0x20]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x28], 0xedeb2e40
cmp dword [0x28d1644], 0xfa9
mov dword [esp + 0x10], eax
mov eax, dword [0x28d1688]
cmove eax, dword [esp + 0x28]
and dword [esp + 0x28], 0
cmp dword [0x28d1644], 0x3eb
mov dword [0x28d1688], eax
mov eax, dword [0x28d1690]
cmove eax, dword [esp + 0x28]
mov dword [0x28d1690], eax
lea eax, [ebx + edx]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x2c]
xor eax, dword [esp + 0x28]
xor eax, dword [esp + 0x10]
sub ebp, eax
mov dword [esp + 0x14], eax
mov eax, ebp
mov dword [0x28d168c], 0xf4ea3dee
shl eax, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
and dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x24]
mov eax, ebp
shr eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x28]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x20], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x18]
call fcn.00401f5c
dec esi
je 0x4020b5
mov ebx, dword [esp + 0x18]
jmp 0x401fb3
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [edi + 4], ebp
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret