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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
xor edi, edi
cmp ebx, esi
mov dword [ebp - 4], esi
jne 0x44fdff
cmp dword [ebp + 0xc], esi
jne 0x44fd80
mov eax, 0x80070057
jmp 0x44fef5
cmp dword [0x4c93ec], esi
jle 0x44fef3
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 ebx, eax
cmp ebx, 0xffffffff
jne 0x44fdc1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, esi
jne 0x44fef5
jmp 0x44ff1c
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4c93ec]
push dword [0x4c9be8]
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4c9be8]
cmp eax, esi
mov dword [0x4c93ec], esi
je 0x44fdf4
call fcn.00439c48
mov dword [0x4c9be8], esi
jmp 0x44fef3
cmp dword [ebp + 0x10], esi
push esi
je 0x44ff0e
push dword [ebp + 0x10]
call fcn.004146ff
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x44ff1c
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub edi, dword [ebx]
sub eax, dword [ebx + 4]
cmp edi, esi
mov dword [ebp - 0x10], eax
jle 0x44fefa
cmp eax, esi
jle 0x44fefa
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [0x4c8e90]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x4c8e94]
cmp edi, dword [ebp - 8]
jne 0x44fe6d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x44fefa
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0043f69c
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x44ff1c
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], esi
call dword [0x4c8e6c]
push 2
push dword [ebp + 8]
call dword [0x4c8ea0]
push dword [ebp - 0x10]
push edi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x4c8e70]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0044fa0f
add esp, 0xc
cmp ebx, esi
mov edi, eax
je 0x44fee5
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 4], esi
je 0x44fef3
push dword [ebp - 4]
call dword [0x4c8e68]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push 1
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0044fa0f
add esp, 0xc
mov edi, eax
jmp 0x44fee5
push ebx
call fcn.0043f69c
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
jne 0x44fecb
xor eax, eax
inc eax
jmp 0x44fef5
Function at 0x461e1f
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00441f45
lea eax, [ebp + 8]
push eax
call fcn.00439c95
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.0043fdb8
push 0x14
lea ecx, [ebp - 4]
call fcn.0043fdb8
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4b8140
mov dword [ebp - 8], edi
call fcn.00441bc4
add esp, 0xc
push 1
push 0x2c
pop esi
movzx ebx, al
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00451235
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004429d8
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x461eb3
add dword [ebp + 8], 2
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00451235
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004429d8
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x461edc
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 8]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00451235
push eax
call fcn.00442c25
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x461eee
mov esi, 0x80070057
jmp 0x461fc5
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x461eff
cmp ebx, edi
jne 0x461eff
cmp word [eax], di
je 0x461ee4
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.0043fddf
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x10], edi
call fcn.00411f27
push dword [ebp - 0xc]
mov edi, eax
call fcn.00411f27
pop ecx
pop ecx
xor ecx, ecx
cmp ebx, ecx
mov dword [ebp + 8], eax
jne 0x461f4c
cmp dword [ebp - 8], ecx
jne 0x461f4c
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateHardLinkW]
jmp 0x461f6f
cmp dword [ebp - 8], 2
je 0x461f77
cmp ebx, ecx
jne 0x461f77
push edi
call fcn.00499edd
neg eax
sbb eax, eax
neg eax
push eax
push edi
push dword [ebp + 8]
call fcn.0043ddc5
add esp, 0x10
test eax, eax
je 0x461fbd
xor eax, eax
jmp 0x461fc3
cmp word [edi], cx
jne 0x461f85
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x461f6f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.004404f6
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.0043dcc1
add esp, 0x18
jmp 0x461f6f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.00439cfd
lea ecx, [ebp - 0xc]
call fcn.00439cfd
lea ecx, [ebp - 0x1c]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x461fe6
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 0x46210f
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0043fdb8
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x462107
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 0x4620f7
cmp word [edi], si
je 0x4620f7
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.00448399
push 0x4af5ac
lea ecx, [ebp - 4]
call fcn.0043fe06
push edi
lea ecx, [ebp - 4]
call fcn.0043fe06
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 [0x4c8bcc]
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 0x4620ef
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00461fe6
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x4620ef
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.00439cfd
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x46203d
pop edi
lea ecx, [ebp - 0x18]
call fcn.00439cfd
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x46c433
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, eax
and eax, 2
and ebx, 1
mov dword [ebp + 0x24], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x46c463
mov esi, eax
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x24], edx
mov ecx, 0xba
lea edi, [ebp - 0x2f8]
mov dword [ebp - 0x2fc], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 0x288], 0x40
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xcc], edx
je 0x46c4b7
mov dword [ebp - 0xcc], 0x40000000
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2e4], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x25c]
push eax
call fcn.00413203
and word [ebp + esi*2 - 0x25c], 0
add esp, 0xc
mov esi, 0x4c97dc
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x4c8bd0
push 0x10000
lea eax, [ebp - 0x2fc]
push eax
push 0x46ba56
push 0x20000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x46c547
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp + 0x24], 0x270f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
jne 0x46c547
push 0
call edi
dec dword [ebp + 0x24]
jns 0x46c522
jmp 0x46c53c
push 1
call edi
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
je 0x46c538
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
je 0x46c57d
cmp esi, edi
je 0x46c588
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x14]
mov ecx, 0x4c9048
call fcn.00414c28
cmp esi, edi
je 0x46c588
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
movzx eax, byte [ebp - 0xcc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f969
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4c9c14
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.0045024b
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x46f9ae
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46f9ae
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 0x46f9c2
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x46f9da
push 1
push edi
call fcn.00499062
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x48bd3b
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.0043fddf
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 0x48cb82
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 0x48cbdf
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x48cbd6
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 0x48e42b
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 0x48e43e
xor eax, eax
jmp 0x48e5f4
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x48e450
xor eax, eax
jmp 0x48e5f3
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x48e5f0
add esi, ebx
cmp dword [esi], 0x4550
jne 0x48e5f0
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x48e5f0
test al, 2
je 0x48e5f0
cmp word [esi + 0x14], 0xe0
jne 0x48e5f0
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0048b0ac
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x48e5f0
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x48e4d8
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x48e4d2
cmp esi, dword [ebp + 0xc]
jae 0x48e4d2
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x48e4c4
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 0x48e513
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x48e5f0
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.004131b9
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 0x48e5eb
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 0x48e576
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x48e5ba
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.004131b9
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 0x48e5ba
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 0x48e5d0
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 0x48e566
xor eax, eax
inc eax
jmp 0x48e5f2
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x490210
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 0x4902ca
test edi, edi
jl 0x4902ca
cmp edi, dword [esi + 0x78]
jge 0x4902ca
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x490262
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 0x490279
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 0x49028d
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x4b7050
lea ecx, [ebp - 4]
call fcn.00448399
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.0043fe06
push str..Select
lea ecx, [ebp - 4]
call fcn.0043fe06
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.00442235
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00439cfd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x492173
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 0x49219e
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 0x499e9a
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 0x499eb8
cmp ax, 0x42
je 0x499eb8
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 0x49a04c
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 0x49d85a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4bb880
call fcn.0049b574
mov edi, 0x94
mov eax, edi
call fcn.0049abc0
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 [0x4c9e14], ecx
mov eax, dword [esi + 4]
mov dword [0x4c9e20], eax
mov edx, dword [esi + 8]
mov dword [0x4c9e24], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4c9e18], esi
cmp ecx, 2
je 0x49d8ba
or esi, 0x8000
mov dword [0x4c9e18], esi
shl eax, 8
add eax, edx
mov dword [0x4c9e1c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x49d8f5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49d8f5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x49d90d
cmp eax, 0x20b
je 0x49d8fa
mov dword [ebp - 0x1c], esi
jmp 0x49d921
cmp dword [ecx + 0x84], 0xe
jbe 0x49d8f5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x49d91b
cmp dword [ecx + 0x74], 0xe
jbe 0x49d8f5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004a100a
pop ecx
test eax, eax
jne 0x49d935
push 0x1c
call fcn.0049d836
pop ecx
call fcn.0049f62b
test eax, eax
jne 0x49d946
push 0x10
call fcn.0049d836
pop ecx
call fcn.004a7553
mov dword [ebp - 4], esi
call fcn.004a7355
test eax, eax
jge 0x49d95f
push 0x1b
call fcn.0049d811
pop ecx
call fcn.004a72b6
mov dword [0x4cb7d4], eax
call fcn.004a714c
mov dword [0x4c9e08], eax
call fcn.004a70b6
test eax, eax
jge 0x49d984
push 8
call fcn.0049d811
pop ecx
call fcn.004a6e83
test eax, eax
jge 0x49d995
push 9
call fcn.0049d811
pop ecx
push 1
call fcn.0049dc3a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x49d9ab
push eax
call fcn.0049d811
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
call fcn.004a6e3d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x49d9cc
movzx eax, word [ebp - 0x40]
jmp 0x49d9cf
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004087b7
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x49d9ed
push edi
call fcn.0049dd67
call fcn.0049dd89
jmp 0x49da1f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0049b5af
ret
Function at 0x49dca4
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4bb8b8
call fcn.0049b574
push 8
call fcn.004a11ae
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4c9e54], esi
jne 0x49dcd8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x4c9e50], esi
mov al, byte [ebp + 0x10]
mov byte [0x4c9e4c], al
cmp dword [ebp + 0xc], edi
jne 0x49dd22
cmp dword [0x4cb7cc], edi
je 0x49dd12
mov eax, dword [0x4cb7c8]
sub eax, 4
mov dword [0x4cb7c8], eax
cmp eax, dword [0x4cb7cc]
jb 0x49dd12
mov eax, dword [eax]
cmp eax, edi
je 0x49dcf3
call eax
jmp 0x49dcf3
push 0x4c70d8
mov eax, 0x4c70d0
call fcn.0049dc22
pop ecx
push 0x4c70e4
mov eax, 0x4c70dc
call fcn.0049dc22
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x49dd53
cmp dword [ebp + 0x10], edi
jne 0x49dd61
mov dword [0x4c9e54], esi
push dword [ebp + 8]
call fcn.0049dbe0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x49dd60
push 8
call fcn.004a10f9
pop ecx
ret
call fcn.0049b5af
ret
Function at 0x49e9b0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4c830c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x49e9ec
xor eax, eax
jmp 0x49eb56
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4ca680]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x49ea2a
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.004a7a07
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x49eac4
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x49eb27
jmp 0x49ea4e
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x49ea89
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x49ea7a
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x49ea5a
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x49eae8
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x49eaf1
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x49ea4c
jmp 0x49eaf1
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x49eae8
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x49eaf1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x49eb51
cmp dword [ebp - 0x68], eax
je 0x49eb24
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x49eb19
call fcn.0049e92b
mov dword [eax], 9
call fcn.0049e934
mov dword [eax], esi
jmp 0x49eb4c
push dword [ebp - 0x68]
call fcn.0049e93d
pop ecx
jmp 0x49eb4c
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x49eb39
cmp byte [edi], 0x1a
jne 0x49eb39
xor eax, eax
jmp 0x49eb54
call fcn.0049e92b
mov dword [eax], 0x1c
call fcn.0049e934
and dword [eax], 0
or eax, 0xffffffff
jmp 0x49eb54
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004a795e
add ebp, 0x3a4
leave
ret