joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428ef2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x43b380]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x428f97
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0xc], ecx
call esi
push dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x429099
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x429047
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push reloc.ODBC32.dll_SQLAllocConnect
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42909a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42903c
cmp dword [ebp - 0x14], 1
jne 0x42903c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push 0x430a64
push eax
call fcn.004143fb
add esp, 0xc
cmp eax, 1
jne 0x42903c
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42909a
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x42909a
lea ecx, [ebp - 8]
push ecx
push 0x428ee0
push 1
push 0x10
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 8], bx
je 0x42909a
movzx eax, word [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4290c0
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00428e6f
cmp eax, ebx
pop ecx
pop ecx
jne 0x4290c2
inc edi
cmp edi, esi
jl 0x4290a9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0041355b
leave
ret 4
Function at 0x4290d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x43a94c
je 0x429190
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.ODBC32.dll_SQLAllocConnect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x429178
mov esi, dword [ebx + 4]
jmp 0x429172
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x429162
cmp dword [ebp - 0xc], 4
jne 0x429162
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42915a
or dword [eax + 0x9c], ecx
jmp 0x429162
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x429126
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x429109
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x429561
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x42d0b1
call fcn.00413cc0
sub esp, 0x110
mov eax, dword [0x43b380]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42961c
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
jmp 0x4295e5
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004020d0
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.00429561
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004010d0
cmp byte [ebp - 0x11], 0
jne 0x4295fa
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x4295a9
cmp esi, 0x103
pop edi
pop ebx
je 0x42960c
cmp esi, 0x3f2
jne 0x42961c
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
call fcn.0041355b
leave
ret 8

Function at 0x42a401
Capabilities:
Get thread local storage value

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42a41e
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 8]
jge 0x42a41e
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
jmp 0x42a420
xor eax, eax
ret 4
Function at 0x42a505
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42a539
call fcn.0041e9a4
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42a5a1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42a5cf
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x42a66a
cmp dword [esp + 0x14], ebx
je 0x42a66a
jmp 0x42a60c
push 0x10
call fcn.0042a2c6
cmp eax, ebx
je 0x42a5e5
mov ecx, eax
call fcn.0042a4fc
mov esi, eax
jmp 0x42a5e7
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42a623
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42a633
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x42a63f
call fcn.0041e9a4
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.00413c60
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x42a730
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 0x42a75e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42a77c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042a69a
jmp 0x42a77c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42a77c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042a69a
test edi, edi
mov eax, edi
jne 0x42a766
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43df54]
test ecx, ecx
je 0x42a82f
jmp 0x42a72f
ret 8

Function at 0x426578
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42657e
ret
Function at 0x1002af4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x10018e0
push 0x80000002
mov esi, ecx
call edi
test eax, eax
je 0x1002b64
test byte [0x100a0bc], 8
je 0x1002d50
cmp byte [0x100a0b9], 2
jb 0x1002d50
push eax
push 0x10018e0
push 0x10017b8
push 0x17
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.01002932
jmp 0x1002d50
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x1002bb3
test byte [0x100a0bc], 8
je 0x1002d47
cmp byte [0x100a0b9], 2
jb 0x1002d47
push eax
push dword [esi + 0x30]
push 0x10017b8
push 0x18
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.01002932
jmp 0x1002d47
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea ebx, [esi + 0x68]
push ebx
lea eax, [ebp - 8]
push eax
push 0
push 0x10018a8
push dword [ebp - 0xc]
mov dword [ebp - 4], 4
call edi
test eax, eax
jne 0x1002be2
cmp dword [ebp - 8], 4
je 0x1002c12
test byte [0x100a0bc], 8
je 0x1002c0c
cmp byte [0x100a0b9], 3
jb 0x1002c0c
push 0x10017b8
push 0x19
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
mov dword [ebx], 0xa
mov ebx, dword [ebx]
mov eax, dword [0x100a158]
cmp ebx, dword [eax + 0x74]
jbe 0x1002c56
test byte [0x100a0bc], 8
je 0x1002d3e
cmp byte [0x100a0b9], 2
jb 0x1002d3e
push ebx
push 0x10017b8
push 0x1a
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100528f
jmp 0x1002d3e
lea eax, [ebp - 4]
push eax
lea ebx, [esi + 0x6c]
push ebx
lea eax, [ebp - 8]
push eax
push 0
push 0x1001874
push dword [ebp - 0xc]
mov dword [ebp - 4], 4
call edi
test eax, eax
jne 0x1002c7f
cmp dword [ebp - 8], 4
je 0x1002caf
test byte [0x100a0bc], 8
je 0x1002ca9
cmp byte [0x100a0b9], 3
jb 0x1002ca9
push 0x10017b8
push 0x1b
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028c1
mov dword [ebx], 0xa
mov ebx, dword [ebx]
mov eax, dword [0x100a158]
cmp ebx, dword [eax + 0x78]
jbe 0x1002cda
test byte [0x100a0bc], 8
je 0x1002d3e
cmp byte [0x100a0b9], 2
jb 0x1002d3e
push ebx
push 0x10017b8
push 0x1c
jmp 0x1002c40
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov edi, 0x1001844
push edi
push dword [ebp - 0xc]
call fcn.01005352
mov ebx, eax
test ebx, ebx
jne 0x1002d23
test byte [0x100a0bc], 8
je 0x1002d3e
cmp byte [0x100a0b9], 2
jb 0x1002d3e
push edi
push 0x10017b8
push 0x1d
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028e7
jmp 0x1002d3e
push ebx
call fcn.010056f0
test eax, eax
mov dword [esi + 0x44], eax
je 0x1002d37
mov dword [ebp - 0x14], 1
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10033fb
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001aa0
call fcn.01008060
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [esi], fcn.01002a53
xor ebx, ebx
cmp dword [esi + 0x74], ebx
je 0x1003422
push esi
mov ecx, dword [esi + 0x70]
call fcn.01002d5d
push dword [esi + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [esi + 0x4c]
cmp dword [eax], ebx
je 0x1003439
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea eax, [esi + 0x48]
cmp dword [eax], ebx
je 0x1003447
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x1003455
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x50], ebx
je 0x10034b5
mov dword [ebp - 4], ebx
push dword [esi + 0x60]
call fcn.0100286c
or dword [ebp - 4], 0xffffffff
jmp 0x10034b5
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x10034c2
push eax
call fcn.01008640
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x100352d
mov ecx, dword [esi + 0x6c]
imul ecx, ecx, 0x3e8
push ecx
push eax
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
cmp eax, ebx
je 0x1003524
test byte [0x100a0bc], 8
je 0x100350b
cmp byte [0x100a0b9], 2
jb 0x100350b
push eax
push 0x10017b8
push 0x16
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100528f
push ebx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x6c]
imul eax, eax, 0x3e8
push eax
push dword [esi + 0x50]
call edi
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.01002a79
call fcn.0100809b
ret
Function at 0x1005352
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], 4
mov dword [ebp - 8], edi
xor esi, esi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x100540c
cmp dword [ebp - 4], 7
je 0x100539c
cmp dword [ebp - 4], 1
je 0x100539c
cmp dword [ebp - 4], 2
jne 0x100540c
mov eax, dword [ebp - 8]
shr eax, 1
cmp ebx, edi
jne 0x10053be
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x100540c
inc esi
cmp esi, 2
jb 0x100536c
jmp 0x10053c3
mov word [ebx + eax*2 - 2], di
cmp dword [ebp - 4], 2
jne 0x1005432
xor esi, esi
and dword [ebp + 0xc], esi
mov dword [ebp + 8], 0x1f
mov eax, edi
shr eax, 1
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
shl eax, 1
cmp eax, edi
jbe 0x1005417
test esi, esi
jne 0x100540c
mov edi, eax
shr eax, 1
shl eax, 1
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
jne 0x1005427
mov dword [ebp + 8], 8
cmp dword [ebp + 8], 0
je 0x1005432
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor ebx, ebx
jmp 0x1005442
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp + 8], 0
pop ecx
mov ebx, esi
mov dword [ebp - 8], edi
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 2
jb 0x10053d5
jmp 0x1005406
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x10056f0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100a140]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1005763
test byte [0x100a0bc], 1
je 0x100585f
cmp byte [0x100a0b9], 2
jb 0x100585f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020fc
push 0x3b
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100528f
jmp 0x100585f
mov edi, dword [sym.imp.KERNEL32.dll_SearchPathW]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, ebx
jne 0x10057a7
test byte [0x100a0bc], 1
je 0x100585f
cmp byte [0x100a0b9], 2
jb 0x100585f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020fc
push 0x3c
jmp 0x100574d
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x214], eax
jne 0x10057f8
test byte [0x100a0bc], 1
je 0x100585f
cmp byte [0x100a0b9], 2
jb 0x100585f
push dword [ebp - 0x218]
push 0x10020fc
push 0x3d
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010028e7
jmp 0x100585f
lea ecx, [ebp - 0x21c]
push ecx
push eax
push esi
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, ebx
je 0x1005822
dec esi
cmp eax, esi
ja 0x1005822
mov eax, dword [ebp - 0x214]
jmp 0x1005861
test byte [0x100a0bc], 1
je 0x1005853
cmp byte [0x100a0b9], 2
jb 0x1005853
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020fc
push 0x3e
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100528f
push dword [ebp - 0x214]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007d97
leave
ret 4
Function at 0x1007eaf
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1002630
call fcn.01008060
cmp word [0x1000000], 0x5a4d
jne 0x1007eee
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1007eee
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1007f07
cmp ecx, 0x20b
je 0x1007ef4
and dword [ebp - 0x1c], 0
jmp 0x1007f1e
cmp dword [eax + 0x1000084], 0xe
jbe 0x1007eee
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1007f18
cmp dword [eax + 0x1000074], 0xe
jbe 0x1007eee
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100a190], 0xffffffff
or dword [0x100a194], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100a188]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100a184]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100a198], eax
call fcn.010080ec
cmp dword [0x100a144], 0
jne 0x1007f7b
push fcn.010080ec
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010080d5
push 0x100a010
push 0x100a00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100a180]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100a17c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100a008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01007900
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x1007ff3
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1008028
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100809b
ret
Function at 0x1008690
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 2
mov dword [ebp - 4], esi
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x10086ea
test byte [0x100a07c], 8
je 0x10087af
cmp byte [0x100a079], 2
jb 0x10087af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100263c
push 0x2d
push dword [0x100a074]
push dword [0x100a070]
call fcn.0100528f
jmp 0x10087af
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
je 0x1008736
cmp eax, 0x7a
je 0x1008736
test byte [0x100a07c], 8
je 0x10087ae
cmp byte [0x100a079], 2
jb 0x10087ae
call edi
push eax
push 0x100263c
push 0x2e
push dword [0x100a074]
push dword [0x100a070]
call fcn.0100528f
jmp 0x10087ae
mov eax, dword [ebp - 4]
add eax, eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
jne 0x1008767
test byte [0x100a07c], 8
je 0x10087ae
cmp byte [0x100a079], 3
jb 0x10087ae
push dword [ebp - 4]
push 0x100263c
push 0x2f
jmp 0x1008723
lea eax, [ebp - 4]
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x10087ae
test byte [0x100a07c], 8
je 0x10087a4
cmp byte [0x100a079], 2
jb 0x10087a4
call edi
push eax
push 0x100263c
push 0x30
push dword [0x100a074]
push dword [0x100a070]
call fcn.0100528f
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor esi, esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x1008ce5
Capabilities:
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x100a07c], 2
push ebx
push esi
push edi
mov edi, 0x100263c
je 0x1008d18
cmp byte [0x100a079], 4
jb 0x1008d18
push edi
push 0x1a
push dword [0x100a074]
push dword [0x100a070]
call fcn.010028c1
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1008d26
mov ebx, fcn.0100833e
jmp 0x1008d4a
cmp eax, 1
jne 0x1008d32
mov ebx, 0x10088a4
jmp 0x1008d4a
cmp eax, 2
jne 0x1008d3e
mov ebx, 0x1008a19
jmp 0x1008d4a
cmp eax, 3
jne 0x1008ec2
mov ebx, dword [ebp + 0x14]
test byte [0x100a07c], 2
je 0x1008d79
cmp byte [0x100a079], 5
jb 0x1008d79
push dword [0x100a148]
push dword [ebp + 0xc]
push edi
push 0x1b
push dword [0x100a074]
push dword [0x100a070]
call fcn.0100828d
push 0
push dword [ebp + 0xc]
push 0xa
push dword [0x100a148]
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1008db4
test byte [0x100a07c], 2
je 0x1008ec5
cmp byte [0x100a079], 2
jb 0x1008ec5
push esi
push edi
push 0x1c
jmp 0x1008de7
push ebx
push eax
push 8
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov esi, eax
test esi, esi
je 0x1008dfd
test byte [0x100a07c], 2
je 0x1008ec5
cmp byte [0x100a079], 2
jb 0x1008ec5
push esi
push edi
push 0x1d
push dword [0x100a074]
push dword [0x100a070]
call fcn.0100528f
jmp 0x1008ec5
mov ebx, 0x100a18c
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test byte [0x100a07c], 2
mov dword [ebp + 0x10], eax
je 0x1008e5e
cmp byte [0x100a079], 5
jb 0x1008e35
push dword [ebp + 0xc]
push edi
push 0x1e
push dword [0x100a074]
push dword [0x100a070]
call fcn.010028e7
test byte [0x100a07c], 2
je 0x1008e5e
cmp byte [0x100a079], 5
jb 0x1008e5e
push dword [ebp + 0x10]
push edi
push 0x1f
push dword [0x100a074]
push dword [0x100a070]
call fcn.0100528f
cmp dword [ebp + 0x10], 1
jne 0x1008ed5
push 1
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
cmp esi, 0x6b1
jne 0x1008e7f
xor esi, esi
test esi, esi
je 0x1008ed5
test byte [0x100a07c], 2
je 0x1008eaa
cmp byte [0x100a079], 2
jb 0x1008eaa
push esi
push edi
push 0x20
push dword [0x100a074]
push dword [0x100a070]
call fcn.0100528f
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x1008ec5
push 0x57
pop esi
test esi, esi
jle 0x1008ed5
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10