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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ffb00
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4fe770]
call fcn.004ff3bc
mov dword [ebp - 0x10], eax
cmp dword [0x567004], 0
je 0x4ffa31
cmp dword [0x567008], 0
je 0x4ffa31
xor ecx, ecx
mov edx, dword [0x567008]
mov eax, dword [0x567004]
call fcn.004feb2c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4ffa31
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.004c6b50
mov eax, dword [ebp - 0x10]
mov dl, byte [ebp - 9]
mov byte [eax + 0x78], dl
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00500214
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.004c53dc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004ff474
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004683a0
xor eax, eax
push ebp
push 0x4ffade
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.004c0b38
test al, al
jne 0x4ffab4
mov eax, dword [ebp - 0x18]
call fcn.004c05a4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x18]
call fcn.004c06bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ffae5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004683a8
ret
Function at 0x4ffb0c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ffc0b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x4ffbf1
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x78], 1
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00500214
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004c53dc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004ff474
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004683a0
xor eax, eax
push ebp
push 0x4ffbe4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.004c0b38
test al, al
jne 0x4ffbba
mov eax, dword [ebp - 0x14]
call fcn.004c05a4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x14]
call fcn.004c06bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ffbeb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004683a8
ret
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ffc12
lea eax, [ebp - 0x18]
call fcn.0040539c
ret

Function at 0x500278
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x5002bb
push dword [ebp - 0x20]
call sub.wsock32.dll_inet_ntoa
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0040dcd8
jmp 0x5002c8
mov eax, dword [ebp - 0xc]
mov edx, 0x5002d4
call fcn.004053f0
mov esp, ebp
pop ebp
ret

Function at 0x5002dc
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x80
lea eax, [ebp - 0x9d]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x9d]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x500320
mov eax, dword [ebp - 8]
mov edx, 0x50034c
call fcn.004053f0
jmp 0x50033f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00405594
mov esp, ebp
pop ebp
ret
Function at 0x500b38
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x500c50
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x20
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c9]
push eax
call sub.wsock32.dll_accept
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004ff9c4
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 4]
push eax
push 1
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 8], 0x2000
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 8], 0x2000
push 4
lea eax, [ebp - 8]
push eax
push 0x1002
push 0xffff
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_setsockopt
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c9], 0
jge 0x500c34
lea eax, [ebp - 0x1c]
push eax
call sub.wsock32.dll_WSAGetLastError
mov ecx, eax
mov edx, 0xa
mov eax, dword [ebp - 0xc]
call fcn.00500cf0
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x40b6f8]
call fcn.004110b0
call fcn.00404cf0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500c57
lea eax, [ebp - 0x1c]
call fcn.0040539c
ret

Function at 0x500c60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004ff944
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x500ceb
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004ffc1c
push 0
push 0x400
mov eax, dword [ebp - 8]
call fcn.004ff6ec
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_WSAAsyncSelect
call sub.wsock32.dll_WSAIsBlocking
test eax, eax
je 0x500cb2
call sub.wsock32.dll_WSACancelBlockingCall
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_shutdown
mov word [ebp - 4], 1
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_setsockopt
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_closesocket
mov esp, ebp
pop ebp
ret
Function at 0x5027ac
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x50285b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, esi
mov eax, ebx
call fcn.00502428
cmp dword [esi], 0
jne 0x502845
inc ebx
cmp ebx, 4
jne 0x5027cb
lea eax, [ebp - 4]
mov edx, 0xc8
call fcn.00405a04
push 0xc8
mov eax, dword [ebp - 4]
call fcn.00405878
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 4]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004058d8
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405878
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov eax, esi
call fcn.0040c964
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502862
lea eax, [ebp - 4]
call fcn.0040539c
ret

Function at 0x50691c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [0x572db4], eax
xor eax, eax
push ebp
push 0x50698b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
call sub.user32.dll_GetProcessWindowStation
mov dword [0x572db4], eax
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, dword [0x572db4]
push eax
call sub.user32.dll_GetUserObjectInformationA
test eax, eax
je 0x50696a
test byte [ebp - 8], 1
jne 0x506981
push 0
push 0x506878
call sub.user32.dll_EnumWindowStationsA
test eax, eax
je 0x506981
xor eax, eax
mov dword [0x572db4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50699c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50cbf8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50ce0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050ce9c
xor eax, eax
push ebp
push 0x50cdd9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x50ce24
call fcn.004056c4
xor eax, eax
push ebp
push 0x50cd79
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x28]
call fcn.00410874
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea eax, [ebp - 0x24]
push eax
push 0x1388
mov eax, dword [ebp - 0x1c]
call fcn.00405878
mov ebx, eax
push ebx
call sub.kernel32.dll_WaitNamedPipeA
cmp eax, 1
sbb eax, eax
neg eax
mov edx, 0x50ce30
pop ecx
call fcn.00506b88
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x50cd12
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00410874
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea ecx, [ebp - 0x24]
cmp ebx, 0xe7
setne al
mov edx, 0x50ce4c
call fcn.00506b88
inc esi
cmp esi, 5
setge al
mov edx, 0x50ce64
call fcn.00506c3c
jmp 0x50cc64
push 0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x30]
call fcn.00410874
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
neg eax
mov edx, 0x50ce7c
pop ecx
call fcn.00506b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50cd80
cmp dword [ebp - 0x14], 0
je 0x50cd78
cmp dword [ebp - 0x14], 0xffffffff
je 0x50cd78
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x50d44c
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov dword [esp], 0x94
xor ebx, ebx
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x50d478
mov eax, dword [esp + 4]
cmp dword [esp + 0x10], 2
jne 0x50d478
cmp eax, 6
jl 0x50d478
mov bl, 1
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x50f148
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x110]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x104
push 0
push ecx
call fcn.0050d758
add esp, 0xc
push 0x104
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ebx, eax
push 0x104
push 0
lea eax, [ebp - 0x214]
push eax
call fcn.0050d758
add esp, 0xc
test ebx, ebx
je 0x50f1c4
lea edx, [ebp - 0x110]
push edx
push 0x569293
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call fcn.0050f7a0
add esp, 0x10
test eax, eax
jge 0x50f1c8
xor eax, eax
jmp 0x50f1cd
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x50f349
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x214]
push ecx
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
push ebx
call fcn.0050d7a4
mov esi, eax
test esi, esi
jne 0x50f211
jmp 0x50f203
push 0xe
call sub.kernel32.dll_SetLastError_1
xor eax, eax
jmp 0x50f359
test esi, esi
je 0x50f229
push esi
push ebx
push 0
lea edx, [ebp - 0x214]
push edx
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x50f22d
xor ecx, ecx
jmp 0x50f232
mov ecx, 1
mov ebx, ecx
test ebx, ebx
je 0x50f33f
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push edx
push 0x5692a3
push esi
call sub.version.dll_VerQueryValueA
mov ebx, eax
xor edx, edx
xor eax, eax
mov ecx, dword [ebp + 8]
dec ecx
je 0x50f266
dec ecx
je 0x50f26f
dec ecx
je 0x50f27b
dec ecx
je 0x50f284
jmp 0x50f290
mov edx, 5
xor eax, eax
jmp 0x50f292
mov edx, 5
mov eax, 1
jmp 0x50f292
mov edx, 6
xor eax, eax
jmp 0x50f292
mov edx, 6
mov eax, 1
jmp 0x50f292
xor ebx, ebx
cmp dword [ebp + 0xc], 0
je 0x50f2f7
test ebx, ebx
je 0x50f2b1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
shr ecx, 0x10
and cx, 0xffff
movzx ecx, cx
cmp edx, ecx
jbe 0x50f2b5
xor ecx, ecx
jmp 0x50f2ba
mov ecx, 1
mov ebx, ecx
cmp eax, 0xffffffff
je 0x50f33f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
shr ecx, 0x10
and cx, 0xffff
movzx ecx, cx
cmp edx, ecx
jne 0x50f33f
test ebx, ebx
je 0x50f2ea
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 8]
and edx, 0xffff
cmp eax, edx
jbe 0x50f2ee
xor eax, eax
jmp 0x50f2f3
mov eax, 1
mov ebx, eax
jmp 0x50f33f
test ebx, ebx
je 0x50f310
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
shr ecx, 0x10
and cx, 0xffff
movzx ecx, cx
cmp edx, ecx
je 0x50f314
xor edx, edx
jmp 0x50f319
mov edx, 1
mov ebx, edx
cmp eax, 0xffffffff
je 0x50f33f
test ebx, ebx
je 0x50f334
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
and ecx, 0xffff
cmp eax, ecx
je 0x50f338
xor eax, eax
jmp 0x50f33d
mov eax, 1
mov ebx, eax
test esi, esi
je 0x50f349
push esi
call fcn.0050d7b8
test ebx, ebx
jne 0x50f357
push 0x47e
call sub.kernel32.dll_SetLastError_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f418
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], eax
test edi, edi
jne 0x50f43b
xor eax, eax
jmp 0x50f564
cmp dword [ebp + 0xc], 0
jne 0x50f45b
lea edx, [ebp - 4]
push edx
push 1
push 0x20008
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x50f47a
lea ecx, [ebp - 4]
push ecx
push 0x20008
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x50f47a
xor eax, eax
jmp 0x50f564
lea edx, [ebp - 8]
push edx
push 0
push 0
push 3
mov ecx, dword [ebp - 4]
push ecx
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x50f4ab
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x50f4ab
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
jmp 0x50f564
mov edx, dword [ebp - 8]
push edx
call fcn.0050d7a4
mov ebx, eax
test ebx, ebx
jne 0x50f4e3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
jne 0x50f4e3
jmp 0x50f4d5
push 0xe
call sub.kernel32.dll_SetLastError_1
xor eax, eax
jmp 0x50f564
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 8]
push ecx
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x50f50e
mov edx, dword [ebp - 4]
push edx
call sub.kernel32.dll_CloseHandle_1
push ebx
call fcn.0050d7b8
xor eax, eax
jmp 0x50f564
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push edi
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x50f553
xor edi, edi
jmp 0x50f54b
mov edx, edi
lea eax, [ebp - 0x10]
shl edx, 2
push 8
push eax
lea edx, [edx + edx*2]
add edx, ebx
add edx, 4
push edx
call fcn.0050d784
add esp, 0xc
test eax, eax
sete cl
and ecx, 1
inc edi
mov esi, ecx
test esi, esi
jne 0x50f553
cmp edi, dword [ebx]
jb 0x50f524
push ebx
call fcn.0050d7b8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f56c
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 2
cmp ebx, 0xffffffff
je 0x50f5a1
call fcn.0050d7d0
cmp ebx, eax
je 0x50f5a1
mov eax, 1
jmp 0x50f797
test edi, edi
jne 0x50f5ae
xor eax, eax
jmp 0x50f797
mov esi, edi
mov esi, dword [esi]
push 0
call sub.kernel32.dll_SetLastError_1
lea eax, [ebp - 4]
push eax
push 0x10103
push 0
push 0x567902
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x50f5f5
lea eax, [ebp - 4]
push eax
push 0x103
push 0
push 0x567902
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
cmp ebx, 5
jne 0x50f608
push 5
call sub.kernel32.dll_SetLastError_1
xor eax, eax
jmp 0x50f797
test ebx, ebx
jne 0x50f784
xor edx, edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 4
push ecx
push eax
lea edx, [ebp - 8]
push edx
push 0
push 0x5678ec
mov ecx, dword [ebp - 4]
push ecx
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
cmp ebx, 2
jne 0x50f64d
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x50f67e
test ebx, ebx
je 0x50f67e
mov edx, dword [ebp - 4]
push edx
call sub.advapi32.dll_RegCloseKey_1
call sub.kernel32.dll_GetLastError_1
push eax
push 0x569360
call fcn.0050f140
add esp, 8
push 0x4ec
call sub.kernel32.dll_SetLastError_1
xor eax, eax
jmp 0x50f797
cmp esi, 0xffffffff
je 0x50f71a
cmp esi, 1
je 0x50f71a
cmp dword [ebp - 0xc], 1
jne 0x50f71a
xor ebx, ebx
test esi, esi
jne 0x50f6c7
push 0x5678ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
je 0x50f6c7
call sub.kernel32.dll_GetLastError_1
push eax
push 0x569391
call fcn.0050f140
add esp, 8
test ebx, ebx
je 0x50f779
push 4
push edi
push 4
push 0
push 0x5678ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x50f779
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
call sub.kernel32.dll_GetLastError_1
push eax
push 0x5693c1
call fcn.0050f140
add esp, 8
push 0x4ec
call sub.kernel32.dll_SetLastError_1
xor eax, eax
jmp 0x50f797
cmp esi, 0xffffffff
jne 0x50f779
cmp dword [ebp - 0xc], 1
je 0x50f779
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
mov dword [ebp - 0x14], 1
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push 0x5678ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x50f779
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
call sub.kernel32.dll_GetLastError_1
push eax
push 0x5693f1
call fcn.0050f140
add esp, 8
push 0x18000065
call sub.kernel32.dll_SetLastError_1
xor eax, eax
jmp 0x50f797
mov edx, dword [ebp - 4]
push edx
call sub.advapi32.dll_RegCloseKey_1
jmp 0x50f792
push 0x4ec
call sub.kernel32.dll_SetLastError_1
xor eax, eax
jmp 0x50f797
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50fe80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50fff1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50ffcc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00405584
lea eax, [ebp - 0x118]
mov edx, 0x510008
call fcn.00405680
mov eax, dword [ebp - 0x118]
call fcn.00405878
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x50ff3e
lea eax, [ebp - 0x111]
call fcn.0040daa4
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.0040548c
jmp 0x50ff45
mov eax, esi
call fcn.0040539c
cmp bl, 0x61
jae 0x50ff66
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.00411f84
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004053f0
jmp 0x50ff80
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.00411ef8
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004053f0
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x510014
call fcn.0040e1f0
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004053f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ffd3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x5100fc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x51028d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41d3ac]
call fcn.0040441c
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 9], eax
xor esi, esi
mov eax, esi
cmp eax, 0x1f
ja 0x51014b
bt dword [ebp - 9], eax
jae 0x510268
mov ebx, esi
add bl, 0x61
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00405584
lea eax, [ebp - 0x10]
mov edx, 0x5102a8
call fcn.00405680
mov eax, dword [ebp - 0x10]
call fcn.00405878
push eax
call sub.kernel32.dll_GetDriveTypeA
mov byte [ebp - 5], al
mov dl, 1
mov eax, dword [0x50fddc]
call fcn.0040441c
mov edi, eax
mov eax, ebx
call fcn.0040341c
mov byte [edi + 4], al
mov al, byte [ebp - 5]
mov byte [edi + 5], al
xor eax, eax
mov al, byte [ebp - 5]
cmp eax, 6
ja case.0x5101aa.0
jmp dword [eax*4 + 0x5101b1]
lea eax, [edi + 8]
call fcn.0040539c
jmp case.0x5101aa.0
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0050fe80
mov edx, dword [ebp - 0x14]
lea eax, [edi + 8]
call fcn.004053f0
jmp case.0x5101aa.0
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0051001c
mov edx, dword [ebp - 0x18]
lea eax, [edi + 8]
call fcn.004053f0
jmp case.0x5101aa.0
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0050fe80
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 8]
call fcn.004053f0
jmp case.0x5101aa.0
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0050fe80
mov edx, dword [ebp - 0x20]
lea eax, [edi + 8]
call fcn.004053f0
lea eax, [ebp - 0x24]
push eax
mov al, byte [edi + 4]
mov byte [ebp - 0x34], al
mov byte [ebp - 0x30], 2
mov eax, dword [edi + 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x5102b4
call fcn.0040e1f0
mov edx, dword [ebp - 0x24]
mov ecx, edi
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
inc esi
cmp esi, 0x1a
jne 0x510140
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510294
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.004053c0
ret