joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41768a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4298b7
call fcn.0041a4dc
push ecx
push ebx
push esi
mov esi, ecx
push 1
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
call fcn.00409720
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x4b38]
call fcn.00412503
lea ecx, [esi + 0x98d0]
call fcn.00412eff
lea ecx, [esi + 0xe65c]
mov byte [ebp - 4], 5
call fcn.0040ab0c
push 1
lea ecx, [esi + 0xe694]
mov byte [ebp - 4], 6
call fcn.00409720
lea eax, [esi + 0xe6a4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6b4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6c4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov dword [esi], eax
mov dword [esi + 0x4b34], ebx
mov byte [esi + 0x4c38], bl
mov byte [esi + 0x4c48], bl
mov byte [esi + 0x4c49], bl
mov byte [esi + 0x4c4a], bl
mov dword [esi + 0x1c], 1
call fcn.00411072
push ebx
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xe6d8], ebx
mov dword [esi + 0xe6dc], ebx
call fcn.004157db
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41963b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x41966f
cmp dword [ebp - 4], esi
jne 0x4196b0
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x7d0
ja 0x4196b0
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x419659
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x419659
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x41971b
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x419711
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x42b158
push eax
call dword [ecx]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x419708
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x4196ff
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 8], esi
jl 0x41971b
cmp dword [ebp - 4], esi
jne 0x41976a
cmp dword [edi + 8], esi
je 0x41976a
cmp dword [edi + 0x18], esi
jne 0x41976a
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x41976a
push eax
mov ecx, edi
call fcn.0041947d
mov ebx, eax
cmp ebx, esi
je 0x41976a
push 0x204
push esi
push esi
push esi
push esi
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.0041a506
pop ecx
xor eax, eax
cmp dword [ebp + 8], esi
pop edi
pop esi
setge al
pop ebx
leave
ret 8

Function at 0x41e6de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430298]
jne 0x41e6e8
repz ret
jmp fcn.00423e83
Function at 0x10003de3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x10003e59
cmp word [ebx + 8], 2
jne 0x10003e39
cmp word [ebx + 0xa], 4
jne 0x10003e39
mov esi, dword [ebx + 0xc]
jmp 0x10003e33
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10003d7e
test eax, eax
mov dword [edi], eax
je 0x10003e54
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10003e17
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.100324e0
add esp, 0x10
xor eax, eax
jmp 0x10003e7f
push 8
pop eax
jmp 0x10003e7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x10003e7f
dec ecx
je 0x10003e7a
dec ecx
je 0x10003e73
dec ecx
jmp 0x10003e7f
mov eax, 0x2afb
jmp 0x10003e7f
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x1000447b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
cmp dword [0x10083394], 0
mov dword [ebp - 0x80], str.getaddrinfo
mov dword [ebp - 0x7c], 0x1000403a
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x100042c1
mov dword [ebp - 0x70], str.freeaddrinfo
mov dword [ebp - 0x6c], fcn.10004001
jne 0x100045e1
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100045d7
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push eax
mov esi, 0x10c
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.1003231e
push str.ws2_32
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.10032944
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x10004544
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10004540
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x10004596
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.1003231e
push str.wship6
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.10032944
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x100045d4
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10004592
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x100045d4
xor esi, esi
push dword [ebp + esi*8 - 0x80]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + esi*8 - 0x7c], eax
je 0x100045b3
inc esi
cmp esi, 3
jl 0x10004598
jmp 0x100045bc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x100045d4
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x100800c0], ecx
add eax, 8
cmp eax, 0x18
jl 0x100045c2
pop edi
pop esi
pop ebx
mov dword [0x10083394], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x100800c0]
xor ecx, ebp
call fcn.10031c08
add ebp, 0x1b0
leave
ret 4
Function at 0x10004646
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x1b0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
cmp dword [ebp + 8], 2
jne 0x100046b0
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 4
lea eax, [ebp - 0x10]
push ebx
push eax
mov word [ebp - 0x14], 2
call fcn.100329c0
add esp, 0xc
push 2
push 0
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push esi
push 0x10
push eax
call fcn.10004606
jmp 0x100046f0
cmp dword [ebp + 8], 0x17
jne 0x100046f2
push 6
pop ecx
lea edi, [ebp - 0x1e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
mov word [ebp - 0x20], 0x17
call fcn.100329c0
add esp, 0xc
push 2
push 0
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push esi
push 0x1c
push eax
call fcn.10004606
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031c08
leave
ret

Function at 0x100048ef
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.10031d30
mov ebx, dword [esi + 0x14]
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x10004934
mov esi, dword [esi + 4]
jmp 0x10004937
add esi, 4
test ebx, ebx
jl 0x100049a2
lea edi, [esi + edi*2]
push 0x5c
push edi
call fcn.10032e12
test eax, eax
pop ecx
pop ecx
jne 0x1000495a
push 0x2f
push edi
call fcn.10032e12
test eax, eax
pop ecx
pop ecx
je 0x10004963
sub eax, esi
sar eax, 1
inc eax
mov edi, eax
jmp 0x10004966
lea edi, [ebx + 1]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10032ecf
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10032ebb
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1000499d
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100049b4
inc edi
cmp edi, ebx
jle 0x1000493b
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031c08
leave
ret
xor eax, eax
jmp 0x100049a5
Function at 0x10004b1d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x210], esi
mov word [ebp - 0x20c], si
call fcn.10031d30
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov ecx, edi
jge 0x10004b7d
call fcn.10001dc7
jmp 0x10004b89
lea eax, [ebp - 0x20c]
push eax
call fcn.10001681
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031c08
leave
ret

Function at 0x10004b9a
Capabilities:
Acquire debug privileges

Disassembly:
push 0x44
mov eax, 0x1005887b
call fcn.10031c17
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
call fcn.10001dc7
lea eax, [ebp - 0x14]
xor esi, esi
push eax
inc esi
push 0x28
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x24]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x10004bf1
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0x24]
push ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
push ebx
push 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x14]
call edi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
call fcn.100016a3
push dword [ebp - 0x10]
lea eax, [ebp - 0x50]
push dword [ebp + 0xc]
push eax
call fcn.10004b1d
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push ebx
push eax
mov dword [ebp - 4], esi
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.1000131a
cmp dword [ebp - 0x10], ebx
je 0x10004c64
push dword [ebp - 0x10]
call edi
jmp 0x10004c91
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
push eax
call fcn.10004b1d
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.1000131a
mov eax, dword [ebp - 0x18]
call fcn.10031cef
ret
Function at 0x1000537a
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push 2
push str.SeDebugPrivilege
call fcn.10005304
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x400
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, 0xffffffff
je 0x1000549b
cmp eax, ebx
je 0x1000549b
lea ecx, [ebp - 8]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000549b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x19
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1000548c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000548c
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x1000548b
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x19
push dword [ebp - 8]
call esi
test eax, eax
je 0x10005484
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
dec al
movzx eax, al
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
cmp eax, 0x1000
jne 0x10005449
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x10005484
cmp eax, 0x2000
jb 0x10005462
cmp eax, 0x3000
jae 0x10005469
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x10005484
cmp eax, 0x3000
jb 0x10005474
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
jmp 0x10005484
cmp eax, 0x4000
jb 0x10005484
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
jmp 0x1000549d
xor eax, eax
pop ebx
leave
ret
Function at 0x100063c0
Capabilities:
Enumerate processes

Disassembly:
push 0x254
mov eax, 0x100589bc
call fcn.10031c80
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push 2
mov dword [ebp - 0x260], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x25c], eax
jne 0x100063f4
xor eax, eax
jmp 0x10006545
push 0x228
lea eax, [ebp - 0x254]
push esi
push eax
call fcn.10031d30
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
mov dword [ebp - 0x258], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100063ed
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
jne 0x100064fe
call fcn.100080bb
cmp eax, 1
jne 0x100064d0
cmp dword [ebp - 0x250], 0xa
jbe 0x100064d0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.100011bf
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x250]
mov dword [ebp - 4], esi
call fcn.10005e01
add esp, 0xc
cmp eax, 1
je 0x100064a3
xor edi, edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x250]
call fcn.10005e01
add esp, 0xc
cmp eax, 1
je 0x100064a3
inc edi
cmp edi, 0xa
jl 0x1000647d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x100064af
lea eax, [ebp - 0x28]
push eax
push 0x104
lea eax, [ebp - 0x234]
push eax
call fcn.10005880
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000131a
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x258]
push eax
call fcn.10006316
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10006435
jmp 0x10006536
cmp dword [ebp - 0x250], edi
je 0x1000650e
cmp dword [ebp - 0x240], edi
jne 0x10006520
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x258]
push eax
call fcn.10006316
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100064fe
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.10031d03
ret

Function at 0x1000689b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x400
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x100068e0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x100068ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 8], 0
cmp dword [eax + 0x18], 8
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xc], 0x400
jb 0x10006923
mov eax, dword [eax + 4]
jmp 0x10006926
add eax, 4
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x10006962
cmp dword [esi + 0x18], 8
jb 0x1000694a
mov esi, dword [esi + 4]
jmp 0x1000694d
add esi, 4
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031c08
leave
ret

Function at 0x100069bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp + 0x78c], eax
mov eax, dword [ebp + 0x7a4]
push ebx
mov ebx, dword [ebp + 0x798]
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x7a0]
mov dword [ebp - 0x80], eax
xor eax, eax
push 0x7fe
push eax
mov dword [ebp - 0x78], eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
mov dword [ebp - 0x7c], 0x400
call fcn.10031d30
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x10006a21
mov eax, dword [esi + 4]
jmp 0x10006a24
lea eax, [esi + 4]
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [ebp + 0x7a8]
or ecx, 0x20019
push ecx
xor esi, esi
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x10006a7a
cmp dword [edi + 0x18], 8
jb 0x10006a51
mov edi, dword [edi + 4]
jmp 0x10006a54
add edi, 4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, esi
jne 0x10006a7a
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x74]
push eax
call fcn.10001664
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x78c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10031c08
add ebp, 0x790
leave
ret
Function at 0x10007fca
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0x144
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp + 0xc0], eax
push 0x24
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10031d30
push 0x11c
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.10031d30
add esp, 0x18
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10008031
cmp dword [ebp - 0x58], 4
jne 0x10008031
cmp dword [ebp - 0x54], 0xa
je 0x1000802c
cmp dword [ebp - 0x54], 0x5a
jne 0x10008031
xor eax, eax
inc eax
jmp 0x10008033
xor eax, eax
mov ecx, dword [ebp + 0xc0]
xor ecx, ebp
call fcn.10031c08
add ebp, 0xc4
leave
ret
Function at 0x10008a0d
Capabilities:
Terminate thread

Disassembly:
push esi
lea esi, [ecx + 0x310]
mov eax, dword [esi]
test eax, eax
je 0x10008a2e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
pop esi
ret
Function at 0x10019a1f
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x1005b93d
call fcn.10031c17
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x310], edi
mov dword [ebp - 4], edi
jne 0x10019a68
lea ebx, [esi + 0x300]
mov ecx, ebx
call fcn.1000b061
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.1000b2a6
push edi
push edi
push esi
push 0x100197df
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x310], eax
lea ecx, [ebp + 8]
call fcn.1000a6fe
call fcn.10031cef
ret 0x10
Function at 0x1001b3ef
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x1005ba47
call fcn.10031c80
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], eax
xor eax, eax
mov word [ebp - 0x20], si
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetServicesKbdclassEnum
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1001b4f7
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2c], esi
push 0xa
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
call fcn.100358b2
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call edi
cmp eax, esi
jne 0x1001b4ec
cmp dword [ebp - 0x34], 1
jne 0x1001b4dc
push dword [ebp - 0x30]
call fcn.10032182
push dword [ebp - 0x30]
mov ebx, eax
push esi
push ebx
call fcn.10031d30
add esp, 0x10
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call edi
cmp eax, esi
jne 0x1001b4ec
push 8
push str.HID_
push ebx
call fcn.100341e4
add esp, 0xc
test eax, eax
jne 0x1001b4c5
inc dword [ebp - 0x24]
jmp 0x1001b4dc
push 0xa
push str.ACPI_
push ebx
call fcn.100341e4
add esp, 0xc
test eax, eax
jne 0x1001b4dc
inc dword [ebp - 0x3c]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x100
jl 0x1001b450
cmp ebx, esi
je 0x1001b4f7
push ebx
call fcn.100320a5
pop ecx
cmp dword [ebp - 0x28], esi
je 0x1001b505
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp dword [ebp - 0x3c], esi
jle 0x1001b50d
inc edi
cmp dword [ebp - 0x24], esi
jle 0x1001b514
inc edi
inc edi
mov ecx, dword [ebp - 0x38]
call fcn.10001dc7
push edi
push str._02d
push dword [ebp - 0x38]
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], 1
call fcn.10007397
mov eax, dword [ebp - 0x38]
add esp, 0xc
call fcn.10031d03
ret