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

Disassembly:
push 0x4c
mov eax, 0x4fee39
call fcn.004d0e17
lea ecx, [ebp - 0x28]
call fcn.00467560
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.004572c0
mov byte [ebp - 4], 1
mov edx, 0x52c8f0
push eax
lea ecx, [ebp - 0x58]
call fcn.004190be
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.0042da0a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004050c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.004050c4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00469200
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x42d79e
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.004050c4
test esi, esi
jne 0x42d7e7
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00469200
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x42d7ce
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 - 0x40]
call fcn.004050c4
test esi, esi
je 0x42d7f7
lea eax, [ebp - 0x28]
mov ecx, 0x57345c
push eax
call fcn.0046ad90
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050c4
mov al, bl
call fcn.004d0dc1
ret

Function at 0x43635f
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 4
mov eax, 0x500c6b
call fcn.004d0de3
mov esi, ecx
mov edi, 0x105
lea eax, [ebp]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4363e9
cmp eax, edi
jae 0x4363e9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d264
and dword [ebp - 4], 0
mov edi, 0x52d76c
push edi
call fcn.004d5c34
pop ecx
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004106c3
push esi
lea ecx, [ebp - 0x10]
call fcn.0041069b
mov ecx, dword [ebp - 0x10]
call fcn.0041eb3d
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040cf54
mov eax, esi
jmp 0x4363eb
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.004d0217
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x43d36d
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 0x43d3b9
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 0x43d3e4
shr ecx, 2
test cl, 1
je 0x43d3ec
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 0x43d41c
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
cmp eax, 0x20
jbe 0x43d41c
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 0x43dd8c
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x570074]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x12c]
xor ebp, ebp
push edi
push 0x30
pop edi
push edi
mov ebx, ecx
push ebp
push ebx
call fcn.004d39c0
push 0x110
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x114
push ebp
push eax
call fcn.004d39c0
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43ddeb
cmp dword [esp + 0x14], 6
jae 0x43ddee
push 0x2c
pop edi
mov eax, dword [esp + 0x134]
mov dword [ebx], edi
mov dword [ebx + 4], ebp
test eax, eax
jne 0x43de11
push esi
call dword [sym.imp.USER32.dll_GetParent]
or dword [ebx + 4], 1
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], esi
jmp 0x43de17
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
mov esi, dword [esp + 0x138]
test esi, esi
je 0x43de29
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 [0x5722d8]
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.004d0217
add esp, 0x118
ret 0x18
Function at 0x43f503
Capabilities:
Parse credit card information

Disassembly:
push 0x28
mov eax, 0x502398
call fcn.004d0e17
mov ebx, ecx
mov edi, ebx
lea eax, [ebx - 0x154]
neg edi
sbb edi, edi
and edi, eax
cmp dword [ebx + 0x14], 0
jne 0x43f52c
xor al, al
jmp 0x43f64c
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 0x43f55c
mov al, 1
jmp 0x43f64c
mov al, byte [ebp + 8]
cbw
push eax
mov dword [ebp - 0x30], eax
call fcn.004d8cd2
pop ecx
test eax, eax
je 0x43f555
movsx ecx, byte [ebp + 8]
movzx eax, word [ebx]
mov dword [ebp - 0x34], ecx
cmp eax, ecx
je 0x43f525
call fcn.0040cc51
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ca68
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 4]
call fcn.00410427
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push esi
call fcn.004042a7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebx + 0x14]
jae 0x43f624
add ebx, 4
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x43f5c3
mov eax, dword [ebx]
movzx eax, word [eax + ecx*2]
cmp eax, 0x3d
ja 0x43f5f2
je 0x43f630
sub eax, 0x23
je 0x43f5de
dec eax
sub eax, 1
je 0x43f5de
sub eax, 1
jmp 0x43f604
push dword [ebp - 0x30]
call fcn.004d8cbf
pop ecx
test eax, eax
jne 0x43f630
push 0x1056
jmp 0x43f61c
cmp eax, 0x3f
jb 0x43f606
cmp eax, 0x40
jbe 0x43f630
cmp eax, 0x5e
je 0x43f630
cmp eax, 0x60
je 0x43f630
cmp dword [ebx + 0x14], 8
jb 0x43f60e
mov ebx, dword [ebx]
movzx eax, word [ebx + ecx*2]
cmp dword [ebp - 0x34], eax
je 0x43f630
push 0x1057
push ecx
mov ecx, edi
call fcn.0041b03e
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
xor ebx, ebx
jmp 0x43f632
mov bl, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004050c4
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040cf54
mov al, bl
call fcn.004d0dc1
ret 4

Function at 0x44eaf7
Capabilities:
Get disk information

Disassembly:
push 0x20
mov eax, 0x504de4
call fcn.004d0e17
mov eax, ecx
mov dword [ebp - 0x2c], eax
call fcn.0041e45b
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.0044f0f7
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 0x44eb7a
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.0046ce80
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.004050c4
mov al, bl
call fcn.004d0dc1
ret
Function at 0x451572
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5056bb
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x570074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xc
lea ecx, [esi + 0x284]
call fcn.004050c4
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x1f4]
call fcn.004518a3
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x1f0]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ecx]
push 0x10
pop ebx
sub ecx, ebx
call fcn.0040cf54
mov byte [ebp - 4], 9
lea ecx, [esi + 0x1dc]
mov edi, 0x527e68
mov dword [ecx], edi
call fcn.00404fb2
mov byte [ebp - 4], 8
lea ecx, [esi + 0x1d4]
mov dword [ecx], edi
call fcn.00404fb2
mov byte [ebp - 4], 7
lea ecx, [esi + 0x1d0]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ecx]
sub ecx, ebx
call fcn.0040cf54
mov byte [ebp - 4], 6
lea ecx, [esi + 0x178]
call fcn.004517ff
mov byte [ebp - 4], 5
lea ecx, [esi + 0x140]
call fcn.0048fedc
mov byte [ebp - 4], 4
lea ecx, [esi + 0x130]
call fcn.00450a60
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.0048cd39
mov byte [ebp - 4], 2
lea ecx, [esi + 0x1c]
call fcn.004517a2
mov byte [ebp - 4], 1
lea ecx, [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
sub ecx, ebx
call fcn.0040cf54
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, ebx
call fcn.0040cf54
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
mov dword [ebp - 0x14], ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
sub ecx, ebx
call fcn.0040cf54
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 0x45224e
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505c1e
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push esi
push edi
mov eax, dword [0x570074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xc
lea ecx, [esi + 0x48]
call fcn.004523b9
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x3c]
call fcn.0045243b
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x34]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ecx]
push 0x10
pop edi
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 9
lea ecx, [esi + 0x30]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 8
lea ecx, [esi + 0x2c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 7
lea ecx, [esi + 0x24]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 6
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 5
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 4
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 3
lea ecx, [esi + 0x14]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 1
lea ecx, [esi + 8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
mov byte [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040cf54
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [esi]
sub ecx, edi
call fcn.0040cf54
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45452e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x24
mov eax, 0x506013
call fcn.004d0e4e
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 0x4545b1
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 0x4545b1
call fcn.0040bb6d
mov edi, eax
jmp 0x45469a
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4545ce
call fcn.0040bb6d
jmp 0x45468d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4545c4
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 0x4545fb
mov edi, 0x8007000e
jmp 0x45468f
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 0x454633
cmp eax, 0xffffffff
ja 0x454633
cmp eax, 0x400
jbe 0x454624
push eax
lea ecx, [ebp]
call fcn.0044d25b
jmp 0x45462a
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x454652
push 0x80070216
call fcn.0040d173
mov eax, 0x454643
ret
cmp dword [ebp], 0
je 0x4545f1
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 0x4545c4
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.004543e2
mov edi, eax
test esi, esi
je 0x45469a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4546ad
lea ecx, [ebp]
call fcn.0044d252
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.004d0217
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
Function at 0x46a5f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506110
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x570074]
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 [ebx]
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x46a6bc
nop word [eax + eax]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00469200
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0046a7a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x46a69d
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x46a798
add eax, eax
cmp eax, 0x1000
jb 0x46a694
test cl, 0x1f
jne 0x46a798
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46a798
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x46a798
mov ecx, eax
push ecx
call fcn.004d0212
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 0
add esi, 0x18
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, edi
jne 0x46a630
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
call fcn.0046b250
mov eax, dword [ebx]
add esp, 4
mov dword [ebx + 4], eax
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x46a760
nop dword [eax]
lea eax, [ebp - 0x28]
add esi, 0xffffffe8
push eax
mov ecx, esi
call fcn.00469200
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x46a6fd
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 0x46a748
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x46a798
add eax, eax
cmp eax, 0x1000
jb 0x46a73f
test cl, 0x1f
jne 0x46a798
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46a798
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x46a798
mov ecx, eax
push ecx
call fcn.004d0212
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, edi
jne 0x46a6e0
mov edx, dword [ebx + 0x10]
push ecx
mov ecx, dword [ebx + 0xc]
call fcn.0046b250
mov eax, dword [ebx + 0xc]
add esp, 4
mov ecx, ebx
mov dword [ebx + 0x10], eax
call fcn.0046aab0
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.004d0217
mov esp, ebp
pop ebp
ret
call fcn.004d5be4
int3
Function at 0x46a7a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508a11
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x570074]
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 0x46a7dc
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x46a7f3
mov eax, edx
cmp word [eax], 0x2a
je 0x46a81d
add eax, 2
sub ecx, 1
jne 0x46a7e5
cmp edi, 8
jb 0x46a7fa
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.004d0217
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x46a7f3
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x46a7f3
lea ecx, [ebp - 0x478]
call fcn.0046a940
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x46a844
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x478]
call fcn.0047faa0
test eax, eax
je 0x46a91f
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x18], 0
je 0x46a8a2
mov eax, dword [ebp - 0x478]
shr eax, 4
and eax, 1
je 0x46a89e
cmp word [ebp - 0x44c], 0x2e
jne 0x46a89e
mov cx, word [ebp - 0x44a]
test cx, cx
je 0x46a8fd
cmp cx, 0x2e
jne 0x46a89e
cmp word [ebp - 0x448], 0
je 0x46a8fd
test eax, eax
jne 0x46a8fd
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x478]
call fcn.0047fed0
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 0x46a8fd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x528840
jne 0x46a8f9
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x46a8fd
mov ecx, edx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46a91f
cmp dword [ebp - 0x18], 0
je 0x46a91f
lea ecx, [ebp - 0x478]
push ecx
push eax
call ebx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x46a864
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.0046a9f0
jmp 0x46a801

Function at 0x46bb90
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x46bbbf
cmp dword [edi + 0x20], 8
lea ecx, [edi + 0xc]
jb 0x46bba5
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.00453517
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x46bbcb
mov esi, dword [esi]
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x46bbd7
mov ebx, dword [ebx]
test esi, esi
jne 0x46bbeb
mov eax, 0xd
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 0xc
push esi
call fcn.004d5c34
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 0x46bf20
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46bf4d
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x46bf33
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.00453517
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x14], 8
jb 0x46bf59
mov ecx, dword [ecx]
mov eax, dword [esp + 0xc]
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push 0
push ecx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
sete al
ret 8
Function at 0x471e40
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], ecx
push eax
push 0x471e70
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret

Function at 0x472eb0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x5097af
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5734b8]
test eax, eax
jne 0x472fee
push 0x10
call fcn.004d0228
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x2b4
push 0
push eax
call fcn.004d39c0
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp]
add esp, 0x10
push 0x4011
push 0x2b4
push eax
push 0x10
push 0x534254
call edi
push 0x4011
push 0x2b4
mov dword [esi], eax
lea eax, [ebp]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [ebp + 4]
push 0x4013
push 0x2b4
mov dword [esi + 4], eax
lea eax, [ebp]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [ebp + 4]
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x472fbd
push 0x4009
push 0x2b4
lea eax, [ebp]
push eax
push 0
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp + 4]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x472fc4
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x472fc4
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5734b8]
mov dword [0x5734b8], esi
test eax, eax
je 0x472fec
push 0x10
push eax
call fcn.004d0258
mov eax, dword [0x5734b8]
add esp, 8
jmp 0x472fee
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.004d0217
lea esp, [ebp + 0x2b8]
pop ebp
ret