joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4894f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df74d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x40]
xor bl, bl
push eax
call fcn.00486d10
add esp, 4
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
jb 0x48953b
mov eax, dword [ebp - 0x40]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x48954a
mov bl, 1
lea eax, [ebp - 0x28]
xor bh, bh
push eax
call fcn.00486b40
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x489564
mov eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x48956d
mov bh, 1
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall360se6
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
and eax, 1
test bh, bh
je 0x4895a3
test bl, bl
jne 0x4895a7
lea esi, [eax + 2]
jmp 0x4895b0
test bl, bl
je 0x4895ae
mov esi, 1
jmp 0x4895b0
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4895e6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4895dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48964d
push edx
push ecx
call fcn.004a7d37
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x489630
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489626
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48964d
push edx
push ecx
call fcn.004a7d37
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
call fcn.004af45f
int3
Function at 0x48acd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048a7c0
add esp, 0x14
test al, al
je 0x48acf2
mov al, 1
pop ebp
ret
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg al
pop ebp
ret
Function at 0x48b570
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x48b5e3
push esi
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x48b592
push 9
push ebx
call esi
push dword [ebp + 0xc]
push ebx
call esi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call esi
pop esi
pop ebx
pop ebp
ret
Function at 0x48bff0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfb5b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x520404]
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, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.004ac800
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
mov dword [ebp - 0x224], esi
test esi, esi
je 0x48c175
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.0047a9a0
mov eax, dword [ebx]
lea edi, [ebp - 0x218]
add esp, 0xc
mov dword [ebx + 4], eax
cmp word [ebp - 0x218], 0
je 0x48c170
mov eax, edi
lea ecx, [ebp - 0x218]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x48c170
call fcn.004782d0
test eax, eax
je 0x48c191
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.00477ee0
test al, al
jne 0x48c0f1
test edi, edi
jne 0x48c0d0
xor eax, eax
jmp 0x48c0e4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48c0d5
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00478540
mov eax, dword [ebx + 4]
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x220], eax
cmp eax, dword [ebx + 8]
je 0x48c129
lea eax, [esi - 0x10]
push eax
call fcn.00477fc0
mov ecx, dword [ebp - 0x220]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [ebx + 4], 4
jmp 0x48c138
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov ecx, ebx
call fcn.004823b0
mov eax, dword [esi - 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edi, [edi + eax*2]
or eax, 0xffffffff
add edi, 2
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48c160
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [edi], 0
mov esi, dword [ebp - 0x224]
jne 0x48c080
mov eax, 1
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.004a7f4e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00477ec0
int3
Function at 0x48c1a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfb9d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x520404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004782d0
mov ecx, eax
test ecx, ecx
je 0x48c307
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x48c2c3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48c2c3
lea eax, [ebp - 0x48]
xor esi, esi
push eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], esi
xor ebx, ebx
push dword [eax]
call fcn.0048c320
add esp, 8
test eax, eax
je 0x48c23e
mov eax, dword [ebp - 0x40]
mov esi, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
mov edi, eax
shr esi, 0x10
shr edi, 0x10
movzx ebx, ax
push ebx
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push str._d._d._d._d
push eax
call fcn.00478110
mov eax, dword [ebp + 0x10]
add esp, 0x18
test eax, eax
je 0x48c25e
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x48c26a
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x48c273
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x48c27c
mov dword [eax], ebx
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00477fc0
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48c2f3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0xfffffff0
push esi
call fcn.00477fc0
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48c2f3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00477ec0
int3
Function at 0x48c650
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x48c72a
push 0x4e6cb8
push eax
call fcn.004acfa0
mov ecx, eax
add esp, 8
mov eax, dword [esi]
test ecx, ecx
je 0x48c685
sub ecx, eax
sar ecx, 1
cmp ecx, 1
je 0x48c6ae
cmp dword [eax - 0xc], 0
jl 0x48c72a
push 0x4e6cb0
push eax
call fcn.004acfa0
add esp, 8
test eax, eax
je 0x48c72a
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
jne 0x48c72a
xor eax, eax
mov ecx, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 3
push eax
call fcn.0047fe00
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 4]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x48c6f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x48c72a
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x48c70e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x48c720
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48c890
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfc40
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x48c908
push 0x4e6cb0
push eax
call fcn.004acfa0
mov ecx, eax
add esp, 8
mov eax, dword [esi]
test ecx, ecx
je 0x48c8e7
sub ecx, eax
sar ecx, 1
cmp ecx, 1
je 0x48c90f
cmp dword [eax - 0xc], 0
jl 0x48c908
push 0x4e6cb8
push eax
call fcn.004acfa0
add esp, 8
test eax, eax
je 0x48c908
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
je 0x48c90f
xor eax, eax
jmp 0x48ca1c
push 2
lea eax, [ebp - 0x824]
mov ecx, esi
push eax
call fcn.0047fe00
lea eax, [ebp - 0x824]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x820]
push str.._
push eax
call fcn.0048b8d0
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], 0
push 0
push eax
call fcn.004ac800
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x20000
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48c9d6
push 0
lea eax, [ebp - 0x828]
mov dword [ebp - 0x81c], 0
push eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0
push eax
push 0xc
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x80c], 0x800
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x48ca37
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [ebp - 0x820]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48c9f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x824]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x48ca1a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x7f4]
xor esi, esi
cmp eax, 4
je 0x48ca49
cmp eax, 7
jne 0x48ca4e
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48c9d8
Function at 0x48d510
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfda0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x520404]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x48d63a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d63a
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x48d63a
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004ac800
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x48d628
mov ecx, edi
call fcn.0048dbb0
nop
push dword [ebp - 0x234]
lea eax, [ebp - 0x240]
push eax
call fcn.0048d660
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.0048c850
add esp, 0x10
test eax, eax
je 0x48d5f2
lea eax, [ebp - 0x234]
mov ecx, edi
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0048d3d0
mov edx, dword [ebp - 0x240]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d617
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48d5b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, dword [edi + 4]
sbb eax, eax
neg eax
jmp 0x48d63c
xor eax, eax
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.004a7f4e
mov esp, ebp
pop ebp
ret
Function at 0x48db30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x48dba5
push edi
push dword [esi + 0x10]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x48db64
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x48db8a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x48db86
cmp esi, dword [eax + 8]
jne 0x48db86
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x48db76
mov esi, eax
jmp 0x48dba0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x48dba0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x48db94
cmp esi, dword [ebx]
jne 0x48db41
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x48e070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfeec
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x21c], edi
call fcn.004ac800
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.004782d0
mov ecx, eax
test esi, esi
je 0x48e215
test ecx, ecx
je 0x48e28c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
test esi, 0xffff0000
jne 0x48e119
movzx eax, si
lea ecx, [ebp - 0x21c]
push eax
call fcn.00481360
jmp 0x48e13c
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e120
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x21c]
call fcn.00478540
mov dword [ebp - 4], 1
call fcn.004782d0
mov ecx, eax
test ecx, ecx
je 0x48e296
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x48e182
movzx eax, ax
lea ecx, [ebp - 0x220]
push eax
call fcn.00481360
jmp 0x48e1b2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x48e190
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e190
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00478540
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x220]
push eax
push edi
call fcn.0048bbd0
mov edx, dword [ebp - 0x220]
or esi, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e1f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x48e26f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48e26f
test ecx, ecx
je 0x48e2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
test eax, 0xffff0000
jne 0x48e248
movzx eax, ax
mov ecx, edi
push eax
call fcn.00481360
jmp 0x48e26f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e251
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00478540
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00477ec0
push 0x80004005
call fcn.00477ec0
push 0x80004005
call fcn.00477ec0
int3
Function at 0x48e9a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x519e40
push 0x4ace40
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x520404]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x430]
push eax
push 0x4e9340
push 1
push 0
push 0x4e9360
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x48eb83
mov ecx, dword [ebp - 0x430]
test ecx, ecx
je 0x48eb83
mov eax, dword [ecx]
lea edx, [ebp - 0x434]
push edx
push 0x4e9380
push ecx
call dword [eax]
test eax, eax
js 0x48eb4c
mov ecx, dword [ebp - 0x434]
test ecx, ecx
je 0x48eb4c
mov eax, dword [ecx]
push 0
push dword [esi]
push ecx
call dword [eax + 0x14]
test eax, eax
js 0x48eb40
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.004ac800
add esp, 0xc
mov eax, dword [ebp - 0x430]
mov edx, dword [eax]
push 2
push 0
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [edx + 0xc]
lea eax, [ebp - 0x224]
push eax
mov ecx, edi
call fcn.0047b630
mov eax, dword [ebp - 0x430]
mov edx, dword [eax]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [edx + 0x28]
lea eax, [ebp - 0x224]
push eax
mov ecx, ebx
call fcn.0047b630
mov dword [ebp - 0x438], 0
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
lea edx, [ebp - 0x438]
push edx
push 0x104
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x40]
push 0x208
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.004ac800
add esp, 0xc
push 0x104
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x43c]
call fcn.0047b630
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x48eb83
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
Function at 0x48ff10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x808], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x814], edi
test ebx, ebx
je 0x4900b2
mov esi, dword [esi]
cmp dword [esi - 0xc], 0
je 0x4900b2
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004ac800
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x810], 1
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x808]
push dword [eax]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4900b2
lea esi, [ebp - 0x804]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48ffb2
sub esi, ecx
sar esi, 1
jne 0x48ffdd
mov ecx, edi
call fcn.0047bb00
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
lea ebx, [ebp - 0x804]
sub ebx, edx
sar ebx, 1
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x808], eax
test esi, esi
js 0x4900c5
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x490015
push esi
mov ecx, edi
call fcn.00478400
mov edx, dword [edi]
lea edi, [esi + esi]
mov eax, dword [edx - 8]
cmp ebx, dword [ebp - 0x808]
ja 0x49004e
lea ecx, [edx + ebx*2]
test edi, edi
je 0x490087
test ecx, ecx
jne 0x49003b
call fcn.004b4a32
mov dword [eax], 0x16
jmp 0x490082
add eax, eax
cmp eax, edi
jb 0x490077
push edi
push ecx
push edx
call fcn.004ac280
add esp, 0xc
jmp 0x490087
add eax, eax
test edi, edi
je 0x490087
invalid
cmp eax, edi
jb 0x49006b
push edi
lea eax, [ebp - 0x804]
push eax
push edx
call fcn.004ac280
add esp, 0xc
jmp 0x490087
push eax
push 0
push edx
call fcn.004ac800
add esp, 0xc
call fcn.004b4a32
mov dword [eax], 0x22
call fcn.004af44f
mov eax, dword [ebp - 0x814]
mov ecx, dword [eax]
cmp esi, dword [ecx - 8]
jg 0x4900c5
mov dword [ecx - 0xc], esi
xor ecx, ecx
mov eax, dword [eax]
mov word [edi + eax], cx
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7f4e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00477ec0
int3