joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d8e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476758
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov dword [ebx], 0
mov dword [esi], 0
mov eax, dword [ecx + 8]
mov edx, dword [eax - 0xc]
test edx, edx
push edi
jne 0x42d9a7
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x50]
test eax, eax
je 0x42d9a0
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov edi, eax
test edi, edi
je 0x42d9a0
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x2c]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x20]
mov dword [edx], eax
jne 0x42d980
push eax
call fcn.00452ee8
add esp, 4
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
push esi
push ebp
push edi
mov dword [ebx], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42da5e
mov eax, dword [ebx]
push eax
call fcn.00452ee3
add esp, 4
mov dword [ebx], 0
xor eax, eax
jmp 0x42da63
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0
push edx
push eax
lea edx, [esp + 0x38]
push edx
call fcn.0042d740
mov eax, dword [esp + 0x2c]
mov edi, dword [eax - 0xc]
test edi, edi
mov dword [esp + 0x18], 0
jne 0x42d9f6
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d9f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x42da63
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
mov dword [esi], eax
call fcn.00452ee8
add esp, 4
xor esi, esi
test edi, edi
mov dword [ebx], eax
jle 0x42da38
mov eax, dword [esp + 0x2c]
mov cl, byte [esi + eax + 1]
mov al, byte [esi + eax]
dec cl
shl cl, 4
add cl, al
mov eax, esi
cdq
sub eax, edx
mov edx, dword [ebx]
sub cl, 0x41
sar eax, 1
add esi, 2
cmp esi, edi
mov byte [eax + edx], cl
jl 0x42da10
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42da5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10
Function at 0x43aa28
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47715b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x486bd0
lea edi, [esi + 4]
call fcn.00457021
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
xor ebx, ebx
mov eax, 0x47aa61
mov dword [esp + 0x1c], ebx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43aa58
sub eax, ebp
push eax
push 0x47aa61
mov ecx, edi
call fcn.00401e70
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x14], 0x65727478
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x43b6c0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x477218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
xor eax, eax
push edi
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x47e5f8
mov ebp, dword [esp + 0x44]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push ebp
push eax
lea edi, [eax - 4]
mov eax, dword [esp + 0x44]
add eax, 4
push eax
push edi
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0045ce10
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x47e5f8
mov ecx, dword [esp + 0x38]
push ebp
push edi
add ebp, 0xfffffffc
push ebp
add ecx, 4
push ecx
mov byte [esp + 0x40], 1
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.0045ce10
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x47e5f8
push 0
push 0
push 0
push 0
mov byte [esp + 0x40], 2
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.0045ce10
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push 2
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x1c]
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea ecx, [esp + 0x10]
call fcn.0045ce3d
lea ecx, [esp + 0x20]
call fcn.0045ce67
lea ecx, [esp + 0x18]
call fcn.0045ce67
mov byte [esi + 0x75], 0
mov esi, 0x47c9fc
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
mov dword [esp + 0x10], esi
call fcn.0045ce67
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
mov dword [esp + 0x18], esi
call fcn.0045ce67
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x20], esi
call fcn.0045ce67
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x442330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.00457328
push 0
push 0x8800
push 0
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.0045735c
call fcn.0046ef40
mov esi, dword [eax + 0xc]
mov eax, dword [ebp + 8]
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x442386
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x442386
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x442394
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx ebx, word [esi + 6]
lea eax, [ebx*4]
add eax, 3
and eax, 0xfffffffc
call fcn.00411090
xor eax, eax
test ebx, ebx
mov edx, esp
jle 0x4423c7
lea ecx, [esi + 8]
movzx ebx, word [ecx]
mov dword [edx + eax*4], ebx
movzx ebx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, ebx
jl 0x4423b5
movzx ecx, word [esi + 6]
push ecx
push edx
mov ecx, edi
call fcn.00441040
mov ebx, eax
test ebx, ebx
je 0x442400
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
push eax
lea edx, [eax + 7]
push esi
push edx
mov ecx, edi
call fcn.0043f4f0
mov edx, dword [ebp + 8]
push edx
mov ecx, edi
call fcn.0043f5e0
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 0x1c]
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, edi
call fcn.00441e10
mov eax, ebx
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4440e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4778a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x47ca0c
push 0x48787c
push 1
push 1
push 3
push 8
mov dword [esp + 0x3c], 0
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0xc]
call fcn.0045ce10
lea ecx, [esp + 0x10]
call fcn.0045c5f2
mov edi, dword [esp + 0x30]
test edi, edi
mov byte [esp + 0x28], 1
jne 0x444149
xor eax, eax
jmp 0x44414c
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x14]
call fcn.0045cb13
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0045ce99
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 4]
lea eax, [edx + eax - 1]
cdq
sub eax, edx
mov edx, dword [ecx + 8]
push 0xcc0020
push 0
mov esi, eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x1c]
push 1
lea eax, [edx + eax - 3]
push ecx
cdq
push 3
push 5
sub eax, edx
mov edx, dword [edi + 4]
sar esi, 1
push esi
sar eax, 1
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0045cb91
mov dword [esp + 8], 0x47c9fc
lea ecx, [esp + 8]
mov dword [esp + 0x28], 2
call fcn.0045ce67
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x44dac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
lea eax, [esp + 0x28]
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
call fcn.0044da20
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub ebx, edi
sub eax, edx
lea edi, [esi + 0x50]
test edi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
je 0x44db26
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x44db26
mov ecx, edi
call fcn.0045cb7b
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 0x47ca0c
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push ebx
push eax
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call fcn.0045ce10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.0045cb13
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x54]
push ecx
push edx
call fcn.0045ce99
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
mov esi, eax
mov dword [esp + 0x10], esi
jg 0x44dbf2
sub ebx, eax
cmp esi, eax
jne 0x44db90
xor eax, eax
jmp 0x44dbc5
cmp esi, ecx
jne 0x44db9b
mov eax, 0xffffff
jmp 0x44dbc5
fild dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0x70]
fidiv dword [esp + 0x14]
push ecx
mov ecx, dword [eax + 0x7c]
push edx
mov edx, dword [eax + 0x78]
sub esp, 8
fstp qword [esp]
push ecx
push edx
call fcn.0044cd10
add esp, 0x18
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
push 1
sub ecx, eax
push ecx
push ebx
push eax
mov ecx, edi
call fcn.0046c6f3
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
inc esi
dec ebx
cmp esi, ecx
mov dword [esp + 0x10], esi
jle 0x44db88
mov ebx, dword [esp + 0x14]
mov ecx, dword [0x49cb04]
test ecx, ecx
jne 0x44dc06
mov ecx, dword [0x49cb08]
test ecx, ecx
je 0x44dc25
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push 0
push 3
sub edx, eax
push edx
lea ecx, [ebx - 3]
push ecx
push eax
mov ecx, edi
call fcn.0046c6f3
mov eax, dword [esp + 0x2c]
test edi, edi
je 0x44dc2c
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push 0xcc0020
push 0
push 0
push edi
push ebx
push edx
mov edx, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x44]
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x20], 0x47c9fc
call fcn.0045ce67
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4558d7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x455911
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004047f0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00401d60
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x456cfd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x456d40
call fcn.0046ef40
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x456d40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x456d5b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00455e64
test ebx, ebx
mov esi, eax
je 0x456d59
test edi, edi
je 0x456d59
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x457948
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x474ef8
call fcn.00411c94
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x45796d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4579b9
call fcn.00457021
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x45865c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x474f8d
call fcn.00411c94
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.0046ef40
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x45869c
call fcn.0046ef40
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4586ad
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4586b9
or eax, 0xffffffff
jmp 0x4587bc
mov ecx, esi
call fcn.00458196
mov dword [ebp - 0x14], eax
call fcn.00454b37
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4586fc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4586fc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4586fc
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00456390
push dword [ebp - 0x14]
call fcn.00454a8f
push edi
push eax
push ebx
mov ecx, esi
call fcn.00458441
xor ebx, ebx
cmp eax, ebx
je 0x458770
test byte [esi + 0x38], 0x10
je 0x45873e
push 4
pop edi
mov ecx, esi
call fcn.00457328
test ah, 1
je 0x458736
push 5
pop edi
push edi
mov ecx, esi
call fcn.00454533
cmp dword [esi + 0x1c], ebx
je 0x458770
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004575a1
jmp 0x458770
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x458784
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x45879d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x45879d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004581d0
cmp dword [esi + 0x54], ebx
je 0x4587b9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4587f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0046ef40
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45882d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00458441
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x459e72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 8]
push eax
push str.CLSID
xor ebx, ebx
push closesocket
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x459f16
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x459f10
lea eax, [ebp + 8]
push eax
push str.InProcServer32
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call esi
test eax, eax
jne 0x459f0b
mov ecx, dword [ebp + 0xc]
mov esi, 0x104
push esi
call fcn.00401900
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x47aa61
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov esi, eax
call fcn.00401d60
push dword [ebp + 8]
xor eax, eax
cmp esi, ebx
sete al
mov ebx, eax
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x459f60
Capabilities:
Get disk information

Disassembly:
mov eax, 0x47542f
call fcn.00411c94
sub esp, 0x14c
mov eax, dword [0x496e28]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x459faa
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x45a03f
push ebx
call fcn.00457021
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.00459f1e
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x45a031
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x45a034
test byte [ebp + 8], 2
jne 0x459fff
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x45a031
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x45a031
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.004013d0
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.00411c86
leave
ret 8
Function at 0x45a41f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x496e28]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call dword [0x495280]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push 0x800
xor ebx, ebx
push 0x160
mov byte [eax], bl
lea eax, [ebp - 0x170]
push eax
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x45a53e
test byte [ebp - 0x166], 1
je 0x45a53e
lea eax, [ebp - 8]
push eax
push 0x4800b0
push ebx
push 0x4800c0
lea ecx, [ebp + 0x10]
call fcn.0045a3dd
test eax, eax
jl 0x45a53e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x483574
push eax
call dword [ecx]
test eax, eax
jl 0x45a531
cmp edi, ebx
jne 0x45a4b7
xor eax, eax
jmp 0x45a4dc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00411090
mov eax, esp
push dword [ebp - 0x10]
push esi
push edi
push eax
call fcn.00406f34
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jl 0x45a528
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x45a4f6
xor eax, eax
jmp 0x45a4f9
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push 2
push eax
push ecx
call dword [edx + 0x4c]
test eax, eax
jl 0x45a528
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor ebx, ebx
inc ebx
jmp 0x45a531
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x45a540
xor eax, eax
lea esp, [ebp - 0x17c]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00411c86
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x45b5c0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00412110
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x4800ac]
je 0x45b6c7
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x45b630
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x45b637
cmp ebx, ebx
jne 0x45b637
xor eax, eax
jmp 0x45b6ca
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x45b644
mov byte [esi + 0x20], bl
jmp 0x45b658
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a26b
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a26b
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a26b
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x45b6b3
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x45b6c7
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x460384
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x496e28]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x4603d6
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x4603d6
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4603e2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.00411c86
leave
ret 8