joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d710
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7335
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], edx
mov esi, ecx
push 0x44
push 0
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0x44
mov dword [ebp - 0x224], 0x104
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x45d8d3
push 0xc
call fcn.004a9ec5
mov edi, eax
add esp, 4
mov dword [ebp - 0x230], edi
mov dword [ebp - 4], 0
mov dword [edi], vtable.StartupAreas::IFreeProcPtr.0
mov byte [ebp - 4], 1
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], vtable.StartupAreas::FreeProcPtr_void_____stdcall___void____void__.0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x234], edi
mov dword [ebp - 4], 2
cmp dword [esi + 0x14], 7
jbe 0x45d7cf
mov esi, dword [esi]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x45d8bd
sub esp, 8
lea ecx, [ebp - 0x248]
call fcn.0045f4d0
lea ecx, [ebp - 0x220]
push ecx
push ebx
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x45d837
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x45d8d3
mov esi, dword [ebp - 0x220]
push 0xc
call fcn.004a9ec5
mov ebx, eax
add esp, 4
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 3
mov dword [ebx], vtable.StartupAreas::IFreeProcPtr.0
mov byte [ebp - 4], 4
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], vtable.StartupAreas::FreeProcPtr_void_____stdcall___void____unsigned_short_int__.0
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x220]
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45d887
sub edx, ecx
mov ecx, dword [ebp - 0x22c]
sar edx, 1
push edx
push esi
call fcn.00460c80
mov byte [ebp - 0x219], 1
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [edi]
call dword [edx]
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx + 4]
mov al, byte [ebp - 0x219]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret
Function at 0x465c90
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8044
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00461190
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [ebp - 4], 1
add esi, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.0046a940
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
add esi, 8
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.0046a940
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x10]
add esi, 0xc
mov dword [ebp - 0x20], esi
mov ecx, dword [edi + 0xc]
sub ecx, 0x10
call fcn.0046a940
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x10]
add esi, 0x10
mov dword [ebp - 0x24], esi
mov ecx, dword [edi + 0x10]
sub ecx, 0x10
call fcn.0046a940
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov al, byte [edi + 0x14]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x14], al
mov eax, dword [edi + 0x18]
mov dword [ecx + 0x18], eax
movups xmm0, xmmword [edi + 0x20]
mov eax, dword [ebp + 8]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [ecx + 0x30], xmm0
movups xmm0, xmmword [edi + 0x40]
lea edi, [ecx + 0x50]
movups xmmword [ecx + 0x40], xmm0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [eax + 0x54]
sub esi, dword [eax + 0x50]
sar esi, 2
test esi, esi
je 0x465e30
cmp esi, 0x3fffffff
ja 0x465e4c
shl esi, 2
cmp esi, 0x1000
jb 0x465ddf
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x465e51
push eax
call fcn.004a9ec5
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x465e56
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x465df0
test esi, esi
je 0x465dee
push esi
call fcn.004a9ec5
add esp, 4
jmp 0x465df0
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
add eax, esi
mov dword [edi + 8], eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 8]
mov edi, dword [edi]
mov esi, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
sub esi, eax
push esi
push eax
push edi
call fcn.004ac080
mov ecx, dword [ebp - 0x10]
add esp, 0xc
sar esi, 2
mov dword [ebp - 0x14], 0
lea eax, [edi + esi*4]
mov dword [ecx + 0x54], eax
mov byte [ebp - 4], 9
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00463eb0
call fcn.004574b0
call fcn.004b35c4
int3
Function at 0x468310
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x694
mov eax, dword [0x4ff080]
xor eax, esp
mov dword [esp + 0x690], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
push 0x511d08
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
push ecx
lea ecx, [esp + 0x294]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], eax
call fcn.0048c600
mov ecx, 0x104
lea eax, [esp + 0x288]
nop dword [eax]
cmp word [eax], 0
je 0x46838e
add eax, 2
sub ecx, 1
jne 0x468380
mov eax, 0x104
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4683be
push ecx
push str..Q
push ecx
mov edx, 0x104
lea ecx, [esp + 0x294]
sub edx, esi
lea ecx, [ecx + esi*2]
call fcn.0048c600
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x468483
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, 0x104
lea eax, [esp + 0x64]
nop dword [eax + eax]
cmp word [eax], 0
je 0x4683fe
add eax, 2
sub esi, 1
jne 0x4683f0
test esi, esi
je 0x46846c
mov eax, 0x104
sub eax, esi
add eax, eax
neg esi
sbb esi, esi
and esi, eax
lea eax, [esp + 0x66]
and esi, 0xfffffffe
sub esi, 8
push esi
push eax
lea eax, [esp + 0x498]
push eax
call fcn.004ac080
add esp, 0xc
cmp esi, 0x208
jae 0x46849c
xor eax, eax
mov word [esp + esi + 0x490], ax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x494]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x46846c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00468000
add esp, 8
test al, al
je 0x468483
lea eax, [esp + 0x38]
push eax
push edi
call ebx
test eax, eax
jne 0x4683e2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x69c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret 0x14
call fcn.004a9dea
int3
Function at 0x46c950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c923c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00461190
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [ebp - 4], 1
add esi, 4
mov dword [ebp + 8], esi
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.0046a940
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
add esi, 8
mov dword [ebp - 0x18], esi
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.0046a940
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x10]
add esi, 0xc
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0xc]
sub ecx, 0x10
call fcn.0046a940
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x10]
add esi, 0x10
mov dword [ebp - 0x20], esi
mov ecx, dword [edi + 0x10]
sub ecx, 0x10
call fcn.0046a940
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov al, byte [edi + 0x14]
mov esi, dword [ebp - 0x10]
mov byte [esi + 0x14], al
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x30], xmm0
movups xmm0, xmmword [edi + 0x40]
movups xmmword [esi + 0x40], xmm0
mov edx, dword [edi + 0x58]
mov ecx, dword [edi + 0x54]
mov eax, dword [edi + 0x50]
mov dword [edi + 0x58], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], edx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46df70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ebx, ecx
test edi, edi
jl 0x46dfc1
mov esi, dword [ebp + 8]
jg 0x46df97
test esi, esi
je 0x46dfc1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
nop
mov eax, dword [ebp + 0x10]
add eax, ecx
and eax, 0xf
mov al, byte [eax + 0x512090]
xor byte [ecx + ebx], al
add ecx, 1
adc edx, 0
cmp edx, edi
jl 0x46dfa0
jg 0x46dfc1
cmp ecx, esi
jb 0x46dfa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46dfd0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [0x4ff080]
xor eax, esp
mov dword [esp + 0x64], eax
xorps xmm0, xmm0
mov dword [esp], 0x67452301
push 0x21
mov edx, str.2d5704bf1e2641ea8f86477905614a0c
movq qword [esp + 0x14], xmm0
lea ecx, [esp + 4]
mov dword [esp + 8], 0xefcdab89
mov dword [esp + 0xc], 0x98badcfe
mov dword [esp + 0x10], 0x10325476
call fcn.004a3fd0
mov edx, dword [esp + 0x14]
mov ecx, 0x78
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x5c], edx
shr edx, 3
mov dword [esp + 0x60], eax
and edx, 0x3f
sub ecx, edx
mov eax, 0x38
sub eax, edx
cmp edx, 0x38
mov edx, 0x4ffba0
cmovae eax, ecx
lea ecx, [esp]
push eax
call fcn.004a3fd0
add esp, 4
lea edx, [esp + 0x5c]
lea ecx, [esp]
push 8
call fcn.004a3fd0
movups xmm0, xmmword [esp + 4]
mov ecx, dword [esp + 0x68]
add esp, 4
xor ecx, esp
movups xmmword [0x512090], xmm0
call fcn.004a9b96
mov esp, ebp
pop ebp
ret
Function at 0x471b80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca01b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x814], 0
call fcn.00471d40
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x471be0
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00460fd0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x814]
push ecx
push 0x20019
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x471ced
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x818]
push eax
push 0
push 0
push 0
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x818], esi
jbe 0x471ce1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
nop dword [eax + eax]
push 0x400
lea eax, [ebp - 0x810]
push eax
push esi
push dword [ebp - 0x814]
call ebx
test eax, eax
jne 0x471cd4
push ecx
mov edi, esp
mov dword [ebp - 0x81c], esp
mov dword [ebp - 0x820], edi
call fcn.00456f30
test eax, eax
je 0x471d2b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x810]
push eax
mov ecx, edi
call fcn.00460f10
test al, al
jne 0x471cbe
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471ca0
sub eax, edx
mov ecx, edi
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00461270
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x814]
call fcn.00471b80
add esp, 4
inc esi
cmp esi, dword [ebp - 0x818]
jb 0x471c40
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471d0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c80
int3
Function at 0x474aa0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca976
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x4c], esi
mov ebx, ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], 0
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x474bbd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 2
push esi
lea ecx, [ebp - 0x44]
call fcn.00460390
mov byte [ebp - 4], 3
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esi, [eax + 2]
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.0047ac70
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push esi
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x474b6e
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00460890
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00460bf0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00460bf0
mov dword [ebp - 4], 0
jmp 0x474b9f
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c80
int3
Function at 0x475190
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caad5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edx
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x47533b
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.0047a930
mov byte [ebp - 4], 1
push dword [ebp - 0x48]
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47532f
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
call fcn.00470c20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
mov esi, dword [esi]
mov dword [ebp - 0x24], esi
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
cmp esi, eax
je 0x475323
xor edi, edi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
sar eax, 2
cmp edi, eax
jae 0x4752e9
lea ecx, [ebp - 0x20]
call fcn.00460ac0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + edi*4]
push dword [esi + 0x10]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x20]
push eax
call fcn.0047ba70
add esp, 0x14
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x4752d7
cmp dword [ebp - 0x18], 0
je 0x4752d7
cmp dword [ebp - 0x14], 0
jbe 0x4752d7
lea ecx, [ebp - 0x1c]
call fcn.00460ac0
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.00461460
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x14]
call fcn.0047ab80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00460950
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00460950
inc edi
jmp 0x475234
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x475317
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x47530a
cmp esi, dword [eax + 8]
jne 0x47530a
mov esi, eax
mov dword [ebp - 0x24], esi
jmp 0x4752f5
mov esi, eax
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x28]
jmp 0x475225
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x47530c
jmp 0x475317
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00468620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0047b880
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478e00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbbbe
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 0
sub esp, 8
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], 1
call fcn.00479170
push 0
push 0
mov eax, dword [eax + 8]
call eax
mov edi, eax
test edi, edi
je 0x478fda
push 0
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0047ac70
mov dword [ebp - 4], 1
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x34]
cmova esi, dword [ebp - 0x28]
sub esp, 8
call fcn.00479170
push esi
push edi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x478fce
cmp dword [ebp - 0x14], 7
lea esi, [ebp - 0x28]
cmova esi, dword [ebp - 0x28]
cmp word [esi], 0
je 0x478fce
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x478ff8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push esi
call fcn.00460f10
test al, al
jne 0x478f1f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478f06
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00461270
mov byte [ebp - 4], 3
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
je 0x478f70
mov dword [ebp - 0x44], edi
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov dword [ebp - 0x48], edi
push eax
call fcn.00461190
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
mov dword [edi + 4], eax
mov byte [ebp - 4], 4
add dword [ebx + 4], 8
jmp 0x478f7c
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
push edi
call fcn.0047c020
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478fa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478fb0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x478ed0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00460bf0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c80
int3
Function at 0x47d5c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc328
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [edi], vtable.CAttrBase.0
mov dword [edi + 4], esi
mov dword [edi + 0x18], edx
mov eax, dword [edx + 8]
mov ax, word [eax + 8]
mov word [edi + 8], ax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x20]
mov dword [edi + 0x14], eax
mov dword [ebp - 4], 0
mov dword [edi], vtable.CAttrNonResident.0
mov dword [edi + 0x20], vtable.CSList_struct_tagDataRun_Entry_.0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 1
push dword [edi + 0xc]
mov dword [edi + 0x1c], esi
call fcn.004a9ba9
add esp, 4
mov dword [edi + 0x38], eax
mov ecx, edi
call fcn.0047d7b0
mov dword [edi + 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8