joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4549d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
push edi
test esi, esi
je 0x454a1f
push 0
push 1
mov ecx, esi
call fcn.00401550
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x4549fa
mov edi, dword [esi + 0xc]
jmp 0x4549fc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x454a16
test byte [edi + 0x15], 8
je 0x454a0f
mov ecx, edi
call fcn.004013b0
add edi, 0xc
mov edi, dword [edi]
jmp 0x454a55
mov edi, 0x4ce2c0
mov edi, dword [edi]
jmp 0x454a55
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004a27f0
add esp, 4
test eax, eax
jne 0x454a4d
mov eax, dword [0x4c8024]
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
xor eax, eax
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push ebp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x454aba
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x454a93
push ecx
lea eax, [esp + 0x24]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c8024]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x454acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c8024]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x454ada
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
je 0x454afd
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
call fcn.004a2db0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
jne 0x454b2a
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4b6ba9
push 0
push 0x4bb578
call fcn.0043e6c0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x454e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x80
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4cbec8]
push 0
call fcn.004a2db0
mov eax, dword [esp + 0x88]
test eax, eax
je 0x454fc7
cmp byte [eax], 0
je 0x454fc7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x454f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c8024]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x454eeb
mov ecx, dword [0x4ca738]
push 1
push 0
push ebx
push 0x4bb578
call fcn.004a2db0
pop ebx
pop esi
add esp, 0x80
ret 4
push 0x4b6ba9
push 0
push 0x4bb578
mov ecx, esi
call fcn.0043e6c0
pop ebx
pop esi
add esp, 0x80
ret 4
mov eax, dword [0x4c8024]
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
mov dword [eax + 0x30], 0
call fcn.004a2db0
movzx eax, byte [esp + 8]
mov ecx, ebx
and ecx, 1
mov edx, 0x52
cmovne eax, edx
mov byte [esp + 8], al
test bl, 0x20
je 0x454f4c
mov byte [esp + ecx + 8], 0x41
inc ecx
test bl, 4
je 0x454f57
mov byte [esp + ecx + 8], 0x53
inc ecx
test bl, 2
je 0x454f62
mov byte [esp + ecx + 8], 0x48
inc ecx
test bl, bl
jns 0x454f6c
mov byte [esp + ecx + 8], 0x4e
inc ecx
test bl, 0x10
je 0x454f77
mov byte [esp + ecx + 8], 0x44
inc ecx
test ebx, 0x1000
je 0x454f85
mov byte [esp + ecx + 8], 0x4f
inc ecx
test ebx, 0x800
je 0x454f93
mov byte [esp + ecx + 8], 0x43
inc ecx
test ebx, 0x100
je 0x454fa1
mov byte [esp + ecx + 8], 0x54
inc ecx
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x14]
mov byte [esp + ecx + 0x14], 0
mov ecx, dword [0x4cbec8]
push eax
call fcn.004a2db0
pop ebx
pop esi
add esp, 0x80
ret 4
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x454ffc
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop esi
add esp, 0x80
ret 4
push 0x4b6ba9
push 0
push 0x4bb578
mov ecx, esi
call fcn.0043e6c0
pop esi
add esp, 0x80
ret 4
Function at 0x455020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov bl, byte [esi]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], edi
test bl, bl
je 0x455113
movzx eax, bl
test eax, 0xffffff80
je 0x455063
xor eax, eax
jmp 0x455073
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edi, dword [esp + 0x24]
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
movsx eax, dl
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x455095.44
movzx eax, byte [eax + 0x45515c]
jmp dword [eax*4 + 0x455138]
movsx eax, byte [esi]
mov dword [esp + 0x10], eax
jmp case.0x455095.44
mov ecx, 1
jmp 0x4550d4
mov ecx, 0x20
jmp 0x4550d4
mov ecx, 4
jmp 0x4550d4
mov ecx, 2
jmp 0x4550d4
mov ecx, 0x80
jmp 0x4550d4
mov ecx, 0x1000
jmp 0x4550d4
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x4550f5
sub eax, 2
je 0x4550eb
sub eax, 0x31
jne case.0x455095.44
xor edi, ecx
jmp 0x4550ff
not ecx
and dword [esp + 0x18], ecx
and edi, ecx
jmp 0x4550ff
mov eax, ecx
not eax
and dword [esp + 0x18], eax
or edi, ecx
mov dword [esp + 0x1c], edi
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x455055
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x455190
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004551d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4559f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x4cbec8]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.004a2db0
mov edi, dword [ebp + 8]
test edi, edi
je 0x455bac
cmp byte [edi], 0
je 0x455bac
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x455a70
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x455a6c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
jmp 0x455ab5
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x455a9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c8024]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jmp 0x455bbf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x3c]
xor edi, edi
or edi, dword [esp + 0x40]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0xc]
mov bl, byte [eax]
movzx eax, bl
test eax, 0xffffff80
je 0x455ac8
xor eax, eax
jmp 0x455adc
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov esi, dword [esp + 0x1c]
add esp, 8
mov edi, dword [esp + 0x10]
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
movsx eax, dl
sub eax, 0x4b
je 0x455b01
sub eax, 2
jne 0x455b17
push eax
push 0x100000
jmp 0x455b08
push 0
push 0x400
push esi
push edi
call fcn.004b4430
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4c8024]
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
mov dword [eax + 0x30], 0
call fcn.004a2db0
mov esi, dword [0x4cbec8]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x17], 0
jne 0x455b50
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x455b67
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x9b
mov dword [esi], edi
or al, 0x18
mov dword [esi + 4], ebx
mov byte [esi + 0x15], al
jge 0x455b8e
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4ca760], 0
je 0x455b9e
mov ecx, esi
call fcn.004013b0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x455be0
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4b6ba9
push 0
push 0x4bb578
mov ecx, esi
call fcn.0043e6c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x457830
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov bl, byte [esi + 2]
movzx eax, bl
test eax, 0xffffff80
je 0x457857
xor eax, eax
jmp 0x45785f
push 2
push eax
call edi
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
movsx eax, dl
add eax, 0xffffffbf
cmp eax, 0x12
ja case.0x457885.66
movzx eax, byte [eax + 0x4579c8]
jmp dword [eax*4 + 0x4579b4]
mov bl, byte [esi + 9]
movzx eax, bl
test eax, 0xffffff80
je 0x45789d
xor eax, eax
jmp 0x4578a5
push 2
push eax
call edi
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dl, 0x53
jne 0x4578d0
cmp byte [esi + 0xa], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x457955
mov eax, 0x26
jmp 0x457955
cmp byte [esi + 9], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x457955
cmp byte [esi + 9], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x457955
mov bl, byte [esi + 7]
movzx eax, bl
test eax, 0xffffff80
je 0x45790e
xor eax, eax
jmp 0x457916
push 2
push eax
call edi
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dl, 0x4d
jne 0x45793e
cmp byte [esi + 0xb], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x457955
cmp byte [esi + 9], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x457955
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movzx ecx, byte [esp + 0x10]
xor edx, edx
test eax, eax
pop edi
cmovne ecx, edx
mov edx, dword [esp + 0x114]
mov byte [esp + 0xc], cl
pop esi
pop ebx
test edx, edx
je 0x45799d
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x457990
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4579a4
sub eax, edx
add esp, 0x108
ret
Function at 0x4690a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x4690ab
xor al, al
pop ebx
ret
sub edx, 1
je 0x4690d0
movzx eax, bl
push eax
sub edx, 1
je 0x4690c6
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
pop ebx
ret
mov al, bl
dec al
cmp al, 5
ja 0x4690dd
cmp bl, 3
jne 0x4690e5
mov al, bl
add al, 0x66
cmp al, 5
ja 0x4690fc
cmp dword [0x4ca770], 0
movzx eax, bl
je 0x46912d
mov al, byte [eax + 0x4cb0c0]
shr al, 7
pop ebx
ret
cmp dword [0x4ca774], 0
je 0x46912a
push 0
xor edx, edx
call fcn.004156f0
add esp, 4
test al, al
je 0x46911c
mov cl, 1
call fcn.004154e0
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4cb0c0]
shr al, 7
ret
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret

Function at 0x4697b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
push 0
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4697f1
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4697f1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x120], 0
push 0x104
push edi
push 0
push ebp
je 0x46980c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x469812
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov ebx, eax
test ebx, ebx
jne 0x469923
mov eax, dword [0x4bfe54]
test eax, eax
je 0x469923
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x469923
cmp byte [esp + 0x120], 0
je 0x46988c
push 0x5c
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x469923
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469861
sub ecx, esi
lea eax, [edx + 1]
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
nop dword [eax + eax]
push 0x104
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x4698dc
sub esi, 2
lea eax, [esp + 0x14]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
jne 0x4698dc
cmp byte [esi + edi], 0x5c
lea ecx, [esi + edi]
je 0x4698fe
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x4698a0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
movzx eax, byte [esp + 0x10]
sub ebx, esi
mov byte [edi], al
movzx eax, byte [esp + 0x11]
mov byte [edi + 1], al
lea eax, [ebx + 1]
push eax
push ecx
lea eax, [edi + 2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x46d0b0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x12c
push esi
mov esi, ecx
test eax, eax
je 0x46d1bf
cmp byte [eax], 0
je 0x46d1bf
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d0f0
sub ecx, edx
je 0x46d106
cmp byte [esp + ecx + 0x27], 0x5c
jne 0x46d106
mov byte [esp + ecx + 0x27], al
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d110
sub ecx, edx
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x16], 0
mov dword [esp + 4], 0
mov byte [esp + ecx + 0x29], al
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x4054
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x46d18d
mov ecx, dword [0x4ca738]
push 1
push eax
push 0xffffffffffffffff
push 0x4b6c08
call fcn.004a2db0
pop esi
add esp, 0x12c
ret 4
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
jne 0x46d1bb
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop esi
add esp, 0x12c
ret 4
mov ecx, esi
jmp 0x46d1cd
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
je 0x46d19b
push 0x4b6ba9
push 0
push 0x4bb578
call fcn.0043e6c0
pop esi
add esp, 0x12c
ret 4
Function at 0x46d270
Capabilities:
Get file version info

Disassembly:
sub esp, 0x8c
push ebx
push esi
push 1
push 0
push 0xffffffffffffffff
mov ebx, ecx
mov ecx, dword [0x4cbec8]
push 0
call fcn.004a2db0
mov esi, dword [esp + 0x98]
test esi, esi
je 0x46d431
cmp byte [esi], 0
je 0x46d431
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebp, eax
test ebp, ebp
jne 0x46d310
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c8024]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x46d2f1
mov ecx, dword [0x4ca738]
push 1
push ebp
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4b6ba9
push 0
push 0x4bb578
mov ecx, ebx
call fcn.0043e6c0
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push edi
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push edi
push ebp
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x46d3c7
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4bbd1c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x46d3c7
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x28]
push edx
push str._u._u._u._u
push 0x80
push eax
call fcn.0049e760
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4c8024]
add esp, 0x20
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
mov dword [eax + 0x30], 0
call fcn.004a2db0
mov ecx, dword [0x4cbec8]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a2db0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c8024]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4c8024]
add esp, 4
test byte [eax + 0xe0], 1
jne 0x46d411
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4b6ba9
push 0
push 0x4bb578
mov ecx, ebx
call fcn.0043e6c0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x46d467
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4b6ba9
push 0
push 0x4bb578
mov ecx, ebx
call fcn.0043e6c0
pop esi
pop ebx
add esp, 0x8c
ret 4
Function at 0x46d700
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
test dl, dl
jne 0x46d722
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x46d7d6
mov al, 1
add esp, 0x12c
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x24]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d740
sub ecx, edx
je 0x46d756
cmp byte [esp + ecx + 0x23], 0x5c
jne 0x46d756
mov byte [esp + ecx + 0x23], al
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46d7d6
test al, 0x10
je 0x46d7d6
lea ecx, [esp + 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d771
sub ecx, edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov byte [esp + ecx + 0x25], al
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
sete al
add esp, 0x12c
ret
xor al, al
add esp, 0x12c
ret
Function at 0x46dc70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x148
push esi
mov esi, ecx
push 0x2a
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
jne 0x46dcaf
push 0x3f
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
jne 0x46dcaf
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46dcc0
mov al, 1
pop esi
add esp, 0x148
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x46dcca
xor al, al
pop esi
add esp, 0x148
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
add esp, 0x148
ret

Function at 0x46dce0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46dd53
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46dd53
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x46dd53
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x46dd60
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x554
push ebx
push ebp
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x1c], 0x128
push 2
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0
push 0
push 1
xor edx, edx
mov ecx, ebx
call fcn.0049e590
add esp, 0xc
test eax, eax
je 0x46de09
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x46ddb2
cmp al, 9
jne 0x46ddb5
inc ecx
jmp 0x46dda8
test al, al
je 0x46ddfb
cmp al, 0x2d
je 0x46ddc1
cmp al, 0x2b
jne 0x46ddc8
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x46ddfb
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x46ddd7
cmp al, 0x58
jne 0x46ddfb
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x46ddfb
push 0x10
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__strtoi64]
add esp, 0xc
mov ebx, eax
jmp 0x46de0b
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__atoi64]
add esp, 4
mov ebx, eax
jmp 0x46de0b
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x46deb9
nop
test ebx, ebx
je 0x46de2e
cmp ebx, dword [esp + 0x20]
je 0x46decd
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x144]
push eax
lea eax, [esp + 0x358]
push eax
lea eax, [esp + 0x464]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath]
lea eax, [esp + 0x25c]
add esp, 0x14
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46de65
lea edi, [esp + 0x140]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46de76
push dword [esp + 0x14]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x46dee1
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x46de20
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret