joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f06a
Capabilities:
Get storage device properties

Disassembly:
push 0x48
mov eax, 0x47cf11
call fcn.00464391
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov edi, esi
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x25], bl
call fcn.0043e660
push dword [ebp - 0x30]
push esi
call fcn.004048e1
mov eax, dword [esi]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x34], eax
jne 0x43f0b3
xor al, al
jmp 0x43f231
xor eax, eax
mov dword [ebp - 0x54], ebx
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0x18
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x43f225
mov eax, dword [ebp - 0x4c]
push 0xc
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0045c910
mov edi, 0xa000
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
call fcn.0045b098
or dword [ebp - 4], 0xffffffff
add esp, 0x10
push edi
push ebx
push eax
mov dword [ebp - 0x2c], eax
call fcn.0045c910
add esp, 0xc
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x9fff
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x34]
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43f1d1
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x9fff], bl
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x10]
cmp eax, ebx
mov dword [ebp - 0x30], ecx
je 0x43f176
cmp eax, edi
jae 0x43f176
add eax, ecx
push eax
lea eax, [esi + 8]
push eax
call fcn.00401965
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x43f193
cmp eax, edi
jae 0x43f193
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
lea eax, [esi + 4]
push eax
call fcn.00401965
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x43f1b0
cmp eax, edi
jae 0x43f1b0
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00401965
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x43f1cd
cmp eax, edi
jae 0x43f1cd
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00401965
mov byte [ebp - 0x25], 1
push edi
push ebx
push dword [ebp - 0x2c]
call fcn.0045c910
add esp, 0xc
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x9fff
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43f21c
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x9fff], bl
lea eax, [ebp - 0x1c]
push eax
add esi, 4
push esi
call fcn.00401965
mov byte [ebp - 0x25], 1
push dword [ebp - 0x2c]
call fcn.0045c98a
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x25]
call fcn.004643ed
ret
Function at 0x440236
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x420
mov eax, 0x47ee71
call fcn.0046435b
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x42c], ecx
je 0x44039d
cmp ecx, ebx
je 0x44039d
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push ebx
mov edi, 0x48bde4
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x440298
lea eax, [ebp - 0x41c]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push 0x3ff
lea eax, [ebp - 0x413]
push ebx
push eax
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x424], 0x400
mov byte [ebp - 0x414], bl
call fcn.0045c910
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
mov edi, 0x48be1c
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [0x4a55fc]
mov ecx, 0x4a55fc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x440346
lea eax, [ebp - 0x418]
push eax
call fcn.0043e7a1
mov eax, dword [ebp - 0x418]
pop ecx
push dword [eax - 0xc]
lea esi, [ebp - 0x418]
call fcn.00413c77
push eax
push dword [ebp - 0x420]
push ebx
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x440359
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00413c51
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x418]
push dword [esi - 0xc]
mov edi, dword [ebp - 0x42c]
mov ecx, esi
call fcn.004403d0
pop ecx
push esi
push 0x489c5c
push 0x100
push dword [ebp - 0x428]
call fcn.0045f9db
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.00401144
call fcn.004643de
ret
Function at 0x44146f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x49b390]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
lea eax, [esi + 0x98]
cmp byte [eax], 0
jne 0x4414ac
mov byte [eax], 1
call fcn.0044367e
push dword [eax + 0x94]
call fcn.0044136d
test al, al
je 0x441558
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push eax
mov dword [esi + 4], eax
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0045c910
and word [esp + 0x1a], 0
and dword [esp + 0x1c], 0
add esp, 0xc
push 0x10
lea eax, [esp + 0x10]
push eax
push dword [esi + 4]
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_bind]
push 0x10
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0045c910
movzx eax, word [esi + 0xac]
add esp, 0xc
push eax
mov word [esp + 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [esi + 0xa8]
mov dword [esp + 0x20], eax
push 0x10
lea eax, [esp + 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
push esi
call fcn.0044367e
push eax
call fcn.00443af2
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
mov al, 1
call fcn.0045c28f
mov esp, ebp
pop ebp
ret

Function at 0x441760
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xb0]
mov ebx, 0x400
mov ecx, ebx
call fcn.00440ff4
mov ebp, dword [sym.imp.WS2_32.dll_recv]
jmp 0x4417a9
mov ecx, dword [esi + 0xb0]
add dword [esp + 0x10], eax
add dword [ecx + 8], eax
cmp dword [esp + 0x10], 0x10000
jg 0x4417d7
mov edi, dword [esi + 0xb0]
mov ecx, ebx
call fcn.00440ff4
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
push 0
push ebx
push ecx
push dword [esi + 4]
call ebp
test eax, eax
jg 0x441785
test eax, eax
jne 0x4417db
mov eax, dword [esi]
push 0
mov ecx, esi
mov byte [esi + 0x9a], 1
call dword [eax + 4]
jmp 0x4417f7
mov al, 1
jmp 0x4417f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x4417d7
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esi + 0x9a], 1
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x441767
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xb0]
mov ebx, 0x400
mov ecx, ebx
call fcn.00440ff4
mov ebp, dword [sym.imp.WS2_32.dll_recv]
jmp 0x4417a9
mov ecx, dword [esi + 0xb0]
add dword [esp + 0x10], eax
add dword [ecx + 8], eax
cmp dword [esp + 0x10], 0x10000
jg 0x4417d7
mov edi, dword [esi + 0xb0]
mov ecx, ebx
call fcn.00440ff4
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
push 0
push ebx
push ecx
push dword [esi + 4]
call ebp
test eax, eax
jg 0x441785
test eax, eax
jne 0x4417db
mov eax, dword [esi]
push 0
mov ecx, esi
mov byte [esi + 0x9a], 1
call dword [eax + 4]
jmp 0x4417f7
mov al, 1
jmp 0x4417f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x4417d7
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esi + 0x9a], 1
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x4431b1
Capabilities:
Create thread
Initialize winsock library
Resume thread

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x49b390]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
lea eax, [esp + 8]
push eax
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.0044367e
push eax
call fcn.00443ebb
cmp dword [0x4a69ac], 0
jne 0x443218
push 0x4a6bb8
push 4
push 0
push 0x442e42
push 0
push 0
call fcn.004607d2
add esp, 0x18
test eax, eax
mov dword [0x4a69ac], eax
jne 0x443211
push 4
pop eax
jmp 0x44321a
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [esp + 0x19c]
pop ebx
xor ecx, esp
call fcn.0045c28f
add esp, 0x1a0
ret

Function at 0x4432b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov ecx, esi
call fcn.00443368
test eax, eax
je 0x4432c9
push 2
jmp 0x443361
mov edi, dword [esi + 0x4c]
cmp dword [ebp + 0x10], edi
mov ebx, dword [esi + 0x48]
ja 0x44335f
mov ecx, dword [ebp + 0xc]
jb 0x4432e1
cmp ecx, ebx
jae 0x44335f
mov eax, dword [ebp + 0x14]
cdq
add eax, ecx
adc edx, dword [ebp + 0x10]
cmp edx, edi
ja 0x44335f
jb 0x4432f4
cmp eax, ebx
ja 0x44335f
xor edi, edi
test byte [esi + 0x100], 1
je 0x44331e
mov eax, dword [esi + 0x244]
cmp eax, edi
je 0x44331e
push dword [ebp + 0x14]
add eax, ecx
push dword [ebp + 8]
push eax
call fcn.0045c2a0
add esp, 0xc
xor eax, eax
jmp 0x443362
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push dword [esi + 0x23c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 0x10], edi
push dword [ebp + 8]
push dword [esi + 0x23c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
and eax, 6
jmp 0x443362
push 6
pop eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x44856b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jl 0x4485e7
mov edx, dword [ebp + 8]
jg 0x448582
test edx, edx
jb 0x4485e7
mov ecx, dword [ebp + 0x14]
xor eax, eax
add ecx, edx
adc eax, ebx
cmp eax, dword [esi + 0xc]
jg 0x4485e7
jl 0x448597
cmp ecx, dword [esi + 8]
ja 0x4485e7
and dword [ebp - 0x14], 0
push edi
xor eax, eax
and dword [ebp + 0xc], 0
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0xc], edx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0xc], 0
pop edi
ja 0x4485e2
and dword [ebp + 0xc], 0
push 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [ebp + 0xc]
jmp 0x4485e9
xor eax, eax
pop ebx
leave
ret

Function at 0x4485ec
Capabilities:
Get file size

Disassembly:
push 0x64
mov eax, 0x47fad8
call fcn.004642f2
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.004493cf
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [0x4ae58c]
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x4ae588
call fcn.0041eaa7
xor esi, esi
test al, al
je 0x448675
lea edi, [ebp - 0x70]
call fcn.0044830a
mov dword [ebp - 4], esi
mov eax, dword [0x4ade18]
mov dword [ebp - 0x60], eax
mov eax, edi
push eax
push ecx
push dword [ebp + 0xc]
call fcn.0044903b
pop ecx
push eax
call fcn.00448709
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.004493cf
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x38]
mov dword [ebp - 0x14], ecx
call fcn.0044976d
mov edi, dword [ebp - 0x14]
cmp edi, esi
jne 0x448681
call fcn.0045d2f7
cmp ebx, dword [edi + 4]
jne 0x44868b
call fcn.0045d2f7
cmp dword [ebx + 0x18], esi
jne 0x4486ee
cmp dword [0x4ade18], 1
mov ecx, 0x80
jne 0x4486a3
mov ecx, 0x40000080
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push ecx
push 3
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4486d4
mov eax, dword [ebp + 8]
mov ecx, dword [0x4ae58c]
mov dword [eax + 4], ecx
mov dword [eax], 0x4ae588
jmp 0x4486f6
lea ecx, [ebx + 0x24]
push ecx
push eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 4], ebx
call fcn.004643ca
ret
Function at 0x44aeb7
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [ebp + 0xa0], 0
lea eax, [ebp - 0x6c]
je 0x44aee5
push str.Global6CB4A807_0259_4141_A4CF_F5E4ADEB923C_1
jmp 0x44aeea
push str.Global6CB4A807_0259_4141_A4CF_F5E4ADEB923C_0
push 0x80
push eax
call fcn.0045d727
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
test esi, esi
je 0x44af39
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.0045c28f
add ebp, 0x98
leave
ret
lea esi, [ebp - 0x80]
call fcn.004038f8
lea ecx, [ebp - 0x6c]
push ecx
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
lea eax, [ebp - 0x80]
call fcn.0040399d
test esi, esi
je 0x44af20
call edi
cmp eax, 0xb7
je 0x44af19
mov eax, esi
jmp 0x44af22
Function at 0x44f1b2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov edi, eax
xor ebx, ebx
call fcn.0044f178
cmp eax, 1
jne 0x44f256
mov eax, dword [edi + 0x14]
push esi
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045b098
cmp dword [edi + 0x18], 8
pop ecx
mov esi, eax
jb 0x44f1f5
mov eax, dword [edi + 4]
jmp 0x44f1f8
lea eax, [edi + 4]
push eax
mov eax, dword [edi + 0x14]
inc eax
inc eax
push eax
push esi
call fcn.00463898
mov eax, dword [edi + 0x14]
push 4
lea eax, [esi + eax*2]
push ebx
push eax
call fcn.0045c910
add esp, 0x18
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], 0x414
mov dword [ebp - 6], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, eax
neg ebx
sbb bl, bl
push esi
inc bl
call fcn.0045c98a
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x44f25c
Capabilities:
Create directory
Delete directory
Delete file
Write file on windows

Disassembly:
push 0x60
mov eax, 0x47dbf1
call fcn.0046435b
mov eax, dword [ebp + 8]
push str.:_bdptestdir
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404ee1
push str._bdptest.txt
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00404ee1
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x44f2a4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x44f2b7
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x34], edi
mov byte [ebp - 0x65], 1
je 0x44f393
push 0x485248
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00404ee1
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp dword [ebp - 0x4c], 8
jae 0x44f2ec
lea eax, [ebp - 0x60]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ebx, eax
neg ebx
push edi
sbb bl, bl
push 1
lea esi, [ebp - 0x64]
inc bl
call fcn.004049f4
test bl, bl
je 0x44f393
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x44f31c
lea eax, [ebp - 0x28]
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44f38b
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x6c]
push eax
push 0xa
push str.test1
push esi
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44f362
mov byte [ebp - 0x65], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x2c]
call fcn.0044f178
cmp eax, 2
jne 0x44f389
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x44f382
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
lea eax, [ebp - 0x48]
call fcn.0044f1b2
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.004049f4
push edi
push 1
lea esi, [ebp - 0x48]
call fcn.004049f4
mov al, byte [ebp - 0x65]
call fcn.004643de
ret
Function at 0x44f3b2
Capabilities:
Get disk information
Get disk size
Get storage device properties

Disassembly:
push 0x94
mov eax, 0x47ec91
call fcn.0046435b
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x88], eax
jne 0x44f3db
xor ax, ax
jmp 0x44f586
mov eax, dword [0x48d12c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x48d130]
xor ecx, ecx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp - 0x88]
shr eax, cl
cmp eax, ebx
je 0x44f582
test al, 1
je 0x44f56c
lea eax, [ebp - 0x18]
add ecx, 0x41
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x44f56c
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x44f56c
xor eax, eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [ebp - 0x18]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x68]
call fcn.00404670
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 4], ebx
call fcn.0044f25c
test al, al
pop ecx
jne 0x44f55d
mov eax, dword [ebp - 0x70]
cmp eax, ebx
jne 0x44f492
cmp dword [ebp - 0x6c], ebx
je 0x44f54a
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x7c]
ja 0x44f55d
jb 0x44f4a9
cmp eax, dword [ebp - 0x80]
jae 0x44f55d
mov esi, str.__a:
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push 3
stosw word es:[edi], ax
mov ax, word [ebp - 0x18]
push ebx
push 3
mov word [ebp - 0x38], ax
push 0x80000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
je 0x44f54a
mov edi, 0x227
push edi
call fcn.0045b098
pop ecx
push ebx
mov esi, eax
mov dword [esi + 4], edi
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push dword [esi + 4]
lea eax, [ebp - 0x4c]
push esi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x44f53a
cmp dword [esi + 0x1c], 7
jne 0x44f53a
push esi
call fcn.0045c98a
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44f55d
push esi
call fcn.0045c98a
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x74], eax
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x68]
call fcn.004049f4
mov ecx, dword [ebp - 0x84]
inc ecx
cmp ecx, 0x1a
mov dword [ebp - 0x84], ecx
jl 0x44f3fc
mov ax, word [ebp - 0x74]
call fcn.004643de
ret
Function at 0x450b95
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.00450c05
mov ecx, dword [esi + 0x10]
lea edx, [eax + edi]
cmp edx, ecx
jb 0x450bb6
sub ecx, eax
mov dword [ebp - 4], ecx
jmp 0x450bb9
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub eax, dword [esi + 4]
push 0x64
xor edx, edx
pop ecx
div ecx
push 0x3c
xor edx, edx
pop ecx
div ecx
mov ecx, edx
cmp ecx, dword [esi]
je 0x450bf3
mov eax, dword [esi]
mov edx, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x14], edx
mov eax, dword [esi]
push 0x3c
inc eax
xor edx, edx
pop edi
div edi
cmp edx, ecx
mov dword [esi], edx
jne 0x450bd8
mov dword [esi], ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x450bfd
add dword [esi + 0xc], eax
pop edi
mov dword [esi + 8], ebx
pop esi
pop ebx
leave
ret
Function at 0x45c1fc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4a5670], 0
push esi
jne 0x45c16f
call fcn.0045c09a
test eax, eax
je 0x45c1b2
mov eax, dword [0x4a5670]
cmp eax, 1
jne 0x45c190
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45c1b2
pop esi
ret
push eax
call dword [0x4a5678]
test eax, eax
jne 0x45c1fa
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x45c1b6
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4a5670]
call dword [0x4a5678]
mov edi, eax
test edi, edi
je 0x45c1dd
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x45c1f9
lea edi, [esi + 0xff0]
push esi
push dword [0x4a5670]
call dword [0x4a5674]
add esi, 0x10
cmp esi, edi
jb 0x45c1e3
mov eax, esi
pop edi
pop esi
ret
jmp 0x45c15c

Function at 0x45c28f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49b390]
jne 0x45c299
repz ret
jmp fcn.004674f6