joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50c5e0
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
je 0x50c5ec
jmp 0x506990
ret

Function at 0x50d3a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x523a02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
lea ebp, [esi + 0x24]
lea ebx, [esi + 0x28]
mov dword [esi], 0x52ae7c
mov dword [esi + 0x2c], 0x52ae5c
mov dword [ebp], 0x52ae78
mov dword [ebx], 0x52ae60
mov dword [esi + 0x34], 0x52ae4c
mov dword [esi + 0x38], 0x52ae44
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push 0x64
push eax
mov dword [esp + 0x30], 7
call edi
mov ecx, dword [esi + 4]
push 0x65
push ecx
call edi
mov edx, dword [esi + 4]
push 0x66
push edx
call edi
mov ecx, dword [esi + 0x285c]
test ecx, ecx
je 0x50d43f
call fcn.00515050
mov ecx, dword [esi + 0x285c]
test ecx, ecx
je 0x50d435
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x285c], 0
lea ecx, [esi + 0x28c8]
mov byte [esp + 0x28], 6
call fcn.004e7c60
lea ecx, [esi + 0x2860]
mov byte [esp + 0x28], 5
call fcn.0050bcf0
lea ecx, [esi + 0xf2c]
mov byte [esp + 0x28], 4
call fcn.004ff300
lea ecx, [esi + 0x3c]
mov byte [esp + 0x28], 3
call fcn.004ff300
mov ecx, esi
lea eax, [esi + 0x2c]
neg ecx
sbb ecx, ecx
mov byte [esp + 0x28], 2
and ecx, eax
call fcn.005065c0
mov ecx, esi
mov byte [esp + 0x28], 1
neg ecx
sbb ecx, ecx
and ecx, ebx
call fcn.004edbd0
mov ecx, esi
mov byte [esp + 0x28], 0
neg ecx
sbb ecx, ecx
and ecx, ebp
call fcn.004f8b40
mov ecx, esi
mov dword [esp + 0x28], 0xffffffff
call fcn.0050b4d0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x511355
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
lea edx, [esp + 0xc]
or ebx, 0xffffffff
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.00511bb0
cmp dword [esp + 0xc], ebx
je 0x5113ef
mov eax, dword [esi + 0x2924]
test eax, eax
jne 0x5113db
mov eax, dword [esi + 0x2848]
cmp dword [eax], 0
je 0x5113db
cmp dword [esi + 0x2920], ebx
je 0x5113db
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
jne 0x5113db
mov eax, dword [esi + 0x2928]
test eax, eax
jne 0x511449
push 1
mov ecx, esi
call fcn.00513560
test eax, eax
je 0x5113cf
mov dword [esi + 0x292c], 1
jmp 0x511449
mov dword [esi + 0x292c], 0
jmp 0x511449
mov ecx, dword [esi + 0x284c]
test ecx, ecx
je 0x511449
mov edx, dword [ecx]
push 0
push 2
call dword [edx]
jmp 0x511449
mov ecx, dword [esi + 0x2930]
test ecx, ecx
je 0x51141c
cmp eax, 3
jne 0x51141c
mov ecx, dword [esi + 0x284c]
mov dword [esi + 0x2930], 0
test ecx, ecx
je 0x511449
mov eax, dword [ecx]
push 1
push 1
call dword [eax]
jmp 0x511449
mov ecx, dword [esi + 0x284c]
test ecx, ecx
je 0x51142e
mov edx, dword [ecx]
push 0
push 1
call dword [edx]
call fcn.00422af0
mov eax, dword [eax + 4]
push 0
push 0x7534
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esi + 0x2920], ebx
mov dword [esi + 0x2928], 0
pop esi
pop ebx
ret 4

Function at 0x511464
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
lea edx, [esp + 8]
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
push edi
push edx
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x292c], 0
mov dword [esp + 0x18], 0xffffffff
call fcn.00511bb0
push 1
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x5114ae
mov dword [esi + 0x2924], 1
jmp 0x5114b8
mov dword [esi + 0x2924], 0
cmp edi, 3
jne 0x5114cc
mov dword [esi + 0x2930], 1
pop edi
pop esi
ret 4
mov eax, dword [esi + 0x2848]
cmp dword [eax], 0
je 0x5114e6
mov ecx, dword [esp + 0xc]
pop edi
mov dword [esi + 0x2920], ecx
pop esi
ret 4
mov dword [esi + 0x2920], 0xffffffff
pop edi
pop esi
ret 4
Function at 0x512090
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edi, [esi + 0xf2c]
test edi, edi
je 0x5120b8
lea eax, [esi + 0xf30]
jmp 0x5120ba
xor eax, eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x512174
mov edx, dword [esi + 0x2848]
mov eax, dword [edx + 0x24]
test eax, eax
je 0x512148
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
test edi, edi
je 0x5120ec
lea edx, [esi + 0xf30]
jmp 0x5120ee
xor edx, edx
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
push 1
sub ebx, ecx
mov edx, dword [edx + 4]
push ebx
mov ebx, dword [esi + 0x2be8]
push eax
push ecx
mov ecx, dword [esp + 0x24]
sub ecx, ebx
sub ecx, eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
test edi, edi
pop ebx
je 0x512134
lea eax, [esi + 0xf30]
push 5
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
xor eax, eax
push 5
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
test edi, edi
je 0x512167
mov ecx, dword [esi + 0xf34]
lea eax, [esi + 0xf30]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
xor eax, eax
push eax
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret

Function at 0x512180
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push edi
mov edi, ecx
push eax
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0x2b9c]
xor eax, eax
test ecx, ecx
je 0x5121aa
call fcn.004536f0
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x14]
lea esi, [edi + 0x3c]
sub edx, eax
test esi, esi
mov dword [esp + 0xc], edx
je 0x5121c0
lea eax, [edi + 0x40]
jmp 0x5121c2
xor eax, eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x512266
mov eax, dword [edi + 0x2848]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x512240
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
test esi, esi
je 0x5121f1
lea edx, [edi + 0x40]
jmp 0x5121f3
xor edx, edx
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
push 1
sub ebx, ecx
push ebx
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [edx + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
test esi, esi
pop ebx
je 0x51222c
mov edx, dword [edi + 0x44]
lea eax, [edi + 0x40]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
xor eax, eax
push 5
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
test esi, esi
je 0x512259
lea eax, [edi + 0x40]
push 0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
xor eax, eax
push eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
add esp, 0x10
ret
Function at 0x517800
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00517ae0
test eax, eax
jne 0x517938
mov ecx, ebx
call fcn.00516da0
mov ecx, dword [ebx + 4]
push eax
call fcn.00513c00
test eax, eax
jne 0x517938
mov ecx, dword [ebx + 4]
call fcn.005122e0
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x10
push 0x10
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
sub esp, 0x10
mov dword [esp + 0x20], eax
mov ecx, esp
xor eax, eax
push esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, 0x10
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00516e70
mov eax, dword [ebx + 0x64]
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], edx
test eax, eax
mov dword [esp + 0x20], edx
je 0x5178ae
lea eax, [ebx + 0x48]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x5178ba
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.00516bd0
mov ecx, dword [esp + 0x18]
mov eax, dword [0x590a10]
add ecx, eax
mov eax, dword [esp + 0x20]
sub eax, ecx
push 0xcc0020
sub eax, 0x10
push 0
cdq
sub eax, edx
mov edx, dword [0x590a08]
sar eax, 1
add ecx, eax
push 0
push esi
push 0x10
lea eax, [ecx + 0x10]
push 0x10
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
add eax, edx
push ecx
push eax
push edi
lea edx, [eax + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebx + 4]
push edi
call fcn.005122e0
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x518060
Capabilities:
Check if file exists
Create thread
Get common file path
Read .ini file

Disassembly:
sub esp, 0x61c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [esp + 0x14]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
mov word [esp + 0x218], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x422]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov word [esp + 0x420], bx
push 0x56cfe8
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x424]
push ecx
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x518103
lea ecx, [esp + 0x10]
push 0x56cfc0
lea edx, [esp + 0x21c]
push ecx
push edx
jmp 0x518115
lea eax, [esp + 0x10]
push 0x562138
lea ecx, [esp + 0x21c]
push eax
push ecx
call esi
lea edx, [esp + 0x218]
push edx
push ebx
push str.NotJoinPrivate
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x518188
push 0x1048
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x518188
push 0x823
xor ecx, ecx
mov eax, 0x824
push edi
call fcn.00517f80
add esp, 8
test eax, eax
je 0x518188
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push ebx
push edi
push 0x517dc0
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
je 0x518188
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebx
add esp, 0x61c
ret

Function at 0x5182e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc8
push esi
mov esi, ecx
push edi
push esi
push 0
push 0x56d044
push 0x56d038
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
cmp edx, 9
jae 0x518305
inc edx
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x53ad34
lea eax, [esp + 0x10]
push 0x63
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 8]
push esi
push ecx
push 0x56d044
push 0x56d038
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
add esp, 0xc8
ret

Function at 0x518390
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc8
push esi
mov esi, ecx
push edi
push esi
push 0
push 0x56d070
push 0x56d038
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
cmp edx, 5
jae 0x5183b5
inc edx
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x53ad34
lea eax, [esp + 0x10]
push 0x63
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 8]
push esi
push ecx
push 0x56d070
push 0x56d038
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
add esp, 0xc8
ret
Function at 0x518500
Capabilities:
Create thread

Disassembly:
sub esp, 0xd0
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push str.NotJoinPrivate
mov ebp, ecx
push str.option
mov dword [esp + 0x1c], 0
call fcn.0040ea80
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x51861b
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x518551
mov ecx, ebp
call fcn.00518890
test eax, eax
jne 0x51861b
push 0x1048
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x51861b
mov edx, dword [esp + 0xe8]
mov ecx, 0x209
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0xe4]
push 0x823
push ebx
push ecx
push edx
push eax
mov ecx, ebp
call fcn.005186a0
test eax, eax
je 0x51861b
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
xor edx, edx
add esp, 4
cmp esi, edx
je 0x51861b
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push 0x63
push ecx
mov dword [esi], edx
mov dword [esi + 4], edx
push edx
mov ecx, ebp
mov dword [esi], ebx
stosw word es:[edi], ax
call fcn.00518630
lea edx, [esp + 0x18]
push edx
call fcn.00456d70
mov ecx, eax
call fcn.00459d70
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x5181c0
push 0
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x51861b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret 0x10
Function at 0x5186a0
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
sub esp, 0x20
xor eax, eax
push esi
mov esi, ecx
cmp dword [esp + 0x34], eax
je 0x51887c
cmp dword [esp + 0x38], eax
je 0x51887c
push ebx
push ebp
push edi
xor ebx, ebx
xor ebp, ebp
xor edi, edi
cmp esi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
je 0x5187e2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5187e0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x56d044
push 0x56d038
call edi
push esi
push ebp
push 0x56d050
push 0x56d038
mov ebx, eax
call edi
push esi
push ebp
push 0x56d084
push 0x56d058
call edi
push esi
push 0
push 0x56d070
push 0x56d038
mov ebp, eax
call edi
push esi
push 0
push 0x56d064
push 0x56d058
mov dword [esp + 0x38], eax
call edi
push esi
push 0
push 0x56d0a0
push 0x56d090
mov dword [esp + 0x3c], eax
call edi
push esi
push 0
push 0x56d0cc
push 0x56d090
mov dword [esp + 0x34], eax
call edi
push esi
push 0
push 0x56d0e8
push 0x56d090
mov dword [esp + 0x2c], eax
call edi
push esi
push 0
push 0x56d118
push 0x56d104
mov dword [esp + 0x30], eax
call edi
push esi
push 0
push 0x56d120
push 0x56d104
mov dword [esp + 0x28], eax
call edi
push esi
push 0
push 0x56d134
push 0x56d104
mov dword [esp + 0x24], eax
call edi
push esi
push 0
push 0x56bdbc
push 0x56d104
mov dword [esp + 0x20], eax
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
cmp edx, eax
jne 0x5187f9
cmp esi, eax
jne 0x5187f9
mov ecx, 1
jmp 0x518808
xor ecx, ecx
cmp edx, eax
je 0x518808
cmp esi, eax
jne 0x518808
mov eax, 1
mov esi, dword [esp + 0x3c]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
push edi
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push ebp
push eax
push ecx
push 0
push ebx
call fcn.00518df0
push eax
call fcn.0049bb50
push eax
call fcn.004521e0
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x8c]
dec edx
push 0x56d15c
push edx
push eax
call fcn.0042dfe0
add esp, 0x58
mov eax, 1
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret 0x14
xor eax, eax
pop esi
add esp, 0x20
ret 0x14
Function at 0x518920
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x2dc
mov eax, 0x590c50
push ebx
push ebp
push esi
xor esi, esi
test eax, eax
push edi
je 0x518ac0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x518ac0
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x7e]
mov word [esp + 0x7c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xe2]
mov word [esp + 0xe0], si
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2f0]
mov dword [esp + 0x14], esi
cmp eax, esi
jle 0x518ac0
mov ebp, dword [sym.imp.MSVCRT.dll_time]
mov esi, dword [sym.imp.MSVCRT.dll_gmtime]
xor ebx, ebx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
call ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
sub eax, ebx
push edx
mov dword [esp + 0x18], eax
call esi
add esp, 8
test eax, eax
je 0x518a09
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
push 0x56d2bc
lea ecx, [esp + 0x8c]
push 0x31
push ecx
call fcn.0042dfe0
add esp, 0x18
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
add eax, 0x15180
push edx
mov dword [esp + 0x14], eax
call esi
add esp, 4
test eax, eax
je 0x518a4a
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
push 0x56d2bc
lea ecx, [esp + 0x28]
push 0x31
push ecx
call fcn.0042dfe0
add esp, 0x18
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push eax
push 0x590c50
push 0x56d284
lea ecx, [esp + 0xf0]
push 0x104
push ecx
call fcn.0042e050
add esp, 0x18
lea edx, [esp + 0xe0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x518ab0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2f0]
inc eax
add ebx, 0x15180
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x5189a9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2dc
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2dc
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x518e90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x1054
call fcn.0051d7f0
lea eax, [esp]
push esi
push eax
xor esi, esi
push 0x56d43c
push SysReAllocStringLen
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x518f9e
push ebx
push ebp
push edi
mov ecx, 0x411
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], si
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x24], 0x823
mov ebx, 1
call ebp
test eax, eax
jne 0x518f77
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 6
lea ecx, [esp + 0x20]
push 0x56d42c
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x518f45
push 0x12
lea edx, [esp + 0x20]
push 0x56d404
push edx
call esi
add esp, 0xc
test eax, eax
je 0x518f45
push 0x12
lea eax, [esp + 0x20]
push 0x56d3dc
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x518f49
inc dword [esp + 0x18]
mov ecx, 0x412
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov eax, ebx
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x24], 0x823
inc ebx
call ebp
test eax, eax
je 0x518f06
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
cmp eax, 3
pop ebx
jne 0x518f9e
push 0x56d43c
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop esi
add esp, 0x1054
ret
Function at 0x51a140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x55a158
mov dword [ebp - 4], ecx
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp + 8], edi
je 0x51a27e
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebx
add esp, 0x1c
test esi, esi
je 0x51a274
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x51a274
lea ecx, [esi + 1]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x51a268
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10c]
push 0x104
push ecx
mov ecx, dword [ebp - 4]
push esi
push ebx
call fcn.0051a000
test eax, eax
je 0x51a268
lea edx, [ebp - 0x10c]
test edx, edx
jne 0x51a218
xor edi, edi
jmp 0x51a251
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0051d7f0
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x10c]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edi
dec edx
push 0x53a4a4
push edx
push eax
call fcn.0042e050
add esp, 0x10
push ebx
call fcn.0051d79a
mov edi, dword [ebp + 8]
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea esp, [ebp - 0x118]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51a2a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x55a158
mov dword [ebp - 4], ecx
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x51a3e6
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov esi, eax
call edi
add esp, 0x1c
cmp esi, 0x1a8
jle 0x51a3dc
lea edi, [esi + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp + 8], esi
je 0x51a3dc
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push 1
push 0x1a8
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x51a3d3
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0x1a8
push esi
call fcn.0051a000
test eax, eax
je 0x51a3d3
lea ecx, [ebp - 0x10c]
test ecx, ecx
jne 0x51a380
xor edi, edi
jmp 0x51a3bc
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0051d7f0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
dec ecx
push 0x53a4a4
push ecx
push edx
call fcn.0042e050
add esp, 0x10
push esi
call fcn.0051d79a
add esp, 4
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea esp, [ebp - 0x118]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc