joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fece
Capabilities:
Reference sql statements

Disassembly:
push 0x34
mov eax, 0x50712e
call fcn.004db2a7
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push str.InstallerAnalytics.dll
mov dword [edi + 0xc], eax
call fcn.0040437e
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00451fcb
pop ecx
mov byte [ebp - 4], 1
lea esi, [edi + 0x10]
push eax
mov ecx, esi
call fcn.00404329
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405662
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405662
push str.SELECT__Data__FROM__Binary__WHERE__Name___InstallerAnalytics.dll
lea ecx, [ebp - 0x28]
call fcn.0040437e
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push esi
call fcn.004ad116
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405662
cmp dword [esi + 0x14], 8
jb 0x41ff5c
mov esi, dword [esi]
push 0x5c
push esi
call fcn.004de63a
pop ecx
pop ecx
test eax, eax
je 0x41ffa1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x41ffa1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitializeEmbeddedUI
push ebx
call esi
push str.ShutdownEmbeddedUI
push ebx
mov dword [edi], eax
call esi
push str.EmbeddedUIHandler
push ebx
mov dword [edi + 4], eax
call esi
mov dword [edi + 8], eax
mov eax, dword [edi]
test eax, eax
je 0x41ffb0
push 0
push 0
push dword [edi + 0xc]
call eax
call fcn.004db251
ret 8

Function at 0x4290aa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x2e4]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
push 0xfffffffffffffff0
push esi
call edi
test eax, 0x10000000
je 0x429109
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x429109
push 0xfffffffffffffff0
push esi
call edi
shr eax, 0x10
test al, 1
je 0x429109
push 0
push 0
push 0x87
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
shr eax, 0xd
test al, 1
jne 0x429109
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov al, 1
jmp 0x42913b
push 0
push esi
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov edi, eax
test edi, edi
je 0x429139
cmp edi, esi
je 0x429139
push 0
push 0
push 0x87
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
shr eax, 0xd
test al, 1
jne 0x429139
push edi
jmp 0x4290ff
xor al, al
pop edi
pop esi
pop ebp
ret
Function at 0x429b11
Capabilities:
Get disk size

Disassembly:
push 0xa8
mov eax, 0x5094b1
call fcn.004db315
mov edi, ecx
mov dword [ebp - 0x88], edi
cmp dword [ebp + 8], 1
je 0x429b3c
and dword [edi + 0x1a4], 0
xor eax, eax
jmp 0x429cbc
xor ecx, ecx
mov dword [ebp - 4], ecx
wait
mov esi, dword [edi + 0x258]
mov ebx, dword [edi + 0x25c]
cmp esi, ebx
jne 0x429b5b
xor eax, eax
inc eax
wait
jmp 0x429cbc
mov dword [ebp - 0x98], esi
cmp esi, ebx
je 0x429c67
mov eax, dword [esi + 0x28]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
ucomisd xmm0, qword [0x54b9c8]
lahf
test ah, 0x44
jnp 0x429c5f
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x429bad
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x94]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x90]
mov dword [esi + 0x24], eax
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x94]
call fcn.00500f20
mulsd xmm0, qword [0x54b9e0]
mov eax, dword [esi + 0x28]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm0, xmm1
xorps xmm1, xmm1
comisd xmm1, xmm0
jbe 0x429c5d
push 0x535044
lea ecx, [ebp - 0x48]
call fcn.0040437e
mov byte [ebp - 4], 1
push str.OutOfDiskSpace
lea ecx, [ebp - 0x30]
call fcn.0040437e
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x1ac]
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x30]
push edx
call dword [eax + 0xc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00405662
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00405662
jmp 0x429b52
xor ecx, ecx
add esi, 0x30
jmp 0x429b5b
push 0x5383cc
lea ecx, [ebp - 0x30]
call fcn.0040437e
mov byte [ebp - 4], 3
push str.OutOfDiskSpace
lea ecx, [ebp - 0x48]
call fcn.0040437e
mov byte [ebp - 4], 4
mov ecx, dword [edi + 0x1ac]
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x48]
push edx
call dword [eax + 0xc]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00405662
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00405662
wait
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
call fcn.004db262
ret 4
Function at 0x42c207
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x14
mov eax, 0x509980
call fcn.004db273
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x14]
and dword [esi], 0
test al, al
jne 0x42c310
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
inc ecx
test eax, eax
push 2
pop edx
cmovne ecx, edx
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ebx, ebx
mov edx, 0x8000
mov cx, ax
and cx, dx
cmp byte [edi + 0x18], bl
sete bl
cmp dword [ebp + 0xc], 8
jne 0x42c276
xor ax, ax
mov dword [esi], 1
cmp ax, cx
sbb esi, esi
neg esi
add esi, 2
jmp 0x42c294
cmp dword [ebp + 0xc], 0x14
mov esi, ebx
jne 0x42c294
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
xor ax, ax
cmp ax, cx
sbb ebx, ebx
neg ebx
add ebx, 2
push dword [edi - 0x24]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
mov dword [ebp + 0x14], edi
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
push eax
push esi
push eax
mov ecx, dword [ecx + 0x14]
push edi
mov edx, dword [ecx]
call dword [edx + 0x18]
mov esi, dword [ebp - 0x10]
push 0
push ebx
push 2
mov ecx, dword [esi + 0x14]
push edi
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp dword [ebp + 0xc], 8
je 0x42c2d3
cmp dword [ebp + 0xc], 0x14
jne 0x42c2fd
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi - 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], 0x12
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov edi, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x42c310
and dword [ebp + 0x14], 0
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
call fcn.004db23c
ret 0x10
Function at 0x42f5ef
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x54
mov eax, 0x50a2b1
call fcn.004db2a7
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x60], ebx
call fcn.0046b440
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov byte [ebp - 4], 1
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.0045aa90
push eax
mov edx, 0x538940
mov dword [ebp - 0x60], 1
lea ecx, [ebp - 0x5c]
call fcn.00419e78
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push eax
call fcn.0042f846
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00405662
xor eax, eax
inc eax
mov dword [ebp - 0x60], eax
and eax, 0xfffffffe
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00405662
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046d3b0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x42f67d
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00405662
test esi, esi
jne 0x42f6c6
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0046d3b0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x42f6ad
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00405662
test esi, esi
je 0x42f6d6
lea eax, [ebp - 0x2c]
mov ecx, 0x5803f8
push eax
call fcn.0046f170
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405662
mov al, bl
call fcn.004db251
ret

Function at 0x43891c
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 4
mov eax, 0x50c0fb
call fcn.004db273
mov edi, ecx
mov esi, 0x105
lea eax, [ebp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4389c9
cmp eax, esi
jae 0x4389c9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d859
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, 0x5397c4
push ebx
call fcn.004e07a4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.00410e44
test edi, edi
jne 0x438989
mov eax, esi
jmp 0x438990
push edi
call fcn.004e07a4
pop ecx
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.00410e44
mov edi, dword [ebp - 0x10]
push 0x5c
push edi
call fcn.004de63a
pop ecx
pop ecx
test eax, eax
je 0x4389b6
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040d570
mov eax, esi
jmp 0x4389cb
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 + 0x20c]
xor ecx, ebp
call fcn.004da696
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x44004a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x440096
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x4400c1
shr ecx, 2
test cl, 1
je 0x4400c9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4400f6
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
jbe 0x4400f6
or byte [edi + 0x58], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440a82
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x57d074]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x130]
xor ebp, ebp
push 0x30
pop esi
push esi
mov ebx, ecx
push ebp
push ebx
call fcn.004de4e0
push 0x110
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x114
push ebp
push eax
call fcn.004de4e0
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x440ae1
cmp dword [esp + 0x14], 6
jae 0x440ae4
push 0x2c
pop esi
mov eax, dword [esp + 0x134]
mov dword [ebx], esi
mov dword [ebx + 4], ebp
test eax, eax
jne 0x440b05
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [ebx + 4], 1
mov ecx, eax
mov eax, edi
jmp 0x440b07
mov ecx, edi
mov esi, dword [esp + 0x138]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
test esi, esi
je 0x440b1f
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x57f2d8]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x134]
mov dword [ebx + 0x28], ebp
pop ebp
mov dword [ebx + 0x24], eax
pop ebx
xor ecx, esp
call fcn.004da696
add esp, 0x118
ret 0x18
Function at 0x442300
Capabilities:
Parse credit card information

Disassembly:
push 0x28
mov eax, 0x50d9d6
call fcn.004db2a7
mov ebx, ecx
mov edi, ebx
lea eax, [ebx - 0x154]
neg edi
sbb edi, edi
and edi, eax
cmp dword [ebx + 0x14], 0
jne 0x442329
xor al, al
jmp 0x442449
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xb0
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
je 0x442359
mov al, 1
jmp 0x442449
mov al, byte [ebp + 8]
cbw
push eax
mov dword [ebp - 0x30], eax
call fcn.004e3827
pop ecx
test eax, eax
je 0x442352
movsx ecx, byte [ebp + 8]
movzx eax, word [ebx]
mov dword [ebp - 0x34], ecx
cmp eax, ecx
je 0x442322
call fcn.0040d266
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d07d
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 4]
call fcn.00410bbe
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push esi
call fcn.0040437e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebx + 0x14]
jae 0x442421
add ebx, 4
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4423c0
mov eax, dword [ebx]
movzx eax, word [eax + ecx*2]
cmp eax, 0x3d
ja 0x4423ef
je 0x44242d
sub eax, 0x23
je 0x4423db
dec eax
sub eax, 1
je 0x4423db
sub eax, 1
jmp 0x442401
push dword [ebp - 0x30]
call fcn.004e3814
pop ecx
test eax, eax
jne 0x44242d
push 0x1056
jmp 0x442419
cmp eax, 0x3f
jb 0x442403
cmp eax, 0x40
jbe 0x44242d
cmp eax, 0x5e
je 0x44242d
cmp eax, 0x60
je 0x44242d
cmp dword [ebx + 0x14], 8
jb 0x44240b
mov ebx, dword [ebx]
movzx eax, word [ebx + ecx*2]
cmp dword [ebp - 0x34], eax
je 0x44242d
push 0x1057
push ecx
mov ecx, edi
call fcn.0041c20c
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
xor ebx, ebx
jmp 0x44242f
mov bl, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405662
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040d570
mov al, bl
call fcn.004db251
ret 4
Function at 0x452098
Capabilities:
Get disk information

Disassembly:
push 0x20
mov eax, 0x510525
call fcn.004db2a7
mov eax, ecx
mov dword [ebp - 0x2c], eax
call fcn.0041f7ce
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
lea ecx, [ebp - 0x28]
push ebx
push esi
call fcn.004526e1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x45211b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov edx, eax
cmovae ecx, dword [ebp - 0x28]
push esi
call fcn.004712c0
mov eax, dword [esi + 4]
sub eax, dword [esi]
pop ecx
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405662
mov al, bl
call fcn.004db251
ret
Function at 0x457e04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x24
mov eax, 0x5117b3
call fcn.004db2de
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
push 0x60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x457e87
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x457e87
call fcn.0040c149
mov edi, eax
jmp 0x457f70
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x457ea4
call fcn.0040c149
jmp 0x457f63
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x457e9a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x457ed1
mov edi, 0x8007000e
jmp 0x457f65
push 2
pop ecx
mov byte [ebp - 4], cl
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp edx, ebx
ja 0x457fae
jb 0x457ef2
cmp eax, 0xffffffff
ja 0x457fae
cmp eax, 0x400
jbe 0x457f04
push eax
lea ecx, [ebp]
call fcn.004506dd
jmp 0x457f0a
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x457f28
cmp dword [ebp], 0
je 0x457ec7
push edi
push dword [ebp]
push edi
push dword [ebp - 0x14]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x457e9a
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.00457cb8
mov edi, eax
test esi, esi
je 0x457f70
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x457f83
lea ecx, [ebp]
call fcn.004506d4
or dword [ebp - 4], 0xffffffff
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 + 0x404]
xor ecx, ebp
call fcn.004da696
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.0040d795
int3
Function at 0x46e980
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514270
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x57d074]
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, ecx
mov dword [ebp - 0x2c], eax
mov esi, dword [eax]
mov ebx, dword [eax + 4]
cmp esi, ebx
je 0x46ea66
nop dword [eax]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0046d3b0
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0046eb60
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x46ea3f
lea edx, [eax + 1]
mov eax, dword [ebp - 0x28]
mov ecx, eax
cmp edx, 0x7fffffff
ja 0x46eb58
add edx, edx
cmp edx, 0x1000
jb 0x46ea35
lea edi, [edx + 0x23]
cmp edi, edx
jbe 0x46eb58
mov edx, edi
test cl, 0x1f
jne 0x46eb58
mov eax, dword [eax - 4]
cmp eax, ecx
jae 0x46eb58
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x46eb58
push edx
push eax
call fcn.004dadb5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
add esi, 0x18
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, ebx
jne 0x46e9c0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [esi + 4]
mov esi, dword [esi]
push ebx
push esi
call fcn.0046f460
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x46eb24
mov ecx, esi
lea eax, [ebp - 0x28]
add ecx, 0xffffffe8
push eax
call fcn.0046d3b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x46eaa0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x46eb00
mov ecx, dword [ebp - 0x28]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x7fffffff
ja 0x46eb58
add edx, edx
cmp edx, 0x1000
jb 0x46eaf6
lea ebx, [edx + 0x23]
cmp ebx, edx
jbe 0x46eb58
mov edx, ebx
test al, 0x1f
jne 0x46eb58
mov ecx, dword [ecx - 4]
cmp ecx, eax
jae 0x46eb58
sub eax, ecx
sub eax, 4
cmp eax, 0x1f
ja 0x46eb58
push edx
push ecx
call fcn.004dadb5
add esp, 8
sub esi, 0x18
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, esi
cmp esi, edi
jne 0x46ea85
mov ebx, dword [ebp - 0x2c]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0046f460
mov eax, dword [ebx + 0xc]
mov ecx, ebx
mov dword [ebx + 0x10], eax
call fcn.0046ee70
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.004da696
mov esp, ebp
pop ebp
ret
call fcn.004e0754
int3
Function at 0x46eb60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5142c1
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x57d074]
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 esi, ecx
mov edi, dword [esi + 0x14]
mov edx, esi
cmp edi, 8
jb 0x46eb9c
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x46ebb3
mov eax, edx
cmp word [eax], 0x2a
je 0x46ebdd
add eax, 2
sub ecx, 1
jne 0x46eba5
cmp edi, 8
jb 0x46ebba
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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.004da696
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x46ebb3
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x46ebb3
lea ecx, [ebp - 0x478]
call fcn.0046ed00
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x46ec04
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x478]
call fcn.00483c30
test eax, eax
je 0x46ecd9
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x18], 0
je 0x46ec62
mov eax, dword [ebp - 0x478]
shr eax, 4
and eax, 1
je 0x46ec5e
cmp word [ebp - 0x44c], 0x2e
jne 0x46ec5e
mov cx, word [ebp - 0x44a]
test cx, cx
je 0x46ecb7
cmp cx, 0x2e
jne 0x46ec5e
cmp word [ebp - 0x448], 0
je 0x46ecb7
test eax, eax
jne 0x46ecb7
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x478]
call fcn.00484080
mov byte [ebp - 4], 1
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46ecb7
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x534850
jne 0x46ecf0
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46ecd9
cmp dword [ebp - 0x18], 0
je 0x46ecd9
lea ecx, [ebp - 0x478]
push ecx
push eax
call ebx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x46ec24
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.0046edb0
jmp 0x46ebc1
mov ecx, edx
call esi
jmp 0x46ecb7

Function at 0x46ff70
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x46ff9f
cmp dword [edi + 0x20], 8
lea ecx, [edi + 0xc]
jb 0x46ff85
mov ecx, dword [ecx]
mov eax, dword [edi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [edi + 0x3c]
mov ecx, edi
call fcn.00456dc7
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x46ffab
mov esi, dword [esi]
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x46ffb7
mov ebx, dword [ebx]
test esi, esi
jne 0x46ffcb
mov eax, 0xd
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 0xc
push esi
call fcn.004e07a4
add esp, 4
lea eax, [eax*2 + 2]
push eax
push esi
push 2
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 0xc
Function at 0x470300
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
jne 0x470330
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x470314
mov ecx, dword [ecx]
mov eax, dword [esi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [esi + 0x3c]
mov ecx, esi
call fcn.00456dc7
mov edx, dword [esi]
mov ecx, dword [esp + 8]
pop esi
cmp dword [ecx + 0x14], 8
jb 0x47033d
mov ecx, dword [ecx]
mov eax, dword [esp + 8]
push 4
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
ret 8