joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423714
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42373a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42373a
xor al, al
jmp 0x42374e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x425e6a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
mov esi, ecx
push edx
push edi
push edi
call fcn.00526b46
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x425e94
call fcn.00425e24
mov edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42ad85
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55f4fa
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5b38f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x258]
xor ebx, ebx
push dword [edi + 8]
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 4]
lea eax, [esi + 0x1c8]
push eax
lea ecx, [esp + 0x14]
call fcn.0042a63f
push 0xe
pop edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call fcn.0042ad14
push 0xf
pop edx
lea ecx, [esp + 0x10]
call fcn.0042ad14
push 0x11
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
push 0x10
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
push 9
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
push 6
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
push 0x12
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
push 0x14
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
push 0x13
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
push 0x15
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
push 0xa
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
push 0x16
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042accf
pop ecx
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0042a850
push ebx
push 0x61
mov ecx, edi
call fcn.0042a02f
push ebx
push 0x62
mov ecx, edi
call fcn.0042a02f
push ebx
push 0x63
mov ecx, edi
call fcn.0042a02f
push 0x14
pop edx
mov ecx, edi
call fcn.0042ad41
push 6
pop edx
mov ecx, edi
call fcn.0042ad41
push 9
pop edx
mov ecx, edi
call fcn.0042ad41
push 0x11
pop edx
mov ecx, edi
call fcn.0042ad41
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBaseRecordVector.0
call fcn.00425fb8
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438285
Capabilities:
Set file attributes

Disassembly:
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x43ebe6
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56121e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b38f0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
mov eax, dword [0x5b38f0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x43ec2a
mov eax, dword [esi]
jmp 0x43ec2c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ec3e
mov al, 1
jmp 0x43ecda
push esi
lea ecx, [esp + 0x14]
call fcn.00407b5f
and dword [esp + 0x50], 0
lea ecx, [esp + 0x10]
call fcn.0043e831
test bl, bl
je 0x43ecaf
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407b5f
lea eax, [esp + 0x28]
mov byte [esp + 0x50], 1
push eax
call fcn.0043e8ff
mov eax, dword [esp + 0x3c]
pop ecx
cmp eax, dword [esp + 0x20]
je 0x43eca2
mov dl, bl
lea ecx, [esp + 0x28]
call fcn.0043ebe6
test al, al
jne 0x43eca2
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00403236
xor bl, bl
jmp 0x43eccb
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00403236
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push 0
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.00403236
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x43ee18
Capabilities:
Delete directory

Disassembly:
push 0x40
mov eax, 0x561289
call fcn.0052eb20
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0043f1f7
lea edx, [ebp - 0x38]
mov ecx, ebx
call fcn.0043f26b
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
sub eax, esi
cdq
push 0x18
pop edi
idiv edi
mov ebx, dword [ebp - 0x38]
mov ecx, eax
mov eax, dword [ebp - 0x34]
sub eax, ebx
cdq
idiv edi
mov edi, eax
mov dword [ebp - 0x48], edi
test ecx, ecx
je 0x43eec6
mov ebx, dword [ebp - 0x2c]
mov edi, ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00407b5f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.0043eb25
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0052a948
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00403236
add esi, 0x18
dec edi
jne 0x43ee7f
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x38]
test edi, edi
je 0x43ef15
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00407b5f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.0043eb25
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0043ee18
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403236
add ebx, 0x18
dec edi
jne 0x43eeca
lea ecx, [ebp - 0x38]
call fcn.004402c5
lea ecx, [ebp - 0x44]
call fcn.004402c5
mov al, 1
call fcn.0052eacf
ret

Function at 0x43ef2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x43ef3e
xor al, al
jmp 0x43efca
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x43ef49
mov ecx, dword [ecx]
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x14], bl
push ebx
push ebx
push 2
pop eax
push 4
pop edx
cmovne eax, edx
push eax
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43efc6
cmp byte [ebp + 0x14], bl
je 0x43ef86
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43efba
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push ebx
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43efb9
cmp dword [ebp - 4], edi
jne 0x43efb7
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov bl, 1
pop edi
cmp esi, 0xffffffff
je 0x43efc6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43efce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5612b9
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.0052ad70
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x1030]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 8
mov dword [ebp - 0x103c], eax
xor eax, eax
cmp dword [esi + 0x14], 8
pop ecx
mov dword [ebp - 0x1034], ebx
rep stosd dword es:[edi], eax
jb 0x43f02b
mov eax, dword [esi]
jmp 0x43f02d
mov eax, esi
lea ecx, [ebp - 0x1034]
push ecx
push eax
call fcn.0052c3ae
pop ecx
pop ecx
test eax, eax
je 0x43f047
xor al, al
jmp 0x43f0e7
cmp dword [ebp - 0x1020], 0xfffffffe
jae 0x43f040
mov dword [ebp - 0x1038], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x43f061
mov esi, dword [esi]
push 0x58ccc4
lea eax, [ebp - 0x1038]
push esi
push eax
call fcn.0052c812
add esp, 0xc
cmp dword [ebp - 0x1038], 0
je 0x43f0e5
push dword [ebp - 0x1020]
mov ebx, dword [ebp - 0x103c]
mov ecx, ebx
call fcn.0043ff75
mov esi, 0x1000
jmp 0x43f0a8
push eax
lea eax, [ebp - 0x1010]
mov ecx, ebx
push eax
call fcn.00440a04
push dword [ebp - 0x1038]
lea eax, [ebp - 0x1010]
push esi
push 1
push eax
call fcn.0052cb01
add esp, 0x10
test eax, eax
jne 0x43f099
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebp - 0x1020]
sete bl
cmp dword [ebp - 0x1038], 0
je 0x43f0e5
push dword [ebp - 0x1038]
call fcn.0052c16d
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x440ab7
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
push edi
push 3
pop ecx
lea eax, [ebx + 2]
mov edi, dword [ebp + 8]
div ecx
cmp eax, 0x40000000
jae 0x440bc7
mov edx, dword [ebp + 0x14]
shl eax, 2
cmp dword [edx], eax
jb 0x440bc7
push esi
mov esi, dword [ebp + 0x10]
cmp ebx, 2
jbe 0x440b57
xor edx, edx
lea eax, [ebx - 3]
div ecx
lea edx, [eax + 1]
movzx ecx, byte [edi]
shr ecx, 2
push 3
mov cl, byte [ecx + 0x582bd0]
mov byte [esi], cl
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x582bd0]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + 0x582bd0]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
and eax, 0x3f
pop ecx
add edi, ecx
sub ebx, ecx
mov al, byte [eax + 0x582bd0]
mov byte [esi + 3], al
add esi, 4
dec edx
jne 0x440af8
mov edx, dword [ebp + 0x14]
test ebx, ebx
je 0x440bb8
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + 0x582bd0]
mov byte [esi], al
cmp ebx, 1
jbe 0x440b9e
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x582bd0]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x582bd0]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x440bb5
movzx eax, byte [edi]
and eax, ecx
shl eax, 4
mov al, byte [eax + 0x582bd0]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov eax, esi
sub eax, dword [ebp + 0x10]
mov dword [edx], eax
xor eax, eax
mov byte [esi], 0
pop esi
jmp 0x440bca
or eax, 0xffffffff
pop edi
pop ebx
pop ebp
ret
Function at 0x441a5a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x441b4f
cmp dword [esi + 0x14], 8
jb 0x441a89
mov eax, dword [esi]
jmp 0x441a8b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x441b4f
push 0x24c
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], edi
push edi
push eax
call fcn.005278d0
add esp, 0xc
lea edi, [ebp - 0x26]
xor eax, eax
cmp dword [esi + 0x14], 8
mov word [ebp - 0x28], ax
push 8
pop ecx
rep stosd dword es:[edi], eax
jb 0x441acb
mov esi, dword [esi]
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
test esi, esi
je 0x441b4f
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push str._d__d__d__d:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x28]
push eax
call fcn.004086d2
add esp, 0x20
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408659
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x441b51
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x443307
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov edi, edx
jb 0x443318
mov ecx, dword [ecx]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x443385
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44337e
push 0
lea eax, [ebx + 1]
mov ecx, edi
push eax
call fcn.0043e581
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
jb 0x44335b
mov edi, dword [edi]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44337e
cmp dword [ebp - 4], ebx
jne 0x44337e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x443387
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449164
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
cmp dword [esi + edi*4 + 4], ecx
jne 0x4491b2
mov eax, dword [esi + edi*4 + 0x74]
push ebx
push ecx
push ecx
push ecx
push 6
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4491b1
push dword [ebx + 0xa]
lea ecx, [ebx + 0xe]
push dword [ebp + 8]
push 0
push 0
push ecx
push dword [esi]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push ebx
mov dword [esi + edi*4 + 4], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
mov eax, dword [esi + edi*4 + 4]
pop edi
pop esi
pop ebp
ret 4

Function at 0x4491bc
Capabilities:
Read file via mapping

Disassembly:
push 0x14
mov eax, 0x562232
call fcn.0052eaed
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.004492ac
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
call fcn.004500e5
test eax, eax
je 0x449285
mov ebx, dword [ebp - 0x20]
mov edi, esi
add ebx, 4
cmp dword [ebx], 0
je 0x449275
push esi
push dword [ebx]
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x44921d
mov eax, dword [ebp + 0xc]
mov dword [eax + edi*4], esi
jmp 0x449275
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x44923c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x449215
mov edx, dword [ebx - 4]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebx]
mov ecx, dword [ebx + 8]
push eax
call fcn.00456594
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 0xc]
cmp dword [eax + edi*4], 0
je 0x44926c
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ecx + edi*4], eax
inc edi
add ebx, 0x10
cmp edi, 0x1c
jl 0x4491fa
xor esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.004493ac
mov eax, esi
call fcn.0052eabb
ret 8

Function at 0x44a81f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
je 0x44a882
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44a882
push 0x24c
lea eax, [ebp - 0x250]
mov dword [ebp - 0x254], esi
push esi
push eax
call fcn.005278d0
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x44a882
mov esi, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x44ad21
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0x10
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x44ad5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x78
neg eax
sbb eax, eax
inc eax
jmp 0x44add0
push esi
lea eax, [ebp - 0x34]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x44ad83
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44adcf
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x34]
xor edi, edi
mov dword [ebp - 0x10], eax
inc edi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], edi
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x28]
test eax, eax
cmovne esi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret

Function at 0x44adde
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 8], ebx
test esi, esi
jne 0x44adf7
xor eax, eax
jmp 0x44aeac
cmp byte [0x5bba90], 0
jne 0x44ae0c
call fcn.0044ad21
mov byte [0x5bba90], 1
push edi
push esi
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x44ae3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push edi
push ebx
push esi
push eax
push 0xc
pop edx
push 0x6e
pop ecx
call fcn.004bb9e0
add esp, 0x14
xor eax, eax
jmp 0x44aeab
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x44ae70
cmp dword [ebp - 4], 0x103
je 0x44ae70
push ecx
push 0
push ebx
push esi
push dword [ebp - 4]
push 0xf
pop edx
push 0x6e
pop ecx
call fcn.004bb9e0
add esp, 0x14
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, eax
test ebx, ebx
jne 0x44ae9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ebx
push dword [ebp - 8]
push esi
push eax
push 0xd
pop edx
push 0x6e
pop ecx
call fcn.004bb9e0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44aeb2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x44afc3
test esi, esi
je 0x44afc3
lea eax, [ebp - 0x4bc]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x44afbb
xor eax, eax
mov dword [ebp - 0x4c0], eax
cmp word [ebp - 0x4bc], ax
je 0x44afbb
lea ebx, [ebp - 0x4bc]
mov dword [ebp - 0x4c4], eax
push 0x58de28
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x44af91
push 0x58de30
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x44af91
mov ax, word [ebx]
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x4c4]
push 0x64
mov ax, word [ebp + eax - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x44afc3
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push edi
call fcn.0052a6f3
add esp, 0xc
test eax, eax
je 0x44afd6
mov eax, dword [ebp - 0x4c0]
lea ebx, [ebp - 0x4bc]
add eax, 4
mov dword [ebp - 0x4c0], eax
add eax, eax
add ebx, eax
mov dword [ebp - 0x4c4], eax
xor eax, eax
cmp word [ebx], ax
jne 0x44af17
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + ebx*2]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
inc eax
jmp 0x44afc5

Function at 0x44aff1
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
xor eax, eax
test ebx, ebx
je 0x44b086
push esi
push edi
push ecx
xor esi, esi
mov word [ebx], ax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
xor eax, eax
test edi, edi
je 0x44b084
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.005278d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x44b067
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44b084
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.0044aeb2
test eax, eax
je 0x44b07b
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret