joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bca90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
add byte [eax], al
add byte [eax + 0x51], dl

Function at 0x4bca9d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
add byte [eax], al
add byte [eax + 0x51], dl
push ebx
push esi
push edi
mov eax, dword [0x408460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x4bcb63
mov dword [ebp + 0x28], edi
test eax, eax
je 0x4bcb30
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x4bcb1a
mov edi, eax
add ecx, 0x10
dec edx
jne 0x4bcb12
mov dword [ebp + 0x28], edi
mov eax, 0x406784
cmp edi, 0x100000
ja 0x4bcb33
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.004bd230
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x4bcb59
push eax
call fcn.004bd2c6
add esp, 4
mov dword [esi + 0x24], edi
push 0
call fcn.004bd2c6
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004bd230
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4bcbaf
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.004bd38d
jmp 0x4bcbb1
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4bcbe0
test eax, eax
je 0x4bcbdd
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.004bd32a
push ebx
call fcn.004bd2c6
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.004bc6d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x57a44d29
nop
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data_1
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x701257a0
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401ff0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x484c64]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x114]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x402030
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00447b4c
add esp, 0x10c
ret
mov al, byte [esi]
mov cl, byte [esi + 1]
mov byte [esp + 4], al
xor eax, eax
push 0x103
push eax
lea edx, [esp + 0x11]
push edx
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x14], al
call fcn.00447ba0
add esp, 0xc
push 0x104
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 8]
push 0x467d30
push edx
call fcn.0044803e
mov ecx, dword [esp + 0x114]
add esp, 8
neg eax
sbb eax, eax
pop esi
xor ecx, esp
add eax, 1
call fcn.00447b4c
add esp, 0x10c
ret

Function at 0x403550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403569
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4035a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4035a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4035a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403590
cmp esi, eax
jb 0x4035aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x484c64]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00447ba0
add esp, 0xc
push 0
lea ecx, [esp + 8]
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00447b4c
add esp, 0x108
ret
Function at 0x40a950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x484c64]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00447ba0
add esp, 0xc
push 0
lea ecx, [esp + 8]
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40a9d6
cmp eax, 0x104
ja 0x40a9d6
mov ecx, esi
push edi
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40a9b0
sub ecx, edi
cmp eax, ecx
pop edi
jae 0x40a9d6
mov eax, dword [esp + 0x114]
lea edx, [esp + 4]
push edx
push eax
push esi
call fcn.00448647
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x108]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop esi
xor ecx, esp
mov eax, edx
call fcn.00447b4c
add esp, 0x108
ret

Function at 0x40c220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x484c64]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00447ba0
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x40c260
mov eax, dword [esi + 4]
jmp 0x40c263
lea eax, [esi + 4]
push 0
lea ecx, [esp + 8]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c280
sub eax, edx
push eax
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00402c70
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00447b4c
add esp, 0x108
ret
Function at 0x40da20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x461211
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x484c64]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, dword [esp + 0x80]
xor ebx, ebx
mov dword [esp + 0x14], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x46853b
mov ecx, esi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x3c], esi
mov byte [esi + 4], bl
call fcn.00402c70
mov ebp, 1
cmp dword [0x498d1c], ebp
mov dword [esp + 0x78], ebx
mov dword [esp + 0x14], ebp
jle 0x40db92
mov eax, dword [0x498d20]
mov ecx, dword [eax + ebp*4]
mov eax, ecx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edi, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40dab0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402c70
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push 0x4697b8
push edx
mov dword [esp + 0x84], 1
call fcn.0040c380
push 0x4697b8
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x90], 2
call fcn.0040c440
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x84], 3
call fcn.004069d0
mov edi, 0x10
cmp dword [esp + 0x50], edi
jb 0x40db2b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042abf8
add esp, 4
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x40db4e
mov edx, dword [esp + 0x58]
push edx
call fcn.0042abf8
add esp, 4
cmp dword [esp + 0x30], edi
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x78], bl
jb 0x40db75
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042abf8
add esp, 4
push 1
push 0x4697dc
mov ecx, esi
call fcn.00406c00
add ebp, 1
cmp ebp, dword [0x498d1c]
jl 0x40da92
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4
Function at 0x416300
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.CSoftwareUIPlugIn::ProcessCommandLine__s__n
push 2
push 0x4866f8
call fcn.00401000
push str.CSoftwareUIPlugIn::ProcessCommandLine___n
push 4
push 0x4866f8
call fcn.00401000
add esp, 0x1c
mov eax, 1
ret

Function at 0x417cf0
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov esi, ecx
call fcn.00416300
test eax, eax
je 0x417d1f
mov ecx, esi
call fcn.00417630
test eax, eax
je 0x417d1f
push 0
mov esi, 1
call fcn.0043890d
add esp, 4
call fcn.00435a6e
mov eax, esi
pop esi
ret
xor esi, esi
push esi
call fcn.0043890d
add esp, 4
call fcn.00435a6e
mov eax, esi
pop esi
ret

Function at 0x418810
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push esi
mov esi, ecx
cmp dword [esi + 0xb0], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
je 0x4188ae
mov eax, dword [0x496840]
test eax, eax
je 0x4188ae
lea ecx, [esp + 4]
push ecx
call eax
push str.GetNativeSystemInfo:
push 0x10
push 0x4866f8
call fcn.00401000
movzx edx, word [esp + 0x10]
push edx
push str._____wProcessorArchitecture___d
push 0x10
push 0x4866f8
call fcn.00401000
mov eax, dword [esp + 0x38]
push eax
push str._____dwProcessorType__________d
push 0x10
push 0x4866f8
call fcn.00401000
movzx ecx, word [esp + 0x52]
push ecx
push str._____wProcessorRevision_______d
push 0x10
push 0x4866f8
call fcn.00401000
add esp, 0x3c
jmp 0x4188b9
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
mov dword [esi + 0xcc], eax
movzx eax, word [esp + 4]
test eax, eax
je 0x418939
cmp eax, 6
je 0x418916
cmp eax, 9
je 0x4188f3
push eax
push str.Unsupported_architecture_found___d_
push 0x400
push 0x4866f8
call fcn.00401000
add esp, 0x10
pop esi
add esp, 0x24
ret
push str.AMD64_architecture_found.
push 0x10
push 0x4866f8
mov dword [esi + 0xb4], 9
call fcn.00401000
add esp, 0xc
pop esi
add esp, 0x24
ret
push str.Intel64_architecture_found.
push 0x10
push 0x4866f8
mov dword [esi + 0xb4], 7
call fcn.00401000
add esp, 0xc
pop esi
add esp, 0x24
ret
push str.Intel32_architecture_found.
push 0x10
push 0x4866f8
mov dword [esi + 0xb4], 0
call fcn.00401000
add esp, 0xc
pop esi
add esp, 0x24
ret

Function at 0x418960
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push 0x100
lea eax, [esi + 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x100
add esi, 0x454
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop esi
ret
Function at 0x418990
Capabilities:
Get disk information

Disassembly:
sub esp, 0x28
mov eax, dword [0x484c64]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push edi
push str.CSysInfo::GetDrives__
push 2
push 0x4866f8
mov edi, ecx
call fcn.00401000
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 0xa8], ebx
jne 0x418a8f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
mov dword [edi + 0xa8], 1
mov esi, 0x63
mov dword [esp + 0x10], 0x18
xor eax, eax
push esi
push str._c:_
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov word [esp + 0x39], ax
mov byte [esp + 0x3b], al
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
lea eax, [esp + 0x2c]
push 0x10
push eax
mov byte [esp + 0x34], bl
mov byte [esp + 0x24], bl
call fcn.00447cf1
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call ebp
sub eax, 3
je 0x418a57
sub eax, 2
jne 0x418a7f
push esi
push 0x46c44c
lea edx, [esp + 0x1c]
push 0x10
push edx
call fcn.00447cf1
lea ecx, [edi + 0xd0]
jmp 0x418a6f
push esi
push 0x46c44c
lea edx, [esp + 0x1c]
push 0x10
push edx
call fcn.00447cf1
lea ecx, [edi + 0x110]
lea eax, [esp + 0x24]
push eax
push 0x40
push ecx
call fcn.004486ac
add esp, 0x1c
add esi, 1
sub dword [esp + 0x10], 1
jne 0x4189e3
pop esi
pop ebp
push str.CSysInfo::GetDrives__
push 4
push 0x4866f8
call fcn.00401000
mov ecx, dword [esp + 0x38]
add esp, 0xc
pop edi
pop ebx
xor ecx, esp
call fcn.00447b4c
add esp, 0x28
ret

Function at 0x418df0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0xac], 0
jne 0x418e25
lea eax, [esp + 4]
push eax
mov dword [esi + 0xac], 1
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xb8], ecx
mov eax, ecx
pop esi
add esp, 0x20
ret
mov eax, dword [esi + 0xb8]
pop esi
add esp, 0x20
ret
Function at 0x418e70
Capabilities:
Get disk size

Disassembly:
sub esp, 0x38
mov eax, dword [0x484c64]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0x44]
xor eax, eax
cmp esi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x418f9a
push 0x46853b
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov byte [esp + 0x3d], al
lea eax, [esp + 0x34]
push 0xa
push eax
mov byte [esp + 0x3c], bl
call fcn.00448647
push 1
push esi
lea ecx, [esp + 0x44]
push 0xa
push ecx
call fcn.00448c21
push 0x467d30
lea edx, [esp + 0x50]
push 0xa
push edx
call fcn.004486ac
lea eax, [esp + 0x58]
push eax
call fcn.00401ff0
add esp, 0x2c
test eax, eax
je 0x418f98
call fcn.0041bef1
test eax, eax
jne 0x418f46
call fcn.004298ba
mov eax, dword [0x496e74]
cmp eax, ebx
je 0x418f2b
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00447b4c
add esp, 0x38
ret 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
pop esi
xor edx, edx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00447b4c
add esp, 0x38
ret 4
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop esi
pop ebx
xor ecx, esp
xor edx, edx
call fcn.00447b4c
add esp, 0x38
ret 4
Function at 0x418fe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x68
mov eax, dword [0x484c64]
xor eax, esp
mov dword [esp + 0x64], eax
cmp dword [0x49683c], 0
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x419031
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x49683c]
cmp dword [edi], 0
je 0x419031
push str.IsWow64Process_returned_TRUE.
push 1
push 0x4866f8
call fcn.00401000
add esp, 0xc
mov ecx, esi
call fcn.00418810
push 0x9c
lea edi, [esi + 8]
push 0
push edi
call fcn.00447ba0
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
push edi
mov dword [edi], 0x9c
call ebx
mov ebp, eax
test ebp, ebp
jne 0x419062
push edi
mov dword [edi], 0x94
call ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
imul eax, eax, 0x64
mov edx, dword [esi + 0x14]
add eax, ecx
cmp eax, 0x1f6
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], edx
jne 0x419096
cmp byte [esi + 0xa2], 1
jne 0x419096
mov dword [esi + 0xc0], 0x1f5
mov eax, dword [esi + 0x18]
sub eax, 1
je 0x4191e3
sub eax, 1
jne 0x4191fb
test ebp, ebp
je 0x4190c1
movzx eax, word [esi + 0x9c]
mov dword [esi + 0xbc], eax
jmp 0x419176
lea ecx, [esi + 0x1c]
push ecx
call fcn.0044a770
push eax
call fcn.00447c2b
push 0
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0xbc], eax
call fcn.0041cccb
mov edx, dword [esp + 0x30]
add esp, 0x20
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push str.ProductType
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.0041cf12
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push str.WINNT
call edi
test eax, eax
jne 0x41914d
push str.Professional
lea edx, [esi + 0x1d0]
push 0x80
push edx
call fcn.00448647
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push str.SERVERNT
call edi
test eax, eax
jne 0x419176
push str.Server
lea ecx, [esi + 0x1d0]
push 0x80
push ecx
call fcn.00448647
add esp, 0xc
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor edi, edi
mov dword [esi + 0xc8], edi
mov dword [esp + 0x14], 0x58
mov dword [esp + 0x18], 0x56
mov dword [esp + 0x1c], 0x57
lea esp, [esp]
mov edx, dword [esp + edi*4 + 0x14]
push edx
call ebx
test eax, eax
jne 0x4191c6
add edi, 1
cmp edi, 3
jb 0x4191a0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00447b4c
add esp, 0x68
ret
mov eax, dword [esp + edi*4 + 0x14]
pop edi
mov dword [esi + 0xc8], eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00447b4c
add esp, 0x68
ret
lea ecx, [esi + 0x1c]
push ecx
push 0x80
add esi, 0x150
push esi
call fcn.00448647
add esp, 0xc
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00447b4c
add esp, 0x68
ret
Function at 0x41a9d2
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x484c64]
xor eax, ebp
mov dword [ebp + 0x120], eax
call fcn.0041bed5
test eax, eax
je 0x41a9fe
xor eax, eax
inc eax
jmp 0x41ab4a
lea eax, [ebp - 0x60]
push ebx
xor ebx, ebx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x7c]
push eax
push 8
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x68], bl
mov byte [ebp - 0x67], bl
mov byte [ebp - 0x66], bl
mov byte [ebp - 0x65], bl
mov byte [ebp - 0x64], bl
mov byte [ebp - 0x63], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41ab49
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
push ebx
push 2
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x41aa67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x41aa67
xor eax, eax
jmp 0x41ab48
push edi
push dword [ebp - 0x6c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
push edi
push 2
push dword [ebp - 0x7c]
call esi
test eax, eax
je 0x41ab5f
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41ab5f
cmp dword [edi], ebx
mov dword [ebp - 0x74], ebx
jbe 0x41ab2f
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x41ab22
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xa0]
push eax
mov dword [ebp - 0x6c], 0x80
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x41ab1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x534
jne 0x41ab5f
push str.NONE_MAPPED
lea eax, [ebp + 0xa0]
push 0x80
push eax
call fcn.00448647
add esp, 0xc
mov dword [ebp - 0x78], 1
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
add esi, 8
cmp eax, dword [edi]
jb 0x41aabb
cmp dword [ebp - 0x70], ebx
je 0x41ab3d
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.00447b4c
add ebp, 0x124
leave
ret
xor eax, eax
jmp 0x41ab47