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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x45f252
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x110
jne 0x45f0a5
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
push 1
push 1
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
pop ebp
ret 0x18
cmp ecx, 2
jne 0x45f0e6
push 0x4ec058
push dword [0x52e3b0]
push dword [edi + 4]
call fcn.00490ea0
mov eax, dword [edi]
add esp, 0xc
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
pop ebp
ret 0x18
mov esi, dword [ebp + 0x10]
mov ebx, 1
cmp ecx, 0x111
jne 0x45f18c
movzx eax, si
mov ebx, 2
mov edx, eax
cmp bx, ax
jne 0x45f125
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
lea eax, [ebx - 1]
pop ebx
pop ebp
ret 0x18
mov ebx, 1
cmp bx, dx
jne 0x45f15c
mov esi, dword [edi]
cmp dword [ebp + 0x14], ebx
jne 0x45f13b
mov esi, dword [esi + 0x18]
jmp 0x45f13e
mov esi, dword [esi + 0x1c]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x18]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword [ecx], 0
pop ebp
ret 0x18
mov eax, 0x418
cmp ax, dx
jne 0x45f18c
mov edi, dword [edi + 0x44]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x18
lea edx, [edi + 0x24]
cmp ecx, 5
jne 0x45f220
xor eax, eax
test edx, edx
cmove edi, eax
cmp byte [edx + 0x1c], al
je 0x45f201
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x45f201
cmp esi, 2
jne 0x45f1de
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [edi + 0x24]
call fcn.0043f3d0
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x18
test esi, esi
jne 0x45f201
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [edi + 0x24]
call fcn.0043f3d0
mov eax, dword [ebp + 0x18]
pop edi
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 0x18
cmp esi, 1
je 0x45f240
lea ecx, [edi + 0x24]
call fcn.0043f3d0
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x18
cmp ecx, 0x24
jne 0x45f252
cmp dword [edx + 0x14], 0xffffffff
je 0x45f240
cmp dword [edx + 0x18], 0xffffffff
je 0x45f240
mov eax, dword [ebp + 0x14]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
Function at 0x45f260
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x45f462
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x110
jne 0x45f2b5
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
push 1
push 1
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
pop ebp
ret 0x18
cmp ecx, 2
jne 0x45f2f6
push 0x4ed4d0
push dword [0x52e3b0]
push dword [edi + 4]
call fcn.00490ea0
mov eax, dword [edi]
add esp, 0xc
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
pop ebp
ret 0x18
mov esi, dword [ebp + 0x10]
mov ebx, 1
cmp ecx, 0x111
jne 0x45f39c
movzx eax, si
mov ebx, 2
mov edx, eax
cmp bx, ax
jne 0x45f335
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
lea eax, [ebx - 1]
pop ebx
pop ebp
ret 0x18
mov ebx, 1
cmp bx, dx
jne 0x45f36c
mov esi, dword [edi]
cmp dword [ebp + 0x14], ebx
jne 0x45f34b
mov esi, dword [esi + 0x18]
jmp 0x45f34e
mov esi, dword [esi + 0x1c]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x18]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword [ecx], 0
pop ebp
ret 0x18
mov eax, 0x418
cmp ax, dx
jne 0x45f39c
mov edi, dword [edi + 0x44]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x18
lea edx, [edi + 0x24]
cmp ecx, 5
jne 0x45f430
xor eax, eax
test edx, edx
cmove edi, eax
cmp byte [edx + 0x1c], al
je 0x45f411
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x45f411
cmp esi, 2
jne 0x45f3ee
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [edi + 0x24]
call fcn.0043f3d0
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x18
test esi, esi
jne 0x45f411
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [edi + 0x24]
call fcn.0043f3d0
mov eax, dword [ebp + 0x18]
pop edi
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 0x18
cmp esi, 1
je 0x45f450
lea ecx, [edi + 0x24]
call fcn.0043f3d0
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x18
cmp ecx, 0x24
jne 0x45f462
cmp dword [edx + 0x14], 0xffffffff
je 0x45f450
cmp dword [edx + 0x18], 0xffffffff
je 0x45f450
mov eax, dword [ebp + 0x14]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
Function at 0x460c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d65db
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.004aa220
add esp, 0xc
mov dword [ebp - 0x420], 0
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
jne 0x460cd8
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x428], eax
test esi, esi
jne 0x460cd8
call fcn.00454160
mov edi, eax
jmp 0x460df5
push dword [ebp - 0x424]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x460cf6
call fcn.00454160
jmp 0x460de8
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x460d14
call fcn.00454160
jmp 0x460de8
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
mov dword [ebp - 0x42c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x460d35
mov edi, 0x8007000e
jmp 0x460dea
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x460e2e
jb 0x460d53
cmp eax, 0xffffffff
ja 0x460e2e
cmp eax, 0x400
jbe 0x460d6b
push eax
lea ecx, [ebp - 0x420]
lfence
call fcn.00437280
jmp 0x460d91
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
jmp 0x460d91
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x460da8
mov edi, 0x8007000e
jmp 0x460dea
push edi
lfence
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x460dcb
call fcn.00454160
jmp 0x460de8
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.00460a70
mov edi, eax
test esi, esi
je 0x460df5
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x460e0e
lea ecx, [ebp - 0x420]
call fcn.00438690
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 - 0x14]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
lfence
call fcn.0040b680
int3
Function at 0x462880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov dword [ebp - 0x28], 1
lea edi, [ecx + 0x40]
mov dword [ebp - 0x24], 0x9c6c
xor esi, esi
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 0x9c6a
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0x9c69
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 0x9c6e
mov dword [ebp - 8], 5
mov dword [ebp - 4], 0x9c6b
mov ecx, dword [ebp + esi*8 - 0x28]
mov eax, dword [0x52d910]
push 0
push dword [eax + ecx*4]
mov ecx, 0x52db14
push 0
push 0x9c92
call fcn.004244a0
movzx eax, al
mov ecx, edi
push 0
xor eax, 1
push eax
push dword [ebp + esi*8 - 0x24]
call fcn.00462510
inc esi
cmp esi, 5
jb 0x4628d3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x464b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
push 0x206
mov dword [ebp - 0x210], edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004aa220
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x210]
push eax
push 0x12
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jns 0x464bae
push 0
call fcn.004a27e0
push eax
push 0
jmp 0x464c4c
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x228], 0x4f3c04
mov dword [ebp - 0x224], 0x1000
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x464c1c
mov ecx, dword [ebp - 0x214]
push eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x14]
mov ecx, esi
call dword [0x4dc8a4]
call esi
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x4dc8a4]
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004a27e0
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004a29e0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [edi], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x466c80
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x466cfe
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.004a2a40
lea eax, [eax*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ecx, edi
mov esi, eax
call fcn.004a2a40
mov ecx, edi
lea eax, [eax*2 + 2]
push eax
call fcn.004a2380
push eax
push esi
call fcn.004aaaa0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
xor al, al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0xf003f
push 0
push edi
push esi
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4672a3
nop dword [eax]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.00467210
add esp, 8
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x467270
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x468340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a7559
add esp, 4
mov edi, eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 0
call fcn.004a27e0
push eax
push edi
call fcn.004a29e0
push edi
mov dword [esi], eax
call fcn.004a71f6
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x468ed0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x52dd40], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0x6c], ebx
jne 0x468f11
push 5
push 0x52dd40
push 0xe
mov eax, 0x2e
push 0x400
mov word [0x52dd40], ax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
movsd xmm0, qword [ebp + 0xc]
lea eax, [ebp - 0x68]
sub esp, 8
movsd qword [esp], xmm0
push 0x4e5158
push eax
call fcn.0041a890
mov di, word [0x52dd40]
lea edx, [ebp - 0x68]
add esp, 0x10
nop dword [eax]
movzx eax, word [edx]
cmp eax, 0x30
je 0x468f4d
cmp ax, di
jne 0x468f52
add edx, 2
jmp 0x468f40
test ax, ax
je 0x468f7c
push esi
mov esi, dword [ebp + 0x14]
nop dword [eax + eax]
test esi, esi
jle 0x468f7b
movzx eax, word [edx]
lea ecx, [esi - 1]
add edx, 2
cmp ax, di
cmove ecx, esi
mov esi, ecx
cmp word [edx], 0
jne 0x468f60
pop esi
xor eax, eax
mov word [edx], ax
lea eax, [ebp - 0x68]
push eax
call fcn.004a27e0
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004a29e0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [ebx], eax
xor ecx, ebp
mov eax, ebx
pop edi
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x469130
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push edi
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
push 5
push eax
push 0x11
push esi
movq qword [ebp - 0x10], xmm0
mov word [ebp - 8], 0
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x14], 0
movq qword [ebp - 0x28], xmm0
mov word [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x40]
push eax
push 0x12
push esi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x10]
push eax
push 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x1c]
push eax
push 0xf
push esi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x28]
push eax
push 0xe
push esi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
push 5
lea eax, [ebp - 0x4c]
push eax
push 0x1010
push esi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
lea eax, [ebp - 0x34]
push eax
call fcn.004b60f4
mov dword [edi], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b60f4
mov dword [edi + 4], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004b60f4
mov dword [edi + 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004bde6c
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004bde6c
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004b60f4
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [edi + 0x14], eax
xor ecx, ebp
pop edi
pop esi
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x4692a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x4692cf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test esi, esi
je 0x469390
push 0
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
jne 0x4693a0
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x4ee4c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004bad7a
add esp, 0xc
lea eax, [ebp - 0x20c]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
push 0
push 0
mov ebx, eax
lea eax, [ebp - 0x210]
push eax
push 0x400
push esi
push ebx
push 0x900
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
je 0x469384
push 0x4e6308
mov ecx, edi
call fcn.004a2650
push dword [ebp - 0x210]
mov ecx, edi
call fcn.004a2650
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
test ebx, ebx
je 0x46938f
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
push 0x4e6308
mov ecx, edi
call fcn.004a2650
push dword [ebp - 0x210]
mov ecx, edi
call fcn.004a2650
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a71aa
mov esp, ebp
pop ebp
ret

Function at 0x4693e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push 0xe
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a7559
add esp, 4
mov edi, eax
push edi
push esi
push 0xd
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 0
call fcn.004a27e0
push eax
push edi
call fcn.004a29e0
push edi
mov dword [esi], eax
call fcn.004a71f6
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469bd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], 0
push eax
push 8
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x19], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x10]
call fcn.004b4722
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x469ca4
push edi
xor edi, edi
cmp edi, dword [ebx]
jae 0x469c9f
push esi
lea esi, [ebx + 8]
push dword [esi - 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x469c94
mov eax, dword [esi]
test eax, 0xffffffef
setne cl
test al, 4
setne al
test al, cl
jne 0x469c9c
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x469c71
cmp edi, dword [ebx]
pop esi
setne byte [ebp - 0x19]
pop edi
push ebx
call fcn.004b4707
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x19]
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x46b220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6f2d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x517b80]
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 ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46b332
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x46b32b
cmp dword [ebp - 0x14], 4
jne 0x46b32b
push dword [ebp - 0x18]
call fcn.004a2950
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x46b2d2
mov ecx, esi
call fcn.004a28d0
jmp 0x46b2d4
xor eax, eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x46b319
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jne 0x46b319
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], esi
test esi, esi
je 0x46b305
mov ecx, esi
call fcn.004a26e0
mov dword [ebp - 4], 1
test esi, esi
je 0x46b338
mov ecx, esi
call fcn.004a2a20
jmp 0x46b338
mov dword [ebp - 4], 2
test esi, esi
je 0x46b32b
mov ecx, esi
call fcn.004a2a20
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], 0
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.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x46b390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6f6d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x517b80]
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 eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0
push eax
mov dword [ebp - 0x18], edi
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
call fcn.004a2950
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x46b407
mov ecx, esi
call fcn.004a28d0
jmp 0x46b409
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46b436
mov dword [edi], esi
test esi, esi
je 0x46b42d
mov ecx, esi
call fcn.004a26e0
mov dword [ebp - 4], 1
jmp 0x46b443
mov dword [edi], 0
mov dword [ebp - 4], 2
test esi, esi
je 0x46b44e
mov ecx, esi
call fcn.004a2a20
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.004a71aa
mov esp, ebp
pop ebp
ret