joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458420
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x458446
mov eax, esp
push eax
push 0x4583e8
call sub.user32.dll_EnumWindows
jmp 0x458459
mov eax, esp
push eax
push 0x4583c8
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4584e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x458538]
test si, 4
je 0x4584f9
or bl, 1
test si, 8
je 0x458503
or bl, 4
test si, 1
je 0x45850d
or bl, 8
test si, 2
je 0x458517
or bl, 0x10
test si, 0x10
je 0x458521
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458530
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45853c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x458578]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458556
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458565
or bl, 4
test esi, 0x20000000
je 0x458570
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4605e4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4605f6
add esp, 0xfffffff0
call fcn.00404420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004233b4
mov eax, dword [0x495380]
mov dword [eax + 4], ebx
mov dword [eax], 0x460988
mov eax, dword [0x495390]
mov dword [eax + 4], ebx
mov dword [eax], 0x460994
mov eax, ebx
call fcn.004609a0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417478]
call fcn.004040a4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417478]
call fcn.004040a4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417478]
call fcn.004040a4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417478]
call fcn.004040a4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417478]
call fcn.004040a4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45be48
push eax
push 0
push 0
mov eax, dword [0x4955fc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4271a4]
call fcn.004286c4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4271a4]
call fcn.004286c4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4271a4]
call fcn.004286c4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00460e18
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460ce8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460ce8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460ce8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x460733
call fcn.00404478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x460acc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460c77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x460c58
mov dl, 1
mov eax, dword [0x417ae4]
call fcn.004040a4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405018
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x460c47
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00452138
test al, al
je 0x460c3a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x460c88
lea eax, [ebp - 0x254]
call fcn.0040a2ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x460c3a
xor eax, eax
push ebp
push 0x460c33
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x460cc0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x460c1c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405288
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x460c1c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405288
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460c3a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x460b3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041c780
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460c7e
lea eax, [ebp - 0x260]
call fcn.00405018
ret

Function at 0x4615f0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49aca4]
cmp byte [eax + 0xad], 0
jne 0x461661
cmp dword [0x49acc0], 0
jne 0x461622
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4615ac
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49acc0], eax
cmp dword [0x49acbc], 0
jne 0x46163d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49acbc], eax
cmp dword [0x49acc4], 0
jne 0x461661
push esp
push 0
push 0
push 0x461550
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x49acc4], eax
pop edx
ret
Function at 0x461864
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46187b
add esp, 0xfffffff0
call fcn.00404420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004233b4
mov eax, dword [0x4955d0]
cmp word [eax + 2], 0
jne 0x4618a3
mov eax, dword [0x4955d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046356c
mov eax, dword [0x495714]
cmp word [eax + 2], 0
jne 0x4618bd
mov eax, dword [0x495714]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463778
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417478]
call fcn.004040a4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417478]
call fcn.004040a4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x417478]
call fcn.004040a4
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x427980]
call fcn.0042d95c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x461a74
mov eax, dword [0x495444]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042dd30
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x463e4c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x495444]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040dbb0
test eax, eax
je 0x4619c4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409c90
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dbe4
test eax, eax
je 0x4619d8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405288
mov byte [ebx + 0xd4], 0
push ebx
push 0x462fe0
call fcn.00424530
mov dword [ebx + 0xc8], eax
mov eax, dword [0x495210]
cmp byte [eax], 0
jne 0x461a29
mov eax, ebx
call fcn.00461bb8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00464060
mov eax, ebx
call fcn.00464bc4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x461a69
call fcn.00404478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461e38
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x461ed7
cmp dword [ebx + 0x94], 0
jne 0x461ed1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461dc0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461ed1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x461e97
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461ed1
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419e14
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461ea6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4620f0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x49aca4]
cmp dword [eax + 0x30], 0
je 0x46224d
test bl, bl
jne 0x46219e
cmp dword [esi + 0x9c], 0
jne 0x462193
mov eax, esi
call fcn.00464a40
push eax
push 0x46201c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x462164
mov eax, dword [0x49aca4]
call fcn.00465120
test al, al
je 0x462164
mov eax, dword [0x49acc8]
call fcn.0040629c
mov edi, eax
cmp edi, 0
jl 0x462164
push 0
mov eax, dword [0x49acc8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46214e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x462193
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419e14
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x462173
inc dword [esi + 0x9c]
jmp 0x46224d
cmp dword [esi + 0x9c], 0
jle 0x46224d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x46224d
cmp dword [esi + 0x44], 0
je 0x4621f9
mov eax, dword [0x49aca4]
call fcn.00465120
test al, al
je 0x4621f9
mov eax, dword [0x49acc8]
call fcn.0040629c
mov edi, eax
cmp edi, 0
jl 0x4621f9
push 5
mov eax, dword [0x49acc8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4621e3
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x462228
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419e14
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x462208
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x49acc8
mov ecx, 1
mov edx, dword [0x461ffc]
call fcn.00406450
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x462d34
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x462d9e
mov eax, ebx
call fcn.00465120
test al, al
jne 0x462d9e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405108
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x462d8b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x462dab
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040506c
jmp 0x462dab
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040506c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x464244
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4642b2
mov eax, esi
call fcn.0044cd24
test al, al
je 0x4642b2
mov eax, dword [ebx + 0x84]
call fcn.0044c984
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4642b2
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4642a6
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c984
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004447f4
jmp 0x4642b2
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00464080
pop esi
pop ebx
ret

Function at 0x473678
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor eax, eax
push ebp
push 0x4736f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004054a8
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4736dd
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x4736dd
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, 4
call fcn.004030c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4736f7
call sub.wsock32.dll_WSACleanup
ret

Function at 0x474a08
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
add eax, 0x18
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x40
call fcn.0040388c
pop ecx
pop ecx
pop ebp
ret
Function at 0x47a658
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47a6e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call fcn.00405738
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47a6a0
mov eax, dword [ebp - 0x10]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004054a8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetTempPathA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405738
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0047a1f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a6ec
lea eax, [ebp - 0x14]
call fcn.00405018
ret
Function at 0x48c728
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48c799
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0048c704
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00479838
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.0047935c
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c7a0
lea eax, [ebp - 0x14]
call fcn.00405018
ret
Function at 0x403663
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0xc6ad9c], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4036a8
push 0x402b40
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402b7c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x805d28]
mov ebx, dword [str.m_YU_]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.0040365c
mov eax, dword [0x805d30]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x805d34]
add edi, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0xc6ad9c], 0xc
mov dword [ebp - 4], ecx
jne 0x403749
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402bb8
push 0x402be0
push 0x402bfc
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0xc6ad9c]
cmp ecx, 0xfa9
jne 0x403767
mov dword [0xc6ad98], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403775
mov dword [0xc43f38], esi
lea ecx, [edi + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0xc6ad94], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0xc6ad9c], 0x213
mov dword [ebp - 0x14], ecx
jne 0x4037b3
push esi
push 0x402c38
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0xc6ad9c], 0xc
jne 0x4037fc
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402c78
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [edi + eax]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add edi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x4036e1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403847
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc6ad9c]
mov ecx, dword [0xc43f3c]
sub esp, 0x834
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40393f
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0xc6ad9c], 0x959
jne 0x40392d
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d14
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402d50
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402de0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403663
add ebx, 8
dec dword [ebp - 4]
jne 0x403870
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4056fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8054b4]
jne 0x405705
repz ret
jmp fcn.00408f6c

Function at 0x40ad8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406d16
and dword [ebp - 4], 0
cmp dword [0x809828], 0
mov ebx, eax
jne 0x40ae3c
push 0x4021ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aeed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021a0
push edi
call esi
test eax, eax
je 0x40aeed
push eax
call fcn.00406ca4
mov dword [esp], 0x402190
push edi
mov dword [0x809828], eax
call esi
push eax
call fcn.00406ca4
mov dword [esp], 0x40217c
push edi
mov dword [0x80982c], eax
call esi
push eax
call fcn.00406ca4
mov dword [esp], 0x402160
push edi
mov dword [0x809830], eax
call esi
push eax
call fcn.00406ca4
pop ecx
mov dword [0x809838], eax
test eax, eax
je 0x40ae3c
push 0x402148
push edi
call esi
push eax
call fcn.00406ca4
pop ecx
mov dword [0x809834], eax
mov eax, dword [0x809834]
cmp eax, ebx
je 0x40ae94
cmp dword [0x809838], ebx
je 0x40ae94
push eax
call fcn.00406d1f
push dword [0x809838]
mov esi, eax
call fcn.00406d1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ae94
test edi, edi
je 0x40ae94
call esi
test eax, eax
je 0x40ae8b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ae8b
test byte [ebp - 0xc], 1
jne 0x40ae94
or dword [ebp + 0x10], 0x200000
jmp 0x40aecd
mov eax, dword [0x80982c]
cmp eax, ebx
je 0x40aecd
push eax
call fcn.00406d1f
pop ecx
test eax, eax
je 0x40aecd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40aecd
mov eax, dword [0x809830]
cmp eax, ebx
je 0x40aecd
push eax
call fcn.00406d1f
pop ecx
test eax, eax
je 0x40aecd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x809828]
call fcn.00406d1f
pop ecx
test eax, eax
je 0x40aeed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aeef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret