joyce8/EMBER2024-capa huggingface dataset:
Function at 0x20004bae
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x206
push edi
lea eax, [ebp - 0x20e]
push ebx
push eax
mov dword [ebp - 4], ebx
mov word [ebp - 0x210], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x20004cbf
cmp eax, 0xffffffff
je 0x20004cbf
mov ebx, 0x200023fc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
dec eax
cmp word [ebp - 0x210], cx
jne 0x20004c9d
cmp word [ebp - 0x20e], cx
jne 0x20004c9d
cmp word [ebp - 0x20c], 0x3f
jne 0x20004c9d
cmp word [ebp - 0x20a], cx
jne 0x20004c9d
lea eax, [ebp + eax*2 - 0x210]
cmp word [eax], cx
jne 0x20004c9d
xor ecx, ecx
push edi
mov word [eax], cx
push ecx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], cx
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x20004c9d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x20004c9d
inc dword [ebp - 4]
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x20004c08
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x20004cc8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x216]
push esi
push eax
mov word [ebp - 0x218], si
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x218], si
lea ebx, [ebp - 0x218]
jne 0x20004d1d
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret
xor esi, esi
push 0x206
lea eax, [ebp - 0x41e]
push esi
push eax
mov word [ebp - 0x420], si
call sub.MSVCRT.dll_memset
mov esi, 0x20002418
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebx]
push eax
call fcn.20004235
add esp, 0x10
mov word [ebp - 0x10], ax
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x20004dab
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x200023fc
push esi
call edi
push eax
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x20004dab
push esi
call edi
lea eax, [ebp + eax*2 - 0x420]
push eax
call fcn.200042be
cmp eax, dword [ebp + 8]
pop ecx
je 0x20004dc5
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x20004d1b
jmp 0x20004d13
mov ax, word [ebp - 0x10]
jmp 0x20004d16
Function at 0x20004e88
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push edi
push 0x12
xor esi, esi
push esi
push esi
mov ebx, 0x20004130
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0xc], edi
je 0x20004eb4
cmp edi, 0xffffffff
jne 0x20004ebb
xor eax, eax
jmp 0x20004fc4
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], 0x1c
push esi
jmp 0x20004f94
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
cmp dword [ebp - 4], esi
je 0x20004f87
cmp dword [ebp - 4], 0x400
ja 0x20004f87
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x454], 6
mov dword [ebp - 0x54], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x20004f87
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x20004f87
cmp edi, 0xffffffff
je 0x20004f87
push esi
lea eax, [ebp - 0x10]
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push 0x2d1080
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x20004f80
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x34]
je 0x20004fb1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 8]
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
push ebx
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x20004ecf
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
jmp 0x20004eb4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x20005206
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push dword [ebp + 8]
call fcn.20005197
cmp ax, word [ebp + 0xc]
pop ecx
jb 0x2000528e
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor edi, edi
cmp word [ebp - 0x208], di
je 0x2000528e
lea esi, [ebp - 0x208]
movzx eax, word [esi]
cmp ax, 0x41
je 0x20005273
cmp ax, 0x42
je 0x20005273
push eax
call fcn.20004622
pop ecx
movzx ecx, word [ebp + 0xc]
cmp eax, ecx
jne 0x20005273
movzx eax, word [esi]
push eax
call fcn.20004614
pop ecx
movzx ecx, word [ebp + 8]
cmp eax, ecx
je 0x20005295
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax + 1]
movzx esi, di
lea esi, [ebp + esi*2 - 0x208]
cmp word [esi], 0
jne 0x20005243
xor ax, ax
pop edi
pop esi
leave
ret
movzx eax, di
movzx eax, word [ebp + eax*2 - 0x208]
push eax
call fcn.20004235
pop ecx
jmp 0x20005291
Function at 0x200052f2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp word [ebp + 0x10], 0
push esi
je 0x20005363
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.20005206
movzx eax, ax
cmp ax, word [ebp + 0x10]
pop ecx
pop ecx
je 0x20005352
push dword [ebp + 0x10]
call fcn.20004235
movzx esi, ax
cmp si, 0x5a
pop ecx
ja 0x20005331
cmp si, 0x42
jae 0x20005333
xor esi, esi
test si, si
je 0x20005348
push esi
call fcn.20004526
test eax, eax
pop ecx
jne 0x20005348
movzx eax, si
jmp 0x20005357
call fcn.20004fc9
movzx eax, ax
jmp 0x20005357
test ax, ax
je 0x2000536a
push eax
call fcn.20004235
pop ecx
movzx esi, ax
jmp 0x2000536d
call fcn.20004fc9
jmp 0x2000535e
mov esi, dword [ebp + 0x10]
movzx eax, word [ebp + 0xc]
push eax
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push 0x2000242c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test si, si
je 0x200053a9
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.20004a1e
test eax, eax
pop ecx
pop ecx
je 0x200053a9
mov ax, si
jmp 0x200053ac
xor ax, ax
pop esi
leave
ret

Function at 0x200056f7
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa0
push esi
push edi
xor esi, esi
xor edi, edi
call fcn.20004772
cmp ax, word [ebp + 0x78]
jbe 0x2000578d
push ebx
push 0x9e
lea eax, [ebp - 0x2e]
push esi
push eax
mov word [ebp - 0x30], si
call sub.MSVCRT.dll_memset
movzx eax, word [ebp + 0x78]
push eax
lea eax, [ebp - 0x30]
push 0x200023d4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x2000578c
cmp ebx, 0xffffffff
je 0x2000578c
push esi
lea eax, [ebp + 0x78]
push eax
push 0x200
push dword [ebp + 0x7c]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, esi
je 0x20005785
mov eax, 0x1ff
cmp eax, dword [ebp + 0x78]
sbb edi, edi
neg edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
add ebp, 0x70
leave
ret
Function at 0x20005ae0
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xac
push ebx
push dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp + 0x64], ebx
call fcn.20004dce
test eax, eax
pop ecx
je 0x20005beb
push edi
push 0x9e
lea eax, [ebp - 0x3a]
push ebx
push eax
mov word [ebp - 0x3c], bx
call sub.MSVCRT.dll_memset
movzx eax, word [ebp + 0x78]
push eax
lea eax, [ebp - 0x3c]
push 0x200023c4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
je 0x20005bea
cmp edi, 0xffffffff
je 0x20005bea
cmp dword [ebp + 0x7c], ebx
push esi
push ebx
lea eax, [ebp + 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
je 0x20005bd3
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x90018
push edi
call esi
test eax, eax
je 0x20005be2
push ebx
lea eax, [ebp + 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
push edi
call esi
test eax, eax
je 0x20005bc0
push ebx
lea eax, [ebp + 0x68]
push eax
push ebx
push ebx
push 1
lea eax, [ebp + 0x6f]
push eax
push 0x2d4804
push edi
mov byte [ebp + 0x6f], bl
call esi
test eax, eax
je 0x20005bc0
push ebx
lea eax, [ebp + 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x2d4808
push edi
call esi
mov dword [ebp + 0x64], eax
push ebx
lea eax, [ebp + 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x9001c
push edi
call esi
jmp 0x20005be2
push 0x2d480c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp + 0x64], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, dword [ebp + 0x64]
pop ebx
add ebp, 0x70
leave
ret
Function at 0x200062b8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push 0xc0000000
push dword [ebp + 8]
stosd dword es:[edi], eax
call fcn.20006209
mov edi, eax
cmp edi, ebx
je 0x200062e5
cmp edi, 0xffffffff
jne 0x200062f4
push SysReAllocString
push dword [ebp + 8]
call fcn.20006209
mov edi, eax
cmp edi, ebx
je 0x20006338
cmp edi, 0xffffffff
je 0x20006338
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x7c0d0
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ecx
call esi
test eax, eax
jne 0x20006341
push edi
call fcn.20005ddd
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x7405c
push edi
call esi
test eax, eax
je 0x20006331
push ebx
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push 0x70000
push edi
call esi
test eax, eax
je 0x20006331
push ebx
push dword [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.20025700
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 8
lea eax, [ebp - 0x14]
push eax
push 0x900f0
push edi
mov dword [ebp - 0x10], edx
call esi
push edi
call fcn.20005ddd
xor eax, eax
pop ecx
inc eax
jmp 0x2000633a
Function at 0x2000696d
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
push ebx
push esi
push edi
push pe_nt_image_headers32
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ax, word [ebp + 0x18]
push 0x7fe
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x85e]
push ebx
push eax
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x860], bx
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 0x1c]
add esp, 0x18
cmp esi, ebx
push 0x400
lea eax, [ebp - 0x860]
push eax
je 0x200069ef
mov edi, 0x20002660
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
call fcn.20004465
test eax, eax
pop ecx
jne 0x200069f6
push 0x400
lea eax, [ebp - 0x860]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
neg esi
sbb esi, esi
lea eax, [ebp - 0x860]
and esi, 0x10
push eax
add esi, 4
call edi
test eax, eax
je 0x20006ac1
push dword [ebp + 0x14]
call edi
test eax, eax
je 0x20006a40
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x2000265c
lea eax, [ebp - 0x860]
push eax
call edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x860]
push eax
call edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x860]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x20006ac1
mov esi, dword [ebp + 0xc]
push esi
mov dword [esi], 0x10007
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [esi + 0xa4]
push 4
push ebx
add eax, 8
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
jmp 0x20006aa5
cmp dword [ebp - 0xc], 0x10000
je 0x20006ab4
add esi, dword [ebp - 0x10]
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [edi]
call ebx
test eax, eax
jne 0x20006a99
mov eax, dword [ebp + 0x10]
sub esi, dword [eax]
mov dword [eax + 4], esi
xor eax, eax
inc eax
jmp 0x20006ac3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x20006d35
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x140
push esi
push edi
xor esi, esi
push 0x3e
lea eax, [ebp + 6]
push esi
push eax
mov dword [ebp + 0x5c], esi
mov word [ebp + 4], si
call sub.MSVCRT.dll_memset
xor eax, eax
mov dword [ebp + 0x44], esi
lea edi, [ebp + 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xde
stosd dword es:[edi], eax
lea eax, [ebp - 0xda]
push esi
push eax
mov word [ebp - 0xdc], si
call sub.MSVCRT.dll_memset
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
call fcn.20006733
add esp, 0x30
test eax, eax
je 0x20006e1e
push ebx
push dword [ebp + 0x60]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.20006840
add esp, 0xc
push pe_nt_image_headers32
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
je 0x20006e1d
push edi
push dword [ebp + 0x60]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x6c]
call fcn.200068b6
add esp, 0x14
test eax, eax
je 0x20006e1d
xor eax, eax
cmp word [ebp - 0x98], 3
sete al
push eax
push dword [ebp + 0x7c]
lea eax, [ebp - 0xdc]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push ebx
push edi
push eax
lea eax, [ebp + 4]
push eax
call fcn.20006b52
add esp, 0x20
mov dword [ebp + 0x5c], eax
pop ebx
cmp dword [ebp + 0x60], esi
pop edi
pop esi
je 0x20006e2e
push dword [ebp + 0x60]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp + 0x5c]
add ebp, 0x64
leave
ret

Function at 0x20006e36
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
and dword [ebp - 4], 0
cmp word [eax + 6], 0
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
jbe 0x20006ed9
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
mov eax, dword [esi]
test eax, eax
jne 0x20006e9b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x20006ec3
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call sub.MSVCRT.dll_memset
jmp 0x20006ec0
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
mov dword [esi - 8], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
add esi, 0x28
cmp dword [ebp - 4], eax
jl 0x20006e6b
pop edi
pop ebx
pop esi
leave
ret
Function at 0x20006edc
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
xor ebx, ebx
cmp word [eax + 6], bx
lea ecx, [ecx + eax + 0x18]
jbe 0x20006f20
push esi
lea esi, [ecx + 0x10]
test dword [esi + 0x14], 0x2000000
je 0x20006f11
push 0x4000
push dword [esi]
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [edi]
movzx eax, word [eax + 6]
inc ebx
add esi, 0x28
cmp ebx, eax
jl 0x20006ef8
pop esi
pop edi
pop ebx
ret

Function at 0x20007150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
je 0x20007163
xor eax, eax
leave
ret
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x20007178
xor eax, eax
jmp 0x2000726b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
mov edi, 0x2000
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jne 0x200071ab
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x20007267
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
push 4
xor ecx, ecx
push 0x1000
mov dword [edi + 4], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], ecx
push dword [esi + 0x50]
push eax
call ebx
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call ebx
mov ecx, dword [esi + 0x54]
mov ebx, dword [ebp + 8]
add ecx, dword [ebx + 0x3c]
mov dword [ebp - 8], eax
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push edi
push esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.20006e36
mov ebx, dword [ebp - 4]
mov eax, ebx
add esp, 0x18
sub eax, dword [esi + 0x34]
je 0x2000722d
push eax
push edi
call fcn.20006f23
pop ecx
pop ecx
push edi
call fcn.20006f9e
test eax, eax
pop ecx
je 0x20007260
push edi
call fcn.20006edc
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
pop ecx
je 0x20007260
add eax, ebx
je 0x20007260
push 0
xor esi, esi
inc esi
push esi
push ebx
call eax
test eax, eax
je 0x20007260
mov dword [edi + 0x10], esi
mov eax, edi
jmp 0x20007269
push edi
call fcn.200070c2
pop ecx
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x20007742
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x20007e9d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.200256d0
and word [ebp - 0x2000], 0
push esi
push edi
mov esi, 0xffe
push esi
lea eax, [ebp - 0x1ffe]
push 0
push eax
call sub.MSVCRT.dll_memset
and word [ebp - 0x1000], 0
push esi
lea eax, [ebp - 0xffe]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call esi
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x2000]
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x20007f39
test edi, edi
jne 0x20007ef4
test edi, edi
lea eax, [ebp - 0x1000]
jne 0x20007f49
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 0xc]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x20007f55
Capabilities:
Enumerate files on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa74
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
mov ebx, 0x20002898
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x2000806b
and word [ebp - 0x664], ax
push 0x40e
push eax
lea eax, [ebp - 0x662]
push eax
call sub.MSVCRT.dll_memset
push 0x208
lea eax, [ebp - 0x664]
push eax
push 0x20002830
call fcn.20007e9d
add esp, 0x18
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
mov dword [ebp - 4], eax
je 0x20008141
cmp eax, 0xffffffff
je 0x20008141
lea eax, [ebp - 0x664]
push eax
call fcn.20004446
pop ecx
test byte [ebp - 0x254], 0x10
je 0x20008046
lea eax, [ebp - 0x228]
push eax
call fcn.20007e6f
test eax, eax
pop ecx
jne 0x20008046
and word [ebp - 0xa74], ax
push 0x40e
push eax
lea eax, [ebp - 0xa72]
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0xa74]
push 0x20002818
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0xa74]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x2000805a
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x20007fe0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x20008141
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x20002808
push edi
call esi
push 0x200027f8
push edi
mov dword [0x2002dc88], eax
call esi
push 0x200027e4
push edi
mov dword [0x2002dc8c], eax
call esi
push 0x200027d0
push edi
mov dword [0x2002dc90], eax
call esi
push 0x200027bc
push edi
mov dword [0x2002dc98], eax
call esi
push 0x200027a8
push edi
mov dword [0x2002dc94], eax
call esi
push 0x20002794
push edi
mov dword [0x2002dc9c], eax
call esi
push 0x20002780
push edi
mov dword [0x2002dca4], eax
call esi
push 0x2000276c
push edi
mov dword [0x2002dca0], eax
call esi
push 0x20002758
push edi
mov dword [0x2002dca8], eax
call esi
push 0x20002740
push edi
mov dword [0x2002dcac], eax
call esi
push 0x20002728
push edi
mov dword [0x2002dcb0], eax
call esi
push 0x20002710
push edi
mov dword [0x2002dcb4], eax
call esi
push 0x200026f4
push edi
mov dword [0x2002dcb8], eax
call esi
push 0x200026d4
push edi
mov dword [0x2002dcbc], eax
call esi
push 0x200026b0
push edi
mov dword [0x2002dcc0], eax
call esi
mov dword [0x2002dcc4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x20008a60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x20002920
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x20008ac3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2000290c
push eax
call edi
push 0x200028fc
push dword [esi]
mov dword [esi + 4], eax
call edi
push 0x200028e4
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x200028d0
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push 0x200028c4
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push 0x200028b8
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
ret