joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d4f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov edx, ecx
xor ebx, ebx
cmp byte [edx + 4], bl
je 0x40d5dc
cmp byte [0x45c131], bl
je 0x40d53e
push ebx
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push dword [edx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d5f0
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40d5f0
push esi
push edi
xor eax, eax
push 6
mov esi, dword [ebp + 8]
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 8]
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
shr eax, 9
mov word [ebp - 8], ax
movzx eax, ax
add eax, ecx
pop edi
mov dword [ebp - 6], esi
mov dword [edx + 8], eax
pop esi
mov dword [ebp - 0xc], ecx
push ebx
cmp byte [0x45c130], bl
je 0x40d5a9
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0xc]
mov dword [ebp - 0x28], eax
movzx eax, byte [edx + 5]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0xc]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 0x1c
push eax
mov dword [ebp - 0x1c], 0x7305
mov dword [ebp - 0x14], ebx
push 6
jmp 0x40d5cd
movzx eax, byte [edx + 5]
dec eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0xc]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 0x1c
push eax
mov dword [ebp - 0x20], 0xffff
push 2
push dword [edx + 0xc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx eax, word [ebp - 8]
jmp 0x40d5f0
push dword [edx + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00434ac6
add esp, 0x10
pop ebx
leave
ret 0xc
Function at 0x40d5f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov edx, ecx
xor ebx, ebx
cmp byte [edx + 4], bl
je 0x40d6e1
cmp byte [0x45c131], bl
je 0x40d63f
push ebx
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push dword [edx + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d6f5
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40d6f5
push esi
push edi
xor eax, eax
push 6
mov esi, dword [ebp + 8]
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 8]
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
shr eax, 9
mov word [ebp - 8], ax
movzx eax, ax
add eax, ecx
pop edi
mov dword [ebp - 6], esi
mov dword [edx + 8], eax
pop esi
mov dword [ebp - 0xc], ecx
push ebx
cmp byte [0x45c130], bl
je 0x40d6ae
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0xc]
mov dword [ebp - 0x28], eax
movzx eax, byte [edx + 5]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0xc]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 0x1c
push eax
mov dword [ebp - 0x1c], 0x7305
mov dword [ebp - 0x14], 0x6001
push 6
jmp 0x40d6d2
movzx eax, byte [edx + 5]
dec eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0xc]
push eax
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 0x1c
push eax
mov dword [ebp - 0x20], 0xffff
push 3
push dword [edx + 0xc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx eax, word [ebp - 8]
jmp 0x40d6f5
push dword [edx + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00434c45
add esp, 0x10
pop ebx
leave
ret 0xc

Function at 0x40d7a9
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 4], bl
je 0x40d7cb
cmp byte [0x45c131], bl
je 0x40d7c7
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x40d7fd
xor eax, eax
jmp 0x40d7fd
push ebp
push edi
push dword [esi + 0xc]
call fcn.00434f73
push 2
push ebx
push dword [esi + 0xc]
mov edi, eax
call fcn.00434d51
push dword [esi + 0xc]
call fcn.00434f73
push ebx
push edi
push dword [esi + 0xc]
mov ebp, eax
call fcn.00434d51
add esp, 0x20
pop edi
mov eax, ebp
pop ebp
pop esi
pop ebx
ret

Function at 0x40d87c
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
push eax
push 0x2d1080
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
leave
ret
Function at 0x40e64c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, 0x400
push esi
call fcn.00430ca4
pop ecx
push esi
push eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e698
xor eax, eax
jmp 0x40e7ea
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], 0xfffffff8
push 2
push ebx
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call esi
cmp dword [ebp - 0x10], 0x4e4f4441
je 0x40e6e3
cmp dword [ebp - 0x10], 0x52494401
je 0x40e6f6
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffd800
jg 0x40e6a5
jmp 0x40e781
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
jmp 0x40e781
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
push ebx
push ebx
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call esi
cmp dword [ebp - 0x10], 0x52494402
mov dword [ebp - 0xc], ebx
jne 0x40e781
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
jle 0x40e781
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push edi
call esi
cmp dword [ebp - 0x10], 0x4e4f4441
je 0x40e781
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
jl 0x40e740
push dword [ebp - 0x18]
call fcn.00430bc7
pop ecx
mov byte [ebp - 1], bl
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0xc], ebx
je 0x40e7cf
push ebx
push ebx
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00420d24
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x40e7cf
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push edi
call esi
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], eax
jne 0x40e7cf
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x40e691
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ebb2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [0x466abf], bl
je 0x40ebd9
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
jne 0x40ebdc
cmp byte [0x466abe], bl
jne 0x40ec18
pop esi
pop ebx
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, ebx
je 0x40ec04
cmp eax, 2
je 0x40ec04
push ebx
lea eax, [ebp - 4]
push eax
push 2
push 0x44bdc0
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40ebd8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x40ebd8
cmp byte [0x466abe], bl
je 0x40ec20
call dword [sym.imp.KERNEL32.dll_AllocConsole]
jmp 0x40ebd8
cmp byte [0x466ac4], bl
jne 0x40ec3b
push 0x10
push str.Error
push str.Cannot_open_console
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.004328eb
int3

Function at 0x40f34d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x34
push dword [ebp + 0x14]
mov dword [0x45c594], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [0x45c598], eax
call fcn.0040f2e2
pop ecx
pop ecx
test al, al
jne 0x40f376
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor ebx, ebx
push ebx
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
mov dword [0x45c588], eax
call esi
mov dword [0x45c58c], eax
cmp dword [0x45c588], ebx
je 0x40f432
cmp eax, ebx
je 0x40f432
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x45c590], eax
cmp eax, ebx
je 0x40f432
cmp byte [0x466aba], bl
je 0x40f3f8
call fcn.00411d32
mov dword [0x45c578], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
jbe 0x40f3f2
mov ecx, dword [0x45c578]
mov eax, dword [ecx]
lea edx, [ebp - 0x34]
push edx
push ebx
call dword [eax + 0xc]
test al, al
je 0x40f3f2
cmp dword [ebp - 0x1e], 0x20
je 0x40f3f8
mov dword [0x45c578], ebx
cmp dword [0x45c578], ebx
jne 0x40f40e
call fcn.00411505
mov dword [0x45c578], eax
cmp eax, ebx
je 0x40f432
push 0x45c580
push ebx
push ebx
push 0x40ef74
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x45c584], eax
setne al
jmp 0x40f434
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x410070
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
xor ebx, ebx
cmp dword [0x45c5bc], ebx
je 0x41014c
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
lea eax, [ebp - 0x13c]
sar esi, 0x10
push eax
and esi, 0xff
call dword [sym.imp.USER32.dll_GetKeyboardState]
push dword [ebp + 8]
push esi
call fcn.0040fe77
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0040ffc9
mov dword [ebp - 0x10], eax
mov eax, SysReAllocStringLen
and edi, eax
add esp, 0xc
cmp edi, eax
setne byte [ebp - 8]
cmp byte [ebp - 8], bl
je 0x41013c
push ebx
push 0xa
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x13c]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ToUnicode]
sub eax, ebx
je 0x41013c
dec eax
je 0x41011c
dec eax
jne 0x41013c
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x1c], 1
call dword [0x45c5bc]
movzx eax, word [ebp - 0x3a]
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x41013f
test byte [ebp - 0x10], 8
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0xc], eax
je 0x41013f
lea ecx, [eax - 1]
cmp ecx, 0x19
ja 0x410136
add eax, 0x60
jmp 0x410117
and dword [ebp - 0x10], 0xffffffc7
jmp 0x41013f
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x14]
push eax
call dword [0x45c5bc]
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x4105bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push ebx
call fcn.00412b9a
add esp, 0xc
push ebx
push ebx
push ebx
mov dword [0x466a10], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
xor edi, edi
inc edi
push edi
push ebx
push ebx
mov dword [0x466a20], eax
call esi
push ebx
push edi
push ebx
push ebx
mov dword [0x466a24], eax
call esi
mov dword [0x466a28], eax
mov byte [0x466a0d], bl
mov dword [0x4669fc], edi
mov dword [0x466a00], edi
mov dword [ebp - 8], ebx
cmp byte [0x466aba], bl
je 0x41068b
call fcn.0040ed79
mov edi, eax
xor esi, esi
cmp edi, ebx
jbe 0x410641
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.0040edad
inc esi
pop ecx
pop ecx
cmp esi, edi
jb 0x410630
xor esi, esi
mov dword [ebp - 4], ebx
cmp edi, ebx
jbe 0x410672
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.0040edad
cmp dword [ebp - 0x3c], 0x400
pop ecx
pop ecx
jne 0x410668
cmp dword [ebp - 0x38], 0x300
je 0x41066f
inc esi
cmp esi, edi
jb 0x41064a
jmp 0x410672
mov dword [ebp - 4], esi
push ebx
push ebx
cmp byte [0x466abc], bl
je 0x410688
push 1
push 0x410366
push dword [ebp - 4]
jmp 0x4106b0
push ebx
jmp 0x41067e
cmp byte [0x466ac5], bl
je 0x4106a6
push 0x300
push 0x400
push ebx
push 0x410366
push ebx
jmp 0x4106b0
push ebx
push ebx
push ebx
push 0x410366
push 2
call fcn.0040ec43
add esp, 0x14
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x4104ee
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4108cc
Capabilities:
Allocate thread local storage
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov dword [0x466bcc], eax
call esi
push 0xffffffffffffffff
push 1
xor esi, esi
push esi
mov dword [0x466bd0], eax
call fcn.00412b9a
push 0xffffffffffffffff
push esi
push esi
mov dword [0x466aac], eax
call fcn.00412b9a
add esp, 0x18
mov dword [0x466ab0], eax
mov dword [0x466a30], 0x41325a
mov dword [0x466a34], 0x41326c
mov dword [0x466a38], 0x413295
mov dword [0x466a3c], 0x413462
mov dword [0x466a40], 0x4132a2
mov dword [0x466a44], 0x413300
mov dword [0x466a48], 0x41332e
mov dword [0x466a4c], 0x413425
mov dword [0x466a50], 0x4153f5
mov dword [0x466a54], 0x41543e
mov dword [0x466a58], 0x415482
mov dword [0x466a5c], 0x4154c6
mov dword [0x466a60], 0x415505
mov dword [0x466a64], 0x415544
mov dword [0x466a68], 0x415590
mov dword [0x466a6c], 0x4155cf
mov dword [0x466a70], 0x41561d
mov dword [0x466a74], 0x41566b
mov dword [0x466a78], 0x4156bd
mov dword [0x466a7c], 0x415706
mov dword [0x466a80], 0x41574f
mov dword [0x466a84], 0x41578e
mov dword [0x466a88], 0x4157e0
mov dword [0x466a8c], 0x4152db
mov dword [0x466a90], 0x41531f
mov dword [0x466a94], 0x415363
mov dword [0x466a98], 0x4153a7
mov dword [0x466a9c], 0x4286c4
mov dword [0x466aa0], 0x4286c4
mov dword [0x466aa4], 0x413452
mov dword [0x466aa8], 0x412bca
pop esi
jmp 0x414c40
push ecx
lea eax, [esp]
push eax
xor eax, eax
push eax
push eax
push 0x414b30
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret

Function at 0x413cd2
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x2000
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret 8

Function at 0x413d00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x413d19
push edi
push 0
call fcn.00413cd2
test eax, eax
je 0x413d56
cmp byte [esp + 0x10], 0
je 0x413d47
push esi
push 0x40
push 0x1000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x413d42
push 0
push edi
push esi
call fcn.004158c7
add esp, 0xc
mov eax, esi
pop esi
jmp 0x413d56
push 0x40
push 0x1000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop edi
ret 0xc

Function at 0x413dd3
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x2000
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret

Function at 0x413e16
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x413e33
push edi
push 0
call fcn.00413dd3
pop ecx
pop ecx
test eax, eax
jne 0x413e33
pop edi
ret
cmp byte [esp + 0x10], 0
je 0x413e61
push esi
push 0x40
push 0x1000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x413e5c
push 0
push edi
push esi
call fcn.004158c7
add esp, 0xc
mov eax, esi
pop esi
pop edi
ret
push 0x40
push 0x1000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop edi
ret
Function at 0x413e72
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00416583
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413ed9
push esi
call fcn.004165b5
pop ecx
push 0x40
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push eax
push esi
mov dword [0x466be4], eax
call fcn.004165d9
add esp, 0xc
mov dword [0x466be4], eax
test eax, eax
je 0x413ed9
push eax
push eax
push esi
call fcn.00416662
add esp, 0xc
test al, al
je 0x413ed9
push esi
call fcn.004165c7
pop ecx
mov ecx, dword [0x466be4]
add eax, ecx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4143b4
Capabilities:
Resume thread

Disassembly:
lea eax, [ecx + 0x81]
cmp byte [eax], 0
je 0x4143ce
push dword [ecx + 0x35]
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
ret
xor al, al
ret

Function at 0x4143d1
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x85]
call fcn.004136ff
mov ecx, dword [esi + 0x2d]
mov dword [ecx + 4], eax
push dword [esi + 0x35]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret

Function at 0x414816
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
and dword [esi + 0x35], 0
mov byte [esi + 0x81], 1
call fcn.00412ede
test al, al
je 0x4148cc
mov eax, dword [esi + 0x2d]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x359], ecx
mov eax, dword [esi + 0x2d]
and dword [eax + 0x369], 0
mov eax, dword [esi + 0x2d]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x35d], ecx
mov eax, dword [esi + 0x2d]
mov dword [eax + 0x361], esi
mov eax, dword [esi + 0x2d]
mov ecx, dword [esi + 0x31]
mov dword [eax + 0x365], ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
push 4
push dword [esi + 0x2d]
add eax, eax
push 0x414534
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x35], eax
test eax, eax
jne 0x41489a
push str.CreateThread_failed_n
call fcn.004110e0
pop ecx
push dword [ebp - 4]
push esi
call fcn.00416bb5
cmp dword [esi + 0x35], 0
pop ecx
pop ecx
je 0x4148c5
mov eax, dword [esi + 0x2d]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1e4], ecx
mov eax, dword [esi + 0x2d]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x1d4], ecx
jmp 0x4148cc
mov ecx, esi
call fcn.00412ed9
pop esi
leave
ret 0x18
Function at 0x4165d9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test ebx, ebx
jne 0x4165f7
mov eax, dword [esi + 0x14]
push dword [eax + 0x50]
call fcn.00420d24
pop ecx
mov ebx, eax
mov eax, dword [esi + 0x14]
push 0
push dword [eax + 0x50]
push ebx
call fcn.00432990
mov eax, dword [esi + 0x14]
movzx ecx, word [eax + 0x14]
mov edx, dword [esi + 0x10]
and dword [ebp + 0xc], 0
lea edi, [ecx + edx + 0x18]
xor ecx, ecx
add esp, 0xc
cmp cx, word [eax + 6]
jae 0x41665b
mov ecx, dword [esi]
lea eax, [ecx + edi]
mov edx, dword [eax + 0x10]
test edx, edx
jbe 0x416649
cmp dword [eax + 8], 0
jbe 0x416649
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add edx, ecx
push edx
add eax, ebx
push eax
call fcn.00433d80
add esp, 0xc
mov eax, dword [esi + 0x14]
movzx eax, word [eax + 6]
add edi, 0x28
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x416622
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x416a00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x448e50
call fcn.00435154
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 4
mov dword [esi], ebx
mov dword [esi + 0x4d], 1
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
call fcn.00420d24
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x416a3b
call fcn.004161d3
jmp 0x416a3d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2d], bl
mov byte [esi + 0x2e], bl
mov byte [esi + 0x2f], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41959c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
jne 0x4195ac
xor eax, eax
pop ebp
ret
push ecx
lea edx, [ebp + 8]
push edx
push 8
push dword [ebp + 0xc]
push ecx
push ecx
push 0x7405c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop ebp
ret

Function at 0x4196fc
Capabilities:
Get disk information

Disassembly:
push 0x18
push 0x4546c0
call fcn.00435174
mov dword [ebp - 0x28], 0x5c3a41
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [ebp + 8]
add byte [ebp - 0x28], al
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x419741
call fcn.004351af
ret
Function at 0x419980
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
test dword [ebp + 8], 0x80000000
mov byte [ebp - 1], 0
je 0x41999a
mov byte [ebp - 1], 1
and dword [ebp + 8], 0x7fffffff
cmp byte [ebp - 1], 0
je 0x4199bd
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
shl edx, cl
test edx, eax
jne 0x4199bd
xor eax, eax
leave
ret
push ebx
push 0x1d
call fcn.00420d24
cmp byte [ebp - 1], 0
pop ecx
mov ebx, eax
je 0x419a0d
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov al, byte [ebp + 8]
add al, 0x41
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebx + 0x18], 1
mov byte [ebx + 0x1c], 1
mov byte [ebx + 0x1b], 0
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0
call fcn.00434368
mov dword [ebx + 0x10], eax
pop ecx
mov byte [ebx + 0x1a], 0
mov eax, ebx
jmp 0x419b32
push esi
push edi
mov esi, 0x44c93c
lea edi, [ebp - 0x434]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xa
lea eax, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp + 8]
movsw word es:[edi], word [esi]
call fcn.0044802e
lea eax, [ebp - 0x4c]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419a36
lea edi, [ebp - 0x434]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x419a46
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0x28000004
push 3
push esi
push 3
mov dword [ebx + 0x14], eax
push 0xc0000000
lea eax, [ebp - 0x434]
push eax
mov dword [ebx + 0x10], esi
mov byte [ebx + 0x1c], 0
mov byte [ebx + 0x19], 0
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x1a], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x419b27
mov byte [ebx + 0x1b], 1
mov ax, word [0x459a4c]
xor edx, edx
cmp ax, si
je 0x419aef
movzx ecx, ax
xor eax, eax
movzx ecx, cx
cmp ecx, esi
jne 0x419ad7
mov edi, 0xffff
cmp word [eax + 0x459a4e], di
je 0x419aeb
cmp ecx, esi
jne 0x419ad7
cmp word [eax + 0x459a4e], si
je 0x419aeb
inc edx
mov eax, edx
shl eax, 2
movzx ecx, word [eax + 0x459a4c]
cmp cx, si
jne 0x419ab5
jmp 0x419aef
mov byte [ebx + 0x1b], 0
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00419571
pop ecx
pop ecx
test eax, eax
je 0x419b1c
mov eax, dword [ebp - 0x18]
push esi
push eax
push dword [ebp - 0x10]
mov dword [ebx + 4], eax
push dword [ebp - 0x14]
call fcn.0041f27c
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, ebx
jmp 0x419b30
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
push ebx
call fcn.00420d5e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret