joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476330
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5691e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x10]
call fcn.00476bf0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x10]
test edi, edi
sete al
test al, al
je 0x4763a1
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x476532
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x1c0], eax
jne 0x4763f0
cmp dword [ebx + 0x1c4], ecx
jne 0x4763f0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x476532
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x1bc]
test eax, eax
je 0x47641b
test edi, edi
jne 0x476408
push 0x80004003
call fcn.0053c010
mov ecx, dword [edi]
mov edx, dword [ecx + 0x24]
push eax
push edi
call edx
mov dword [ebx + 0x1bc], 0
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
push eax
lea esi, [ebp - 0x24]
call fcn.004d2b20
mov esi, eax
add esp, 4
test esi, esi
je 0x47651f
push 0x64
lea ecx, [ebp + 8]
push 0x58cffc
push ecx
mov ecx, esi
call fcn.004d1f00
add esp, 0xc
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
cmp dword [edx - 0xc], 0
je 0x4764f2
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
push ecx
mov edx, esp
mov dword [ebp + 0xc], esp
push edx
mov edi, str.disable_resize
mov dword [ebx + 0x1c0], eax
mov dword [ebx + 0x1c4], ecx
call fcn.00421180
push ecx
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00421180
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x4764b6
push 0x80004003
call fcn.0053c010
mov byte [ebp - 4], 1
call fcn.00476af0
mov dword [ebx + 0x1bc], eax
mov ebx, dword [ebx + 0x1b8]
test ebx, ebx
jne 0x4764d9
push 0x80004003
call fcn.0053c010
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x128]
push eax
push ebx
call edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x10]
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47651f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x476532
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47a3b0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 1
push esi
push edi
cmp dword [0x5d133c], eax
jne 0x47a3f2
mov edi, ebx
mov ecx, 0x45
mov esi, 0x5d1228
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
push 0x5d1228
mov dword [0x5d133c], eax
mov dword [0x5d1228], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x47a4c1
push 0x3f
push eax
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x43]
push eax
call fcn.00544310
add esp, 0xc
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x48]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x47a483
movsx ecx, byte [ebp - 0x44]
lea edx, [ebp - 0x42]
sub ecx, 0x30
push edx
mov dword [0x5d1238], 2
mov dword [0x5d122c], ecx
call fcn.00542983
add esp, 4
mov dword [0x5d1230], eax
jmp 0x47a4c1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
shr edx, 8
movzx edx, dl
movzx ecx, al
mov dword [0x5d1230], edx
mov edx, 4
cmp edx, ecx
mov dword [0x5d122c], ecx
sbb ecx, ecx
neg ecx
inc ecx
mov dword [0x5d1238], ecx
cmp eax, 0x80000000
jae 0x47a4c1
shr eax, 0x10
mov dword [0x5d1234], eax
mov ecx, 0x45
mov esi, 0x5d1228
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x5d122c]
cmp eax, 6
ja 0x47a4e4
jne 0x47a522
cmp dword [0x5d1230], 2
jb 0x47a522
push str.RtlGetVersion
push str.ntdll.dll
mov dword [0x5d1228], 0x114
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47a522
push 0x5d1228
call eax
test eax, eax
jne 0x47a522
mov ecx, 0x45
mov esi, 0x5d1228
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0053c15d
mov esp, ebp
pop ebp
ret

Function at 0x47a7f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00544310
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47a85d
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x47a84d
cmp eax, 4
jne 0x47a85d
cmp dword [ebp - 0x110], 0x5a
jb 0x47a85d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x47b3a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ecx, ecx
push eax
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x70]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.0047b170
add esp, 4
mov eax, esi
call fcn.0047b280
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 8], edx
xor ecx, ebp
mov dword [edi + 0xc], eax
pop esi
call fcn.0053c15d
mov esp, ebp
pop ebp
ret

Function at 0x47b420
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
xor edx, edx
push esi
cmp eax, edx
jne 0x47b44b
xor eax, eax
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
push ecx
lea esi, [ebp - 0x74]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x6c], 0x67452301
mov dword [ebp - 0x68], 0xefcdab89
mov dword [ebp - 0x64], 0x98badcfe
mov dword [ebp - 0x60], 0x10325476
call fcn.0047b170
add esp, 4
mov eax, esi
call fcn.0047b280
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x47b540
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
test eax, eax
jne 0x47b55b
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x47b575
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
cmp edi, ebx
je 0x47b64a
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x47b5ca
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
call fcn.0047b4f0
add esp, 4
test eax, eax
je 0x47b630
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x47b610
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
je 0x47b617
push esi
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47b660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x104], 0
call fcn.00544310
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x47b6c4
test byte [ebp - 0xf2], 0x80
jne 0x47b6c4
push esi
push 1
push esi
push 0x12
call ebx
mov esi, 1
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, eax
test esi, esi
je 0x47b6db
push 0
push 3
push 0
push 0x12
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053c15d
mov esp, ebp
pop ebp
ret

Function at 0x47b6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, eax
call fcn.0047b540
test eax, eax
jne 0x47b704
mov ecx, esi
pop esi
jmp fcn.0047b660
pop esi
ret
Function at 0x47b8e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.005563f0
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x47b9af
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.00544310
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x47b9af
cmp eax, 0x1fff
ja 0x47b9af
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47b99e
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x58a630
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47b99e
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x47bab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x567130
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
lea ebx, [esi + 0x4c]
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x18], 1
mov dword [esp + 0x28], 1
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x28], 2
test edi, edi
jne 0x47bb1e
xor eax, eax
jmp 0x47bb32
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47bb23
sub eax, edx
sar eax, 1
push eax
push edi
lea eax, [esp + 0x18]
push eax
call fcn.00423be0
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x2c]
call fcn.0047cc00
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47bb70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
cmp dword [esi + 4], 0
mov dword [esi + 0x10], 0
jne 0x47bbb2
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0
jne 0x47bbaf
push 0
push 0
push esi
push 0x47d110
push 0
push 0
call fcn.0053d041
add esp, 0x18
mov dword [esi + 4], eax
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47bbcd
push 0
push 1
push eax
call edi
mov dword [esi + 0x10], 0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x47bbe2
push 0
push 1
push esi
call edi
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47cff0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x22
cmp ax, word [esi]
jne 0x47d09b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d016
sub eax, edx
sar eax, 1
cmp eax, 0x104
jae 0x47d09b
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.00544310
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d047
sub eax, edx
sar eax, 1
add eax, 0xfffffffe
push eax
lea edx, [esi + 2]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0053dd72
add esp, 0xc
lea eax, [ebp - 0x20c]
call fcn.00421b80
test eax, eax
jne 0x47d0c5
mov ecx, fcn.0047bed0
test ecx, ecx
je 0x47d08b
push esi
call fcn.0047bed0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.00421b80
test eax, eax
jne 0x47d0c5
mov edx, fcn.0047bed0
test edx, edx
je 0x47d08b
push esi
call fcn.0047bed0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
push 5
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x47d270
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x11c
lea eax, [ebp - 0x530]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x534], esi
call fcn.00544310
push 0x11c
push 0
push ebx
mov dword [ebp - 0x530], 0x11c
call fcn.00544310
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
jne 0x47d2e5
call fcn.0047d170
test eax, eax
je 0x47d2e5
mov dword [esi + 4], 0
jmp 0x47d3d2
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47d309
lea ecx, [ebp - 0x530]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
push edi
lea edi, [eax + edx*2]
mov eax, dword [ebp - 0x52c]
mov edx, dword [ebp - 0x528]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x47d33d
mov ecx, 0x47
lea esi, [ebp - 0x530]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.00544310
add esp, 0xc
lea esi, [ebp - 0x414]
call fcn.0047d1c0
test eax, eax
jl 0x47d3c4
lea edx, [ebp - 0x568]
push edx
mov eax, esi
call fcn.0047d3f0
test eax, eax
je 0x47d3c4
mov ecx, dword [ebp - 0x558]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x47d3b5
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x554]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x534]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x47d3d1
mov edx, dword [ebp - 0x534]
mov dword [edx + 4], 0
jmp 0x47d3d1
mov eax, dword [ebp - 0x534]
mov dword [eax + 4], 0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 4
Function at 0x47d3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x47d474
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x47d46d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47d46d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x47d466
mov ecx, dword [ebp - 4]
push ecx
call fcn.0053cb34
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47d466
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.00545f90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x47d4b2
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x58a630
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47d4a9
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.0053ccef
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47da80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x5cf3f8], 0
jne 0x47dac0
lea eax, [ebp - 4]
push eax
push 0x5cf3f8
lea ecx, [ebp - 8]
push ecx
push 0x58a648
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x207
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [0x5cf600], 0
jne 0x47dae6
push 0x5cf3f8
push 0x589370
push 0x104
push 0x5cf600
call fcn.00423730
add esp, 0x10
cmp word [0x5cf808], 0
jne 0x47db37
mov edx, 0x104
mov eax, 0x5cf808
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x47db2b
movzx ecx, word [eax - 0x410]
test cx, cx
je 0x47db2b
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x47db00
sub eax, 2
mov word [eax], dx
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x47db32
sub eax, 2
xor edx, edx
mov word [eax], dx
mov esp, ebp
pop ebp
ret
Function at 0x481a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572cbb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0046faa0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x50], vtable.WTL::CMessageFilter.0
lea edi, [esi + 0x54]
push edi
mov dword [esi + 0x1a4], ebx
mov byte [esi + 0x1a8], bl
mov byte [esi + 0x1a9], 1
call fcn.004ac300
mov dword [esi + method.IFontIconCBSimpleImpl_class_CPasswordDlg_.virtual_0], vtable.IFontIconCBSimpleImpl_class_CPasswordDlg_.0
mov dword [esi], vtable.CPasswordDlg.0
mov dword [esi + 0x2c], vtable.CPasswordDlg.1.0
mov dword [esi + 0x50], vtable.CPasswordDlg.2.0
mov dword [edi], vtable.CPasswordDlg.3.0
mov dword [esi + method.IFontIconCBSimpleImpl_class_CPasswordDlg_.virtual_0], vtable.CPasswordDlg.4.0
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1b4], ebx
lea ecx, [esi + 0x1b8]
push ecx
mov byte [ebp - 4], 3
call fcn.00483cf0
mov byte [ebp - 4], 4
mov byte [esi + 0x398], bl
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [esi + 0x39c], eax
mov byte [ebp - 4], 5
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
lea edi, [esi + 0x3a4]
call eax
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 6
mov byte [esi + 0x3a8], bl
call fcn.00423c70
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 8
Function at 0x483680
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
test edi, edi
je 0x483694
lea ebx, [edi - 0x1a4]
jmp 0x483696
xor ebx, ebx
mov eax, dword [ebx + 0x30]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [edi + 4], 1
mov eax, dword [ebx + 0x30]
push 0
push eax
call fcn.00467180
call fcn.00467280
inc dword [edi]
mov ecx, dword [ebx + 0x30]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
push ecx
call esi
test eax, eax
je 0x483721
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x483721
cmp byte [edi + 4], 0
je 0x483721
cmp eax, 0xffffffff
je 0x483717
mov eax, dword [ebx + 0x30]
push eax
call esi
test eax, eax
je 0x483703
mov edx, dword [ebx + 0x50]
mov edx, dword [edx]
lea ecx, [ebx + 0x50]
lea eax, [ebp - 0x1c]
push eax
call edx
test eax, eax
jne 0x483717
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [ebx + 0x30]
push edx
call esi
test eax, eax
jne 0x4836c8
mov eax, dword [ebx + 0x30]
push eax
call fcn.00467180
mov esi, eax
call fcn.00467380
mov ecx, dword [ebx + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x483771
add dword [edi], 0xffffffff
je 0x483761
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
lea ebx, [ebx]
mov edx, dword [ebx + 0x30]
push 0
push 0
push 0x12
push edx
call esi
add dword [edi], 0xffffffff
jne 0x483750
cmp byte [edi + 5], 0
je 0x483771
mov eax, dword [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret