joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4478f0
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.00437de1
lea eax, [ebp + 8]
push eax
call fcn.00430961
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.00435d80
push 0x14
lea ecx, [ebp - 4]
call fcn.00435d80
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x49bdcc
mov dword [ebp - 8], edi
call fcn.00437ad0
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.0044212f
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004386e6
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x447988
add dword [ebp + 8], 2
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044212f
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004386e6
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x4479b0
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.0044212f
push eax
call fcn.00438933
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x4479c2
mov ebx, 0x80070057
jmp 0x447ac0
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x4479d4
cmp dword [ebp - 0x10], edi
jne 0x4479d4
cmp word [eax], di
je 0x4479b8
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.00435da9
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.0040eec0
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040eec0
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
jne 0x447a22
cmp dword [ebp - 8], ecx
jne 0x447a22
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateHardLinkW]
jmp 0x447a64
cmp dword [ebp - 8], 2
je 0x447a6c
cmp dword [ebp - 0x10], ecx
jne 0x447a6c
push edi
call fcn.0047f62b
push 0
mov esi, eax
push 0x4ad22c
neg esi
sbb esi, esi
push 0x49bdbc
push 0x49bda8
neg esi
call fcn.00431911
mov eax, dword [0x4ad22c]
add esp, 0x14
test eax, eax
je 0x447ac0
push esi
push edi
push dword [ebp + 8]
call eax
test eax, eax
je 0x447ab8
xor ebx, ebx
jmp 0x447ac0
cmp word [edi], cx
jne 0x447a7a
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x447ab0
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.0043649f
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.0043428a
add esp, 0x18
test eax, eax
je 0x447ab8
xor eax, eax
jmp 0x447abe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 0xc]
call fcn.0043092f
lea ecx, [ebp - 0x20]
call fcn.0043092f
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x447b9f
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 0x447be2
push esi
push 0xd
call dword [sym.imp.USER32.DLL_GetClipboardData]
mov esi, eax
test esi, esi
je 0x447bdb
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push eax
mov ecx, edi
call fcn.0044042b
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 0x4494d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0043f403
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x44954a
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 0x44953a
cmp ebx, 2
je 0x44954a
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4acf10
call fcn.00445e9c
pop ebx
leave
ret
Function at 0x45990f
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 0x459a38
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00435d80
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x459a30
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 0x459a20
cmp word [edi], si
je 0x459a20
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004403c3
push 0x494cb0
lea ecx, [ebp - 4]
call fcn.00435dd0
push edi
lea ecx, [ebp - 4]
call fcn.00435dd0
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 [0x4acb6c]
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 0x459a18
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0045990f
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x459a18
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.0043092f
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x459966
pop edi
lea ecx, [ebp - 0x18]
call fcn.0043092f
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4617fa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
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 0x46181c
mov esi, eax
and dword [ebp - 0x2e8], 0
xor eax, eax
mov ecx, 0xb9
lea edi, [ebp - 0x2e4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2d0], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 0x274], pe_nt_image_headers32
mov dword [ebp - 0x24c], edi
call fcn.004102e0
and word [ebp + esi*2 - 0x248], 0
add esp, 0xc
mov ebx, 0x4ad69c
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x4acb70
push 0x10000
lea eax, [ebp - 0x2e8]
push eax
push 0x460f02
push 0x20000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x4618ed
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp + 0x1c], 0x270f
cmp dword [ebp - 0x24c], edi
jne 0x4618e4
push 0
call esi
dec dword [ebp + 0x1c]
jns 0x4618c5
jmp 0x4618dc
push 1
call esi
cmp dword [ebp - 0x24c], edi
je 0x4618d8
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x473968
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 0x4739b6
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 0x473f6a
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 0x473f95
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x474081
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 0x473fc5
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 0x474080
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 0x473fec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_CryptDestroyHash]
jmp 0x473fb4
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.00435c56
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 0x4958ae
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x474062
movzx eax, byte [esi + ebx]
push eax
push 0x49bfc0
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 0x474042
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.0043092f
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4745dc
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.00435da9
mov eax, dword [edi]
and word [eax], 0
inc esi
push esi
push dword [edi]
push dword [esp + 0x14]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
pop edi
pop esi
ret
Function at 0x4753f8
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 0x475455
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.DLL_CheckTokenMembership
test eax, eax
jne 0x47544c
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 0x476cc7
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 0x476cda
xor eax, eax
jmp 0x476e90
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x476cec
xor eax, eax
jmp 0x476e8f
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x476e8c
add esi, ebx
cmp dword [esi], 0x4550
jne 0x476e8c
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x476e8c
test al, 2
je 0x476e8c
cmp word [esi + 0x14], 0xe0
jne 0x476e8c
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00473af8
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x476e8c
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x476d74
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x476d6e
cmp esi, dword [ebp + 0xc]
jae 0x476d6e
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x476d60
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x34]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push pe_nt_image_headers32
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x476daf
mov eax, dword [ebp + 0x1c]
push pe_nt_image_headers32
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x476e8c
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.00410296
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 0x476e87
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 0x476e12
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x476e56
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.00410296
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 0x476e56
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 0x476e6c
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 0x476e02
xor eax, eax
inc eax
jmp 0x476e8e
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x478a5b
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 0x478b15
test edi, edi
jl 0x478b15
cmp edi, dword [esi + 0x78]
jge 0x478b15
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x478aad
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 0x478ac4
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 0x478ad8
push ebx
call dword [sym.imp.USER32.DLL_SetFocus]
push 0x49bf04
lea ecx, [ebp - 4]
call fcn.004403c3
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.00435dd0
push 0x49d63c
lea ecx, [ebp - 4]
call fcn.00435dd0
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.004380d1
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0043092f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4798c2
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 0x4798ed
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 0x47f5e8
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 0x47f606
cmp ax, 0x42
je 0x47f606
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 0x47f78b
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 0x483383
Capabilities:
Terminate process

Disassembly:
push 8
push 0x49f588
call fcn.00480e58
push 8
call fcn.00484e16
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4adc40], esi
jne 0x4833b7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x4adc3c], esi
mov al, byte [ebp + 0x10]
mov byte [0x4adc38], al
cmp dword [ebp + 0xc], edi
jne 0x483401
cmp dword [0x4ae5a8], edi
je 0x4833f1
mov eax, dword [0x4ae5a4]
sub eax, 4
mov dword [0x4ae5a4], eax
cmp eax, dword [0x4ae5a8]
jb 0x4833f1
mov eax, dword [eax]
cmp eax, edi
je 0x4833d2
call eax
jmp 0x4833d2
push 0x4ab0c0
mov eax, 0x4ab0b8
call fcn.00483301
pop ecx
push 0x4ab0cc
mov eax, 0x4ab0c4
call fcn.00483301
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x483432
cmp dword [ebp + 0x10], edi
jne 0x483440
mov dword [0x4adc40], esi
push dword [ebp + 8]
call fcn.004832bf
call fcn.00480e93
ret
Function at 0x48504e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4ac30c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x48507f
xor eax, eax
jmp 0x485208
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4ae4a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4850bb
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0048db94
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x485196
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4851d4
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x48511f
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x485110
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4850f0
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x48515f
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x485168
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4850e1
jmp 0x48516a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x485203
cmp dword [ebp - 0x6c], edi
je 0x4851d4
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4851c9
call fcn.00484fc9
mov dword [eax], 9
call fcn.00484fd2
mov dword [eax], esi
jmp 0x4851fe
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4851be
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x48516a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x48516a
push dword [ebp - 0x6c]
call fcn.00484fdb
pop ecx
jmp 0x4851fe
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4851ec
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4851ec
xor eax, eax
jmp 0x485206
call fcn.00484fc9
mov dword [eax], 0x1c
call fcn.00484fd2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x485206
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0048d90b
add ebp, 0x3a0
leave
ret
Function at 0x486e19
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x486e47
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x486e4e
cmp ebx, dword [eax + 4]
jae 0x486e4e
xor eax, eax
jmp 0x48703e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x486e5f
xor eax, eax
inc eax
jmp 0x48703d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x486e75
cmp ecx, edx
jae 0x486fba
cmp dword [eax + 4], 0
je 0x486e7e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x486e66
cmp dword [ebp + 8], 0
je 0x486ea0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x486fba
cmp eax, esi
jae 0x486fba
mov eax, dword [0x4addc0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x486ec5
cmp dword [esi*4 + 0x4addc8], edi
je 0x486fbe
inc esi
cmp esi, eax
jl 0x486eb3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x48703a
cmp dword [ebp - 8], 0x1000000
jne 0x48703a
test byte [ebp - 0xc], 0xcc
je 0x486f43
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x48703a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x48703a
cmp word [eax + 0x18], 0x10b
jne 0x48703a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x48703a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x486f43
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x486f43
test byte [ecx + 0x27], 0x80
jne 0x486fba
push 1
push 0x4ade08
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x486e57
mov ecx, dword [0x4addc0]
test ecx, ecx
mov edx, ecx
jle 0x486f77
lea eax, [ecx*4 + 0x4addc4]
cmp dword [eax], edi
je 0x486f77
dec edx
sub eax, 4
test edx, edx
jg 0x486f6b
test edx, edx
jne 0x486fa8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x486f84
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x486f9c
lea eax, [edx*4 + 0x4addc8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x486f8a
cmp ecx, 0x10
jge 0x486fa8
inc ecx
mov dword [0x4addc0], ecx
push 0
push 0x4ade08
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x486e57
xor eax, eax
jmp 0x48703d
test esi, esi
jle 0x486e57
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4ade08
call ebx
test eax, eax
jne 0x486e57
cmp dword [esi*4 + 0x4addc8], edi
je 0x487014
mov eax, dword [0x4addc0]
lea esi, [eax - 1]
test esi, esi
jl 0x487002
cmp dword [esi*4 + 0x4addc8], edi
je 0x486ffe
dec esi
jns 0x486ff2
test esi, esi
jge 0x487012
cmp eax, 0x10
jge 0x48700d
inc eax
mov dword [0x4addc0], eax
lea esi, [eax - 1]
jmp 0x487014
je 0x48702c
xor ecx, ecx
test esi, esi
jl 0x48702c
lea eax, [ecx*4 + 0x4addc8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x48701a
push 0
push 0x4ade08
call ebx
jmp 0x486e57
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret