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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4472d7
cmp dword [0x481528], edi
jne 0x447429
cmp word [0x481534], di
mov dword [0x481528], 1
jne 0x447309
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x481530], eax
mov word [0x481534], cx
cmp word [0x481534], 2
jne 0x447345
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x447345
mov ecx, dword [0x481530]
cmp ecx, edi
je 0x447345
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x48152c], eax
jmp 0x44742e
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.0042c8f0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x48152c], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x447429
cmp dword [ebp - 0x8c], 1
je 0x447399
cmp dword [ebp - 0x8c], 2
jne 0x447429
cmp dword [ebp - 0x98], 4
jae 0x447408
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x447429
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4473fd
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0042cf70
add esp, 0xc
mov dword [0x48152c], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x447429
cmp dword [ebp - 0x8c], 2
jne 0x447429
cmp dword [ebp - 0x98], 4
jb 0x447429
push edi
push 0x48152c
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x48152c]
pop edi
leave
ret
Function at 0x448da6
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
mov eax, dword [esi + 4]
cmp eax, 0x367
je 0x448f96
mov ecx, 0x100
cmp eax, ecx
jne 0x448dd6
cmp dword [esi + 8], 0x1b
je 0x448f96
mov ebx, 0x200
cmp eax, ebx
jb 0x448de6
cmp eax, 0x209
jbe 0x448dfc
cmp eax, 0xa0
jb 0x448ec8
cmp eax, 0xa9
ja 0x448ec8
lea eax, [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push dword [esi + 0x18]
push dword [esi + 0x14]
call fcn.00448c90
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x448f91
cmp dword [ebp + 8], edi
mov eax, dword [esi + 4]
je 0x448eba
cmp eax, 0x201
je 0x448e3e
push 1
push eax
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x448f91
movzx eax, word [esi + 0x18]
movzx ecx, word [esi + 0x14]
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x84
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 5
je 0x448e8e
cmp eax, 3
je 0x448e8e
cmp eax, 1
jne 0x448e76
push dword [esi + 0x18]
push dword [esi + 0x14]
push ebx
call fcn.00448fac
jmp 0x448e7c
push eax
call fcn.00449041
mov ecx, dword [ebp + 0xc]
push 1
mov dword [ecx], eax
mov eax, dword [esi + 4]
push eax
push eax
push edi
jmp 0x448f9c
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, 0xa1
push eax
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetMessageA]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
jmp 0x448f83
push 1
push eax
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x448eef
cmp eax, 0x112
je 0x448efb
cmp eax, ecx
jb 0x448eda
cmp eax, 0x108
jbe 0x448efb
push 1
push eax
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x448f91
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x448f91
call dword [sym.imp.USER32.dll_GetCapture]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x448f25
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 3
push 0x209
push ebx
lea eax, [ebp - 0x28]
push 0
push eax
call edi
test eax, eax
jne 0x448f11
mov eax, dword [esi + 4]
xor ebx, ebx
push ebx
push eax
push eax
push ebx
push esi
call edi
test eax, eax
je 0x448f78
mov eax, dword [esi + 4]
push eax
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_GetMessageA]
mov ecx, dword [ebp - 4]
push esi
mov eax, dword [ecx]
call dword [eax + 0x98]
test eax, eax
jne 0x448f78
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [esi + 4]
cmp eax, 0x112
je 0x448f71
cmp eax, 0x104
jb 0x448f78
cmp eax, 0x107
ja 0x448f78
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push ebx
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.00448c90
push 1
pop eax
jmp 0x448fa5
push 1
push eax
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44b90f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
call fcn.0043eba4
test eax, eax
jne 0x44bb00
mov edi, dword [ebx + 4]
mov ecx, esi
call fcn.00425cb3
test byte [esi + 0x64], 0x20
mov dword [ebp - 0xc], eax
jne 0x44b952
cmp edi, 0x201
je 0x44b952
cmp edi, 0x202
jne 0x44bab6
cmp edi, 0x200
jb 0x44b962
cmp edi, 0x209
jbe 0x44b97a
cmp edi, 0xa0
jb 0x44bab6
cmp edi, 0xa9
ja 0x44bab6
call fcn.0045534a
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042c8f0
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x28
push ecx
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [eax + 0x6c]
cmp dword [ebp - 0x1c], 0xffffffff
mov dword [ebp + 8], eax
je 0x44b9d5
push dword [ebp - 0x1c]
call fcn.0042d7f0
pop ecx
mov eax, 0x201
cmp edi, eax
jne 0x44b9ed
test byte [ebp - 0x39], 0x80
je 0x44b9ed
mov dword [ebp - 4], 1
jmp 0x44b9f1
and dword [ebp - 4], 0
cmp edi, eax
je 0x44ba0e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44ba0e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x104]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jl 0x44ba7d
cmp dword [ebp - 4], 0
jne 0x44ba7d
cmp edi, 0x202
jne 0x44ba3a
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xc8
push 0xe001
jmp 0x44ba65
test byte [esi + 0x60], 8
jne 0x44ba6e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x44ba6e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x104]
je 0x44baaa
push 0x12c
push 0xe000
mov ecx, esi
call fcn.0044b6de
jmp 0x44baaa
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0xe4]
jmp 0x44baaa
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44ba90
cmp dword [ebp - 4], 0
je 0x44baaa
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x104], eax
mov ecx, esi
call fcn.0043f992
test eax, eax
je 0x44bacb
cmp dword [eax + 0x50], 0
je 0x44bacb
xor eax, eax
jmp 0x44baf9
cmp dword [ebp - 0xc], 0
je 0x44baf1
mov edi, dword [ebp - 0xc]
push ebx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x98]
test eax, eax
jne 0x44bb00
mov ecx, edi
call fcn.0043f825
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x44bad1
push ebx
mov ecx, esi
call fcn.00440afe
pop edi
pop esi
pop ebx
leave
ret 4
push 1
pop eax
jmp 0x44baf9
Function at 0x44c481
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x44c4c5
push dword [ebp + 8]
call fcn.00456c59
mov esi, eax
test esi, esi
je 0x44c4f0
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x44c4f0
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x46967c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x4554a8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46134a
call fcn.0042c2e0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0043c022
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0043c022
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0043bbc5
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x43c4fd
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x456277
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.0045562c
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4562b6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4562b6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4562ba
xor eax, eax
jmp 0x456334
movzx eax, word [esi + 6]
shl eax, 2
push eax
call fcn.0043c519
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4562f0
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4562da
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00456427
push ebx
mov edi, eax
call fcn.0043c555
test edi, edi
pop ecx
je 0x456332
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00456223
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0045633b
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45723b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4622c4
call fcn.0042c2e0
sub esp, 0x120
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x14], ebx
call fcn.0044d8ca
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x457281
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0044d8dc
cmp eax, ebx
je 0x45727c
mov edx, dword [eax]
push ebx
push ebx
push 0xfffffffffffffffc
push ebx
mov ecx, eax
call dword [edx + 0x14]
cmp dword [ebp - 0x1c], ebx
jne 0x457261
cmp dword [edi + 0x7c], ebx
je 0x457358
push str.Software_
lea ecx, [ebp - 0x10]
call fcn.0043c71f
push dword [edi + 0x7c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0043ca4d
lea eax, [ebp - 0x10]
push 0x47a760
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0043c906
push dword [edi + 0x90]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043c906
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0043c6b1
lea eax, [ebp - 0x18]
mov esi, SysReAllocStringLen
push eax
push esi
mov ecx, edi
call fcn.0045736a
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x45732c
lea eax, [ebp - 0x12c]
push 0x104
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x457323
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push esi
call fcn.0045736a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0043c6b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043c6b1
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x45736a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4622d8
call fcn.0042c2e0
sub esp, 0x110
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x457429
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
lea eax, [ebp - 0x11c]
push ebx
push eax
push esi
push dword [ebp - 0x14]
call edi
mov esi, eax
test esi, esi
jne 0x457409
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0043c71f
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 4], esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.0045736a
mov esi, eax
xor eax, eax
test esi, esi
setne al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov byte [ebp - 0xd], al
call fcn.0043c6b1
cmp byte [ebp - 0xd], 0
jne 0x457409
lea eax, [ebp - 0x11c]
push ebx
push eax
push 0
push dword [ebp - 0x14]
jmp 0x4573b3
cmp esi, 0x103
je 0x457419
cmp esi, 0x3f2
jne 0x457429
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x457909
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x457937
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 8]
jl 0x4579d9
cmp dword [esp + 0x10], 0
je 0x4579d9
test esi, esi
jne 0x457973
push 0x10
call fcn.00457726
test eax, eax
je 0x45794c
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x45794e
xor esi, esi
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [edi + 0x14]
call fcn.004576c8
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x45798b
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x45799b
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4579a7
call fcn.0043af39
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push 0
lea eax, [ecx + eax*4]
push eax
call fcn.0042c8f0
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [eax + edx*4], ecx
pop esi
ret 8

Function at 0x457a0e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x457a61
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x457a44
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x457a44
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x457a5b
and dword [ebp - 4], 0
jmp 0x457a5b
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x457a54
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x457a25
cmp dword [ebp - 4], 0
je 0x457aa0
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [ebx + 0x14]
call fcn.004576db
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x457a96
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x457e3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x457eec
mov ecx, 0x481538
call fcn.00457bc2
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x457eca
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x457ea8
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x457ea8
push ebx
push edi
push eax
call fcn.0044407b
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0043c7f9
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc

Function at 0x457f74
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0042df30
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
je 0x457ff0
mov edi, SysReAllocStringLen
and byte [eax], 0
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x457ff0
lea eax, [ebp - 0x108]
xor ebx, ebx
push 0x105
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x457fcd
push 1
pop ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x457ff0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.0042db80
pop ecx
test eax, eax
pop ecx
jne 0x457f9b
push esi
call fcn.0042d7f0
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407ccb
mov dword [ebp - 0x14], eax
cmp dword [0x4307b8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4307b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4307bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4307c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4307c8], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4307c4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x4307b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x4307c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x4307c8], edi
je 0x40d429
push eax
call ebx
push dword [0x4307c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x4307bc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x4307c0]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4307b8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043de
mov esp, ebp
pop ebp
ret
Function at 0x405e30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a1600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
mov cl, byte [edx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x405e62
movsx eax, cl
sub eax, 0x41
jmp 0x405ea4
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x405e71
movsx eax, cl
sub eax, 0x47
jmp 0x405ea4
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x405e80
movsx eax, cl
add eax, 4
jmp 0x405ea4
cmp cl, 0x2b
jne 0x405e8c
mov eax, 0x3e
jmp 0x405ea4
cmp cl, 0x2f
jne 0x405e98
mov eax, 0x3f
jmp 0x405ea4
cmp cl, 0x3d
jne 0x405f21
or eax, 0xffffffff
mov dword [ebp + edx*4 - 0x14], eax
inc edx
cmp edx, 4
jl 0x405e50
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x405f21
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x405f21
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x405ed2
cmp eax, ecx
jne 0x405f21
lea ebx, [ecx + 2]
jmp 0x405edd
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jbe 0x405f06
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jbe 0x405f0e
mov byte [edi + 2], dl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429c0c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429c0c
mov esp, ebp
pop ebp
ret

Function at 0x406c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test esi, esi
je 0x406c95
push ebx
mov ebx, dword [ebp + 0xc]
sub ebx, eax
nop word [eax + eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or edi, edx
sub esi, 1
jne 0x406c80
pop ebx
mov eax, 0x100
sub eax, edi
pop edi
shr eax, 8
pop esi
pop ebp
ret