joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471b20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x471bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x471bb0
sub eax, 1
jne 0x471bd2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471b50
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x471bd2
lea eax, [ecx*2 + 2]
call fcn.004b71a0
mov edi, esp
mov ecx, esi
mov edx, edi
sub edx, esi
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x471b80
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x471bd2
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.00471b20
test al, al
je 0x471bd2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x471bd2
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

Function at 0x471be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x258
push esi
mov esi, ecx
push 0x2a
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x471c1f
push 0x3f
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x471c1f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x471c30
mov al, 1
pop esi
add esp, 0x258
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x471c3a
xor al, al
pop esi
add esp, 0x258
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
add esp, 0x258
ret

Function at 0x471c50
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x471cc3
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x471cc3
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x471cc3
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x483940
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x483950
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x483960
Capabilities:
Hide graphical window

Disassembly:
cmp dword [ecx + 0x24], 0
jne 0x48397c
mov eax, dword [ecx + 4]
test eax, eax
je 0x483991
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
ret
Function at 0x4839d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x483bc1
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x483a56
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x483a15
cmp byte [eax + 4], 6
je 0x483a15
push str.Submit
push eax
push ecx
mov ecx, esi
call fcn.00483ca0
jmp 0x483a4b
cmp dword [eax + 0x3c], 0
je 0x483a4b
cmp byte [eax + 4], 6
je 0x483a4b
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x483a41
push 0x4b8c14
push str.No_object_to_invoke.
mov ecx, 0x4e6d58
call fcn.00447a20
jmp 0x483a4b
push ecx
push eax
push ecx
mov ecx, esi
call fcn.004846c0
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x4839f3
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
je 0x483a95
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff0
push dword [eax + ecx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x483ae9
mov edx, dword [esp + 0x10]
cmp edi, 1
jne 0x483aca
cmp edx, edi
jle 0x483aca
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
add esp, 0xc
push edi
push 0
push 0xffffffffffffffff
push eax
call fcn.004a0110
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x483bb0
xor edi, edi
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x483aed
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x483b8f
mov ebx, dword [edx + 8]
inc ecx
test ebx, ebx
mov dword [esp + 0x10], ecx
mov eax, ebx
cmove eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea eax, [edi + 1]
push 0
cmove eax, edi
push 0xf0
push dword [edx]
mov edi, eax
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x483b65
cmp dword [esp + 0x14], 0
mov ecx, 0xffffffff
mov eax, dword [esp + 0x10]
cmovne eax, ecx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x483b8f
push 1
push 0
push ecx
push 0x4cefc4
mov ecx, ebx
call fcn.004a0110
jmp 0x483b8f
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x483b8f
push 1
push 0
push 0xffffffffffffffff
push 0x4b8cc8
mov ecx, ebx
call fcn.004a0110
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x18], 0x40
inc ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x483a76
cmp byte [ebp + 8], 0
je 0x483bc1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x483bd0
Capabilities:
Get graphical window text

Disassembly:
mov eax, edx
cmp eax, 0x2af8
jae 0x483c83
test ecx, ecx
je 0x483c83
cmp dword [ecx + 4], 0
je 0x483c83
cmp eax, dword [ecx + 0x10]
jae 0x483c83
mov edx, dword [esp + 4]
shl eax, 6
add eax, dword [ecx + 0x18]
mov ecx, dword [eax + 8]
test edx, edx
je 0x483c4e
test ecx, ecx
je 0x483c42
mov ecx, dword [ecx + 0x18]
push esi
mov esi, edx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x483c13
lea eax, [edx + 2]
pop esi
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x483c30
sub edx, eax
sar edx, 1
mov eax, edx
ret
push 0x40
push edx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
test ecx, ecx
je 0x483c70
mov eax, dword [ecx + 0x18]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x483c60
sub eax, edx
sar eax, 1
ret
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, 0x3f
cmp eax, ecx
cmova eax, ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x483c90
xor ecx, ecx
mov word [eax], cx
xor eax, eax
ret
Function at 0x4879b0
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
movzx eax, word [esi]
test ax, ax
je 0x4879ec
mov edx, eax
movzx eax, dx
cmp eax, 0x21
je 0x4879db
cmp eax, 0x2b
je 0x4879d7
cmp dx, 0x5e
jne 0x4879ec
mov al, 2
jmp 0x4879dd
mov al, 1
jmp 0x4879dd
mov al, 4
add esi, 2
or bl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x4879c0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041ba00
mov bh, al
add esp, 0xc
test bh, bh
jne 0x487a0f
pop esi
xor eax, eax
pop ebx
ret
mov ecx, esi
call fcn.0041b910
movzx edx, ax
test dx, dx
jne 0x487a2a
xor dl, dl
mov cl, bh
call fcn.0041bf60
movzx edx, ax
mov al, bl
or al, 8
and edx, 0x100
movzx ecx, al
movzx eax, bl
cmove ecx, eax
movzx eax, cl
movzx ecx, bh
shl ax, 8
pop esi
or ax, cx
pop ebx
ret
Function at 0x489680
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], edi
nop
movzx eax, word [esi]
cmp eax, 0x20
je 0x48969d
cmp eax, 9
jne 0x4896a2
add esi, 2
jmp 0x489690
test ax, ax
je 0x48980d
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x4896c6
mov word [edi + 2], ax
mov al, 1
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edi], 1
push ecx
mov byte [esp + 0x1b], bl
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x489798
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x489704
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x4896fd
cmp eax, 9
jne 0x489704
sub edi, 2
cmp edi, esi
ja 0x4896f0
sub edi, esi
sar edi, 1
inc edi
push edi
push str.Ctrl
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x489722
or bl, 1
jmp 0x489756
push edi
push 0x4ce2fc
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x48973b
or bl, 4
jmp 0x489756
push edi
push str.Shift
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x48980d
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x48976d
cmp eax, 9
jne 0x489772
add esi, 2
jmp 0x489760
test ax, ax
je 0x48980d
lea eax, [esi + 2]
push 0x2b
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4896e5
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
jne 0x4897c8
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
movzx eax, word [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.0041bad0
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x4897e0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041ba00
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x4897ef
or byte [edi], 8
test bl, 4
je 0x4897f7
or byte [edi], 0x10
test bl, 0x10
je 0x4897ff
or byte [edi], 4
pop edi
pop esi
test ax, ax
pop ebp
setne al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret

Function at 0x489860
Capabilities:
Print debug messages

Disassembly:
cmp byte [ecx + 0x251], 0
je 0x489882
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4cefc4
call fcn.004a0110
ret 8
jmp fcn.00447a20
Function at 0x48f540
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], 0
push esi
xor edx, edx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebx + 4], esi
mov dword [ebp - 4], edx
test eax, eax
jle 0x48f653
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x48f5d1
cmp dword [0x4e4b94], 0
mov ecx, 0x42
mov eax, dword [0x4e211c]
mov esi, 0x4e4860
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4e7858], xmm0
je 0x48f5ce
push 0x4e4970
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
add edx, edx
push 0
mov ecx, dword [eax + edx*8]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov edx, ecx
push dword [ebp + 8]
push str.call
call fcn.0048c090
add esp, 0x14
test eax, eax
je 0x48f635
cmp dword [ebp - 0x14], 0
jne 0x48f614
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x48f590
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x48f656
mov ecx, dword [ebp - 0x24]
mov eax, 3
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x494180
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20214
call fcn.004b7170
push esi
mov esi, dword [esp + 0x20228]
test esi, esi
je 0x49419c
cmp word [esi], 0
jne 0x4941a1
mov esi, str.ERROR
xor eax, eax
mov word [esp + 0x218], ax
mov word [esp + 4], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
push dword [esp + 0x20228]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0x20224]
mov ecx, dword [esp + 0x20220]
cmp word [eax], 0
movzx edx, word [ecx]
je 0x49422d
push edi
lea edi, [esp + 0x10]
test dx, dx
push edi
push 0xffff
lea edi, [esp + 0x224]
push edi
push esi
push eax
lea eax, [esp + 0x1c]
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
mov ecx, dword [0x4e6390]
lea eax, [esp + 0x218]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a0110
pop esi
add esp, 0x20214
ret 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x21c]
push 0xffff
push eax
test dx, dx
je 0x49424d
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x494253
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x49420a
lea eax, [esp + 0x218]
mov ecx, 0xa
cmp word [eax], 0
jne 0x494273
cmp word [eax + 2], 0
je 0x49420a
mov word [eax], cx
add eax, 2
jmp 0x494263
Function at 0x494280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], esi
push eax
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor edx, edx
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x218]
call fcn.0049d020
mov ebx, dword [ebp + 0x10]
test al, al
jne 0x494378
push 0
push 0
push 1
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x494375
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4942f5
sub ecx, edx
sar ecx, 1
lea eax, [ebx + ecx*2]
push 0
mov dword [ebp + 0x10], eax
lea edi, [ecx*2 + 2]
mov ecx, 0x5d
mov word [eax], cx
lea eax, [ebp + 0xc]
push eax
push 4
push 0x4d9ec4
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49434f
cmp dword [ebp + 0xc], 4
jne 0x49434f
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49434f
cmp dword [ebp + 0xc], edi
je 0x494356
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
mov ecx, 0
sbb eax, eax
and eax, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov word [eax], cx
je 0x49442f
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x494395
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4943f1
push 0
mov ecx, esi
call fcn.0043ab30
lea eax, [eax*2 + 4]
call fcn.004b71a0
mov edi, dword [ebp + 8]
mov eax, esp
mov dword [ebp + 0x10], eax
mov edx, eax
movzx ecx, word [edi]
test cx, cx
je 0x4943de
mov esi, ecx
sub edi, eax
xor ecx, ecx
movzx eax, si
cmp si, 0xa
cmovne ecx, eax
mov word [edx], cx
add edx, 2
movzx esi, word [edi + edx]
test si, si
jne 0x4943c0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [edx], ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test esi, esi
je 0x49442f
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4b8cc8
call fcn.004a0110
lea esp, [ebp - 0x224]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4e211c]
test byte [eax + 0x100], 1
jne 0x494462
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4cefc4
call fcn.004a0110
lea esp, [ebp - 0x224]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
push 0x4b8c14
push 0
push 0x4cefc4
call fcn.004473a0
lea esp, [ebp - 0x224]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x494bc0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push 0
push edi
call ebx
cmp eax, 0x103
je 0x494c86
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4e211c]
mov eax, dword [eax + 0xd0]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x494c90
mov ecx, dword [esp + 0x14]
call fcn.00494bc0
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x494c90
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x494c90
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebx
cmp eax, 0x103
jne 0x494c10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494ca0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], ecx
push esi
push edi
test ebp, ebp
je 0x494dc7
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x494cc7
cmp word [edi], 0
jne 0x494ccf
test ebx, ebx
je 0x494dc7
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4e211c]
mov eax, dword [eax + 0xd0]
or eax, 0x2001f
push eax
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x494db8
test ebx, ebx
jne 0x494da1
mov ecx, dword [esp + 0x18]
call fcn.00494bc0
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x494db8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e933c]
cmp eax, dword [ecx + 4]
jle 0x494d72
push 0x4e933c
call fcn.004b621d
add esp, 4
cmp dword [0x4e933c], 0xffffffff
jne 0x494d72
push str.RegDeleteKeyExW
push 0x4d8620
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e933c
mov dword [0x4e9340], eax
call fcn.004b61d3
add esp, 4
mov eax, dword [0x4e211c]
mov ecx, dword [eax + 0xd0]
test ecx, ecx
je 0x494d95
mov eax, dword [0x4e9340]
test eax, eax
je 0x494d95
push 0
push ecx
push edi
push ebp
call eax
mov esi, eax
jmp 0x494db8
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x494db8
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
jne 0x494dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x494dce
mov esi, 0x57
mov ecx, esi
mov eax, dword [0x4e211c]
test esi, esi
mov dword [eax + 0x30], ecx
setne al
mov ecx, dword [esp + 0x10]
movzx eax, al
push eax
call fcn.00447440
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x496ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push 0x34
mov dword [esp + 0x10], esi
call fcn.004b6030
mov ebx, eax
xor eax, eax
mov dword [esp + 0x1c], ebx
mov word [ebx + 0x20], ax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x22], 0xffff0101
mov byte [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 4], 1
mov dword [ebx], vtable.Struct.0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x28], eax
movzx eax, byte [esi + 0x22]
mov byte [ebx + 0x22], al
movzx eax, word [esi + 0x20]
mov word [ebx + 0x20], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x24], ax
movzx eax, byte [esi + 0x23]
mov byte [ebx + 0x23], al
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
movzx eax, byte [esi + 0x18]
mov byte [ebx + 0x18], al
movzx eax, byte [esp + 0x24]
xor eax, 1
dec eax
mov dword [ebx + 0x2c], eax
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], eax
lea eax, [edi + edi*8]
shl eax, 2
push eax
push 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov edx, eax
add esp, 0xc
test edx, edx
je 0x496c46
mov dword [ebx + 8], edx
mov dword [ebx + 0x10], edi
mov ecx, dword [esi + 0xc]
push ebp
xor ebp, ebp
mov dword [ebx + 0xc], ecx
mov dword [esp + 0x24], ebp
cmp dword [esi + 0xc], ebp
jle 0x496c3a
mov ebx, dword [esp + 0x10]
lea esi, [edx + 0x14]
mov eax, 0xffffffec
sub eax, edx
mov dword [esp + 0x18], eax
lea edi, [eax + esi]
add edi, dword [ebx + 8]
push dword [edi + 0x20]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x496bc1
inc ebp
mov eax, dword [edi + 0x14]
mov dword [esi], eax
movzx eax, byte [edi + 0x10]
mov byte [esi - 4], al
movzx eax, word [edi + 0xc]
mov word [esi - 8], ax
movzx eax, byte [edi + 0xe]
mov byte [esi - 6], al
movzx eax, byte [edi + 0xf]
mov byte [esi - 5], al
movzx eax, word [edi + 0x12]
mov word [esi - 2], ax
movzx eax, byte [edi + 0x11]
mov byte [esi - 3], al
mov eax, dword [edi + 8]
mov dword [esi - 0xc], eax
mov eax, dword [edi + 4]
mov dword [esi - 0x10], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
add esi, 0x24
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
jl 0x496ba7
mov ebx, dword [esp + 0x1c]
test ebp, ebp
je 0x496c3a
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret 4
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4