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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, ecx
push esi
push edi
mov edi, ebx
test ebx, ebx
je 0x444905
movzx eax, word [ebx]
test ax, ax
je 0x444990
mov esi, eax
nop
mov ecx, 0x4d1dc8
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x444990
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4448e0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4448d0
cmp word [ebx], 0
je 0x444990
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d98d8]
mov dword [ecx + 0x30], eax
test esi, esi
je 0x444950
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
call fcn.0047faa0
pop edi
pop esi
pop ebp
pop ebx
ret 4
test byte [ecx + 0x100], 1
jne 0x444976
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, ebp
call fcn.0042fd40
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x4448a0
push 0
push 1
push ebx
mov ecx, ebp
call fcn.00444e20
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4449b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x10004
call fcn.004aea90
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x10018]
call fcn.0040f490
mov esi, dword [esp + 0x10014]
cmp eax, 1
je 0x4449e5
mov ecx, esi
call fcn.004597d0
test al, al
jne 0x444ad0
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x444ad0
mov edx, dword [esp + 0x10010]
mov ecx, edx
push ebx
push ebp
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x444a14
sub ecx, ebx
mov eax, 0x7fff
sar ecx, 1
cmp ecx, 0x8000
cmovae ecx, eax
lea eax, [ecx*2 + 2]
push eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00498e20
lea eax, [esp + 0x20]
push eax
call fcn.004a1547
add esp, 0x10
lea eax, [esp + 0x14]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x444aa0
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x444aa0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x444aa0
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x444aa2
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
test bl, bl
pop ebx
je 0x444ad0
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
call fcn.0047faa0
pop edi
pop esi
add esp, 0x10004
ret 0xc
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne 0x444aff
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop edi
pop esi
add esp, 0x10004
ret 0xc
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, edi
call fcn.0042fd40
pop edi
pop esi
add esp, 0x10004
ret 0xc
Function at 0x444b20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x100
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4ddbb0]
push 0
call fcn.0047faa0
mov eax, dword [esp + 0x108]
test eax, eax
je 0x444c04
cmp word [eax], 0
je 0x444c04
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x444bba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d98d8]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x444b9c
mov ecx, dword [0x4dc408]
push 1
push 0
push edi
push 0x4ca34c
call fcn.0047faa0
pop edi
pop esi
add esp, 0x100
ret 4
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, esi
call fcn.0042fd40
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4d98d8]
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
mov dword [eax + 0x30], 0
call fcn.0047faa0
mov edx, edi
lea ecx, [esp + 8]
call fcn.0047db00
mov ecx, dword [0x4ddbb0]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0047faa0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x444c39
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop esi
add esp, 0x100
ret 4
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, esi
call fcn.0042fd40
pop esi
add esp, 0x100
ret 4

Function at 0x444c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebx
movzx eax, word [edi]
mov dword [esp + 0x1c], edx
test ax, ax
je 0x444d5b
mov ecx, eax
nop word [eax + eax]
movzx esi, cx
test esi, 0xffffff80
je 0x444caf
xor eax, eax
jmp 0x444cc2
push 2
push esi
call fcn.0049bd84
mov edx, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x18]
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x444cdb.44
movzx eax, byte [ecx + 0x444da4]
jmp dword [eax*4 + 0x444d80]
movzx eax, word [edi]
mov dword [esp + 0x10], eax
jmp case.0x444cdb.44
mov ecx, 1
jmp 0x444d1a
mov ecx, 0x20
jmp 0x444d1a
mov ecx, 4
jmp 0x444d1a
mov ecx, 2
jmp 0x444d1a
mov ecx, 0x80
jmp 0x444d1a
mov ecx, 0x1000
jmp 0x444d1a
mov ecx, pe_nt_image_headers32
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x444d39
sub eax, 2
je 0x444d31
sub eax, 0x31
jne case.0x444cdb.44
xor edx, ecx
jmp 0x444d45
not ecx
and ebx, ecx
and edx, ecx
jmp 0x444d41
mov eax, ecx
not eax
and ebx, eax
or edx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x444ca0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x444de0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00444e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x445650
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x4ddbb0]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.0047faa0
mov edi, dword [ebp + 8]
test edi, edi
je 0x445802
cmp word [edi], 0
je 0x445802
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4456d1
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 0x4456cd
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x445716
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4456fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d98d8]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jmp 0x445815
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x3c]
xor esi, esi
or esi, dword [esp + 0x40]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0xc]
movzx edi, word [eax]
test edi, 0xffffff80
je 0x445728
xor eax, eax
jmp 0x44573b
push 2
push edi
call fcn.0049bd84
mov edx, dword [esp + 0x1c]
add esp, 8
mov esi, dword [esp + 0x10]
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
sub ecx, 0x4b
je 0x445757
sub ecx, 2
jne 0x44576d
push ecx
push 0x100000
jmp 0x44575e
push 0
push 0x400
push edx
push esi
call fcn.004aee70
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4d98d8]
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
mov dword [eax + 0x30], 0
call fcn.0047faa0
mov esi, dword [0x4ddbb0]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x17], 0
jne 0x4457a6
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x4457bd
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 0x4457e4
mov ecx, esi
call fcn.00401330
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4dc430], 0
je 0x4457f4
mov ecx, esi
call fcn.00401330
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x445836
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, esi
call fcn.0042fd40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x454f80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x454f8b
xor al, al
pop ebx
ret
sub edx, 1
je 0x454fb0
movzx eax, bl
push eax
sub edx, 1
je 0x454fa6
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 0x454fbd
cmp bl, 3
jne 0x454fc5
mov al, bl
add al, 0x66
cmp al, 5
ja 0x454fdc
cmp dword [0x4dc43c], 0
movzx eax, bl
je 0x45500d
mov al, byte [eax + 0x4dcdc8]
shr al, 7
pop ebx
ret
cmp dword [0x4dc440], 0
je 0x45500a
push 0
xor edx, edx
call fcn.00413a30
add esp, 4
test al, al
je 0x454ffc
mov cl, 1
call fcn.00413820
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4dcdc8]
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 0x4556d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
xor eax, eax
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 eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x455712
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x455712
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x228], 0
push 0x104
push edi
push 0
push ebp
je 0x45572d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x455733
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
jne 0x45585d
mov eax, dword [0x4d23c4]
test eax, eax
je 0x45585d
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x45585d
cmp byte [esp + 0x228], 0
je 0x4557b5
push 0x5c
push edi
call fcn.00496f12
mov edx, eax
add esp, 8
test edx, edx
je 0x45585d
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455781
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.00498760
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, 0x210
ret
mov eax, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], ax
nop word [eax + eax]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x45580c
sub esi, 2
lea eax, [esp + 0x18]
push esi
push edi
push eax
call fcn.004a1183
add esp, 0xc
test eax, eax
jne 0x45580c
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x455832
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x4557d0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
movzx eax, word [esp + 0x10]
sub ebx, esi
mov word [edi], ax
movzx eax, word [esp + 0x12]
mov word [edi + 2], ax
lea eax, [ebx*2 + 2]
push eax
push ecx
lea eax, [edi + 4]
push eax
call fcn.00498760
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, 0x210
ret
Function at 0x458950
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
sub esp, 0x210
push ebx
push edi
push 0
mov edi, ecx
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x4b17d0
push 1
push 0
push 0x4b17e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x458ae5
mov eax, dword [esp + 8]
push dword [esp + 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x224]
cmp word [edx], 0
je 0x4589ae
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x228]
cmp word [edx], 0
je 0x4589c6
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [esp + 0x22c]
cmp word [edx], 0
je 0x4589de
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push esi
mov esi, dword [esp + 0x234]
cmp word [esi], 0
je 0x458a11
mov ecx, dword [esp + 0x23c]
cmp word [ecx], 0
je 0x458a03
call fcn.0040f490
lea edx, [eax - 1]
jmp 0x458a05
xor edx, edx
mov eax, dword [esp + 0xc]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, dword [esp + 0x238]
cmp word [esi], 0
je 0x458a53
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.00414160
add esp, 0xc
test al, al
je 0x458a53
mov ecx, dword [esp + 0xc]
mov esi, 0x600
movzx eax, al
or ax, si
movzx eax, ax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x34]
mov ecx, dword [esp + 0x240]
cmp word [ecx], 0
je 0x458a73
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
call fcn.0040f490
push eax
push dword [esp + 0x10]
call dword [esi + 0x3c]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x4b17f0
push eax
mov ecx, dword [eax]
call dword [ecx]
pop esi
test eax, eax
js 0x458adb
push 0
lea eax, [esp + 0x14]
push eax
push 0x104
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x458ad1
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
call fcn.0047faa0
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
test bl, bl
je 0x458aff
pop edi
mov eax, 1
pop ebx
add esp, 0x210
ret 0x24
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne 0x458b2e
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop edi
pop ebx
add esp, 0x210
ret 0x24
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, edi
call fcn.0042fd40
pop edi
pop ebx
add esp, 0x210
ret 0x24
Function at 0x458b50
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x230
push esi
mov esi, ecx
test eax, eax
je 0x458c5b
cmp word [eax], 0
je 0x458c5b
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458b90
sub ecx, edx
sar ecx, 1
je 0x458bb0
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x458bb0
xor eax, eax
mov word [esp + ecx*2 + 0x26], ax
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458bb7
xor eax, eax
mov dword [esp + 8], 3
sub ecx, edx
mov dword [esp + 0x1a], eax
sar ecx, 1
mov dword [esp + 0x1e], eax
mov dword [esp + 0x16], eax
mov dword [esp + 4], eax
mov word [esp + ecx*2 + 0x2a], ax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x4054
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x458c29
mov ecx, dword [0x4dc408]
push 1
push eax
push 0xffffffffffffffff
push 0x4b716c
call fcn.0047faa0
pop esi
add esp, 0x230
ret 4
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne 0x458c57
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop esi
add esp, 0x230
ret 4
mov ecx, esi
jmp 0x458c69
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
je 0x458c37
push 0x4b70dc
push 0
push 0x4ca34c
call fcn.0042fd40
pop esi
add esp, 0x230
ret 4
Function at 0x458d10
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push esi
push 1
push 0
push 0xffffffffffffffff
mov ebx, ecx
mov ecx, dword [0x4ddbb0]
push 0
call fcn.0047faa0
mov esi, dword [esp + 0x118]
test esi, esi
je 0x458ecf
cmp word [esi], 0
je 0x458ecf
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
jne 0x458db1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d98d8]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x458d92
mov ecx, dword [0x4dc408]
push 1
push ebp
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, ebx
call fcn.0042fd40
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push edi
push ebp
call fcn.004997ae
add esp, 4
mov edi, eax
push edi
push ebp
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x458e66
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4cb20c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x458e66
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.0047c9c0
push edi
call fcn.0049b8d4
mov eax, dword [0x4d98d8]
add esp, 0x20
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
mov dword [eax + 0x30], 0
call fcn.0047faa0
mov ecx, dword [0x4ddbb0]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0047faa0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d98d8]
push edi
mov dword [ecx + 0x30], eax
call fcn.0049b8d4
mov eax, dword [0x4d98d8]
add esp, 4
test byte [eax + 0x100], 1
jne 0x458eaf
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, ebx
call fcn.0042fd40
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x458f05
mov ecx, dword [0x4dc408]
push 1
push 0
push 0xffffffffffffffff
push 0x4ca34c
call fcn.0047faa0
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4b70dc
push 0
push 0x4ca34c
mov ecx, ebx
call fcn.0042fd40
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x4591b0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
test dl, dl
jne 0x4591d2
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x45929e
mov al, 1
add esp, 0x230
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4591f0
sub ecx, edx
sar ecx, 1
je 0x459210
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x459210
xor eax, eax
mov word [esp + ecx*2 + 0x22], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45929e
test al, 0x10
je 0x45929e
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459230
sub ecx, edx
mov dword [esp + 0xc], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov word [esp + ecx*2 + 0x26], ax
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_SHFileOperationW]
test eax, eax
sete al
add esp, 0x230
ret
xor al, al
add esp, 0x230
ret
Function at 0x4597d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push 0x2a
push esi
call fcn.00496bcf
add esp, 8
test eax, eax
jne 0x459810
push 0x3f
push esi
call fcn.00496bcf
add esp, 8
test eax, eax
jne 0x459810
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x459821
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x459828
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x459840
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 0x4598b3
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
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 0x4598b3
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x4598b3
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x4598c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0xa60
push ebx
push ebp
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x18], 0x22c
push 2
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
push 0
push 0
push 1
xor edx, edx
mov ecx, ebx
call fcn.0047c7e0
add esp, 0xc
test eax, eax
je 0x459911
mov ecx, ebx
call fcn.004151f0
mov ebx, eax
jmp 0x459913
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4599d6
test ebx, ebx
je 0x459935
cmp ebx, dword [esp + 0x1c]
je 0x4599ea
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x660]
push eax
lea eax, [esp + 0x870]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004a1c77
lea eax, [esp + 0x460]
add esp, 0x14
mov esi, eax
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x459970
lea edi, [esp + 0x240]
sub eax, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x459990
push dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x244]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00499643
add esp, 8
test eax, eax
je 0x4599fe
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x459927
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa60
ret