joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42088e
Capabilities:
List user accounts

Disassembly:
push ebp
sub esp, 0x5c
lea ebp, [esp - 4]
mov eax, dword [0x4d9114]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push 0x38
mov eax, 0x4b110a
call fcn.0048bc3b
xor ebx, ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x10]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x14]
push eax
push ebx
push 3
push ebx
call sub.NETAPI32.dll_NetUserEnum
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x4208ea
cmp eax, 0xea
jne 0x420a0d
push dword [ebp + 0x14]
lea esi, [ebp + 4]
call fcn.0042178b
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x4209ea
mov dword [ebp + 0x18], ebx
cmp dword [ebp + 0x10], ebx
jbe 0x4209ea
cmp esi, ebx
je 0x4209e3
push 7
pop edi
push ebx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x58], edi
call fcn.00406102
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], edi
call fcn.00406102
mov byte [ebp - 4], 2
push dword [esi]
lea ecx, [ebp - 0x28]
call fcn.004040b1
mov byte [ebp - 4], 3
xor edi, edi
lea eax, [ebp + 0x40]
inc edi
or dword [ebp + 0x1c], edi
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ee08
pop ecx
test al, al
je 0x420972
lea edx, [ebp + 0x24]
lea ecx, [ebp + 0x40]
call fcn.0041ef23
mov byte [ebp + 0x23], 1
test al, al
jne 0x420975
mov byte [ebp + 0x23], bl
mov dword [ebp - 4], 2
test byte [ebp + 0x1c], 1
je 0x420990
and dword [ebp + 0x1c], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.0040515f
cmp byte [ebp + 0x23], bl
je 0x4209b4
push dword [esi]
lea ecx, [ebp - 0x44]
call fcn.004040b1
mov byte [ebp - 4], 4
inc dword [ebp + 0x68]
mov byte [ebp - 4], 2
push ebx
push edi
lea ecx, [ebp - 0x44]
call fcn.0040515f
add esi, 0x74
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp + 0x24]
call fcn.0040515f
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp + 0x40]
call fcn.0040515f
inc dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x10]
jb 0x42090f
jmp 0x4209ea
mov dword [ebp + 0xc], 0xc
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp + 0xc], 0xea
je 0x4208bd
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.004876e8
add ebp, 0x60
leave
ret
Function at 0x420dc3
Capabilities:
List user accounts

Disassembly:
push ebp
sub esp, 0x5c
lea ebp, [esp - 4]
mov eax, dword [0x4d9114]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push 0x50
mov eax, 0x4b10ac
call fcn.0048bc3b
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x14]
push eax
push ebx
push 3
push ebx
call sub.NETAPI32.dll_NetUserEnum
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x420e43
cmp eax, 0xea
jne 0x420f85
push dword [ebp + 0x14]
lea esi, [ebp]
call fcn.0042178b
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x420f62
mov dword [ebp + 0x18], ebx
cmp dword [ebp + 0x10], ebx
jbe 0x420f62
cmp esi, ebx
je 0x420f5b
push 7
pop edi
push ebx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x58], edi
call fcn.00406102
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], edi
call fcn.00406102
mov byte [ebp - 4], 2
push dword [esi]
lea ecx, [ebp - 0x40]
call fcn.004040b1
mov byte [ebp - 4], 3
xor edi, edi
lea eax, [ebp + 0x40]
inc edi
or dword [ebp + 0x1c], edi
push eax
lea ecx, [ebp - 0x40]
call fcn.0041ee08
pop ecx
test al, al
je 0x420ecb
lea edx, [ebp + 0x24]
lea ecx, [ebp + 0x40]
call fcn.0041ef23
mov byte [ebp + 0x23], 1
test al, al
jne 0x420ece
mov byte [ebp + 0x23], bl
mov dword [ebp - 4], 2
test byte [ebp + 0x1c], 1
je 0x420ee9
and dword [ebp + 0x1c], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.0040515f
cmp byte [ebp + 0x23], bl
je 0x420f2c
push dword [esi]
lea ecx, [ebp - 0x5c]
call fcn.004040b1
mov byte [ebp - 4], 4
push dword [ebp - 0x1c]
lea eax, [ebp + 0x24]
push dword [ebp + 8]
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [ebp + 4]
add esp, 0x24
mov byte [ebp - 4], 2
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040515f
add esi, 0x74
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp + 0x24]
call fcn.0040515f
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp + 0x40]
call fcn.0040515f
inc dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x10]
jb 0x420e68
jmp 0x420f62
mov dword [ebp + 0xc], 0xc
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp + 0xc], 0xea
je 0x420e16
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.004876e8
add ebp, 0x60
leave
ret
Function at 0x4232fd
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, 0xf0000000
push ebx
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call esi
test eax, eax
je 0x423325
cmp dword [edi], 0
jne 0x423337
push ebx
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push edi
call esi
cmp dword [edi], 0
je 0x42335b
push dword [ebp + 0xc]
lea esi, [ebp - 8]
push dword [ebp + 8]
call fcn.004232a0
lea eax, [edi + 4]
push eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x423389
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
xor eax, eax
inc eax
push 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
push eax
push 3
push ecx
call esi
push 0
lea eax, [ebp + 8]
push eax
push 4
push dword [edi + 4]
call esi
pop esi
pop ebx
leave
ret 8

Function at 0x4233b1
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 4
mov eax, 0x4aaa82
call fcn.0048bc3b
mov edi, ecx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov esi, ebx
call fcn.00414ba9
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
mov dword [ebp - 0x10], 1
je 0x42346e
mov esi, dword [ebx]
call fcn.0040702c
test al, al
je 0x42346e
mov eax, dword [ebx]
push edi
push dword [ebp + 0x10]
push dword [eax]
call fcn.0048a010
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp + 0x10], edi
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x42342b
mov edi, dword [ebp + 0x10]
jmp 0x423467
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x423465
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx]
call fcn.0040702c
test al, al
je 0x423465
mov eax, dword [ebx]
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebp + 8]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x42346e
xor edi, edi
mov esi, dword [ebx]
call fcn.0040702c
mov eax, ebx
call fcn.0048bd13
ret 0xc
Function at 0x424dab
Capabilities:
Create service

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4d9114]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x34
mov eax, 0x4b0735
call fcn.0048bc3b
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x14], eax
push 0x400
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
mov esi, ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor edi, edi
inc edi
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x424eaa
cmp dword [esi + 0x78], ebx
jne 0x424e14
mov dword [ebp - 0x10], ebx
jmp 0x424e25
cmp dword [esi + 0x7c], 8
jb 0x424e1f
mov eax, dword [esi + 0x68]
jmp 0x424e22
lea eax, [esi + 0x68]
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x40]
call fcn.004040b1
mov dword [ebp - 4], edi
lea ecx, [esi + 0x80]
cmp dword [ecx + 0x18], 8
jb 0x424e45
mov ecx, dword [ecx + 4]
jmp 0x424e48
add ecx, 4
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x1c], ecx
jb 0x424e56
mov eax, dword [eax + 4]
jmp 0x424e59
add eax, 4
cmp dword [esi + 0x60], 8
mov dword [ebp - 0x18], eax
jb 0x424e67
mov edx, dword [esi + 0x4c]
jmp 0x424e6a
lea edx, [esi + 0x4c]
cmp dword [esi + 0x44], 8
jb 0x424e75
mov eax, dword [esi + 0x30]
jmp 0x424e78
lea eax, [esi + 0x30]
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push ebx
push 0x4c7148
push dword [ebp - 0x18]
push edi
push 3
push 0x10
push 0xf01ff
push edx
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.0040515f
push str._installed.
add esi, 0x48
push esi
push dword [ebp - 0x14]
call fcn.00423201
add esp, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004876e8
add ebp, 0x804
leave
ret 4
Function at 0x424f74
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push 0xc
mov eax, 0x4ab7c7
call fcn.0048bc6e
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
je 0x42502e
cmp dword [esi + 0x44], 8
jb 0x424faa
mov ecx, dword [esi + 0x30]
jmp 0x424fad
lea ecx, [esi + 0x30]
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x42502e
lea ebx, [esi + 4]
push ebx
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call edi
test eax, eax
je 0x42501d
cmp dword [esi + 8], 1
je 0x425016
push ebx
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42501d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x42501d
cmp dword [esi + 8], 3
jne 0x42500a
push 0x1f4
jmp 0x424fed
cmp dword [esi + 8], 1
jne 0x42501d
or dword [ebp - 0x14], 2
jmp 0x42501d
mov dword [ebp - 0x14], 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x42502e
or dword [ebp - 0x14], 4
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.0048bd13
ret
Function at 0x425370
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4aee50
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x24]
mov eax, dword [0x4eb73c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4eb73c
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x1c], 0
test esi, esi
je 0x4254af
test esi, 0xffff0000
jne 0x4254b3
movzx esi, si
push 0
push esi
call fcn.00401186
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4254d8
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4254d8
push esi
push eax
push ebx
call fcn.004010c9
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4254d8
mov eax, dword [edi]
movzx ebx, word [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ebx
or eax, ecx
jge 0x425433
push ebx
mov ecx, edi
call fcn.00407200
movzx eax, word [esi]
mov ebp, dword [edi]
lea edx, [esi + 2]
cmp eax, 0xffffffff
jne 0x425455
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425445
sub eax, esi
sar eax, 1
inc eax
add eax, eax
push eax
push edx
lea esi, [ebx + ebx]
push esi
push ebp
call fcn.0048841e
add esp, 0x10
cmp eax, 0x50
ja case.0x425472.1
movzx ecx, byte [eax + 0x425524]
jmp dword [ecx*4 + 0x425514]
push 0x8007000e
call fcn.0040101f
push 0x80070057
call fcn.0040101f
test ebx, ebx
jl case.0x425472.22
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg case.0x425472.22
mov dword [eax - 0xc], ebx
mov edx, dword [edi]
xor eax, eax
mov word [esi + edx], ax
jmp 0x4254d8
push 0x80004005
call fcn.0040101f
xor eax, eax
jmp 0x4254cf
mov eax, esi
lea edx, [eax + 2]
jmp 0x4254c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4254c0
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.00405cab
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
push eax
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [edi + 4], eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x425580
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ab744
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], ebx
push 0xc
mov dword [esp + 0x1c], ebx
call fcn.00488856
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, ebx
je 0x4255dc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x4255de
xor eax, eax
mov byte [esp + 0x30], bl
mov dword [ebp], eax
mov dword [esp + 0x30], ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x44]
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42567c
mov edi, dword [ebp]
cmp esi, dword [edi + 4]
je 0x42563d
mov eax, dword [edi]
push esi
push eax
call fcn.0048850f
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x42563a
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push ebx
push ecx
call fcn.00489de0
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], esi
mov eax, dword [eax]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425663
cmp dword [esp + 0x14], esi
je 0x42567c
mov esi, dword [ebp]
cmp dword [esi + 4], ebx
je 0x42567c
mov eax, dword [esi]
push ebx
push eax
call fcn.0048850f
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x4256a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x425716
ja 0x4256b9
cmp esi, dword [esp + 0x20]
jae 0x42571a
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x4256d5
jb 0x4256d1
cmp ecx, 0x10000
jae 0x4256d5
mov edi, ecx
jmp 0x4256da
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425716
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x425716
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x4256b9
ja 0x425716
cmp esi, dword [esp + 0x20]
jb 0x4256b9
cmp esi, dword [esp + 0x20]
jne 0x425737
cmp ebp, ebx
jne 0x425737
or esi, ebp
je 0x42572f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x425880
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4258a6
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret

Function at 0x425e70
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4ac55c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
push 0xc
mov dword [esp + 0x20], ebx
call fcn.00488856
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, 1
mov dword [esp + 0x2c], ecx
cmp eax, ebx
je 0x425ecc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x425ece
xor eax, eax
mov byte [esp + 0x2c], bl
mov dword [edi], eax
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x425f7f
mov ecx, dword [esp + 0x14]
mov edx, ecx
and edx, dword [esp + 0x18]
cmp edx, 0xffffffff
je 0x425f7f
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00425580
add esp, 8
mov ebp, eax
mov dword [esp + 0x2c], 2
mov esi, dword [edi]
add dword [esi + 8], 0xffffffff
jne 0x425f3d
cmp dword [esi + 4], ebx
je 0x425f3d
mov eax, dword [esi]
push ebx
push eax
call fcn.0048850f
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, dword [ebp]
inc dword [eax + 8]
mov dword [edi], eax
mov byte [esp + 0x2c], bl
mov esi, dword [esp + 0x14]
dec dword [esi + 8]
cmp dword [esi + 8], ebx
lea eax, [esi + 8]
jne 0x425f7f
cmp dword [esi + 4], ebx
je 0x425f6e
mov eax, dword [esi]
push ebx
push eax
call fcn.0048850f
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004876dd
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4265e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4b069c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d9114]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x4c], ebp
mov edi, ecx
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
call fcn.00426800
mov dword [esp + 0x4c], ebp
push ebp
push ebp
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
cmp ebx, ebp
je 0x4267d3
lea esi, [ebx + 1]
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], cx
cmp esi, 0xffffffff
jne 0x426669
call fcn.00486c11
jmp 0x426671
cmp esi, 0x7ffffffe
jbe 0x42667a
call fcn.00486c11
mov eax, dword [esp + 0x3c]
cmp eax, esi
jae 0x4266ae
mov edx, dword [esp + 0x38]
push edx
push esi
lea ecx, [esp + 0x2c]
call fcn.00407247
mov eax, dword [esp + 0x3c]
cmp esi, ebp
jbe 0x42670b
cmp esi, 1
jne 0x4266ca
cmp eax, 8
mov eax, dword [esp + 0x28]
jae 0x4266a7
lea eax, [esp + 0x28]
xor edx, edx
mov word [eax], dx
jmp 0x4266f2
cmp esi, ebp
jne 0x426693
cmp eax, 8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], ebp
jae 0x4266c3
lea eax, [esp + 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x42670b
mov edi, dword [esp + 0x28]
cmp eax, 8
jae 0x4266d7
lea edi, [esp + 0x28]
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], esi
jae 0x426705
lea eax, [esp + 0x28]
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x28]
mov esi, 8
cmp dword [esp + 0x3c], esi
jae 0x426726
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4267a7
cmp dword [esp + 0x3c], esi
mov esi, dword [esp + 0x28]
jae 0x426740
lea esi, [esp + 0x28]
cmp word [esi], bp
je 0x4267a7
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00425370
mov byte [esp + 0x4c], 2
mov ebx, eax
call fcn.00426870
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426782
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426787
mov edi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x426745
xor ebp, ebp
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x3c], 8
jb 0x4267c0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004876dd
add esp, 4
xor edx, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], dx
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004876e8
add esp, 0x3c
ret
Function at 0x4273a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ad4a9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x4eb73c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4eb73c
call edx
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], esi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebp
push esi
push 0xfde9
mov dword [esp + 0x38], 1
call ebx
cmp eax, 1
jle 0x4274d0
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
call fcn.004289c0
mov dword [esp + 0x24], 2
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor edi, edi
push edi
push edi
push eax
push ecx
push 0xffffffffffffffff
push ebp
push edi
push 0xfde9
call ebx
cmp eax, 1
jle 0x427488
mov edx, dword [esi]
mov byte [edx + eax - 1], 0
mov edx, dword [esi]
cmp edx, edi
jne 0x427468
mov ebx, dword [esp + 0x2c]
xor eax, eax
push eax
push edx
mov ecx, ebx
call fcn.00405aed
jmp 0x42748c
mov eax, edx
lea ebx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427470
sub eax, ebx
mov ebx, dword [esp + 0x2c]
push eax
push edx
mov ecx, ebx
call fcn.00405aed
jmp 0x42748c
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x24], 0
add dword [esi + 8], 0xffffffff
jne 0x4274ba
cmp dword [esi + 4], edi
je 0x4274ad
mov eax, dword [esi]
push edi
push eax
call fcn.0048850f
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], edi
push esi
call fcn.004876dd
add esp, 4
mov dword [esp + 0x14], edi
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret