joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410c9f
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 0x410ce1
call fcn.00413a0e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x410ce1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x410cd8
xor eax, eax
jmp 0x410ce9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00410cef
pop edi
pop esi
pop ebx
ret 4

Function at 0x4141b5
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 0x4141e3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414201
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041411b
jmp 0x414201
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414201
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041411b
test edi, edi
mov eax, edi
jne 0x4141eb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40481d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40482c
pop dword [ebp - 0x38]
mov eax, 0xb407c068
sub eax, 0xb3c7783c
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x2e5dd606
add dword [ebp - 0x48], 0x1ff46f45
mov dword [ebp - 0x44], 0xd09af2bd
add dword [ebp - 0x44], 0x61985988
mov dword [ebp - 0x40], 0xbb238127
add dword [ebp - 0x40], 0x9128c307
mov dword [ebp - 0x3c], 0xb6dcb6bd
add dword [ebp - 0x3c], 0x49234943
lea eax, [ebp - 0x48]
push eax
mov eax, 0xb5a9d414
add eax, 0x4a985c60
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x9ba9bf51
sub dword [ebp - 0x48], 0x273755fb
mov dword [ebp - 0x44], 0xd76b9efa
sub dword [ebp - 0x44], 0x95ff3d85
mov dword [ebp - 0x40], 0xeb11d62f
sub dword [ebp - 0x40], 0x87a269c3
mov dword [ebp - 0x3c], 0xbe16def7
sub dword [ebp - 0x3c], 0xbe16def7
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3fd89
push 0
call eax
mov ecx, 0x334e8826
sub ecx, 0x334e37ac
mov edx, eax
mov esi, 0x75d819a0
sub esi, 0x7594d5a0
add esi, dword [ebp - 0x38]
mov ebx, 0xa92973b3
sub ebx, 0x791d92ae
xor dword [ebp - 0x14], ecx
mov edi, dword [esi]
sub dword [ebp - 0xc], 0x15d008cf
add edi, ebx
mov dword [edx], edi
mov dword [ebp - 0x14], 0xaa156e95
add edx, 0x73c8f6ee
add edx, 0x8c370916
add esi, 0x36390511
add esi, 0xc9c6faf3
loop 0x404949
add eax, 0x134bb
xor ebx, ebx
add ebx, eax
add eax, 0xd18176c
sub eax, 0xd181767
mov ecx, 0x73b34b61
sub ecx, 0x73734b61
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x7b8a47
Capabilities:
Parse pe header

Disassembly:
lea esp, [esp + 3]
mov dword [esp + 0x38], esp
call fcn.007b88a5
das
mov edi, 0x72b94a2f
pop es
nop
push es
popal
nop
cmp dword [ebx + reloc.oleaut32.dll_SysFreeString], ebx
mov dword [reloc.oleaut32.dll_SysFreeString], eax
cmpsb byte [esi], byte es:[edi]
movq mm6, qword [esi + 0x61]
push word [esp + 7]
lea esp, [esp + 1]
mov word [esp], di
mov word [esp + 3], dx
mov byte [esp + 0xf], ch
pop word [esp + 6]
jmp 0x7b88d4
mov dword [esp + 1], ebp
push edx
jmp 0x7b89c3

Function at 0x8b2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008b21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8b207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b206a
add dl, dl
jne 0x8b2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b20dc
xor eax, eax
add dl, dl
jne 0x8b2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8b217d
add dl, dl
jne 0x8b20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8b20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8b2075
mov eax, 1
add dl, dl
jne 0x8b20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8b20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b20e1
sub eax, ebx
mov ebx, 1
jne 0x8b2128
mov ecx, 1
add dl, dl
jne 0x8b210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8b213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8b214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8b2136
cmp eax, 0x7d00
jae 0x8b216d
cmp eax, 0x500
jb 0x8b2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b2075
cmp eax, 0x7f
ja 0x8b2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8b2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8b219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8b2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xa4e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a4e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa4e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa4e06a
add dl, dl
jne 0xa4e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa4e0dc
xor eax, eax
add dl, dl
jne 0xa4e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa4e17d
add dl, dl
jne 0xa4e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa4e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa4e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa4e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa4e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa4e075
mov eax, 1
add dl, dl
jne 0xa4e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa4e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa4e0e1
sub eax, ebx
mov ebx, 1
jne 0xa4e128
mov ecx, 1
add dl, dl
jne 0xa4e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa4e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa4e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa4e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa4e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa4e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa4e136
cmp eax, 0x7d00
jae 0xa4e16d
cmp eax, 0x500
jb 0xa4e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa4e075
cmp eax, 0x7f
ja 0xa4e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa4e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa4e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa4e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b090]
jne 0x401abf
repz ret
jmp fcn.00402ab8

Function at 0x408fde
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004073a9
and dword [ebp - 4], 0
cmp dword [0x45f5cc], 0
mov ebx, eax
jne 0x40908f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409140
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409140
push eax
call fcn.00407337
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45f5cc], eax
call esi
push eax
call fcn.00407337
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45f5d0], eax
call esi
push eax
call fcn.00407337
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45f5d4], eax
call esi
push eax
call fcn.00407337
pop ecx
mov dword [0x45f5dc], eax
test eax, eax
je 0x40908f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407337
pop ecx
mov dword [0x45f5d8], eax
mov eax, dword [0x45f5d8]
cmp eax, ebx
je 0x4090e7
cmp dword [0x45f5dc], ebx
je 0x4090e7
push eax
call fcn.004073b2
push dword [0x45f5dc]
mov esi, eax
call fcn.004073b2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4090e7
test edi, edi
je 0x4090e7
call esi
test eax, eax
je 0x4090de
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4090de
test byte [ebp - 0xc], 1
jne 0x4090e7
or dword [ebp + 0x10], 0x200000
jmp 0x409120
mov eax, dword [0x45f5d0]
cmp eax, ebx
je 0x409120
push eax
call fcn.004073b2
pop ecx
test eax, eax
je 0x409120
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409120
mov eax, dword [0x45f5d4]
cmp eax, ebx
je 0x409120
push eax
call fcn.004073b2
pop ecx
test eax, eax
je 0x409120
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45f5cc]
call fcn.004073b2
pop ecx
test eax, eax
je 0x409140
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409142
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10022c3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
mov esi, dword [ebx]
push edi
cmp esi, ebx
je 0x1002335
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], 0xa
jae 0x1002335
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 8]
push eax
push dword [0x10086c8]
call edi
test eax, eax
je 0x100233b
cmp dword [ebp - 4], 4
jne 0x100233b
add dword [0x10086cc], 4
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [esi + 0x10]
push eax
push dword [0x10086c8]
call edi
test eax, eax
je 0x100233b
cmp dword [ebp - 4], 8
jne 0x100233b
add dword [0x10086cc], 8
mov esi, dword [esi]
inc dword [ebp - 8]
cmp esi, ebx
jne 0x10022dc
mov al, 1
pop edi
pop esi
leave
ret
xor al, al
jmp 0x1002337
Function at 0x1002998
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10088f8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x2c], esi
push 0x10013a0
mov edi, ecx
mov dword [ebp - 0x30], eax
call fcn.01002938
cmp eax, esi
jne 0x10029d3
mov eax, 0xc0000001
jmp 0x1002a9b
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x30]
push esi
push esi
push esi
push 2
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], 0x200
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], 0x10003
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], 0x14
push dword [ecx + 0x14]
push eax
push edi
lea eax, [ebp - 0x48]
push eax
push 0x1fffff
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_NtCreateThreadEx]
mov edi, eax
cmp edi, esi
jl 0x1002a99
push esi
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
je 0x1002a4b
mov edi, 0xc0000001
jmp 0x1002a8b
push esi
push 0x1c
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
jl 0x1002a44
mov edi, dword [ebp - 0x6c]
cmp edi, esi
jl 0x1002a8b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002a8b
test byte [eax + 0x1c], 8
je 0x1002a8b
push 0x10012c0
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100183e
cmp dword [ebp - 0x2c], esi
je 0x1002a99
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01005bfd
leave
ret
Function at 0x1002d43
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x20019
push esi
push 0x1001410
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x1002e87
lea eax, [ebp - 0xc]
push eax
push 2
push esi
push 0x10013e4
push 0x80000001
call edi
test eax, eax
jne 0x1002e87
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
mov edi, 0x10013d0
push edi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x1002e86
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x1002e86
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push esi
push edi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x1002e57
push dword [ebp - 4]
push dword [ebp - 0x14]
push 1
push esi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1002e57
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
mov edi, 0x10013b8
push edi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x1002e57
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call ebx
test eax, eax
jne 0x1002e57
push dword [ebp - 4]
push dword [ebp - 0x10]
push 1
push esi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push esi
push dword [eax + 0x18]
call edi
cmp dword [ebp - 0x10], esi
je 0x1002e86
push dword [ebp - 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call edi
pop ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x1002e97
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], esi
je 0x1002ea1
push dword [ebp - 0xc]
call edi
pop edi
pop esi
leave
ret
Function at 0x1005b1d
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1006c80
call fcn.01005d94
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1008d50
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1005932
cmp eax, esi
jne 0x1005925
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1005935
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100590c
xor esi, esi
inc esi
mov eax, dword [0x1008d4c]
cmp eax, esi
jne 0x1005948
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1005983
mov eax, dword [0x1008d4c]
test eax, eax
jne 0x100597d
mov dword [0x1008d4c], esi
push 0x1001224
push 0x1001218
call fcn.01005889
pop ecx
pop ecx
test eax, eax
je 0x1005983
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1005a4d
mov dword [0x10089d0], esi
mov eax, dword [0x1008d4c]
cmp eax, esi
jne 0x10059a7
push 0x1001214
push 0x100120c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1008d4c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10059b4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1008d54], ebx
je 0x10059d5
push 0x1008d54
call fcn.01005d09
pop ecx
test eax, eax
je 0x10059d5
push ebx
push 2
push ebx
call dword [0x1008d54]
push dword [0x10089b8]
push dword [0x10089bc]
push dword [0x10089b4]
call fcn.01004e0d
add esp, 0xc
mov dword [0x10089cc], eax
cmp dword [0x10089c0], ebx
jne 0x1005a33
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10089d0], ebx
jne 0x1005a41
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10089cc]
call fcn.01005dd9
ret
call fcn.01005ee1
jmp 0x10058ea
Function at 0x10060b3
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x224], eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x22c], ebx
xor edi, edi
mov dword [ebp - 0x220], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x228], esi
cmp dword [ebp - 0x214], esi
je 0x10062e2
cmp dword [ebp - 0x214], 0xffffffff
je 0x10062e2
cmp ebx, esi
je 0x10062e2
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x10062e2
push dword [ebp + 0xc]
mov dword [ebx], esi
push esi
push 0x410
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x218], eax
mov ebx, 0x80070000
cmp eax, esi
jne 0x100618c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1006182
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x10062de
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
jne 0x10061c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10061b9
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x1006286
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x230], eax
cmp eax, esi
jne 0x1006200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10061f1
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x1006286
jmp 0x1006284
push eax
push esi
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x210], eax
cmp eax, esi
jne 0x100621d
mov edi, 0x8007000e
cmp edi, esi
jl 0x1006286
push eax
push dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x220]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100627e
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x100124c
push dword [ebp - 0x210]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100627e
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x22c]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x224]
mov dword [ecx], eax
jmp 0x1006284
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
cmp dword [ebp - 0x218], esi
je 0x10062ba
cmp dword [ebp - 0x218], 0xffffffff
je 0x10062ba
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10062ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10062b8
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x10062de
push dword [ebp - 0x210]
push esi
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x10062de
mov edi, 0x8007000e
mov eax, edi
jmp 0x10062e7
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005bfd
leave
ret 0x10
Function at 0x10062fd
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x28
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jne 0x1006345
and dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100633f
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jl 0x10063aa
lea eax, [ebp - 0x10]
push eax
push 0x10016e4
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1006375
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100636f
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jl 0x10063aa
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 2
mov dword [ebp - 8], eax
xor eax, eax
push eax
push eax
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10063aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10063a8
and eax, edi
or eax, esi
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x10063d3
cmp dword [ebp - 4], 0xffffffff
je 0x10063d3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10063d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10063d1
and eax, edi
or eax, esi
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4