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

Disassembly:
push 0xffffffffffffffff
push 0x4d6883
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.004c7d8a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.004cd503
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004cea5b
test eax, eax
je 0x44288c
mov ecx, dword [esp + 0x3c]
call fcn.004cd530
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 0x442850
push edi
mov ecx, esi
call fcn.004caaf1
mov ecx, esi
call fcn.00442a30
cmp dword [esp + 0x38], 1
jne 0x442885
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.004cac5b
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 0x444a70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444aa3
push esi
call fcn.00452b40
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444a9c
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 0x444b29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444b12
mov eax, dword [esi + 8]
test eax, eax
je 0x444ac7
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 0x444b0e
cmp eax, 2
je 0x444b12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444aba
cmp eax, 3
je 0x444aed
cmp eax, 1
jne 0x444aba
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 0x444aba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444aba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444b50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444b38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444b50
add esp, 4
pop esi
ret

Function at 0x4453a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4453c1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4453c1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4453c1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x461c60
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 0x461ca9
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 0x462120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d7080
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.00461cd0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00461d50
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00461d50
lea ecx, [esi + 0xc]
call fcn.004c667b
lea ecx, [esi + 0x10]
call fcn.004c667b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004632e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004632e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004632e0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c66f0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c66f0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4634d0
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 0x463536
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 0x463536
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x463517
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x463900
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.00463700
pop edi
add esp, 0x104
ret 4
Function at 0x467310
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x467343
push esi
call fcn.0046c0e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46733c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4673c9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4673b2
mov eax, dword [esi + 8]
test eax, eax
je 0x467367
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4673ae
cmp eax, 2
je 0x4673b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46735a
cmp eax, 3
je 0x46738d
cmp eax, 1
jne 0x46735a
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 0x46735a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46735a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00467400
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4673e9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00467400
add esp, 4
pop esi
ret
Function at 0x49d2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x49d411
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x49d3f5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x49d347
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x49d325
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x49de59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x49deb0
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x49deb0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x49deb0
xor eax, eax
inc eax
jmp 0x49deb2
xor eax, eax
leave
ret 0x10
Function at 0x49dedb
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x49df49
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0xa83f9c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49df40
cmp dword [ebp - 0xc], 4
jne 0x49df40
cmp dword [ebp - 0x10], edi
je 0x49df40
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0xab3d80], edi
xor eax, eax
jmp 0x49df88
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xab3d80], edi
jge 0x49df83
lea eax, [ebp - 0x34]
push eax
mov dword [0xab3d80], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x49df83
cmp word [ebp - 0x14], 5
jb 0x49df83
call fcn.0049deb6
test eax, eax
je 0x49df83
emms
mov dword [0xab3d80], 1
mov eax, dword [0xab3d80]
pop edi
leave
ret

Function at 0x4c8b80
Capabilities:
Get graphical window text

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

Function at 0x4ca275
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 0x4ca2b7
call fcn.004d001c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ca2b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ca2ae
xor eax, eax
jmp 0x4ca2bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ca2c5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d054c
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 0x4d057a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d0598
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d04b2
jmp 0x4d0598
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d0598
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d04b2
test edi, edi
mov eax, edi
jne 0x4d0582
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10019bc
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], 0x1001360
cmp eax, esi
je 0x10019dd
mov dword [ebp - 4], eax
mov eax, dword [0x10063a4]
cmp eax, esi
jne 0x10019fb
push 0x1001320
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [0x10063a4], eax
cmp eax, esi
je 0x1001a13
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push 2
push esi
push 0x400003e8
push esi
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop esi
leave
ret 8
Function at 0x1001ab5
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100602c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x30], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetClassLongW]
push edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffe0
push edi
mov dword [ebp - 0x3c], eax
call esi
mov ecx, 0x8002
cmp cx, ax
jne 0x1001af7
push 0xfffffffffffffffa
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
jmp 0x1001afc
push 0xffffffffffffffe8
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x1001bb3
lea eax, [ebp - 0x38]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1001baf
add dword [ebp - 0x38], 0x28
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1001bb3
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push edi
push dword [ebp - 0x3c]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1001ba1
mov eax, dword [ebp - 0x34]
and dword [ebp - 0x34], 0
shr eax, 2
mov dword [ebp - 0x38], eax
test eax, eax
jbe 0x1001ba1
push 0xc
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x34]
push dword [edi + eax*4]
push dword [ebp - 0x3c]
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x1001b8b
mov eax, dword [ebp - 0x48]
cmp eax, ebx
jg 0x1001b8b
mov ecx, dword [ebp - 0x44]
add ecx, eax
cmp ebx, ecx
jl 0x1001b98
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
jb 0x1001b63
jmp 0x1001ba1
mov eax, dword [ebp - 0x34]
mov eax, dword [edi + eax*4]
mov dword [ebp - 0x30], eax
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1001bb3
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
je 0x1001c06
push 9
pop ecx
xor eax, eax
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x1001c06
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1001380
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
je 0x1001c02
push 0x1001364
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
jne 0x1001c06
and dword [ebp - 0x30], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010042b9
leave
ret 8
Function at 0x1001f4d
Capabilities:
Get file version info

Disassembly:
push 0x94
push 0x1004880
call fcn.01004228
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa0], eax
xor ebx, ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
xor eax, eax
mov word [ebp - 0x80], ax
push 0x62
push ebx
lea eax, [ebp - 0x7e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x98], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x94]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x10020d2
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x84], eax
cmp eax, ebx
je 0x10020d2
push eax
push edi
push dword [ebp - 0x94]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10020d2
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x10013e4
push dword [ebp - 0x84]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10020d2
mov eax, dword [ebp - 0x90]
movzx ecx, word [eax]
mov dword [ebp - 0xa4], ecx
movzx edx, word [eax + 2]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x88], ebx
mov esi, dword [ebp - 0x8c]
shr esi, 2
cmp dword [ebp - 0x88], esi
jae 0x100207e
mov esi, dword [ebp - 0x88]
mov si, word [eax + esi*4]
mov edi, 0x3ff
and si, di
push 9
pop edi
cmp di, si
jne 0x1002076
mov edx, dword [ebp - 0x88]
movzx ecx, word [eax + edx*4]
mov dword [ebp - 0xa4], ecx
movzx edx, word [eax + edx*4 + 2]
mov dword [ebp - 0x9c], edx
inc dword [ebp - 0x88]
jmp 0x1002030
movzx eax, dx
push eax
movzx eax, cx
push eax
push 0x1001398
push 0x64
lea eax, [ebp - 0x80]
push eax
call fcn.01001eed
add esp, 0x14
test eax, eax
jl 0x10020d2
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x84]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10020d2
push dword [ebp - 0x98]
push dword [ebp + 0x10]
push dword [ebp - 0xa0]
call fcn.01001e01
mov dword [ebp - 4], 0xfffffffe
call fcn.010020e8
call fcn.01004270
ret 0xc

Function at 0x100210a
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
cmp dword [0x10063d0], eax
je 0x1002199
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push edi
mov esi, 0x1006190
push esi
push eax
push eax
push 0x24
push eax
call ebx
mov edi, 0x82
test eax, eax
jl 0x1002161
push esi
push edi
push 0x1006108
call fcn.01001e3b
test eax, eax
jge 0x1002151
xor eax, eax
mov word [0x1006108], ax
jmp 0x1002161
push 0x100129c
push edi
push 0x1006108
call fcn.01001e76
push esi
xor eax, eax
push eax
push eax
push 0x26
push eax
call ebx
test eax, eax
jl 0x1002196
push esi
push edi
mov esi, 0x1006080
push esi
call fcn.01001e3b
test eax, eax
jge 0x100218a
xor eax, eax
mov word [0x1006080], ax
jmp 0x1002196
push 0x100129c
push edi
push esi
call fcn.01001e76
pop edi
pop esi
pop ebx
ret
Function at 0x10034e5
Capabilities:
Create process on windows

Disassembly:
push 0xd0
push 0x10048e0
call fcn.01004228
mov dword [ebp - 0x88], 0x3f0
xor eax, eax
mov word [ebp - 0x80], ax
push 0x62
xor esi, esi
push esi
lea eax, [ebp - 0x7e]
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0xe0], esi
push 0x40
push esi
lea eax, [ebp - 0xdc]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x9c], esi
xor eax, eax
lea edi, [ebp - 0x98]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], 0xffffffff
je 0x1003606
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x1003578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x88], eax
jmp 0x1003606
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1003567
xor edi, edi
inc edi
mov dword [ebp - 0x8c], edi
push dword [ebp + 0xc]
push 0x1001578
push 0x32
lea eax, [ebp - 0x80]
push eax
call fcn.01003486
add esp, 0x10
mov dword [ebp - 0xe0], 0x44
mov dword [ebp - 0xb4], edi
push 7
pop eax
mov word [ebp - 0xb0], ax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xe0]
push eax
push esi
push esi
push esi
push edi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x88], eax
cmp eax, esi
je 0x1003606
push dword [ebp - 0x98]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x9c]
call edi
mov dword [ebp - 4], 0xfffffffe
call fcn.01003622
mov eax, dword [ebp - 0x88]
call fcn.01004270
ret 8

Function at 0x1003966
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 0x10015cc
xor esi, esi
push esi
push esi
xor ebx, ebx
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, esi
je 0x10039a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10039a6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x1003a44
cmp dword [0x10063d0], esi
je 0x10039d3
push esi
push 0xf0403
push 0x1006018
call sub.ntdll.dll_WinSqmStartSession
push 0x100159c
push 0x583
push eax
mov dword [0x10063d8], eax
call sub.ntdll.dll_WinSqmSetString
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__atoi64]
pop ecx
mov dword [0x1006398], eax
cmp eax, esi
je 0x1003a1e
push 0xa88
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x100607c], eax
cmp eax, esi
je 0x1003a1b
lea ecx, [ebp - 0x30]
call fcn.010031b9
push 0x3e9
push 0x3e8
lea ecx, [ebp - 0x30]
call fcn.0100372a
jmp 0x1003a1e
push 0xfffffffffffffffe
pop ebx
cmp edi, esi
je 0x1003a29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x10063d0], esi
je 0x1003a42
push dword [0x10063d8]
call sub.ntdll.dll_WinSqmEndSession
mov dword [0x10063d8], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4