joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e25d
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.0043f504
lea eax, [ebp + 8]
push eax
call fcn.004379a9
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.0043d49b
push 0x14
lea ecx, [ebp - 4]
call fcn.0043d49b
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4ad34c
mov dword [ebp - 8], edi
call fcn.0043f1bd
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.0044e524
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0043fe29
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x45e2f5
add dword [ebp + 8], 2
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044e524
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0043fe29
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x45e31d
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.0044e524
push eax
call fcn.00440076
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x45e32f
mov ebx, 0x80070057
jmp 0x45e42d
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x45e341
cmp dword [ebp - 0x10], edi
jne 0x45e341
cmp word [eax], di
je 0x45e325
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.0043d4c2
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.0041113a
push dword [ebp - 0xc]
mov edi, eax
call fcn.0041113a
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
jne 0x45e38f
cmp dword [ebp - 8], ecx
jne 0x45e38f
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateHardLinkW]
jmp 0x45e3d1
cmp dword [ebp - 8], 2
je 0x45e3d9
cmp dword [ebp - 0x10], ecx
jne 0x45e3d9
push edi
call fcn.0048ef50
push 0
mov esi, eax
push 0x4be2e4
neg esi
sbb esi, esi
push 0x4ad33c
push str.CreateSymbolicLinkW
neg esi
call fcn.00438bfe
mov eax, dword [0x4be2e4]
add esp, 0x14
test eax, eax
je 0x45e42d
push esi
push edi
push dword [ebp + 8]
call eax
test eax, eax
je 0x45e425
xor ebx, ebx
jmp 0x45e42d
cmp word [edi], cx
jne 0x45e3e7
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x45e41d
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.0043dbbd
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.0043b5ce
add esp, 0x18
test eax, eax
je 0x45e425
xor eax, eax
jmp 0x45e42b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.00437960
lea ecx, [ebp - 0xc]
call fcn.00437960
lea ecx, [ebp - 0x20]
call fcn.00437960
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x45e44e
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 0x45e577
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0043d49b
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x45e56f
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 0x45e55f
cmp word [edi], si
je 0x45e55f
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004457e4
push 0x4a44ac
lea ecx, [ebp - 4]
call fcn.0043d4e9
push edi
lea ecx, [ebp - 4]
call fcn.0043d4e9
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 [0x4bdbc8]
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 0x45e557
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0045e44e
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x45e557
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.00437960
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x45e4a5
pop edi
lea ecx, [ebp - 0x18]
call fcn.00437960
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4686ff
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 0x46872f
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 0x468783
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.004125f9
and word [ebp + esi*2 - 0x25c], 0
add esp, 0xc
mov esi, 0x4be710
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x4bdbcc
push 0x10000
lea eax, [ebp - 0x2fc]
push eax
push 0x467d32
push 0x20000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x468813
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp + 0x24], 0x270f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
jne 0x468813
push 0
call edi
dec dword [ebp + 0x24]
jns 0x4687ee
jmp 0x468808
push 1
call edi
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
je 0x468804
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 0x468849
cmp esi, edi
je 0x468854
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x14]
mov ecx, 0x4bdfa0
call fcn.00413857
cmp esi, edi
je 0x468854
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
movzx eax, byte [ebp - 0xcc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46c695
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4beb4c
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.0044d5df
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x46c6da
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46c6da
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 0x46c6ee
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x46c706
push 1
push edi
call fcn.0048e1fa
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x482f5d
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 0x482f88
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x483074
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 0x482fb8
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 0x483073
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 0x482fdf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x482fa7
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.0043d373
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 0x4a450a
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x483055
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 0x483035
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.00437960
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4835d9
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.0043d4c2
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 0x484422
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 0x48447f
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x484476
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 0x485cca
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 0x485cdd
xor eax, eax
jmp 0x485e93
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x485cef
xor eax, eax
jmp 0x485e92
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x485e8f
add esi, ebx
cmp dword [esi], 0x4550
jne 0x485e8f
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x485e8f
test al, 2
je 0x485e8f
cmp word [esi + 0x14], 0xe0
jne 0x485e8f
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00482aeb
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x485e8f
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x485d77
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x485d71
cmp esi, dword [ebp + 0xc]
jae 0x485d71
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x485d63
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 0x485db2
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x485e8f
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.004125af
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 0x485e8a
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 0x485e15
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x485e59
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.004125af
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 0x485e59
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 0x485e6f
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 0x485e05
xor eax, eax
inc eax
jmp 0x485e91
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x487ad5
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 0x487b8f
test edi, edi
jl 0x487b8f
cmp edi, dword [esi + 0x78]
jge 0x487b8f
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x487b27
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 0x487b3e
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 0x487b52
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x4ac460
lea ecx, [ebp - 4]
call fcn.004457e4
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.0043d4e9
push str..Select
lea ecx, [ebp - 4]
call fcn.0043d4e9
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.0043f7f4
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00437960
pop edi
pop esi
pop ebx
leave
ret

Function at 0x488979
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 0x4889a4
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 0x48ef0d
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 0x48ef2b
cmp ax, 0x42
je 0x48ef2b
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 0x48f0bf
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 0x4928d6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4b04a0
call fcn.00490764
mov edi, 0x94
mov eax, edi
call fcn.0048fb80
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 [0x4bed3c], ecx
mov eax, dword [esi + 4]
mov dword [0x4bed48], eax
mov edx, dword [esi + 8]
mov dword [0x4bed4c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4bed40], esi
cmp ecx, 2
je 0x492936
or esi, 0x8000
mov dword [0x4bed40], esi
shl eax, 8
add eax, edx
mov dword [0x4bed44], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x492971
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x492971
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x492989
cmp eax, 0x20b
je 0x492976
mov dword [ebp - 0x1c], esi
jmp 0x49299d
cmp dword [ecx + 0x84], 0xe
jbe 0x492971
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x492997
cmp dword [ecx + 0x74], 0xe
jbe 0x492971
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00496dc7
pop ecx
test eax, eax
jne 0x4929b1
push 0x1c
call fcn.004928b2
pop ecx
call fcn.004953e8
test eax, eax
jne 0x4929c2
push 0x10
call fcn.004928b2
pop ecx
call fcn.0049cf95
mov dword [ebp - 4], esi
call fcn.00494121
test eax, eax
jge 0x4929db
push 0x1b
call fcn.0049288d
pop ecx
call fcn.0049cef6
mov dword [0x4bf6f0], eax
call fcn.0049cd8c
mov dword [0x4bed30], eax
call fcn.0049ccf6
test eax, eax
jge 0x492a00
push 8
call fcn.0049288d
pop ecx
call fcn.0049cac3
test eax, eax
jge 0x492a11
push 9
call fcn.0049288d
pop ecx
push 1
call fcn.00492cb6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x492a27
push eax
call fcn.0049288d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
call fcn.0049ca7d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x492a48
movzx eax, word [ebp - 0x40]
jmp 0x492a4b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040805f
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x492a69
push edi
call fcn.00492de3
call fcn.00492e05
jmp 0x492a9b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0049079f
ret
Function at 0x492d20
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4b04d8
call fcn.00490764
push 8
call fcn.0049474d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4bed7c], esi
jne 0x492d54
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x4bed78], esi
mov al, byte [ebp + 0x10]
mov byte [0x4bed74], al
cmp dword [ebp + 0xc], edi
jne 0x492d9e
cmp dword [0x4bf6e8], edi
je 0x492d8e
mov eax, dword [0x4bf6e4]
sub eax, 4
mov dword [0x4bf6e4], eax
cmp eax, dword [0x4bf6e8]
jb 0x492d8e
mov eax, dword [eax]
cmp eax, edi
je 0x492d6f
call eax
jmp 0x492d6f
push 0x4bc0d8
mov eax, 0x4bc0d0
call fcn.00492c9e
pop ecx
push 0x4bc0e4
mov eax, 0x4bc0dc
call fcn.00492c9e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x492dcf
cmp dword [ebp + 0x10], edi
jne 0x492ddd
mov dword [0x4bed7c], esi
push dword [ebp + 8]
call fcn.00492c5c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x492ddc
push 8
call fcn.00494698
pop ecx
ret
call fcn.0049079f
ret
Function at 0x494985
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4bd33c]
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 0x4949c1
xor eax, eax
jmp 0x494b2b
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 + 0x4bf5e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4949ff
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0049d629
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x494a99
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x494afc
jmp 0x494a23
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 0x494a5e
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x494a4f
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 0x494a2f
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 0x494abd
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x494ac6
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x494a21
jmp 0x494ac6
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 0x494abd
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x494ac6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x494b26
cmp dword [ebp - 0x68], eax
je 0x494af9
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x494aee
call fcn.00494900
mov dword [eax], 9
call fcn.00494909
mov dword [eax], esi
jmp 0x494b21
push dword [ebp - 0x68]
call fcn.00494912
pop ecx
jmp 0x494b21
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x494b0e
cmp byte [edi], 0x1a
jne 0x494b0e
xor eax, eax
jmp 0x494b29
call fcn.00494900
mov dword [eax], 0x1c
call fcn.00494909
and dword [eax], 0
or eax, 0xffffffff
jmp 0x494b29
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0049d3a0
add ebp, 0x3a4
leave
ret