joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e9643
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x10]
push esi
lea ecx, [edi + 0xc]
call fcn.004668a0
lea ecx, [esp + 0x14]
call fcn.0047c4c0
mov ecx, dword [edi + 8]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x60], 0
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
call fcn.004bd090
test al, al
je 0x4a65eb
push 0x98
call fcn.004c0c97
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x5c], 1
test eax, eax
je 0x4a65c7
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0049c170
jmp 0x4a65c9
xor eax, eax
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 0
call fcn.00466230
mov edx, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
lea ecx, [esp + 0xc]
mov dword [eax], edx
call fcn.004667d0
jmp 0x4a660d
mov byte [edi + 0x14], 1
mov esi, dword [edi + 8]
test esi, esi
je 0x4a660d
mov ecx, esi
mov dword [edi + 8], 0
call fcn.004bcfa0
push esi
call fcn.004bee90
add esp, 4
mov ecx, dword [esp + 0x18]
or esi, 0xffffffff
mov eax, dword [ecx]
test eax, eax
je 0x4a662f
cmp eax, esi
je 0x4a663c
mov eax, esi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x4a663c
mov ecx, dword [esp + 0x18]
push 4
push 2
push ecx
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a665b
cmp ecx, 0xffffffff
je 0x4a6668
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x4a6668
mov eax, dword [esp + 0x14]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x54
ret
Function at 0x4b7d70
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4e98c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6c]
lea eax, [esp + 0x24]
push 0xa
push edi
push eax
call fcn.004b7760
mov ebp, eax
mov ecx, edi
mov dword [esp + 0x6c], 0
push 0xa
shr ecx, 8
lea eax, [esp + 0x30]
push ecx
push eax
call fcn.004b7760
mov ebx, eax
mov ecx, edi
mov byte [esp + 0x78], 1
push 0xa
shr ecx, 0x10
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.004b7760
mov esi, eax
push 0xa
shr edi, 0x18
lea eax, [esp + 0x40]
push edi
push eax
mov byte [esp + 0x90], 2
call fcn.004b7760
mov dword [esp + 0x58], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x46]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x47]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x9c]
mov byte [esp + 0x98], 3
mov byte [esp + 0x4f], 0x2e
mov byte [esp + 0x4e], 0x2e
mov byte [esp + 0xa4], 0x2e
mov dword [esp + 0x6c], esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x8c], ebp
call fcn.004b7670
mov eax, dword [esp + 0x50]
add esp, 0x38
or esi, 0xffffffff
mov ecx, dword [eax]
test ecx, ecx
je 0x4b7ea3
cmp ecx, esi
je 0x4b7eb0
mov ecx, esi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4b7eb0
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
je 0x4b7ed0
cmp ecx, 0xffffffff
je 0x4b7edd
mov ecx, esi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4b7edd
mov eax, dword [esp + 0x1c]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4b7efd
cmp ecx, 0xffffffff
je 0x4b7f0a
mov ecx, esi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4b7f0a
mov eax, dword [esp + 0x20]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4b7f29
cmp ecx, 0xffffffff
je 0x4b7f36
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x4b7f36
mov eax, dword [esp + 0x24]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x4ba5c0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x104
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [esp + 0x110], 0
jg 0x4ba5fa
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004c17c4
add esp, 0x104
ret
mov ecx, 1
mov dword [esp], 0xedb88320
mov eax, ecx
mov dword [esp + eax*4], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x4ba608
push ebx
push esi
xor esi, esi
jmp 0x4ba620
mov eax, dword [esp + esi + 8]
lea ecx, [esp + 8]
xor edx, edx
test eax, eax
je 0x4ba63d
mov edi, edi
test al, 1
je 0x4ba636
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4ba630
mov dword [esp + esi + 0x88], edx
add esi, 4
cmp esi, 0x80
jl 0x4ba620
xor esi, esi
jmp 0x4ba660
mov eax, dword [esp + esi + 0x88]
lea ecx, [esp + 0x88]
xor edx, edx
test eax, eax
je 0x4ba681
test al, 1
je 0x4ba67a
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4ba674
mov dword [esp + esi + 8], edx
add esi, 4
cmp esi, 0x80
jl 0x4ba660
mov ebx, dword [esp + 0x110]
jmp 0x4ba6a0
xor esi, esi
mov eax, dword [esp + esi + 8]
lea ecx, [esp + 8]
xor edx, edx
test eax, eax
je 0x4ba6bd
test al, 1
je 0x4ba6b6
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4ba6b0
mov dword [esp + esi + 0x88], edx
add esi, 4
cmp esi, 0x80
jl 0x4ba6a2
mov edx, dword [esp + 0x118]
test dl, 1
je 0x4ba6f8
xor ecx, ecx
lea eax, [esp + 0x88]
test ebx, ebx
je 0x4ba6f6
test bl, 1
je 0x4ba6ef
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x4ba6e8
mov ebx, ecx
sar edx, 1
mov dword [esp + 0x118], edx
je 0x4ba775
xor esi, esi
jmp 0x4ba710
mov eax, dword [esp + esi + 0x88]
lea ecx, [esp + 0x88]
xor edx, edx
test eax, eax
je 0x4ba731
test al, 1
je 0x4ba72a
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4ba724
mov dword [esp + esi + 8], edx
add esi, 4
cmp esi, 0x80
jl 0x4ba710
mov edx, dword [esp + 0x118]
test dl, 1
je 0x4ba766
xor ecx, ecx
lea eax, [esp + 8]
test ebx, ebx
je 0x4ba764
test bl, 1
je 0x4ba75d
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x4ba756
mov ebx, ecx
sar edx, 1
mov dword [esp + 0x118], edx
jne 0x4ba6a0
xor ebx, dword [esp + 0x114]
mov ecx, dword [esp + 0x108]
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
call fcn.004c17c4
add esp, 0x104
ret
jmp 0x4ba5c0
Function at 0x4baa80
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x104
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x100], eax
cmp dword [esp + 0x110], 0
jg 0x4ba5fa
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004c17c4
add esp, 0x104
ret
mov ecx, 1
mov dword [esp], 0xedb88320
mov eax, ecx
mov dword [esp + eax*4], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x4ba608
push ebx
push esi
xor esi, esi
jmp 0x4ba620
mov eax, dword [esp + esi + 8]
lea ecx, [esp + 8]
xor edx, edx
test eax, eax
je 0x4ba63d
mov edi, edi
test al, 1
je 0x4ba636
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4ba630
mov dword [esp + esi + 0x88], edx
add esi, 4
cmp esi, 0x80
jl 0x4ba620
xor esi, esi
jmp 0x4ba660
mov eax, dword [esp + esi + 0x88]
lea ecx, [esp + 0x88]
xor edx, edx
test eax, eax
je 0x4ba681
test al, 1
je 0x4ba67a
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4ba674
mov dword [esp + esi + 8], edx
add esi, 4
cmp esi, 0x80
jl 0x4ba660
mov ebx, dword [esp + 0x110]
jmp 0x4ba6a0
xor esi, esi
mov eax, dword [esp + esi + 8]
lea ecx, [esp + 8]
xor edx, edx
test eax, eax
je 0x4ba6bd
test al, 1
je 0x4ba6b6
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4ba6b0
mov dword [esp + esi + 0x88], edx
add esi, 4
cmp esi, 0x80
jl 0x4ba6a2
mov edx, dword [esp + 0x118]
test dl, 1
je 0x4ba6f8
xor ecx, ecx
lea eax, [esp + 0x88]
test ebx, ebx
je 0x4ba6f6
test bl, 1
je 0x4ba6ef
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x4ba6e8
mov ebx, ecx
sar edx, 1
mov dword [esp + 0x118], edx
je 0x4ba775
xor esi, esi
jmp 0x4ba710
mov eax, dword [esp + esi + 0x88]
lea ecx, [esp + 0x88]
xor edx, edx
test eax, eax
je 0x4ba731
test al, 1
je 0x4ba72a
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4ba724
mov dword [esp + esi + 8], edx
add esi, 4
cmp esi, 0x80
jl 0x4ba710
mov edx, dword [esp + 0x118]
test dl, 1
je 0x4ba766
xor ecx, ecx
lea eax, [esp + 8]
test ebx, ebx
je 0x4ba764
test bl, 1
je 0x4ba75d
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x4ba756
mov ebx, ecx
sar edx, 1
mov dword [esp + 0x118], edx
jne 0x4ba6a0
xor ebx, dword [esp + 0x114]
mov ecx, dword [esp + 0x108]
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
call fcn.004c17c4
add esp, 0x104
ret
jmp 0x4ba5c0
Function at 0x4bed60
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x64eb68]
test eax, eax
jne 0x4bed7a
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x64eb68], eax
jmp 0x4bed83
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
add eax, 0xfffffff8
mov ecx, eax
push esi
push edi
sub ecx, dword [eax + 4]
mov edi, dword [0x64eb7c]
mov edx, dword [eax]
sub edi, edx
mov dword [0x64eb7c], edi
cmp dword [ecx], 0
jne 0x4bedb4
add dword [ecx + 0x10], edx
lea esi, [ecx + 0x10]
mov eax, dword [esi]
mov dword [eax + ecx + 4], eax
jmp 0x4beddd
lea esi, [eax + 0x10]
mov ecx, eax
mov dword [esi], edx
mov edx, dword [0x64eb78]
mov dword [eax], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0
test edx, edx
je 0x4bedd8
mov dword [edx + 0xc], eax
mov dword [0x64eb78], eax
push ebx
mov ebx, dword [esi]
cmp dword [ebx + ecx], 0
lea edx, [ebx + ecx]
jne 0x4bee1a
mov eax, dword [edx + 0x10]
add eax, ebx
mov dword [esi], eax
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x4bedfd
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov ebx, dword [edx + 0xc]
mov eax, dword [edx + 8]
test ebx, ebx
je 0x4bee0c
mov dword [ebx + 8], eax
jmp 0x4bee11
mov dword [0x64eb78], eax
mov eax, dword [esi]
mov dword [eax + ecx + 4], eax
lea edx, [eax + ecx]
cmp dword [ecx + 4], 0
pop ebx
jne 0x4bee6c
cmp dword [edx], 1
jne 0x4bee6c
mov edx, dword [0x64eb80]
lea eax, [edi + edi*2]
sub edx, dword [esi]
shr eax, 1
cmp edx, eax
jbe 0x4bee6c
mov dword [0x64eb80], edx
mov edx, dword [ecx + 8]
test edx, edx
je 0x4bee4a
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
test edx, edx
je 0x4bee59
mov dword [edx + 8], eax
jmp 0x4bee5e
mov dword [0x64eb78], eax
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x64eb68]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
ret
Function at 0x4d71b2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64a000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004cc108
mov dword [ebp - 0x14], eax
cmp dword [0x64fcf0], esi
jne 0x4d72a5
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4d7232
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d7385
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4d7385
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d7385
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x64fcf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x64fcf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x64fcf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64fd00], eax
test eax, eax
je 0x4d72a2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64fcfc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d72ca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d72bd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4d72df
push 4
pop eax
jmp 0x4d7387
cmp dword [ebp - 0x14], esi
je 0x4d72df
push dword [0x64fcf0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d72c4
mov eax, dword [0x64fcfc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4d733d
cmp dword [0x64fd00], edi
je 0x4d733d
push eax
call ebx
push dword [0x64fd00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d733d
test eax, eax
je 0x4d733d
call ecx
test eax, eax
je 0x4d7332
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4d7332
test byte [ebp - 8], 1
jne 0x4d733d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4d736d
mov eax, dword [0x64fcf4]
cmp eax, edi
je 0x4d736a
push eax
call ebx
test eax, eax
je 0x4d736a
call eax
mov esi, eax
test esi, esi
je 0x4d736a
mov eax, dword [0x64fcf8]
cmp eax, edi
je 0x4d736a
push eax
call ebx
test eax, eax
je 0x4d736a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x64fcf0]
call ebx
test eax, eax
je 0x4d7385
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4d7387
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c17c4
mov esp, ebp
pop ebp
ret
Function at 0x4ddfd0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4ddffa
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 4]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
push ebp
push esi
seto cl
neg ecx
or ecx, eax
push edi
push ecx
call fcn.004c04b2
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
mov ebp, eax
mov dword [esp + 0x20], ebp
test ecx, ecx
jle 0x4de09b
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov ebx, dword [eax + ebp]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.004c04b2
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
lea ebp, [ebp + 4]
inc eax
mov dword [ebp - 4], edi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
jl 0x4de040
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push ebx
mov dword [ebp + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push dword [esp + 0x14]
call fcn.00406ad0
xor esi, esi
add esp, 8
mov edi, eax
cmp dword [esp + 0x10], esi
jle 0x4de0d9
mov ecx, dword [ebp + esi*4]
test ecx, ecx
je 0x4de0d9
push ecx
call fcn.0046d2f0
inc esi
add esp, 4
cmp esi, dword [esp + 0x10]
jl 0x4de0c1
push ebp
call fcn.0046d2f0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x10006401
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x10006423
mov eax, 0xfffffffd
jmp 0x10006503
mov ebx, dword [0x100ca7ac]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x100064d1
mov ebx, dword [0x100ca7ac]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x10006472
mov ebx, dword [0x100ca7ac]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x10006472
mov eax, 1
jmp 0x10006477
mov eax, 0
test eax, eax
je 0x100064a3
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x1000648c
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x100ca7ac]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x100064f9
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x10006503
mov esp, ebp
pop ebp
ret 4

Function at 0x10006680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10006733
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x100071d1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10006680
test eax, eax
je 0x10007214
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10007214
cmp word [eax], 0x5a4d
jne 0x10007214
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10007214
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10006752
mov eax, dword [ebp + 8]
jmp 0x1000722d
mov esp, ebp
pop ebp
ret 4
Function at 0x1001d250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10097f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1008d341
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1001e320
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1001d2a4
jmp dword [ecx*4 + 0x1001d40c]
mov al, byte [esi]
test al, al
je 0x1001d2d2
cmp al, 0x20
je 0x1001d2be
cmp al, 0xa1
jne 0x1001d2d2
cmp byte [esi + 1], al
jne 0x1001d2d2
test al, 0x80
je 0x1001d2ca
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1001d2d2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001d2b1
test ecx, ecx
je case.default.0x1001d2a4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1001d2a4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1001d318
cmp dl, 0xa1
jne 0x1001d30c
cmp byte [eax + 1], 0xa1
jne 0x1001d30c
test ecx, ecx
jne 0x1001d304
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1001d32c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1001d346
jmp 0x1001d32c
cmp dl, 0x20
jne 0x1001d32a
test ecx, ecx
jne 0x1001d323
mov edi, eax
mov ecx, 1
jmp 0x1001d32c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1001d2ec
cmp ecx, 1
jne case.default.0x1001d2a4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001d2a4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001d2a4
mov al, byte [esi]
test al, al
je 0x1001d39e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1001d384
mov cl, byte [esi + 1]
test cl, cl
je 0x1001d39e
cmp al, 0xa1
jne 0x1001d374
cmp cl, al
je 0x1001d381
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1001e5f0
inc esi
jmp 0x1001d396
cmp al, 0x20
je 0x1001d396
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1001e630
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001d35d
push 0
lea ecx, [esp + 0x14]
call fcn.1001e630
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10027760
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1001d3d1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100a0198
call fcn.1001e520
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1008d2d3
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1001dff0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, 0x100b6244
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1001dfb0
add esp, 8
mov byte [esp + 8], al
or esi, 0xffffffff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001e09a
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x1001e0fb
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x1001e07c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x1001e084
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.1007d750
mov edx, dword [esp + 0x28]
pop edi
pop esi
mov dword [edx], eax
add esp, 0x1c
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1001e0ef
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x1001e0cd
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0x400
imul edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x1c
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
add esp, 0x1c
ret