joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002140
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x12c], 0
call fcn.10008b90
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100021cf
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100021c8
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.10013d05
add esp, 8
test eax, eax
je 0x100021e1
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100021a3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008710
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x124]
pop edi
xor ecx, ebp
pop esi
call fcn.10008710
mov esp, ebp
pop ebp
ret

Function at 0x10002200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push 0
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
push 0x10002570
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10008e85
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100027a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x1001540c
push 0x10015418
mov esi, ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [ebp - 0x218], eax
push str.LookupAccountNameA
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x41564441
mov dword [ebp - 0x10], 0x32334950
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], 0
call edi
push eax
call ebx
mov dword [ebp - 0x22c], eax
push str.IsValidSid
lea eax, [ebp - 0x14]
push eax
call edi
push eax
call ebx
mov dword [ebp - 0x220], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x224], 0x100
mov dword [ebp - 0x21c], 0x100
test eax, eax
jne 0x10002848
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008710
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x214]
push ecx
push eax
push 0
call dword [ebp - 0x22c]
test eax, eax
je 0x10002835
lea eax, [ebp - 0x214]
push eax
call dword [ebp - 0x220]
test eax, eax
je 0x10002835
lea eax, [ebp - 0x14]
push eax
call edi
mov esi, eax
push str.ConvertSidToStringSidA
push esi
call ebx
test eax, eax
je 0x100028ad
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x214]
push ecx
call eax
push esi
call dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008710
mov esp, ebp
pop ebp
ret
Function at 0x100028d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x28], eax
push str.LsaRetrievePrivateData
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 0x41564441
mov dword [ebp - 0x10], 0x32334950
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [ebp - 0x1c], eax
push str.LsaOpenPolicy
lea eax, [ebp - 0x14]
push eax
call edi
push eax
call esi
mov ebx, eax
push str.LsaClose
lea eax, [ebp - 0x14]
push eax
call edi
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
push 0
movq qword [ebp - 0x48], xmm0
movq qword [ebp - 0x40], xmm0
movq qword [ebp - 0x38], xmm0
call ebx
test eax, eax
je 0x1000297b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008710
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
call fcn.10002720
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x1c]
push dword [ebp - 0x2c]
mov esi, eax
call fcn.10009255
add esp, 4
test esi, esi
jne 0x10002966
push dword [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008710
mov esp, ebp
pop ebp
ret 4
Function at 0x100029d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.LsaFreeMemory
lea eax, [ebp - 0x14]
push eax
mov edi, ecx
mov dword [ebp - 0x14], 0x41564441
mov dword [ebp - 0x10], 0x32334950
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
movq xmm0, qword [str.RasDialParams__s0]
mov cx, word [0x1001553c]
movq qword [ebp - 0x28], xmm0
movq xmm0, qword [0x10015534]
movq qword [ebp - 0x20], xmm0
movq xmm0, qword [str.L__RasDefaultCredentials0]
mov ebx, eax
mov ax, word [0x10015558]
movq qword [ebp - 0x44], xmm0
movq xmm0, qword [0x10015548]
mov word [ebp - 0x18], cx
mov cl, byte [0x1001553e]
movq qword [ebp - 0x3c], xmm0
movq xmm0, qword [0x10015550]
mov word [ebp - 0x2c], ax
mov al, byte [0x1001555a]
mov byte [ebp - 0x16], cl
mov ecx, edi
movq qword [ebp - 0x34], xmm0
mov byte [ebp - 0x2a], al
call fcn.100027a0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
mov ecx, edi
call fcn.100028d0
mov esi, eax
test esi, esi
je 0x10002ac3
movzx ecx, word [esi]
push ecx
push dword [esi + 4]
mov ecx, edi
call fcn.100032b0
push dword [esi + 4]
call ebx
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.100028d0
mov esi, eax
test esi, esi
je 0x10002ae7
movzx edx, word [esi]
push edx
push dword [esi + 4]
mov ecx, edi
call fcn.100032b0
push dword [esi + 4]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008710
mov esp, ebp
pop ebp
ret
Function at 0x10004900
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 0x18]
mov dword [esi], vtable.CSystemManager.0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
pop esi
jmp fcn.10001da0

Function at 0x10004930
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 0x18]
mov dword [esi], vtable.CSystemManager.0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.10001da0
test byte [ebp + 8], 1
je 0x10004966
push esi
call fcn.1000757e
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10004970
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 0x10
push dword [eax]
mov edi, ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 8]
push eax
push 0x10004bc0
mov dword [ebp + 8], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp + 8]
mov byte [eax], 0x10
mov esi, dword [ebp + 8]
test esi, esi
je 0x100049cd
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
push esi
mov ecx, edi
call fcn.10001df0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
ret 4
Function at 0x10004a80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x264], eax
test ebx, ebx
je 0x10004baf
test eax, eax
je 0x10004baf
push esi
push edi
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x10004b54
cmp byte [ebp - 0x25c], 0
je 0x10004b54
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea esi, [ebp - 0x25c]
push 0x10015ae8
push esi
call edi
test eax, eax
je 0x10004b4c
push 0x10015aec
push esi
call edi
test eax, eax
je 0x10004b4c
movzx eax, byte [esi]
mov byte [ebp - 0x260], al
movzx eax, byte [esi + 1]
mov byte [ebp - 0x25f], al
push 0x64
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x260]
push eax
mov byte [ebp - 0x25e], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10004b62
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.10009320
add esp, 0xc
test eax, eax
je 0x10004b75
add esi, 4
cmp byte [esi], 0
jne 0x10004ae1
mov esi, dword [ebp - 0x264]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008710
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x268]
add eax, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008710
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10008710
mov esp, ebp
pop ebp
ret
Function at 0x10004f60
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 5
push 0xffffffffffffffff
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x10004fee
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp - 4]
mov edx, esi
mov ecx, edi
sub edx, edi
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10004fa0
push edi
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004fb7
sub ecx, edx
jne 0x10004fe3
movq xmm0, qword [0x10015b48]
movq qword [esi], xmm0
movq xmm0, qword [str._]
pop edi
movq qword [esi + 8], xmm0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
movq xmm0, qword [0x10015b48]
movq qword [eax], xmm0
movq xmm0, qword [str._]
movq qword [eax + 8], xmm0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10005010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x10015418
mov dword [ebp - 0x18], 0x4e746547
mov dword [ebp - 0x14], 0x76697461
mov dword [ebp - 0x10], 0x73795365
mov dword [ebp - 0xc], 0x496d6574
mov dword [ebp - 8], 0x6f666e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10005086
lea ecx, [ebp - 0x3c]
push ecx
call eax
mov cx, word [ebp - 0x3c]
cmp cx, 9
je 0x10005073
cmp cx, 6
jne 0x10005086
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008710
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.10008710
mov esp, ebp
pop ebp
ret

Function at 0x10005360
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x1000539c
mov eax, dword [ebp + 8]
push dword [edi + eax]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
cmp edi, ebx
jb 0x10005373
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.10006010
mov edi, dword [sym.imp.KERNEL32.dll_LocalSize]
mov esi, eax
test esi, esi
je 0x100053d0
push esi
call edi
push eax
push esi
mov ecx, ebx
call fcn.10001df0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.10003940
mov esi, eax
test esi, esi
je 0x100053ee
push esi
call edi
push eax
push esi
mov ecx, ebx
call fcn.10001df0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005540
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10008b90
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x108]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005590
push 0x80
lea eax, [ebp - 0x108]
mov ecx, 7
mov esi, str._system32driversetchosts
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100055f4
push 0
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008710
mov esp, ebp
pop ebp
ret 8

Function at 0x100059d0
Capabilities:
Get common file path
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 0x108], 0
call fcn.10008b90
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005a22
push 0x80
lea eax, [ebp - 0x108]
mov ecx, 7
mov esi, str._system32driversetchosts
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push 0
push 0
push 4
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10005ae1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
mov edi, eax
lea eax, [ebp - 0x110]
push eax
push esi
lea ecx, [edi + 1]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10005abc
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008710
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov byte [edi], 0x16
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x10c]
push eax
push edi
call fcn.10001df0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008710
mov esp, ebp
pop ebp
ret
Function at 0x10005c10
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10008b90
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push connect
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x110], 0x50
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.Favorites
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x1001b568], eax
mov byte [eax], 0x14
lea eax, [ebp - 0x108]
push eax
mov dword [0x1001a0a0], 1
call fcn.10004cc0
add esp, 4
push 0x42
push dword [0x1001a0a0]
push dword [0x1001b568]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1001b568], eax
call fcn.10008710
mov esp, ebp
pop ebp
ret
Function at 0x1000fb81
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1000c559
mov dword [ebp - 0x14], eax
cmp dword [0x1001c228], edi
jne 0x1000fc72
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1000fbff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000fd52
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000fd52
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000fd52
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1001c228], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1001c22c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1001c230], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1001c238], eax
test eax, eax
je 0x1000fc6f
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1001c234], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1000fc97
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000fc8a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1000fcac
push 4
pop eax
jmp 0x1000fd54
cmp dword [ebp - 0x14], edi
je 0x1000fcac
push dword [0x1001c228]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1000fc91
mov eax, dword [0x1001c234]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1000fd0a
cmp dword [0x1001c238], esi
je 0x1000fd0a
push eax
call ebx
push dword [0x1001c238]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1000fd0a
test eax, eax
je 0x1000fd0a
call ecx
test eax, eax
je 0x1000fcff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1000fcff
test byte [ebp - 8], 1
jne 0x1000fd0a
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1000fd3a
mov eax, dword [0x1001c22c]
cmp eax, esi
je 0x1000fd37
push eax
call ebx
test eax, eax
je 0x1000fd37
call eax
mov edi, eax
test edi, edi
je 0x1000fd37
mov eax, dword [0x1001c230]
cmp eax, esi
je 0x1000fd37
push eax
call ebx
test eax, eax
je 0x1000fd37
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1001c228]
call ebx
test eax, eax
je 0x1000fd52
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1000fd54
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008710
leave
ret
Function at 0x417e60
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4c7a60
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4c7ce4
call fcn.00417e10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.api_ms_win_core_synch_l1_2_0.dll
mov edi, eax
call ebx
mov esi, eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test esi, esi
mov ebp, eax
jne 0x417eaf
push str.kernel32.dll
call ebx
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SleepConditionVariableCS
push esi
call ebx
test ebp, ebp
mov edi, eax
je 0x417ed5
mov ecx, dword [0x4c7b24]
push 0x4c780c
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push str.WakeAllConditionVariable
push esi
call ebx
test edi, edi
je 0x417ef6
test eax, eax
je 0x417ef6
mov dword [0x4c7970], edi
pop edi
pop esi
pop ebp
mov dword [0x4c7978], eax
pop ebx
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret