joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cf82
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a9a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x258]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0xc]
add edi, 0x1c8
push eax
call fcn.004392ce
push 0xe
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call fcn.0044cefe
pop ecx
push 0xf
lea ecx, [esp + 0x10]
call fcn.0044cefe
pop ecx
push 0x11
push esi
lea edi, [esp + 0x14]
call fcn.0044ceba
push 0x10
push esi
call fcn.0044ceba
push 9
push esi
call fcn.0044ceba
push 6
push esi
call fcn.0044ceba
push 0x12
push esi
call fcn.0044ceba
push 0x14
push esi
call fcn.0044ceba
push 0x13
push esi
call fcn.0044ceba
push 0x15
push esi
call fcn.0044ceba
add esp, 0x40
push 0xa
push esi
call fcn.0044ceba
push 0x16
push esi
call fcn.0044ceba
add esp, 0x10
mov eax, esi
call fcn.00439565
push ebx
push 0x61
call fcn.00438499
push ebx
push 0x62
call fcn.00438499
push ebx
push 0x63
call fcn.00438499
push 0x14
mov eax, esi
call fcn.0044cf34
pop ecx
push 6
mov eax, esi
call fcn.0044cf34
pop ecx
push 9
mov eax, esi
call fcn.0044cf34
pop ecx
push 0x11
mov eax, esi
call fcn.0044cf34
or dword [esp + 0x30], 0xffffffff
pop ecx
mov ecx, edi
call fcn.00440f7c
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450fcc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4aab33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4db1bc]
push ebx
push esi
push edi
mov ecx, 0x4db1bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
and dword [esp + 0x50], 0
lea ebx, [edi + 8]
push ebx
mov dword [esp + 0x2c], ebx
call fcn.00406072
mov esi, ebx
call fcn.0045acfd
push dword [ebx]
call fcn.0045ac5d
mov eax, dword [edi + 0x20]
mov eax, dword [eax]
add edi, 0x1c
pop ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
cmp dword [esp + 0x30], 0
mov esi, dword [edi + 4]
je 0x45104c
cmp dword [esp + 0x30], edi
je 0x451051
call fcn.0047873f
cmp dword [esp + 0x34], esi
je 0x451148
lea esi, [esp + 0x30]
call fcn.0045247f
mov dword [esp + 0x14], eax
call fcn.0045247f
mov esi, eax
push 0x4b957c
push dword [esp + 0x18]
add esi, 4
mov dword [esp + 0x28], esi
call fcn.0040577e
test eax, eax
je 0x4510c7
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00406895
pop ecx
pop ecx
lea edi, [esp + 0x10]
mov byte [esp + 0x4c], 1
call fcn.0040520c
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00405bdc
push dword [esp + 0x10]
call fcn.0045ac5d
mov edi, dword [esp + 0x1c]
pop ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x28], 0
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
je 0x4510e8
cmp dword [esp + 0x28], esi
je 0x4510ed
call fcn.0047873f
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x2c], eax
je 0x45113a
cmp dword [esp + 0x28], 0
jne 0x451103
call fcn.0047873f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx + 4]
jne 0x451115
call fcn.0047873f
mov eax, dword [esp + 0x2c]
push dword [ebx]
mov ebx, dword [eax + 8]
call fcn.0045197a
lea esi, [esp + 0x28]
call fcn.0045470c
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
jmp 0x4510d4
lea esi, [esp + 0x30]
call fcn.00452952
jmp 0x45103c
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00405bdc
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x451578
Capabilities:
Copy file

Disassembly:
mov eax, 0x4aab19
call fcn.004a8204
mov eax, dword [ebx + 0x14]
sub esp, 0x14
cmp eax, 0xffffffff
push esi
push edi
je 0x4516ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x18]
lea ecx, [ebx + 8]
push eax
call fcn.00406895
pop ecx
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00451eac
test eax, eax
je 0x4516c3
mov eax, dword [0x4db1bc]
mov esi, 0x4db1bc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4db1bc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00451f50
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040520c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405bdc
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.00451fe8
pop ecx
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040520c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405bdc
mov eax, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406895
mov eax, dword [eax]
pop ecx
pop ecx
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405bdc
test esi, esi
mov edi, dword [ebp - 0x10]
je 0x4516b0
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], esp
mov esi, esp
call fcn.00405bf4
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00406895
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
mov byte [ebp - 4], 7
call fcn.00452041
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00405bdc
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bdc
lea eax, [edi - 0x10]
call fcn.00405bdc
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405bdc
mov ecx, dword [ebp - 0xc]
or dword [ebx + 0x14], 0xffffffff
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x451bea
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x451c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x451d23
mov esi, dword [ebp + 8]
push edi
push dword [esi + 4]
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [ebp - 8], eax
je 0x451c54
push dword [esi + 4]
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x451c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x451cef
lea ebx, [esi + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], edi
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
je 0x451c80
cmp dword [ebp - 0x18], ebx
je 0x451c85
call fcn.0047873f
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
je 0x451cdf
lea esi, [ebp - 0x18]
call fcn.0045249f
mov esi, dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x451ca2
xor eax, eax
jmp 0x451ca7
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edi
call fcn.0040b278
push eax
push dword [ebp - 4]
call fcn.0047b350
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, edi
jne 0x451cc5
xor esi, esi
jmp 0x451cca
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 4], esi
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x18]
call fcn.004524bf
mov esi, dword [ebp + 8]
xor edi, edi
jmp 0x451c70
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 4], 1
cmp dword [ebp - 8], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x451cff
push dword [ebp - 8]
call ebx
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 4], edi
je 0x451d23
push dword [ebp + 0xc]
mov eax, esi
call fcn.00451d2d
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x451d23
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x451d2d
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x14], ebx
jne 0x451d6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x451e51
push edi
push dword [esi + 4]
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [ebp - 0xc], eax
jne 0x451d8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x451e3c
push dword [esi + 4]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x451dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x451e2e
lea ebx, [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], edi
mov esi, dword [ebx + 4]
je 0x451dca
cmp dword [ebp - 0x1c], ebx
je 0x451dcf
call fcn.0047873f
cmp dword [ebp - 0x18], esi
je 0x451e27
lea esi, [ebp - 0x1c]
call fcn.0045249f
mov esi, dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x451de9
xor eax, eax
jmp 0x451dee
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edi
call fcn.0040b278
push eax
push dword [ebp + 8]
call fcn.0047874f
add esp, 0xc
test eax, eax
jne 0x451e2e
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x451e10
xor esi, esi
jmp 0x451e15
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp + 8], esi
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x1c]
call fcn.004524bf
xor edi, edi
jmp 0x451dbd
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], edi
je 0x451e3c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0xc], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x451e4c
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x451e5b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, ecx
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x451e92
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x451e9e
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x451e7f
jmp 0x451ea5
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x451f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
test byte [0x4db834], 1
jne 0x451f8d
mov eax, dword [0x4db1bc]
or dword [0x4db834], 1
mov ecx, 0x4db1bc
call dword [eax + 0xc]
add eax, 0x10
push 0x4adba5
mov dword [0x4db830], eax
call fcn.0047c6ae
pop ecx
mov eax, dword [0x4db830]
cmp dword [eax - 0xc], 0
jne 0x451fd7
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x451fd2
push esi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x4db830
push esi
call fcn.00406072
call fcn.0045acfd
push str.drivers_
push esi
call fcn.00406693
pop esi
mov eax, dword [0x4db830]
add eax, 0xfffffff0
call fcn.00405bf4
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x4538c6
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4538d9
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret

Function at 0x453c1b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x453c34
mov eax, dword [ebp - 4]
jmp 0x453d0e
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x453ce9
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4b6d58]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4b6d58]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4b6d58]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4b6d58]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4b6d58]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4b6d58]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4b6d58]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4b6d58]
dec ebp
jne 0x453c53
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x453d05
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4b6d58]
dec ecx
jne 0x453cf3
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x453d80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
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
mov dword [ebp - 0xc], ebx
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004543fb
push dword [ebp + 8]
mov dword [0x4db564], eax
push 0x4db53c
call fcn.00406072
call fcn.00454348
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x20]
push 0x4db540
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call esi
push ebx
push ebx
push edi
push ebx
mov dword [0x4db530], eax
call esi
cmp dword [0x4db530], ebx
mov dword [0x4db534], eax
je 0x453e42
cmp eax, ebx
je 0x453e42
push ebx
push ebx
push 0x4db528
push 0x454192
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [0x4db538], eax
mov eax, ecx
jmp 0x453e44
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x453e4b
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x4db538], 0
mov dword [0x4db528], 1
je 0x453e94
mov eax, dword [0x4db534]
test eax, eax
je 0x453e6e
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xea60
push dword [0x4db538]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x453e94
push 0
push dword [0x4db538]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x4db534]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x453eae
push eax
call esi
and dword [0x4db534], 0
mov eax, dword [0x4db538]
test eax, eax
je 0x453ec1
push eax
call esi
and dword [0x4db538], 0
pop esi
ret
Function at 0x45419e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ab338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, ecx
call fcn.004545c4
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
push 0xffffffffffffffff
mov dword [esp + 0x50], ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x454321
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x38], eax
push dword [esi + 0xc]
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], ebx
je 0x45430a
cmp dword [esi + 4], ebx
jne 0x454247
mov eax, dword [esi + 0x14]
push 0x4be358
push eax
call fcn.00478602
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 4], eax
je 0x45430a
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
call fcn.00402c2a
mov byte [esp + 0x4c], 1
cmp dword [esp + 0x20], ebx
je 0x4542db
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
cmp edi, eax
jne 0x454273
call fcn.0047873f
push 0xffffffffffffffff
push ebx
add edi, 8
push edi
lea ecx, [esp + 0x30]
call fcn.00402aaf
mov eax, dword [esp + 0x1c]
push dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea ebx, [esp + 0x24]
call fcn.0045456e
cmp dword [esp + 0x3c], 0x10
mov ecx, dword [esp + 0x28]
jae 0x4542ab
lea ecx, [esp + 0x28]
mov eax, dword [esi + 4]
test eax, eax
je 0x4542d3
push eax
push dword [esp + 0x3c]
push 1
push ecx
call fcn.0047cc55
push dword [esi + 4]
push 2
push 1
push 0x4b9948
call fcn.0047cc55
add esp, 0x20
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jne 0x454264
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4542f5
push eax
call fcn.0047d1c2
pop ecx
push dword [esi + 4]
call fcn.004784c0
pop ecx
mov dword [esi + 4], ebx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], bl
call fcn.00402cd8
jmp 0x4541e7
cmp dword [esi], ebx
jne 0x454321
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4541e7
lea esi, [esp + 0x18]
call fcn.004545dc
push dword [esp + 0x1c]
call fcn.0047a637
pop ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454348
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x4aacb0
call fcn.004a8204
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [0x4db53c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4543ea
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45438c
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x4543e9
mov eax, dword [0x4db53c]
add eax, 0xfffffff0
call fcn.00405bf4
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.00454497
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x4db53c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [edi - 0x10]
call fcn.00405bdc
pop edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4547be
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4ab31e
call fcn.004a8204
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.0047a1f0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x454809
xor eax, eax
jmp 0x4548cd
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.0047a1f0
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.00454eec
test edi, edi
jle 0x4548ca
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4548c2
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405e57
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.0045059a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405bdc
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405e57
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.0045059a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bdc
add ebx, 8
dec dword [ebp - 0x10]
jne 0x45484f
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x454904
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x454985
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x454985
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x454980
cmp dword [esi + 4], ebx
je 0x454980
cmp dword [esi + 8], ebx
je 0x454980
cmp dword [esi + 0xc], ebx
je 0x454980
cmp eax, ebx
je 0x454980
xor eax, eax
inc eax
jmp 0x454982
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret