joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f1be
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x43f1ec
cmp word [edi], si
je 0x43f1ec
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], esi
jne 0x43f1f5
call fcn.00403fa2
test eax, eax
je 0x43f1ec
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
or dword [ebp - 0x40], 0xffffffff
push 0x80
push 2
push 1
push edi
mov eax, 0xc0000000
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x1000
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.004134bf
test eax, eax
je 0x43f34d
push 3
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x51b434
call fcn.004243d0
mov eax, ebx
call fcn.0047a0dc
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x43f347
mov eax, dword [0x51b438]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], esi
push eax
lea ebx, [ebp - 0x18]
lea esi, [ebp - 0xc]
call fcn.0043a66e
push dword [ebp - 0x18]
or eax, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00401571
pop ecx
mov ecx, dword [ebp - 4]
push dword [ecx - 8]
lea eax, [ebp - 0x40]
push eax
call fcn.004243d0
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push str._d
push eax
call fcn.0041082a
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [ecx - 8]
lea eax, [ebp - 0x40]
push eax
call fcn.004243d0
mov ebx, dword [ebp - 8]
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401571
mov edi, eax
pop ecx
lea eax, [ebp - 4]
call fcn.004107e7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x43f2e2
push eax
call fcn.004013b2
mov esi, dword [ebp - 4]
push dword [esi - 8]
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.004243d0
push 2
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x4fc9a4
call fcn.004243d0
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x43f314
push eax
call fcn.004013b2
lea eax, [ebx - 0xc]
cmp eax, dword [0x51b43c]
je 0x43f325
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x43f339
push eax
call fcn.004013b2
xor esi, esi
cmp dword [ebp - 0xc], esi
jne 0x43f253
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x30], esi
xor esi, esi
inc esi
lea eax, [ebp - 0x40]
call fcn.00413515
mov eax, esi
jmp 0x43f1ee
Function at 0x44274d
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea esi, [ebx + 0x128]
push dword [esi]
call edi
push dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push ebx
call fcn.00452939
push 5
push dword [esi]
call edi
pop edi
pop esi
ret 8

Function at 0x446a1e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
call fcn.004ae9cb
test eax, eax
je 0x446a94
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x446a90
push edi
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
pop edi
je 0x446a94
xor eax, eax
jmp 0x446aa2
push 0x40000
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x44b7b8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x517ad4]
xor eax, ebp
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x120], eax
inc esi
push 0
lea eax, [esi + 0x7dc8]
push eax
push dword [ebp + 0xc]
call fcn.004385db
add esp, 0xc
inc esi
cmp esi, 9
jle 0x44b7d8
push ebx
push edi
xor esi, esi
push 0xa
inc esi
pop ebx
mov eax, dword [0x51b438]
push ebx
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x11c]
push 0x81c7
push eax
call fcn.00405ae3
add esp, 0xc
cmp ebx, dword [0x522700]
mov eax, 0x400
jne 0x44b82c
mov eax, 0x608
mov edi, dword [ebp - 0x11c]
push edi
lea ecx, [esi + 0x7dc8]
push ecx
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_InsertMenuW]
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x44b856
push eax
call fcn.004013b2
add ebx, 0xa
inc esi
cmp ebx, 0x5a
jle 0x44b7fa
cmp dword [0x522700], 0
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
jne 0x44b87d
push 0x208
push 0x7dc8
push dword [ebp + 0xc]
call esi
cmp dword [0x5226fc], 0
je 0x44b892
push 8
push 0x7dd2
push dword [ebp + 0xc]
call esi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
pop edi
pop ebx
jne 0x44b8f4
cmp dword [ebp - 0x114], 5
ja 0x44b8d5
jne 0x44b8f4
cmp dword [ebp - 0x110], 1
jb 0x44b8f4
push dword [ebp - 0x120]
call fcn.00453ff1
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x7dde
push dword [ebp + 0xc]
call esi
jmp 0x44b904
push 3
push 0x7dde
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ebd70
leave
ret 8
Function at 0x450cfe
Capabilities:
Create process on windows

Disassembly:
movzx eax, ax
sub eax, 0x8070
js 0x450d31
cmp eax, 4
jae 0x450d31
push 1
push 0
push 0
push dword [eax*4 + 0x518824]
mov eax, dword [esp + 0x14]
push 0x4fb5a0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.004af6f1
xor eax, eax
ret 4

Function at 0x45473f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, eax
je 0x45478f
lea eax, [ebx - 0x24]
neg ebx
sbb ebx, ebx
and ebx, eax
push 0xffffffffffffffe6
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClassLongW]
test eax, 0x20000
jne 0x4547a7
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add ebx, 0x24
push ebx
movsd dword es:[edi], dword [esi]
call fcn.00491a7c
jmp 0x4547a7
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4547a7
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
and dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8

Function at 0x4554fb
Capabilities:
Log keystrokes via polling

Disassembly:
and dword [ebx], 0
push esi
mov esi, eax
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x455526
cmp eax, 0x79
jne 0x45551d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x455526
cmp dword [esi + 0xa8], 0x20
jne 0x455599
cmp dword [esp + 8], 0xf100
jne 0x455599
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x455556
mov eax, esi
call fcn.0045ab68
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x455599
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x455599
test byte [esi + 0x84], 0x40
jne 0x45558e
mov al, byte [esi + 0x85]
test al, 2
je 0x455583
test al, 4
jne 0x455583
test al, 8
je 0x455583
mov al, 1
call fcn.0045992d
push edi
mov edi, esi
call fcn.0045ab43
pop edi
jmp 0x455593
cmp eax, 0x20
je 0x455599
mov dword [ebx], 1
and byte [esi + 0x84], 0xbf
xor eax, eax
pop esi
ret 4
Function at 0x458d5c
Capabilities:
Capture webcam image

Disassembly:
push 0
push dword [esp + 8]
push 0x419
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x459a2c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
push esi
push edi
lea esi, [ebx + 0x1c]
call fcn.00492392
push esi
push 0x45c170
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, ebx
neg eax
sbb eax, eax
lea ecx, [ebx - 0xc0]
and eax, ecx
mov ecx, dword [eax + 0xc]
add eax, 8
dec ecx
push 0
pop esi
js 0x459a77
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
cmp ecx, esi
je 0x459a77
push 0x13
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ecx
call ebp
lea edi, [ebx + 0x18]
push 8
xor eax, eax
xor ecx, ecx
call fcn.00403e6d
push esi
push 1
push 0x401
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x13
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi]
call ebp
mov eax, dword [esp + 0x10]
pop edi
mov dword [ebx + 0x14], 1
mov dword [eax], esi
pop esi
xor eax, eax
pop ebp
ret 4
Function at 0x45a511
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esi + 0xdc]
and dword [esi + 0xdc], 0
cmp dword [esp + 8], 0
push edi
jne 0x45a54c
test ebx, ebx
mov edi, dword [esi + 0x60]
je 0x45a53e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
mov eax, 0xff
je 0x45a540
mov eax, edi
push 5
push eax
push esi
call fcn.004914e6
mov dword [esi + 0x60], edi
mov eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 0
je 0x45a58d
push dword [esi + 4]
mov edi, dword [esi + 0x60]
call dword [sym.imp.USER32.dll_BringWindowToTop]
test ebx, ebx
mov eax, 0xff
jne 0x45a57f
mov eax, edi
push eax
push 5
push esi
call fcn.004914e6
mov dword [esi + 0x60], edi
jmp 0x45a598
push 0xffffffffffffffff
push dword [esi + 0x60]
push esi
call fcn.004914e6
pop edi
mov dword [esi + 0xdc], ebx
pop ebx
ret 4

Function at 0x45b4a2
Capabilities:
Hide graphical window

Disassembly:
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, eax
test ebx, ebx
je 0x45b4c0
push 0
push dword [esi + 4]
call edi
push 0xffffffffffffffe6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClassLongW]
cmp dword [esp + 0xc], 0
je 0x45b4d9
or eax, 0x20000
jmp 0x45b4de
and eax, 0xfffdffff
push eax
push 0xffffffffffffffe6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetClassLongW]
test ebx, ebx
je 0x45b4f5
push 5
push dword [esi + 4]
call edi
pop edi
pop ebx
ret 4

Function at 0x45e51b
Capabilities:
Create directory
Get file attributes

Disassembly:
test ebx, ebx
je 0x45e5c1
cmp word [ebx], 0
je 0x45e5c1
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
push 0x5c
pop ebp
push ebp
push ebx
call edi
pop ecx
pop ecx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x45e581
mov ax, word [ebx + 2]
cmp ax, 0x3a
jne 0x45e55d
cmp word [ebx + 4], bp
je 0x45e576
cmp word [ebx], bp
jne 0x45e581
cmp ax, bp
jne 0x45e581
push ebp
add esi, 4
push esi
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x45e589
add esi, 2
push ebp
push esi
call edi
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x45e589
and word [esi], 0
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45e5a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test esi, esi
je 0x45e5b3
test eax, eax
mov word [esi], bp
jne 0x45e576
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
and eax, 0x10
pop ebp
ret
xor eax, eax
ret
Function at 0x45f28a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
test ebx, ebx
push edi
jne 0x45f2b0
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
jmp 0x45f2fc
push 0x4fed18
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45f2eb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x45f2eb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45f2eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x45f2f0
or eax, 0xffffffff
jmp 0x45f2ff
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x20]
pop edi
pop ebp
ret 4
Function at 0x45fb05
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4ee928
call fcn.004ebd20
sub esp, 0x214
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, ecx
jne 0x45fb41
push dword [esi]
call ebx
cmp eax, 0xffffffff
jne 0x45fb41
xor eax, eax
jmp 0x45fd17
test al, 0x10
je 0x45fb4d
push 6
pop eax
jmp 0x45fd17
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x2e
push eax
call edi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x21c], eax
je 0x45fd13
push 0x4fecfc
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x45fc2e
and dword [ebp - 0x220], eax
and dword [ebp - 4], eax
push dword [esi]
lea eax, [ebp - 0x220]
call fcn.0045e5f4
test eax, eax
je 0x45fc1a
push 2
push 0x104
lea eax, [ebp - 0x220]
push eax
xor ecx, ecx
lea edx, [ebp - 0x218]
call fcn.0045e64b
test eax, eax
je 0x45fc1a
lea eax, [ebp - 0x218]
push eax
mov eax, esi
call fcn.0040315f
push dword [esi]
call ebx
cmp eax, 0xffffffff
jne 0x45fbeb
or dword [ebp - 4], eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x45fbe4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x45fd16
test al, 0x10
je 0x45fc0b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x45fc03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
pop eax
jmp 0x45fd16
mov esi, dword [esi]
push 0x2e
push esi
call edi
pop ecx
pop ecx
mov dword [ebp - 0x21c], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x45fc2e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x21c], 0
je 0x45fd13
push dword [ebp - 0x21c]
lea edi, [ebp - 0x21c]
call fcn.00403098
mov esi, dword [ebp - 0x21c]
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push 0x4fa864
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x45fc7b
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x45fc77
push eax
call fcn.004013b2
push 3
jmp 0x45fc05
push 0x4fe178
push esi
call edi
test eax, eax
pop ecx
pop ecx
je 0x45fc97
push str..rar
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x45fcaf
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x45fca8
push eax
call fcn.004013b2
push 4
jmp 0x45fc05
mov edi, 0x5234b0
push esi
mov eax, edi
call fcn.004b9ce7
test eax, eax
je 0x45fcd8
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x45fcd1
push eax
call fcn.004013b2
push 5
jmp 0x45fc05
cmp dword [ebp + 0xc], 0
je 0x45fd02
push esi
mov eax, edi
call fcn.004b9cd5
test eax, eax
je 0x45fd02
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x45fcfb
push eax
call fcn.004013b2
push 2
jmp 0x45fc05
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x45fd13
push eax
call fcn.004013b2
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret
Function at 0x461216
Capabilities:
Set current directory

Disassembly:
mov eax, 0x4f40aa
call fcn.004ebd20
sub esp, 0x274
mov eax, dword [0x517ad4]
push ebx
push esi
push edi
mov edi, ecx
xor eax, ebp
mov esi, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
lea ebx, [edi + 0x14]
push esi
mov eax, ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x220], esi
mov dword [edi + 0x2c], 1
call fcn.0040315f
and dword [ebp - 4], 0
push 0x2e
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcsrchr]
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x224], eax
je 0x461448
push str..ttbl
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x46129b
push eax
push dword [ebp - 0x220]
push edi
call fcn.004620c0
jmp 0x46144a
push str..m3u
push dword [ebp - 0x224]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4612b5
push eax
jmp 0x4612d1
push str..m3u8
push dword [ebp - 0x224]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4612ee
push 0xfde9
mov ebx, dword [ebp - 0x220]
mov ecx, edi
call fcn.0046335c
jmp 0x46144a
and dword [ebp - 0x22c], 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x461337
and word [eax + 2], 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [edi + 0x10]
lea esi, [ebp - 0x220]
mov dword [ebp - 0x228], ecx
call fcn.0040306f
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 2
call fcn.004b475e
push 0
mov ecx, edi
lea eax, [ebp - 0x280]
call fcn.00460a8f
mov ebx, dword [ebx]
lea eax, [ebp - 0x280]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x224]
push 0
push eax
mov eax, ebx
call fcn.0040160b
pop ecx
pop ecx
mov byte [ebp - 4], 6
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x258]
call fcn.004b4772
test al, al
mov eax, dword [ebp - 0x224]
sete bl
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4613bf
push eax
call fcn.004013b2
lea esi, [ebp - 0x280]
mov byte [ebp - 4], 4
call fcn.00461463
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], 0x4f8200
call fcn.004b41c7
test bl, bl
jne 0x461431
mov ebx, dword [ebp - 0x220]
cmp dword [ebx - 8], 0
je 0x46140e
mov eax, dword [ebp - 0x228]
lea edi, [ebp - 0x220]
call fcn.0040311c
mov edi, dword [ebp - 0x230]
mov esi, edi
call fcn.00464e95
lea eax, [ebx - 0xc]
cmp eax, dword [0x51b43c]
je 0x461426
push eax
call fcn.004013b2
xor eax, eax
inc eax
jmp 0x46144a
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x461448
push eax
call fcn.004013b2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret
Function at 0x46335c
Capabilities:
Set current directory

Disassembly:
mov eax, 0x4f3911
call fcn.004ebd20
sub esp, 0x250
mov eax, dword [0x517ad4]
xor eax, ebp
test ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x220], esi
je 0x4634ac
cmp word [ebx], 0
je 0x4634ac
and dword [ebp - 0x21c], 0
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [ebp - 0x21c]
add esi, 0x10
mov eax, esi
call fcn.0040315f
push 0x2e
call fcn.004031cc
cmp eax, 0xffffffff
je 0x4633fd
lea ecx, [ebp - 0x224]
push ecx
mov ecx, esi
call fcn.0040ef7f
mov edi, eax
mov eax, esi
call fcn.0040311c
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4633fd
push eax
call fcn.004013b2
lea eax, [ebp - 0x218]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x21c], eax
je 0x46342b
mov word [eax + 2], di
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x25c]
call fcn.004136c0
push 0x80
push 3
push 1
push SysReAllocStringLen
push ebx
lea eax, [ebp - 0x25c]
mov dword [ebp - 4], edi
call fcn.004136f8
test eax, eax
je 0x463495
cmp dword [ebp - 0x230], edi
je 0x463467
mov eax, dword [ebp - 0x234]
jmp 0x463472
lea esi, [ebp - 0x25c]
call fcn.00413547
cmp dword [ebp - 0x230], edi
je 0x463495
cmp eax, edi
je 0x463495
push dword [ebp + 8]
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x220]
push eax
call fcn.00463e07
mov edi, eax
lea esi, [ebp - 0x25c]
call fcn.00413782
mov eax, esi
call fcn.00413515
mov eax, edi
pop edi
jmp 0x4634ae
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.004ebd70
leave
ret 4
Function at 0x46927a
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4f04e0
call fcn.004ebd20
sub esp, 0x2cc
mov eax, dword [0x517ad4]
push ebx
push esi
push edi
push 0x4001
xor eax, ebp
push 0x2b4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c4]
push eax
xor esi, esi
push esi
mov edi, ecx
push 0x4f8548
mov dword [ebp - 0x2d8], edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 1
push 0x1003
add edi, 4
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x2000140
xor eax, eax
xor ecx, ecx
call fcn.00403e23
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2c8], esi
push 0x7c
push 5
lea eax, [ebp - 0x2d4]
push eax
push 0x815c
mov dword [ebp - 4], esi
call fcn.004aee7b
add esp, 0x10
cmp dword [ebp - 0x2d0], esi
jbe 0x469397
mov eax, dword [ebp - 0x2d4]
or ebx, 0xffffffff
push ebx
push esi
push dword [eax]
push esi
push edi
push 0x78
pop edx
call fcn.00405c44
cmp dword [ebp - 0x2d0], 1
jbe 0x469397
mov eax, dword [ebp - 0x2d4]
push ebx
push esi
push dword [eax + 4]
push 1
push edi
push 0x64
pop edx
call fcn.00405c44
cmp dword [ebp - 0x2d0], 2
jbe 0x469397
mov eax, dword [ebp - 0x2d4]
push ebx
push esi
push dword [eax + 8]
push 2
push edi
push 0x78
pop edx
call fcn.00405c44
cmp dword [ebp - 0x2d0], 3
jbe 0x469397
mov eax, dword [ebp - 0x2d4]
push ebx
push esi
push dword [eax + 0xc]
push 3
push edi
push 0x32
pop edx
call fcn.00405c44
cmp dword [ebp - 0x2d0], 4
ja 0x4693a1
push 0x80070057
call fcn.004010d2
mov eax, dword [ebp - 0x2d4]
push ebx
push 0
push dword [eax + 0x10]
xor esi, esi
push 4
push edi
mov edx, 0x12c
call fcn.00405c44
mov esi, dword [ebp - 0x2d8]
push 0
push 0
push 0x101f
push dword [edi]
add esi, 0x48
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi], eax
push 4
xor eax, eax
xor ecx, ecx
mov edi, esi
call fcn.00403e23
lea esi, [ebp - 0x2d4]
call fcn.0045d68c
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret