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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506e8b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 8
push eax
mov dword [ebp - 0xac], 0x40
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x14], eax
mov dword [eax + 0x5a8], 0
cmp dword [edi + 4], 0
jne 0x480aab
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
push eax
lea ecx, [ebp - 0x20]
call fcn.00425ed0
mov ecx, dword [edi + 0x14]
movups xmm0, xmmword [ebp - 0x20]
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
mov eax, dword [eax + 0x20]
call eax
mov ecx, eax
call fcn.0041f370
push eax
mov ecx, edi
call fcn.004256a0
mov esi, dword [edi + 0x14]
mov ecx, esi
call fcn.00442680
push eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x20]
call eax
mov ecx, eax
call fcn.0041f070
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00426ec0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0xa5], al
call fcn.00412540
cmp byte [ebp - 0xa5], 0
je 0x480af3
mov eax, dword [edi + 0x14]
add eax, 0x598
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x14]
add eax, 0x598
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499723
mov esp, ebp
pop ebp
ret 4
Function at 0x485900
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x54de10
mov dword [ebp - 0x78], 0x6f0053
lea esi, [ebp - 0x78]
mov dword [ebp - 0x74], 0x740066
push edi
mov dword [ebp - 0x70], 0x610077
mov edx, 0x3a
mov dword [ebp - 0x6c], 0x650072
sub esi, eax
mov dword [ebp - 0x68], 0x4d005c
mov dword [ebp - 0x64], 0x630069
mov dword [ebp - 0x60], 0x6f0072
mov dword [ebp - 0x5c], 0x6f0073
mov dword [ebp - 0x58], 0x740066
mov dword [ebp - 0x54], 0x49005c
mov dword [ebp - 0x50], 0x74006e
mov dword [ebp - 0x4c], 0x720065
mov dword [ebp - 0x48], 0x65006e
mov dword [ebp - 0x44], 0x200074
mov dword [ebp - 0x40], 0x780045
mov dword [ebp - 0x3c], 0x6c0070
mov dword [ebp - 0x38], 0x72006f
mov dword [ebp - 0x34], 0x720065
mov dword [ebp - 0x30], 0x4d005c
mov dword [ebp - 0x2c], 0x690061
mov dword [ebp - 0x28], 0x5c006e
mov dword [ebp - 0x24], 0x650046
mov dword [ebp - 0x20], 0x740061
mov dword [ebp - 0x1c], 0x720075
mov dword [ebp - 0x18], 0x430065
mov dword [ebp - 0x14], 0x6e006f
mov dword [ebp - 0x10], 0x720074
mov dword [ebp - 0xc], 0x6c006f
mov dword [ebp - 8], 0x5c
nop dword [eax]
lea ecx, [edx + 0x7fffffc4]
test ecx, ecx
je 0x485a0e
movzx ecx, word [esi + eax]
test cx, cx
je 0x485a0e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4859f0
test edx, edx
lea ecx, [eax - 2]
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499723
mov esp, ebp
pop ebp
ret
Function at 0x488620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5073db
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x231]
xor esi, esi
mov dword [ebp - 0x238], esi
call fcn.00485200
push eax
lea ecx, [ebp - 0x230]
call fcn.00404b80
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], esi
jb 0x48867c
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.004193a0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x488711
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004c5380
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x488711
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x488722
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x48875e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488754
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48877d
push edx
push ecx
call fcn.00499734
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499723
mov esp, ebp
pop ebp
ret 8
call fcn.004c8a99
int3
Function at 0x489080
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5074b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x4891c7
cmp dword [edi + 0x14], 0
je 0x4891c7
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.00499e60
mov esi, esp
test esi, esi
je 0x4891c7
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x14]
mov ecx, esi
mov eax, dword [eax + 0x7c8]
lea edx, [ecx + 2]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489110
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00405f00
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test eax, eax
je 0x489156
mov esi, ecx
cmp word [esi], 0xa
je 0x4891ea
add esi, 2
sub eax, 1
jne 0x489144
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x19c]
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4891a2
push 0
push 0
push 0xb0
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
and eax, 0xf
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x4891a2
push ebx
push ebx
push 0xb1
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push dword [ebp - 0x44]
call dword [eax + 0x20]
mov ecx, eax
call fcn.00423040
lea ecx, [ebp - 0x28]
call fcn.00406060
xor eax, eax
lea esp, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499723
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x489156
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x489156
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004625a0
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x48921c
mov edx, dword [edx]
mov ecx, dword [edi + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x19c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00406060
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004625a0
cmp dword [eax + 0x14], 8
jb 0x48924b
mov eax, dword [eax]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x40]
call fcn.00406060
jmp 0x4891a2
Function at 0x489c00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0x17
jne 0x489c2d
movzx eax, word [esi + 0x55c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_SetCursor]
cmp eax, 0xd
jne 0x489c7c
mov eax, dword [esi]
call dword [eax + 0x34]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x489cdd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x568], xmm0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x560], eax
mov eax, dword [edi + 0x10]
pop edi
mov dword [esi + 0x564], eax
mov byte [esi + 0x578], 1
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x489c9d
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x489cdd
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x489cd7
cmp dword [esi + 0x558], 0
je 0x489cdd
cmp byte [esi + 0x578], 0
je 0x489cdd
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x489cdd
mov ecx, dword [esi + 0x558]
lea eax, [edi + 0xc]
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
pop ebp
ret 4
push edi
call fcn.00429650
pop edi
pop esi
pop ebp
ret 4

Function at 0x489cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x489d3f
mov eax, dword [esi]
push ebx
call dword [eax + 0x34]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x489d38
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x55c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x560], eax
mov byte [esi + 0x564], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x489d60
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x489d39
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x489d92
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x489d92
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x489d39
cmp byte [esi + 0x564], 0
je 0x489d39
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.00429650
pop edi
pop esi
pop ebp
ret 4
Function at 0x491110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5078c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5473d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x491157
xor eax, 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
cmp dword [esi + 0x18], 1
jbe 0x491193
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x491860
push 0
push 0
call fcn.004d3cd4
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, 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
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.0042a1a0
mov ecx, esi
call fcn.00491520
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4952d0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507ad3
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x495375
cmp word [esi], di
je 0x495375
test eax, eax
je 0x495331
cmp word [eax], di
je 0x495331
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x495375
jmp 0x495370
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c5380
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x495375
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4953db
lea esi, [ebx + 0x38]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x49539b
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x4953fb
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x4953c3
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4953db
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499723
mov esp, ebp
pop ebp
ret 0x30
call fcn.0041bf76
int3
Function at 0x495e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x54ed00], 0
push esi
jne 0x495f37
cmp dword [ecx + 0x2c], 8
lea eax, [ecx + 0x18]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
jb 0x495e5b
mov eax, dword [eax]
push edi
push 0x20219
push eax
push dword [ecx + 0x30]
lea ecx, [ebp - 0x818]
call fcn.00417340
mov edi, dword [ebp - 0x818]
test eax, eax
jne 0x495f2b
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0x800
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push 0x51f6b0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x495f2b
mov eax, dword [ebp - 0x80c]
cmp eax, 1
je 0x495ebf
cmp eax, 2
jne 0x495f2b
mov eax, dword [ebp - 0x808]
test eax, eax
je 0x495edc
test al, 1
jne 0x495f2b
shr eax, 1
cmp word [ebp + eax*2 - 0x806], 0
je 0x495ee5
jmp 0x495f2b
xor eax, eax
mov word [ebp - 0x804], ax
mov ecx, 0x54ed00
lea esi, [ebp - 0x804]
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x495f1e
movzx eax, word [esi + ecx]
test ax, ax
je 0x495f1e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x495f00
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x495f36
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x54ed00
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x495f8b
mov ecx, 0x54ed00
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x495f7e
movzx eax, word [esi + ecx]
test ax, ax
je 0x495f7e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x495f60
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 0x54ed00
xor ecx, ebp
pop esi
call fcn.00499723
mov esp, ebp
pop ebp
ret
Function at 0x4bef40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004beb70
Function at 0x4c0230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a0e3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5473d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004968b0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x4c0443
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x4c0443
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4c0443
push eax
call esi
test eax, eax
je 0x4c0443
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004c0180
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x4c0434
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004c5380
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c0434
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x4c035b
cmp eax, 2
jne 0x4c0434
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4c037c
test cl, 1
jne 0x4c0434
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4c0382
jmp 0x4c0434
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4c0434
lea ecx, [ebp - 0x78]
call fcn.00404c90
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004be6b0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x52216c
push eax
call fcn.004c0840
push 0x2a
push dword [ebp - 0x78]
call fcn.004beb70
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x4c042c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c03e2
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004be470
push dword [0x548524]
lea eax, [ebp - 0x74]
push dword [0x548520]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4c041d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.00404bd0
mov edi, 1
jmp 0x4c0436
lea ecx, [ebp - 0x78]
call fcn.00404bd0
xor edi, edi
test esi, esi
je 0x4c0445
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c0445
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499723
mov esp, ebp
pop ebp
ret
Function at 0x4c0480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4c0495
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c04a0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c3650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c36c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4c368f
cmp eax, 2
jne 0x4c36ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4c36bb
test ecx, ecx
je 0x4c36b6
test cl, 1
jne 0x4c36ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4c36bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4e3ca8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x5530c8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4e3ce9
cmp byte [edx], 0xa
jne 0x4e3ce9
or byte [eax + edi + 0x28], 4
jmp 0x4e3cee
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4e3ddf
mov al, byte [ebx]
cmp al, 0x1a
je 0x4e3dc0
cmp al, 0xd
je 0x4e3d17
mov byte [esi], al
inc esi
inc ebx
jmp 0x4e3db5
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4e3d37
cmp byte [eax], 0xa
jne 0x4e3d2c
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4e3d32
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4e3db5
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e3dae
cmp dword [ebp - 0x14], 0
je 0x4e3dae
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5530c8]
test byte [eax + edi + 0x28], 0x48
je 0x4e3d85
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4e3d75
mov byte [esi], dl
jmp 0x4e3db1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5530c8]
mov byte [eax + edi + 0x2a], dl
jmp 0x4e3db1
cmp byte [ebp - 1], 0xa
jne 0x4e3d97
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4e3d97
mov byte [esi], 0xa
jmp 0x4e3d34
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d8b31
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4e3db2
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4e3d00
jmp 0x4e3ddf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5530c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e3dda
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e3ddf
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret