joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441561
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
jne 0x4415f5
cmp dword [ebp + 0xc], esi
jne 0x441580
mov eax, 0x80070057
jmp 0x44161f
cmp dword [0x4b02a0], esi
jle 0x44161d
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4415ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x44161f
jmp 0x441604
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4b02a0]
push dword [0x4b0680]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4b0680]
cmp eax, esi
mov dword [0x4b02a0], esi
je 0x4415ed
call fcn.00431c35
mov dword [0x4b0680], esi
jmp 0x44161d
push dword [ebp + 8]
call fcn.00436bc5
mov edi, eax
cmp edi, esi
pop ecx
jne 0x441609
xor eax, eax
inc eax
jmp 0x44161f
push dword [ebp + 0xc]
push edi
call fcn.00441230
pop ecx
pop ecx
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x442f5b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004419f2
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.004419f2
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4aff28
call fcn.0040d391
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00431c4c
lea ecx, [ebp - 8]
call fcn.00431c4c
mov esi, str.0.0.0.0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.EnableDHCP
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
mov edi, 0x49895e
push edi
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x443036
cmp byte [eax], 0x2d
jne 0x443017
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x443036
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x448fbf
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x20]
call fcn.004391ff
lea eax, [ebp + 8]
push eax
call fcn.00431c97
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.0043719c
push 0x14
lea ecx, [ebp - 4]
call fcn.0043719c
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x49f120
mov dword [ebp - 8], edi
call fcn.00438eee
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
movzx eax, al
push 0x2c
pop esi
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00443720
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00439b04
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x449057
add dword [ebp + 8], 2
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00443720
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00439b04
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x44907f
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 8]
push eax
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00443720
push eax
call fcn.00439d51
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x449091
mov ebx, 0x80070057
jmp 0x44918f
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x4490a3
cmp dword [ebp - 0x10], edi
jne 0x4490a3
cmp word [eax], di
je 0x449087
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.004371c5
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.0040f738
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040f738
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
jne 0x4490f1
cmp dword [ebp - 8], ecx
jne 0x4490f1
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x449133
cmp dword [ebp - 8], 2
je 0x44913b
cmp dword [ebp - 0x10], ecx
jne 0x44913b
push edi
call fcn.00482b55
push 0
mov esi, eax
push 0x4b0244
neg esi
sbb esi, esi
push str.KERNEL32.DLL
push str.CreateSymbolicLinkW
neg esi
call fcn.00432cb9
mov eax, dword [0x4b0244]
add esp, 0x14
test eax, eax
je 0x44918f
push esi
push edi
push dword [ebp + 8]
call eax
test eax, eax
je 0x449187
xor ebx, ebx
jmp 0x44918f
cmp word [edi], cx
jne 0x449149
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x44917f
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.004378bb
push esi
push dword [ebp + 8]
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.00435614
add esp, 0x18
test eax, eax
je 0x449187
xor eax, eax
jmp 0x44918d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.00431c4c
lea ecx, [ebp - 0xc]
call fcn.00431c4c
lea ecx, [ebp - 0x20]
call fcn.00431c4c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x44926e
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4492b1
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4492aa
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00441a24
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x44b116
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004409c7
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x44b190
and word [ebp - 0xc], 0
and word [ebp - 2], 0
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x44b180
cmp ebx, 2
je 0x44b190
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4aff28
call fcn.00447557
pop ebx
leave
ret
Function at 0x45be0e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x45bf37
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0043719c
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x45bf2f
push edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
shl eax, 2
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov word [edi], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x45bf1f
cmp word [edi], si
je 0x45bf1f
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004419bc
push 0x497cfc
lea ecx, [ebp - 4]
call fcn.004371ec
push edi
lea ecx, [ebp - 4]
call fcn.004371ec
push esi
push dword [ebp + 0xc]
push esi
push esi
push 4
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 8]
push eax
movzx eax, word [0x4afb70]
or eax, 0xf003f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x45bf17
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0045be0e
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x45bf17
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.00431c4c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x45be65
pop edi
lea ecx, [ebp - 0x18]
call fcn.00431c4c
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x46408e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
push ebx
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x4640b0
mov esi, eax
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x2ec], ebx
mov ecx, 0xba
lea edi, [ebp - 0x2e8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2d4], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x24c]
push eax
mov byte [ebp - 0x278], 0x40
mov dword [ebp - 0x250], edi
mov dword [ebp - 0xbc], ebx
call fcn.00410b58
mov word [ebp + esi*2 - 0x24c], bx
add esp, 0xc
mov esi, 0x4b06b4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4afb74
push 0x10000
lea eax, [ebp - 0x2ec]
push eax
push 0x46377e
push 0x20000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp + 0x18], eax
je 0x464187
mov dword [ebp + 0x1c], 0x270f
cmp dword [ebp - 0x250], edi
jne 0x46417e
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp + 0x1c]
jns 0x464158
jmp 0x464176
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x250], edi
je 0x46416e
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edi, byte [ebp - 0xbc]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4673cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4b069c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.0044c82e
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x467411
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x467411
push 0
push edi
inc ebx
call ebp
push dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x467425
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x46743d
push 1
push edi
call fcn.0048205f
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x47682e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
adc ecx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x20]
push eax
push ecx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x47687c
push 0
push dword [ebp + 0x18]
and esi, 4
push dword [ebp + 0x1c]
or esi, 8
shr esi, 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x476e30
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x476e5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x476f47
push esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x476e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x476f46
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x476eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x476e7a
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00437072
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push dword [ebp - 8]
call esi
mov esi, dword [ebp + 0x18]
push 0x49895e
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x476f28
movzx eax, byte [esi + ebx]
push eax
push str._02X
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add dword [ebp - 0x10], 2
add esp, 0xc
inc esi
cmp esi, dword [ebp - 4]
jb 0x476f08
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x18]
call fcn.00431c4c
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4774ac
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [esp + 0x10]
mov esi, eax
lea eax, [esi + 2]
push eax
mov ecx, edi
call fcn.004371c5
mov eax, dword [edi]
and word [eax], 0
mov edi, dword [edi]
inc esi
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
ret
Function at 0x4782c9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x478326
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x47831d
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x479b7d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x40
push edi
jae 0x479b90
xor eax, eax
jmp 0x479d46
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x479ba2
xor eax, eax
jmp 0x479d45
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x479d42
add esi, ebx
cmp dword [esi], 0x4550
jne 0x479d42
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x479d42
test al, 2
je 0x479d42
cmp word [esi + 0x14], 0xe0
jne 0x479d42
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004769be
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x479d42
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x479c2a
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x479c24
cmp esi, dword [ebp + 0xc]
jae 0x479c24
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x479c16
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x479c65
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x479d42
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.00410b0e
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x38]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x54]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
add esp, 0xc
mov esi, eax
imul esi, ebx
add esi, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
mov dword [ebp - 4], eax
jbe 0x479d3d
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x479cc8
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x479d0c
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.00410b0e
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp dword [eax + 8], ecx
jae 0x479d0c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
lea eax, [ecx + eax - 1]
xor edx, edx
div dword [ebp - 8]
imul eax, dword [ebp - 8]
jmp 0x479d22
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [ebp + 0xc], 0x28
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x479cb8
xor eax, eax
inc eax
jmp 0x479d44
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x47b961
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x7c]
push 0x132f
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0x70]
mov edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x47ba1b
test edi, edi
jl 0x47ba1b
cmp edi, dword [esi + 0x78]
jge 0x47ba1b
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x47b9b3
push 0
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x7c], edi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x47b9ca
push 5
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
je 0x47b9de
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x49f418
lea ecx, [ebp - 4]
call fcn.004419bc
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.004371ec
push str..Select
lea ecx, [ebp - 4]
call fcn.004371ec
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.004394ef
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00431c4c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47c812
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x47c83d
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x18]
call edi
push 5
push dword [esi + 0x18]
call edi
pop edi
pop esi
ret
Function at 0x482b12
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x482b30
cmp ax, 0x42
je 0x482b30
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x482cb5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret
Function at 0x4864ae
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4a2b80
call fcn.004843c8
mov edi, 0x94
mov eax, edi
call fcn.00483780
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4b0c24], ecx
mov eax, dword [esi + 4]
mov dword [0x4b0c30], eax
mov edx, dword [esi + 8]
mov dword [0x4b0c34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4b0c28], esi
cmp ecx, 2
je 0x48650e
or esi, 0x8000
mov dword [0x4b0c28], esi
shl eax, 8
add eax, edx
mov dword [0x4b0c2c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x486549
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x486549
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x486561
cmp eax, 0x20b
je 0x48654e
mov dword [ebp - 0x1c], esi
jmp 0x486575
cmp dword [ecx + 0x84], 0xe
jbe 0x486549
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x48656f
cmp dword [ecx + 0x74], 0xe
jbe 0x486549
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0048a9a7
pop ecx
test eax, eax
jne 0x486589
push 0x1c
call fcn.0048648a
pop ecx
call fcn.00488fc8
test eax, eax
jne 0x48659a
push 0x10
call fcn.0048648a
pop ecx
call fcn.00490b75
mov dword [ebp - 4], esi
call fcn.00487cf9
test eax, eax
jge 0x4865b3
push 0x1b
call fcn.00486465
pop ecx
call fcn.00490ad6
mov dword [0x4b15d0], eax
call fcn.0049096c
mov dword [0x4b0c18], eax
call fcn.004908d6
test eax, eax
jge 0x4865d8
push 8
call fcn.00486465
pop ecx
call fcn.004906a3
test eax, eax
jge 0x4865e9
push 9
call fcn.00486465
pop ecx
push 1
call fcn.0048688e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4865ff
push eax
call fcn.00486465
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0049065d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x486620
movzx eax, word [ebp - 0x40]
jmp 0x486623
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040b8e9
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x486641
push edi
call fcn.004869bb
call fcn.004869dd
jmp 0x486673
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00484403
ret