joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cd90
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x43cdc0
cmp byte [0x4a5274], al
je 0x43ce66
call fcn.00408f20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4a5274], 0
mov esi, 0x4a3438
jne 0x43cdd2
lea esi, [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebx
test eax, eax
je 0x43ce31
cmp byte [edi], 0
je 0x43ce47
cmp byte [edi + 1], 0x3a
jne 0x43ce47
cmp byte [edi + 2], 0
jne 0x43ce47
push esi
push edi
call fcn.0047ea31
add esp, 8
test eax, eax
je 0x43ce47
push edi
lea eax, [esp + 0xc]
push 0x497a80
push eax
call fcn.0047ef68
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x43ce47
push esi
push 0x104
call ebx
test eax, eax
jne 0x43ce47
push 0x103
push edi
push esi
call fcn.00481870
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4a5274], 0
je 0x43ce66
mov ecx, dword [0x4a3434]
push 1
push 0
push 0xffffffffffffffff
push 0x492860
call fcn.0046ede0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d440
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
mov ebp, ecx
test edi, edi
je 0x43d5c2
cmp byte [edi], 0
je 0x43d5c2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43d493
shr eax, 4
not al
and al, 1
movzx eax, al
push 0xb7
push eax
push ebp
call fcn.0042cc90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
push 0x5c
push edi
call fcn.0048091e
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43d59b
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d4b0
sub eax, edx
cmp eax, 0x104
jb 0x43d515
mov eax, dword [0x49f430]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe0], cl
jne 0x43d4f5
mov ecx, dword [0x4a3434]
push ecx
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
mov ecx, ebp
push 0x4927e9
push 0
push 0x493f08
call fcn.0042c9e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
mov esi, ebx
sub esi, edi
push esi
lea edx, [esp + 0x14]
push edi
push edx
call fcn.00481870
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
mov byte [esp + esi + 0x14], 0
call fcn.0043d440
cmp byte [ebx + 1], 0
je 0x43d589
mov esi, dword [0x4a3434]
cmp byte [esi + 0x17], 0
jne 0x43d54e
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43d55b
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43d574
test byte [esi + 0x15], 4
je 0x43d56f
mov eax, esi
call fcn.0042d510
mov eax, dword [esi + 8]
jmp 0x43d584
cmp al, 2
jne 0x43d57f
call fcn.00401000
jmp 0x43d584
mov eax, 0x4a453d
cmp byte [eax], 0x31
jne 0x43d59b
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
push 0xffffffffffffffff
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
sete cl
movzx edx, cl
push edx
push ebp
call fcn.0042cc90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
mov eax, dword [0x49f430]
cmp byte [eax + 0xe0], 0
mov dword [eax + 0x30], 0x57
jne 0x43d4f7
mov eax, dword [0x4a3434]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
mov dword [esp + 4], eax
or eax, 0xffffffff
mov ecx, 0x493f08
jmp fcn.004011f0
Function at 0x43eca0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
mov ebx, edx
call fcn.0040c650
test al, al
je 0x43ecc8
push 0x10
push 0
push edi
call fcn.00480394
add esp, 0xc
jmp 0x43ecd1
push edi
call fcn.0047ff96
add esp, 4
cmp eax, 1
je 0x43ed33
call fcn.0044f560
test al, al
je 0x43ed33
mov eax, dword [0x49f430]
cmp byte [eax + 0xe0], 0
jne 0x43ed0e
mov ecx, dword [0x4a3434]
push ecx
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x4927e9
push 0
push 0x493f08
call fcn.0042c9e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x43ed7e
mov edx, dword [0x49f430]
cmp byte [edx + 0xe0], 0
jne 0x43ed0e
mov eax, dword [0x4a3434]
push eax
or eax, ebp
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ed83
sub eax, edx
cmp eax, 0x104
jb 0x43ed98
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00487060
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.0048122c
add esp, 4
push 0xa
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x43ee04
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43ee04
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x43ee04
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x43ee06
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x124]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042cad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x43ee30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4a2bd0]
sub esp, 0x84
push esi
push 1
push 0
push 0xffffffffffffffff
push 0
mov esi, eax
call fcn.0046ede0
test esi, esi
je 0x43eec4
cmp byte [esi], 0
je 0x43eec4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43ee81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f430]
cmp byte [ecx + 0xe0], 0
mov dword [ecx + 0x30], eax
jmp 0x43eed7
mov ecx, dword [0x49f430]
mov edx, dword [0x4a3434]
mov dword [ecx + 0x30], 0
push edx
or eax, 0xffffffff
mov ecx, 0x492860
call fcn.004011f0
mov edx, esi
lea eax, [esp + 8]
call fcn.0046d260
mov ecx, dword [0x4a2bd0]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046ede0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x49f430]
cmp byte [eax + 0xe0], 0
mov dword [eax + 0x30], 0x57
jne 0x43eef1
mov eax, dword [0x4a3434]
push eax
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
pop esi
mov esp, ebp
pop ebp
ret
push 0x4927e9
push 0
push 0x493f08
mov ecx, edi
call fcn.0042c9e0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44ae00
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44ae07
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44ae2f
dec eax
je 0x44ae21
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x44ae3c
cmp bl, 3
jne 0x44ae43
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44ae69
cmp dword [0x4a2d64], 0
je 0x44ae59
movzx ecx, bl
mov al, byte [ecx + 0x4a2c50]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4a2d60], 0
je 0x44ae98
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00410f70
test al, al
je 0x44ae8b
push 1
call fcn.00410da0
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4a2c50]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x44b3e0
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
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44b421
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44b421
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x44b43c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44b442
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4a5d64], 1
mov ebx, eax
jne 0x44b472
or dword [0x4a5d64], 1
push str.GetProcessImageFileNameA
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a5d60], eax
jmp 0x44b477
mov eax, dword [0x4a5d60]
test ebx, ebx
jne 0x44b574
test eax, eax
je 0x44b574
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44b574
cmp byte [esp + 0x11c], 0
je 0x44b4e9
push 0x5c
push edi
call fcn.0048091e
add esp, 8
test eax, eax
je 0x44b574
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44b4c0
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.0047f5f0
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
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x44b52d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00480b5b
add esp, 0xc
test eax, eax
jne 0x44b52d
cmp byte [esi + edi], 0x5c
je 0x44b54f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44b4f5
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 al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.0047f5f0
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 0x44e770
Capabilities:
Delete file

Disassembly:
sub esp, 0x130
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x44e824
cmp byte [eax], bl
je 0x44e824
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44e7a6
sub eax, edx
cmp eax, ebx
je 0x44e7c0
cmp byte [esp + eax + 0x2b], 0x5c
lea eax, [esp + eax + 0x2b]
jne 0x44e7c0
mov byte [eax], bl
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44e7c7
sub eax, edx
mov byte [esp + eax + 0x2d], bl
lea edx, [esp + 8]
lea eax, [esp + 0x2c]
mov ecx, 0x4054
push edx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042cad0
pop ebx
add esp, 0x130
ret
mov edx, dword [0x49f430]
cmp byte [edx + 0xe0], bl
jne 0x44e84d
mov eax, dword [0x4a3434]
push eax
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
pop ebx
add esp, 0x130
ret
push 0x4927e9
push ebx
push 0x493f08
mov ecx, esi
call fcn.0042c9e0
pop ebx
add esp, 0x130
ret
Function at 0x44e920
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4a2bd0]
sub esp, 0x8c
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov edi, eax
call fcn.0046ede0
test edi, edi
je 0x44ea5a
cmp byte [edi], 0
je 0x44ea5a
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x44e982
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f430]
cmp byte [ecx + 0xe0], 0
mov dword [ecx + 0x30], eax
jmp 0x44ea6d
push esi
call fcn.0047ebe9
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x44ea30
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4962ac
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x44ea30
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x2c]
call fcn.0046c360
add esp, 0x14
push ebx
call fcn.0047ea48
mov eax, dword [0x4a3434]
mov edx, dword [0x49f430]
add esp, 4
push eax
or eax, 0xffffffff
mov ecx, 0x492860
mov dword [edx + 0x30], 0
call fcn.004011f0
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
mov ecx, dword [0x4a2bd0]
call fcn.0046ede0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x49f430]
push ebx
mov dword [edx + 0x30], eax
call fcn.0047ea48
mov eax, dword [ebp + 8]
add esp, 4
push eax
call fcn.0042eec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x49f430]
cmp byte [eax + 0xe0], 0
mov dword [eax + 0x30], 0x57
jne 0x44ea8c
mov ecx, dword [0x4a3434]
push ecx
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4927e9
push 0
push 0x493f08
call fcn.0042c9e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44eab0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ead6
sub eax, edx
je 0x44eaee
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44eaee
mov byte [eax], cl
mov edx, dword [esp + 0x23c]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x134]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44eb14
sub eax, edx
je 0x44eb32
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x44eb32
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x44eb65
test al, 0x10
je 0x44eb65
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x44eb6f
test al, 0x10
je 0x44eb6f
cmp byte [esp + 0x240], 0
jne 0x44eb8b
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
call fcn.0044f4c0
add esp, 4
test al, al
jne 0x44eb8b
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x44eb90
mov ecx, dword [str..]
mov dl, byte [0x4980ac]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ebb0
sub eax, edx
mov byte [esp + eax + 0x29], cl
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ebc7
sub eax, edx
mov byte [esp + eax + 0x131], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x130]
mov edx, 0x614
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 2
mov word [esp + 0x1c], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x234
ret
Function at 0x44ec40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ec66
sub eax, edx
je 0x44ec7e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44ec7e
mov byte [eax], cl
mov edx, dword [esp + 0x23c]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x134]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44eca4
sub eax, edx
je 0x44ecc2
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x44ecc2
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x44ecf5
test al, 0x10
je 0x44ecf5
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x44ecff
test al, 0x10
je 0x44ecf5
cmp edi, 1
je 0x44ecff
cmp edi, 2
je 0x44ecff
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
lea edx, [esp + 0x2c]
call fcn.0044f5d0
add esp, 4
test al, al
je 0x44ed47
lea eax, [esp + 0x130]
push 1
push eax
lea edx, [esp + 0x30]
call fcn.0044eab0
add esp, 8
test al, al
je 0x44ecf5
push 1
lea edx, [esp + 0x2c]
call fcn.0044edf0
add esp, 4
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ed50
sub eax, edx
mov byte [esp + eax + 0x29], cl
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ed67
sub eax, edx
mov byte [esp + eax + 0x131], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x130]
mov eax, 0x614
mov dword [esp + 8], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 1
mov word [esp + 0x18], ax
cmp edi, 2
jne 0x44edd2
mov ecx, 0x615
mov word [esp + 0x18], cx
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x234
ret
Function at 0x44edf0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44ee16
sub eax, edx
cmp eax, ebx
je 0x44ee30
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44ee30
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44ee44
test al, 0x10
jne 0x44ee4e
xor al, al
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x134], bl
jne 0x44ee6f
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop ebx
add esp, 0x12c
ret
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44ee76
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea ecx, [esp + 4]
lea edx, [esp + 0x28]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x12c
ret
Function at 0x44f4c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44f543
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x44f52e
dec eax
jne 0x44f550
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44f4e7
sub eax, edx
cmp eax, 0x104
ja 0x44f550
inc eax
call fcn.00488180
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44f505
push 0x5c
push esi
call fcn.0048091e
add esp, 8
test eax, eax
je 0x44f550
push esi
mov byte [eax], 0
call fcn.0044f4c0
add esp, 4
test al, al
je 0x44f550
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x44f550
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

Function at 0x44f560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x144
push 0x2a
push esi
call fcn.0047fa01
add esp, 8
test eax, eax
jne 0x44f598
push 0x3f
push esi
call fcn.0047fa01
add esp, 8
test eax, eax
jne 0x44f598
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
add esp, 0x144
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44f5b1
xor al, al
add esp, 0x144
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x144
ret

Function at 0x44f6e0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x44f701
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44f6fb
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x44f760
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x44f7b1
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x44f7b1
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x44f7b1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret