joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005fc70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0xffffffff
jne 0x1005fc92
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
jmp 0x1005fc9b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
and ecx, 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov cl, 0x20
call fcn.100614f0
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1005fd2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3e5
jne 0x1005fd2d
push 1
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1005fd24
mov dword [ebp - 4], 0
jmp 0x1005fd2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1005fd36
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0xffffffff
jne 0x1005fd49
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 0xc], 0x2f
mov byte [ebp - 0xb], 0x41
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x49
mov byte [ebp - 6], 0x44
mov byte [ebp - 5], 0x3a
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
xor eax, eax
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
call sub.MSVCRT.dll_strlen
add eax, esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10007734
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, 0x12d
add esp, 0x18
cmp eax, ecx
ja 0x10001196
je 0x10001173
cmp eax, 0x12
ja case.default.0x100011ab
jmp dword [eax*4 + 0x10001265]
push 0x1000932c
jmp 0x10001158
push 0x10009320
jmp 0x10001158
push 0x10009314
jmp 0x10001158
push 0x10009308
jmp 0x10001158
push 0x100092fc
push 0x1000a944
call fcn.10007734
pop ecx
mov dword [0x1000ad38], 1
pop ecx
mov dword [0x1000ad50], ebx
jmp 0x10001260
push 0x100092f0
jmp 0x10001158
push 0x100092e4
jmp 0x10001158
push 0x100092d8
jmp 0x10001158
push 0x100092cc
jmp 0x10001158
push 0x100092c0
jmp 0x10001158
push 0x100092b0
jmp 0x10001158
push 0x100092a0
jmp 0x1000113c
push 0x10009290
jmp 0x1000113c
push 0x10009280
jmp 0x1000113c
push 0x10009270
jmp 0x1000113c
push 0x10009260
jmp 0x1000113c
push 0x10009250
jmp 0x1000113c
push 0x10009240
push 0x1000a944
call fcn.10007734
pop ecx
mov dword [0x1000ad38], ebx
pop ecx
jmp 0x10001260
push 0x10009230
push 0x1000a944
call fcn.10007734
pop ecx
mov dword [0x1000ad38], 1
pop ecx
jmp 0x10001260
push 0x1000921c
push 0x1000a944
call fcn.10007734
pop ecx
pop ecx
push 1
pop eax
mov dword [0x1000ad40], eax
mov dword [0x1000ad44], eax
jmp 0x10001260
mov ecx, 0x1f7
cmp eax, ecx
ja 0x1000120f
je 0x10001208
add eax, 0xfffffed2
cmp eax, 0xa
ja case.default.0x100011ab
jmp dword [eax*4 + 0x100012b1]
push 0x10009208
jmp 0x10001254
push 0x100091e8
jmp 0x10001254
push 0x100091c8
jmp 0x10001254
push 0x100091a8
jmp 0x10001254
push 0x10009188
jmp 0x10001254
push 0x10009170
jmp 0x10001254
push 0x1000915c
jmp 0x10001254
push 0x10009144
jmp 0x10001254
push 0x10009130
jmp 0x10001254
push 0x1000911c
jmp 0x10001254
push 0x10009108
jmp 0x10001254
push 0x100090f4
jmp 0x10001254
sub eax, 0x384
je 0x1000124f
dec eax
je 0x10001248
dec eax
je 0x10001241
dec eax
je 0x1000123a
dec eax
je 0x10001233
dec eax
je 0x1000122c
push 0x100090e8
jmp 0x10001254
push 0x100090d0
jmp 0x10001254
push 0x100090bc
jmp 0x10001254
push 0x100090ac
jmp 0x10001254
push 0x10009098
jmp 0x10001254
push 0x10009080
jmp 0x10001254
push 0x10009068
push 0x1000a944
jmp loc.1000e000
pop edi
pop esi
pop ebx
leave
ret
Function at 0x20001730
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2001a7c0
push 0x20018f26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x20001767
jmp dword [eax*4 + 0x200018ac]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x2001a0a4]
test eax, eax
jne case.default.0x20001767
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x2001a0c8]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne case.default.0x20001767
mov edx, dword [ebp + 0x14]
cmp edx, ebx
jbe case.default.0x20001767
cmp edx, 2
jbe 0x200017f3
cmp edx, 4
jne case.default.0x20001767
push edx
lea ecx, [ebp + 0x1c]
push ecx
push edx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne case.default.0x20001767
jmp 0x20001877
mov esi, dword [ebp + 0x18]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push edx
push ebx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne case.default.0x20001767
jmp 0x20001877
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x2001a0c8]
test eax, eax
jne case.default.0x20001767
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
jne case.default.0x20001767
jmp 0x20001877
lea edx, [ebp - 0x24]
push edx
push 0x2001f
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x2001a0c8]
test eax, eax
jne case.default.0x20001767
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne case.default.0x20001767
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.2000189e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x20002c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x114
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
cmp ebx, ecx
push edi
je 0x20002d1d
mov eax, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x12c]
add eax, ebx
mov dword [esp + 0x10], ecx
mov esi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
add esi, ebx
mov dword [esp + 0x1c], eax
test ebp, 0x80000000
jne 0x20002cbb
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
add eax, ebx
cmp edx, ecx
mov dword [esp + 0x18], ecx
jbe 0x20002cd9
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0
mov edi, dword [ecx]
add edi, ebx
push edi
call fcn.200018d0
add esp, 4
push eax
push edi
call fcn.20003a00
and eax, 0x7fffffff
add esp, 0xc
cmp eax, ebp
je 0x20002ca6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jb 0x20002c63
jmp 0x20002cd9
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax*2]
mov dx, word [ecx + ebx]
mov word [esp + 0x10], dx
jmp 0x20002cd9
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, ebp
add edx, ecx
and eax, 0xffff
cmp eax, edx
jae 0x20002d1d
cmp eax, ecx
jb 0x20002d1d
sub bp, cx
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
and eax, 0xffff
lea edx, [ecx + eax*4]
mov eax, dword [edx + ebx]
add eax, ebx
je 0x20002d1f
cmp eax, esi
jb 0x20002d1f
mov ecx, dword [esp + 0x1c]
add ecx, esi
cmp eax, ecx
jae 0x20002d1f
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
mov esi, eax
je 0x20002d1d
lea edx, [esp + 0x20]
sub edx, eax
mov al, byte [esi]
inc ecx
mov byte [edx + esi], al
inc esi
cmp al, 0x2e
je 0x20002d2a
cmp byte [esi], 0
jne 0x20002d0d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
test ecx, ecx
jle 0x20002d1d
mov byte [esp + ecx + 0x20], 0x64
inc ecx
mov al, 0x6c
lea edx, [esp + 0x20]
mov byte [esp + ecx + 0x20], al
inc ecx
push edx
mov byte [esp + ecx + 0x24], al
mov byte [esp + ecx + 0x25], 0
call fcn.200025f0
add esp, 4
lea eax, [esp + 0x20]
push eax
call fcn.2000af60
push 0
push esi
mov edi, eax
call fcn.200018d0
add esp, 4
push eax
push esi
call fcn.20003a00
and eax, 0x7fffffff
push eax
push edi
call fcn.20002c10
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x20003380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x808
lea eax, [esp + 0x10c]
push ebx
push esi
push edi
push 0x104
push eax
call dword [0x2001a2f4]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20021a5c
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]
lea ecx, [esp + 0x18]
push ecx
call dword [0x2001a280]
lea edx, [esp + 0x14]
push edx
call dword [0x2001a274]
lea ebx, [esp + eax + 0x14]
mov eax, dword [0x20021090]
or ecx, 0xffffffff
push ebx
lea edi, [eax + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.20014fd0
mov edi, 0x20021b94
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 4
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 2
rep movsb byte es:[edi], byte [esi]
push eax
call dword [0x2001a2b0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x20003521
mov esi, dword [0x20021090]
mov ecx, 0x17e
lea edi, [esp + 0x21c]
push 0
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x220]
call dword [0x2001a34c]
push eax
call dword [0x2001a348]
mov edi, dword [0x2001a344]
add esp, 8
call edi
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x2001a708]
call fcn.20018f84
test al, al
je 0x20003491
mov ecx, 0x5f8
mov dl, byte [esi]
xor dl, al
mov byte [esi], dl
inc esi
dec ecx
jne 0x200034af
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x224]
push 0x5f8
push edx
push ebx
call dword [0x2001a2bc]
push ebx
call dword [0x2001a250]
mov edi, 0x20021b84
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call fcn.20005080
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x808
ret
Function at 0x20003790
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x40
push ebx
push esi
xor esi, esi
push 0xf003f
push esi
mov dword [esp + 0x24], ecx
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, eax
cmp ebx, esi
je 0x200038f6
push ebp
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x38]
push 0x24
push eax
push 3
push edi
push ebx
call esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x2001a324]
add esp, 4
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], eax
push edx
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
push 3
push edi
push ebx
call esi
mov eax, dword [esp + 0x10]
mov edx, eax
shl edx, 7
add edx, eax
lea edi, [edx*8 + 1]
push edi
call fcn.20018f0e
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea esi, [ebp + 1]
and ecx, 3
mov dword [esp + 0x1c], 1
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], 0
test eax, eax
jbe 0x200038c6
mov eax, dword [esp + 0x28]
lea edi, [eax + 0xc]
mov ecx, dword [esp + 0x54]
mov eax, dword [edi - 4]
test ecx, eax
je 0x200038b2
mov edx, dword [edi - 0xc]
push 0x63
push edx
push esi
call dword [0x2001a334]
mov eax, dword [edi]
add esp, 0xc
mov dword [esi + 0x2bc], eax
mov ecx, dword [edi + 4]
push 0
mov dword [esi + 0x2c8], ecx
mov ecx, dword [esp + 0x28]
push esi
push ebx
call fcn.20005140
mov eax, dword [esp + 0x1c]
add esi, 0x408
add eax, 0x408
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
inc eax
add edi, 0x24
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x20003866
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push edx
push ebp
mov byte [ebp], 0x8b
call fcn.20002a70
mov eax, dword [esp + 0x28]
push eax
call dword [0x2001a320]
push ebp
call fcn.20018f20
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x40
ret 4

Function at 0x20003a00
Capabilities:
Encode data using xor

Disassembly:
push esi
call fcn.2000b270
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test esi, esi
jbe 0x20003a35
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x2002465c]
xor eax, edx
inc ecx
dec esi
jne 0x20003a16
pop ebx
not eax
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x20003a51
push esi
push 0x20023364
push eax
call dword [0x2001a4b4]
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x20003e50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2001a7e8
push 0x20018f26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebx
push esi
push edi
mov byte [ebp - 0x53c], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x53b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], eax
push 0xf003f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, eax
mov dword [ebp - 0x13c], edi
push 0xf01ff
mov ebx, dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov esi, eax
mov dword [ebp - 0x540], esi
test edi, edi
jne 0x20003ed5
test esi, esi
je 0x20003f40
lea eax, [ebp - 0x138]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x20003f40
cmp dword [ebp - 0x134], 1
je 0x20003f0f
lea ecx, [ebp - 0x138]
push ecx
push 1
push esi
call dword [0x2001a01c]
test eax, eax
je 0x20003f40
push 0x320
call dword [0x2001a248]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov edx, dword [0x20022a10]
push edx
lea eax, [ebp - 0x53c]
push eax
call dword [0x2001a4b4]
add esp, 0xc
lea ecx, [ebp - 0x53c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x2001a3f8]
mov dword [ebp - 4], 0xffffffff
call fcn.20003f69
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x20004670
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, 0x5f8
mov eax, esi
mov dl, byte [esi + 0xf]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ecx
jne 0x20004680
mov al, byte [esi]
mov cl, byte [esi + 0xe]
pop esi
cmp al, cl
pop ebx
jne 0x2000469c
cmp al, 0x2b
jne 0x2000469c
mov al, 1
ret
xor al, al
ret
Function at 0x20004e80
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x200195a0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jge 0x20004eb9
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 8], ebx
lea eax, [esp + 8]
mov dword [esp + 0x2c], ebx
push eax
push 0x2001dd48
push 1
push ebx
push 0x2001ddd8
call dword [0x2001a5d8]
cmp eax, ebx
je 0x20004f08
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x20004f52
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov edx, dword [eax]
push 0x2001ddc8
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
je 0x20004f67
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x20004f3c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x20004f52
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x34]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x20005026
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push 0x2001a810
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x20004ffc
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push ebx
mov word [esp + 0x20], 8
mov ecx, dword [eax]
push edx
push 0x20022a54
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x20004ff2
cmp esi, edi
jne 0x20004fe7
mov eax, dword [esp + 0x14]
push ebp
push 0x2001dd38
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [0x2001a3d8]
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x20004f97
pop ebp
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], bl
cmp eax, ebx
pop esi
je 0x20005039
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x2000504f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x20005140
Capabilities:
Accept command line arguments
Get disk information

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push edi
mov edi, dword [esp + 0x30]
push 0xf01ff
push edi
mov dword [esp + 0x10], ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ebx, eax
test ebx, ebx
je 0x2000525e
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [0x2001a264]
cmp eax, 0x7a
jne 0x20005257
mov eax, dword [esp + 0x30]
push ebp
push esi
push eax
mov ebp, eax
call fcn.20018f0e
add esp, 4
lea edx, [esp + 0x38]
mov esi, eax
push edx
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi]
mov ebp, dword [0x2001a334]
mov dword [edi + 0x2c4], eax
mov ecx, dword [esi + 4]
mov dword [edi + 0x2c0], ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x200051d5
push 0xc7
lea edx, [edi + 0x64]
push eax
push edx
call ebp
add esp, 0xc
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x200051eb
push 0x1f
push eax
lea eax, [edi + 0x2cc]
push eax
call ebp
add esp, 0xc
mov eax, dword [esi + 0xc]
test eax, eax
je 0x20005204
push 0x103
lea ecx, [edi + 0x302]
push eax
push ecx
call ebp
add esp, 0xc
mov ecx, dword [esp + 0x10]
push edi
push ebx
call fcn.20014720
push esi
call fcn.20018f20
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
pop esi
pop ebp
je 0x20005246
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x20005246
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x2c8], eax
mov dword [edi + 0x2bc], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
pop edi
mov al, 1
pop ebx
add esp, 0x20
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
pop edi
xor al, al
pop ebx
add esp, 0x20
ret 0xc

Function at 0x20005db0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x200194f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x2001a784
mov edi, dword [0x2001a244]
lea eax, [esi + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call edi
lea ecx, [esi + 0x10]
push 0
push ecx
call edi
mov edx, dword [esi + 0x2c]
mov edi, dword [0x2001a254]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [esi + 0x30]
push 0xffffffffffffffff
push eax
call edi
mov ecx, dword [esi + 0x2c]
mov edi, dword [0x2001a250]
push ecx
call edi
mov edx, dword [esi + 0x30]
push edx
call edi
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x20005e27
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.20009640
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x20009310
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [0x2001a204]
test eax, eax
je 0x20009386
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [0x2001a14c]
test eax, eax
je 0x20009386
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x20009386
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x20009374
mov edx, esi
cmp edi, ebx
jb 0x2000937e
add edx, ebx
cmp edi, edx
jbe 0x20009390
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x20009366
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret