joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d520
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x40]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
sete al
push eax
push ecx
call esi
mov eax, dword [ebx + 0x28]
xor edx, edx
test eax, eax
mov eax, dword [ebx + 0x44]
sete dl
push edx
push eax
call esi
mov edx, dword [ebx + 0x28]
xor ecx, ecx
test edx, edx
mov edx, dword [ebx + 0x20]
sete cl
push ecx
push edx
call esi
mov eax, dword [ebx + 0x4f4]
push 0x105
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov eax, dword [ebx + 0x3e8]
test eax, eax
je 0x43d5a6
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x43d6d4
mov ecx, dword [eax + 0x25c]
mov dword [ebx + 0x25c], ecx
mov ecx, ebx
call int.00439cd0
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov edx, dword [ebx + 4]
push ebp
push 0x456
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov eax, dword [0x46b21c]
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
mov eax, dword [esp + 0x10]
add ebp, 0x10b
mov edx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp edx, 1
mov ecx, ebp
mov dword [esp + 0x1c], edi
jg 0x43d5ee
cmp ebp, dword [eax - 4]
jle 0x43d643
mov eax, dword [eax - 8]
cmp ebp, eax
mov dword [esp + 0x18], eax
jge 0x43d5fb
mov ecx, eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x43d643
mov ecx, dword [esp + 0x18]
lea esi, [edi + 0xc]
mov edi, dword [esp + 0x10]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [eax - 8], ecx
call fcn.004028a0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
push ebp
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.00401d40
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov word [edx + eax*2], 0
lea eax, [esp + 0x10]
push eax
call fcn.00429290
lea ecx, [esp + 0x10]
call fcn.00401e80
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0045a78a
mov ecx, dword [0x46b220]
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
lea edx, [eax - 0xc]
pop ebp
cmp edx, ecx
je 0x43d6c7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43d6c7
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov ecx, ebx
mov dword [ebx + 0x25c], esi
call int.00439cd0
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x43d7f0
Capabilities:
Delete file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov eax, dword [edi]
mov ebx, dword [eax - 8]
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
lea esi, [ebx + 1]
jg 0x43d817
cmp esi, dword [eax - 4]
jle 0x43d892
cmp esi, ebx
jge 0x43d81d
mov esi, ebx
test esi, esi
jne 0x43d828
mov eax, dword [0x46b21c]
jmp 0x43d84f
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.00459ded
xor edx, edx
add esp, 4
cmp eax, edx
je 0x43d894
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], dx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
lea ecx, [ebx + ebx + 2]
mov dword [edi], eax
mov edx, ecx
lea esi, [ebp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov dword [ecx - 8], ebx
mov eax, dword [0x46b220]
cmp ebp, eax
je 0x43d88e
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43d88e
push ebp
call fcn.00459de2
add esp, 4
mov edi, dword [esp + 0x38]
mov edx, dword [edi]
test ebx, ebx
jle 0x43d8ad
mov eax, edx
mov ecx, ebx
cmp word [eax], 0xa
jne 0x43d8a7
mov word [eax], 0
add eax, 2
dec ecx
jne 0x43d89c
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
mov word [edx + ebx*2], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], 3
mov ecx, dword [eax + 4]
push edx
mov dword [esp + 0x18], ecx
mov word [esp + 0x28], 0x40
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x446640
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov eax, dword [esi]
push ebx
push 0x419
push eax
call edi
mov edx, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x440
push edx
mov ebp, eax
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x34], 8
mov byte [esp + 0x41], 1
call edi
mov edx, dword [esi]
mov ax, word [esp + 0x48]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x20
push ecx
push ebx
push 0x440
push edx
mov dword [esp + 0x34], 0x40
mov word [esp + 0x42], ax
call edi
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ebp
push 0x41d
push ecx
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x453660
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebp
mov ebp, dword [esp + 0x108]
push edi
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4536dc
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardState]
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x4536b8
test byte [esp + 0x1e], 0x80
jne 0x4536b8
push 0
push 1
push 0
push 0x12
call edi
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [esp + 0xc]
push ecx
call esi
test eax, eax
pop esi
je 0x4536dc
test byte [esp + 0x1a], 0x80
jne 0x4536dc
push 0
push 3
push 0
push 0x12
call edi
pop edi
pop ebp
add esp, 0x100
ret
Function at 0x454120
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
push 0
mov eax, dword [esi + 0x810]
mov ecx, dword [esi + 0x81c]
push eax
push 7
push 2
push ecx
mov ecx, esi
mov dword [esi], 0x466ed8
call fcn.00454160
mov esi, dword [esi + 8]
test esi, esi
je 0x454159
push 0x444
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret

Function at 0x4544f0
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov eax, dword [0x4bb7e4]
sub esp, 0x4b4
test eax, eax
jne 0x4545ae
mov eax, dword [0x4bb7dc]
test eax, eax
je 0x454519
mov eax, dword [0x4bb7e0]
test eax, eax
jne 0x4545a4
push esi
push edi
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x20c]
mov dword [esp + 0x208], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x4837e4]
mov ecx, 0x7f
mov dword [esp + 8], eax
xor eax, eax
lea edi, [esp + 0xc]
push 0xff
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4000
lea edx, [esp + 0x20c]
push 0x2b4
push edx
lea eax, [esp + 0x14]
push 0
push eax
call esi
push 0x4001
lea ecx, [esp + 0x20c]
push 0x2b4
push ecx
lea edx, [esp + 0x14]
push 0
push edx
mov dword [0x4bb7e0], eax
call esi
pop edi
mov dword [0x4bb7dc], eax
pop esi
mov dword [0x4bb7e4], 1
add esp, 0x4b4
ret

Function at 0x4545c0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
mov ecx, 0xad
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c0]
pop edi
test eax, eax
mov eax, dword [esp + 0x2c0]
je 0x454602
neg eax
sbb eax, eax
lea ecx, [esp]
and eax, 2
or eax, 0x4011
push eax
push 0x2b4
push ecx
push 0x10
jmp 0x45461e
neg eax
sbb eax, eax
lea ecx, [esp]
and eax, 2
or eax, 0x4011
push eax
push 0x2b4
push ecx
push 0x80
mov edx, dword [esp + 0x2c8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 4]
add esp, 0x2b4
ret
Function at 0x454720
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edx, dword [0x4bb7b8]
sub esp, 0x2b8
xor eax, eax
push esi
mov esi, dword [esp + 0x2c0]
test edx, edx
push edi
jle 0x454751
mov ecx, dword [0x4bb7b0]
cmp dword [ecx], esi
je 0x454829
inc eax
add ecx, 4
cmp eax, edx
jl 0x454741
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, 0xad
xor eax, eax
lea edi, [esp + 0xc]
mov edx, dword [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c8]
lea ecx, [esp + 0xc]
or eax, 0x4008
push eax
push 0x2b4
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.00454640
mov ecx, dword [0x4bb7b8]
mov edi, eax
mov eax, dword [0x4bb7b0]
lea edx, [ecx*4 + 4]
push edx
push eax
call fcn.0045a802
add esp, 0x10
test eax, eax
je 0x45481e
mov ecx, dword [0x4bb7b8]
mov dword [0x4bb7b0], eax
mov eax, dword [0x4bb7b4]
lea edx, [ecx*4 + 4]
push edx
push eax
call fcn.0045a802
add esp, 8
test eax, eax
je 0x45481e
mov edx, dword [0x4bb7b0]
mov dword [0x4bb7b4], eax
mov eax, dword [0x4bb7b8]
inc eax
mov dword [0x4bb7b8], eax
lea ecx, [eax*4 - 4]
lea eax, [ecx + edx]
test eax, eax
je 0x454811
mov dword [eax], esi
mov eax, dword [0x4bb7b4]
add eax, ecx
test eax, eax
je 0x45481e
mov dword [eax], edi
mov eax, edi
pop edi
pop esi
add esp, 0x2b8
ret
cmp eax, 0xffffffff
je 0x454751
mov ecx, dword [0x4bb7b4]
pop edi
pop esi
mov eax, dword [ecx + eax*4]
add esp, 0x2b8
ret

Function at 0x454bd0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov al, byte [esi + 0x230]
mov byte [esi + 0x231], 1
cmp al, bl
je 0x454c1f
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x24]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x454c1f
cmp dword [esp + 8], 0x103
jne 0x454c1f
mov eax, dword [esi + 0x24]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x454c30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], ebx
mov byte [esi + 0x230], bl
mov byte [esi + 0x231], bl
mov dword [esi + 0x228], ebx
pop esi
pop ebx
pop ecx
ret

Function at 0x455350
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
pop edi
je 0x45539b
xor eax, eax
mov cl, 0x80
test byte [esp + eax], cl
jne 0x4553a4
inc eax
cmp eax, 0x100
jl 0x45538d
xor eax, eax
add esp, 0x100
ret
mov eax, 1
add esp, 0x100
ret
Function at 0x456120
Capabilities:
Log keystrokes via application hook
Print debug messages

Disassembly:
sub esp, 0x30
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4562ae
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x34]
jne 0x4562ae
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
xor edi, edi
mov dword [esp + 8], eax
cmp eax, edi
je 0x4562ae
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
push str.CWinCmdBar::TrackPopup___n
mov dword [esi + 0x18], 1
call ebx
mov eax, dword [esi + 0x28]
push 1
push eax
mov ecx, esi
call fcn.00455d80
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00455d40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov ebp, dword [sym.imp.USER32.dll_MapWindowPoints]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x30]
push 1
push edx
push edi
push eax
mov dword [esp + 0x28], ecx
call ebp
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x1c]
push 2
push ecx
push edi
push edx
call ebp
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [0x4bb7f0], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
or ebp, 0xffffffff
push 0x4562c0
push ebp
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4bb7f4], eax
mov edx, dword [esi + 0x28]
push str.CWinCmdBar::TrackPopup_2__n
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ebp
call ebx
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0x140
push ecx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
cmp eax, edi
je 0x456281
mov edx, dword [esi + 0x30]
push 0xaffe0000
push eax
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x28]
push edi
push eax
mov ecx, esi
mov dword [esi + 0x10], ebp
call fcn.00455d80
mov ecx, dword [0x4bb7f4]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x4bb7f4], edi
mov dword [0x4bb7f0], edi
pop ebp
mov dword [esi + 0x1c], edi
pop ebx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x456350
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x264
push ebx
push ebp
push esi
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [0x483a70]
mov ebp, dword [esp + 0x27c]
mov edx, dword [esp + 0x278]
push 0
push ecx
push 0
push ebp
push eax
push 0xb4
push 0
push 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x294]
push edx
push 0
push 0x46b54c
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
mov eax, dword [0x4bb80c]
test eax, eax
jne 0x456428
push edi
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, eax
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
xor eax, eax
lea edx, [esp + 0x80]
push eax
mov ecx, 0x7c
lea edi, [esp + 0x88]
push edx
push 0x1f4
push 0x29
rep stosd dword es:[edi], eax
mov dword [esp + 0x90], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x456417
mov ecx, 0x17
lea esi, [esp + 0x160]
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x4bb80c], eax
pop edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x30
push ebx
call esi
push 0
push 0x14
push 0x41e
push ebx
call esi
push 0x100000
push 0
push 0x420
push ebx
call esi
mov eax, dword [esp + 0x280]
test eax, eax
je 0x4564c7
push eax
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
mov esi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ecx
push ecx
push esi
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0xc]
push eax
push ebp
call esi
lea ecx, [esp + 0x14]
push ecx
push ebp
call esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push 0
push edx
mov edx, dword [esp + 0x18]
sub ecx, eax
push ecx
push edx
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x264
ret

Function at 0x456650
Capabilities:
Log keystrokes via application hook

Disassembly:
push ecx
push esi
call fcn.004566d0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push 0x456600
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
test eax, eax
mov dword [0x4bb7ec], eax
pop esi
jne 0x4566ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [esp + 4]
push 0
push ecx
push 0
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4566ca
mov eax, dword [esp + 8]
test eax, eax
je 0x4566bf
mov edx, dword [esp]
push 0x10
push 0x46c358
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ecx
ret 4
Function at 0x4571b0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, ecx
push ebx
or ebp, 0xffffffff
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4571ef
mov eax, ebx
jmp 0x4571d2
mov eax, dword [esp + 0x1c]
cmp word [eax], 9
je 0x4571ed
add eax, 2
push ebx
inc esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
jl 0x4571ce
jmp 0x4571ef
mov ebp, esi
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x457238
push str.NULL_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 6
push esi
call dword [sym.imp.GDI32.dll_GetCurrentObject]
test eax, eax
je 0x457238
lea ecx, [edi + 0x54]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [edi + 0x54]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [edi + 0x4c], eax
mov ecx, dword [edi + 0x4c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x4d4]
mov dword [esp + 0x1c], eax
neg edx
mov eax, dword [esp + 0x18]
sbb edx, edx
and edx, 0xfff00000
add edx, 0x100000
or edx, 0x24
push edx
push eax
push ebp
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
cmp ebp, 0xffffffff
je 0x4572a1
mov ecx, dword [edi + 0x4d4]
mov edx, dword [esp + 0x18]
neg ecx
sbb ecx, ecx
lea eax, [ebx + ebp*2 + 2]
and ecx, 0xfff00000
add ecx, 0x100000
or ecx, 0x26
push ecx
push edx
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x457720
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 0xc]
push esi
add eax, 0x80000001
push ecx
push 0x466fe0
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x457780
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 8]
shl eax, 1
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x457790
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 8]
push esi
add eax, 0x80000001
push ecx
push 0x466fe0
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x4577dd
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x457810
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc1c
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [esp + 0x21c]
push 0x208
push ecx
push eax
call fcn.004577f0
mov edx, dword [0x4837e4]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], edx
push 0x46d884
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call fcn.0045a7b3
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.0045a7b3
lea eax, [esp + 0x30]
push str.___bg
push eax
call fcn.0045a7b3
mov ecx, dword [0x4837e4]
xor eax, eax
mov dword [esp + 0x448], ecx
mov ecx, 0x1ff
lea edi, [esp + 0x44c]
add esp, 0x24
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc2c]
lea edx, [esp + 8]
test ecx, ecx
setne al
add eax, 0x80000001
push edx
push 0x466fe0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [esp + 0xc28]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x424]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push esi
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457949
lea ecx, [esp + 0x424]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0045a1b7
add esp, 8
test eax, eax
je 0x45793b
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
shl eax, 1
push eax
push ecx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
mov eax, 1
pop esi
add esp, 0xc1c
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc1c
ret

Function at 0x458ec0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push edi
push 0
mov ebx, eax
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
mov ebp, eax
push 0
push 2
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret