joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4408a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4ab178]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00412e90
test esi, esi
je 0x440955
cmp byte [esi], 0
je 0x440955
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44090c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7918]
cmp byte [ecx + 0xe8], 0
mov dword [ecx + 0x30], eax
jne 0x440989
mov eax, dword [0x4aba2c]
push 1
push 0
push esi
push 0x49afb8
push eax
call fcn.00475240
pop esi
add esp, 0x80
ret
mov edx, dword [0x4aba2c]
mov ecx, dword [0x4a7918]
push 1
push 0
push 0xffffffffffffffff
push 0x4998b4
push edx
mov dword [ecx + 0x30], 0
call fcn.00475240
mov edx, esi
lea eax, [esp + 4]
call fcn.004733e0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4ab178]
push eax
call fcn.00475240
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a7918]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
jne 0x440989
mov ecx, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb8
push ecx
call fcn.00475240
pop esi
add esp, 0x80
ret
push 0x499869
push 0
push 0x49afb8
mov ecx, edi
call fcn.0042d3d0
pop esi
add esp, 0x80
ret
Function at 0x4412c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4ab178]
sub esp, 0x148
push ebx
push esi
call fcn.00412e90
test edi, edi
je 0x44142e
cmp byte [edi], 0
je 0x44142e
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x441320
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x44138b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44136c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7918]
cmp byte [ecx + 0xe8], 0
mov dword [ecx + 0x30], eax
jne 0x441462
mov edx, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb8
push edx
call fcn.00475240
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x441393
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x4413bb
push 2
push esi
call fcn.004868be
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4413bb
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x4413d2
sub edx, 2
jne 0x4413e8
push edx
push 0x100000
jmp 0x4413d9
push 0
push 0x400
push eax
push ecx
call fcn.00493df0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4aba2c]
mov eax, dword [0x4a7918]
push 1
push 0
push 0xffffffffffffffff
push 0x4998b4
push ecx
mov dword [eax + 0x30], 0
call fcn.00475240
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4ab178]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a7918]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
jne 0x441462
mov ecx, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb8
push ecx
call fcn.00475240
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x499869
push 0
push 0x49afb8
call fcn.0042d3d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44d8c0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44d8c7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44d8ef
dec eax
je 0x44d8e1
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 0x44d8fc
cmp bl, 3
jne 0x44d903
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44d929
cmp dword [0x4ab360], 0
je 0x44d919
movzx ecx, bl
mov al, byte [ecx + 0x4ab250]
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 [0x4ab35c], 0
je 0x44d958
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411650
test al, al
je 0x44d94b
push 1
call fcn.00411480
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4ab250]
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 0x44dea0
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 0x44dee1
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44dee1
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 0x44defc
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44df02
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4ae378], 1
mov ebx, eax
jne 0x44df32
or dword [0x4ae378], 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 [0x4ae374], eax
jmp 0x44df37
mov eax, dword [0x4ae374]
test ebx, ebx
jne 0x44e034
test eax, eax
je 0x44e034
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44e034
cmp byte [esp + 0x11c], 0
je 0x44dfa9
push 0x5c
push edi
call fcn.004876bc
add esp, 8
test eax, eax
je 0x44e034
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44df80
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.00485f60
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 0x44dfed
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.004875f8
add esp, 0xc
test eax, eax
jne 0x44dfed
cmp byte [esi + edi], 0x5c
je 0x44e00f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44dfb5
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.00485f60
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 0x451210
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4512c4
cmp byte [eax], bl
je 0x4512c4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451246
sub eax, edx
cmp eax, ebx
je 0x451260
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x451260
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451267
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x4054
push edx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042d4c0
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4a7918]
cmp byte [edx + 0xe8], bl
jne 0x4512ef
mov eax, dword [0x4aba2c]
push 1
push ebx
push 0xffffffffffffffff
push 0x49afb8
push eax
call fcn.00475240
pop ebx
add esp, 0x12c
ret
push 0x499869
push ebx
push 0x49afb8
mov ecx, esi
call fcn.0042d3d0
pop ebx
add esp, 0x12c
ret
Function at 0x451310
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4ab178]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.00412e90
test edi, edi
je 0x451488
cmp byte [edi], 0
je 0x451488
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x4513a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7918]
cmp byte [ecx + 0xe8], 0
mov dword [ecx + 0x30], eax
jne 0x45138a
mov ecx, dword [0x4aba2c]
push 1
push esi
push 0xffffffffffffffff
push 0x49afb8
push ecx
call fcn.00475240
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x499869
push 0
push 0x49afb8
mov ecx, ebp
call fcn.0042d3d0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.00485539
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 0x45145d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x49baf8
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x45145d
mov ecx, dword [esp + 0x10]
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 + 0x30]
call fcn.00472490
push ebx
call fcn.00485398
mov eax, dword [0x4aba2c]
mov edx, dword [0x4a7918]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x4998b4
push eax
mov dword [edx + 0x30], 0
call fcn.00475240
mov edx, dword [0x4ab178]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00475240
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7918]
push ebx
mov dword [ecx + 0x30], eax
call fcn.00485398
add esp, 4
push ebp
call fcn.0042fc90
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4a7918]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
jne 0x4514bf
mov edx, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb8
push edx
call fcn.00475240
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x499869
push 0
push 0x49afb8
mov ecx, ebp
call fcn.0042d3d0
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x4514e0
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 0x451506
sub eax, edx
je 0x45151e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x45151e
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 0x451544
sub eax, edx
je 0x451562
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x451562
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x451595
test al, 0x10
je 0x451595
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x45159f
test al, 0x10
je 0x45159f
cmp byte [esp + 0x240], 0
jne 0x4515bb
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
call fcn.00451ef0
add esp, 4
test al, al
jne 0x4515bb
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4515c0
mov ecx, dword [str..]
mov dl, byte [0x49f5e0]
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 0x4515e0
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 0x4515f7
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 0x451670
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 0x451696
sub eax, edx
je 0x4516ae
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x4516ae
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 0x4516d4
sub eax, edx
je 0x4516f2
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x4516f2
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x451725
test al, 0x10
je 0x451725
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x45172f
test al, 0x10
je 0x451725
cmp edi, 1
je 0x45172f
cmp edi, 2
je 0x45172f
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
lea edx, [esp + 0x2c]
call fcn.00452000
add esp, 4
test al, al
je 0x451777
lea eax, [esp + 0x130]
push 1
push eax
lea edx, [esp + 0x30]
call fcn.004514e0
add esp, 8
test al, al
je 0x451725
push 1
lea edx, [esp + 0x2c]
call fcn.00451820
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 0x451780
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 0x451797
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 0x451802
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 0x451820
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 0x451846
sub eax, edx
cmp eax, ebx
je 0x451860
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x451860
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x451874
test al, 0x10
jne 0x45187e
xor al, al
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x134], bl
jne 0x45189f
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 0x4518a6
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 0x451ef0
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 0x451f73
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x451f5e
dec eax
jne 0x451f80
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451f17
sub eax, edx
cmp eax, 0x104
ja 0x451f80
inc eax
call fcn.0048edb0
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 0x451f35
push 0x5c
push esi
call fcn.004876bc
add esp, 8
test eax, eax
je 0x451f80
push esi
mov byte [eax], 0
call fcn.00451ef0
add esp, 4
test al, al
je 0x451f80
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 0x451f80
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 0x451f90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x144
push 0x2a
push esi
call fcn.00486371
add esp, 8
test eax, eax
jne 0x451fc8
push 0x3f
push esi
call fcn.00486371
add esp, 8
test eax, eax
jne 0x451fc8
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 0x451fe1
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 0x452110
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 0x452131
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 0x45212b
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 0x452190
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 0x4521e1
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4521e1
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4521e1
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
Function at 0x458ea0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, eax
movzx ecx, byte [edi + 1]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp ecx, eax
jle 0x459095
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 8]
add eax, edx
mov dl, byte [eax]
cmp dl, 2
jne 0x458ef2
push 1
push ebx
push edi
call fcn.00420960
mov ecx, dword [esp + 0x24]
mov dword [ecx + ebx*4], eax
test eax, eax
jne 0x45907d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp byte [eax + 1], 0
mov ebp, dword [esp + 0x24]
mov dword [ebp + ebx*4], 0
je 0x458f25
movzx eax, word [eax + 2]
mov edx, 0xff
cmp ax, dx
jae 0x458f14
mov eax, edx
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x18], edx
jmp 0x45907d
cmp dl, 1
jne 0x458f3b
push 0
push ebx
push edi
call fcn.00420960
mov esi, eax
test esi, esi
je 0x458ee5
jmp 0x458f83
cmp ebx, ecx
jge 0x45907d
mov cl, byte [eax]
test cl, cl
jne 0x458f5b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x458f55
cmp dword [ecx], 0
jne 0x458f69
cmp byte [eax + 1], 0
jmp 0x458f63
cmp cl, 1
sete cl
test cl, cl
je 0x45907d
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc], 0
jne 0x458fba
mov dx, word [ecx + 0xa]
cmp dx, word [eax + 2]
jne 0x458fba
mov esi, dword [ecx + 4]
test esi, esi
je 0x458fba
push ebp
push ebx
push esi
mov dword [ebp + ebx*4], esi
call fcn.004590c0
test eax, eax
je 0x458ee5
cmp eax, 4
je 0x45907d
push 0
mov ecx, esi
call fcn.00475610
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x18], edx
jmp 0x45907d
movzx eax, word [eax + 2]
mov edx, dword [esp + 0x18]
lea eax, [edx + eax + 1]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x45907d
mov ebp, ecx
cmp dword [ebp], 0
je 0x45907d
mov edi, edi
mov esi, dword [ebp + 4]
movzx ecx, word [ebp + 0xa]
movzx eax, byte [esi + 0x17]
sub dword [esp + 0x18], ecx
cmp eax, 3
ja case.default.0x458ff4
jmp dword [eax*4 + 0x4590a4]
mov eax, esi
call fcn.00401150
cmp dword [0x4ab394], 0
jne 0x45903d
cmp dword [esi + 0xc], 0
jne 0x45903d
mov eax, dword [esi + 0x18]
push 0
lea edx, [esp + 0x1b]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x459033
mov dword [0x4ae2f4], 0
dec eax
jmp 0x45906c
mov dword [0x4ae2f4], esi
xor eax, eax
jmp 0x45906c
mov eax, dword [esi + 0xc]
jmp 0x45906c
mov ecx, dword [esi + 0xc]
push 0
call fcn.00475610
jmp 0x45906c
xor ecx, ecx
call fcn.00404110
cmp eax, 0xffffffff
jne 0x45906c
xor eax, eax
jmp 0x45906c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x10]
push ecx
push 0
call edx
add esp, 8
add dword [esp + 0x18], eax
add ebp, 0xc
cmp dword [ebp], 0
jne 0x458fe0
mov eax, dword [esp + 0x1c]
movzx ecx, byte [edi + 1]
inc ebx
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp ebx, ecx
jl 0x458ec1
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4