joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443a89
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 0x443acc
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x443ac5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0043cd64
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 0x44536e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, esi
call fcn.0043bd5b
and word [ebp - 0xc], 0
and word [ebp - 2], 0
mov ebx, eax
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 0x4453ce
cmp ebx, 2
je 0x4453de
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4a5f08
call fcn.00441f73
pop ebx
leave
ret
Function at 0x455086
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 0x4551af
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00432cd5
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x4551a7
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 0x455197
cmp word [edi], si
je 0x455197
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0043ccfc
push 0x48ec68
lea ecx, [ebp - 4]
call fcn.00432d25
push edi
lea ecx, [ebp - 4]
call fcn.00432d25
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 [0x4a5b68]
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 0x45518f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00455086
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x45518f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.0042dd2d
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x4550dd
pop edi
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x45c485
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
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 0x45c4a7
mov esi, eax
and dword [ebp - 0x2e4], 0
xor eax, eax
mov ecx, 0xb8
lea edi, [ebp - 0x2e0]
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 - 0x2cc], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 0x274], 0x40
mov dword [ebp - 0x24c], edi
call fcn.0047a010
and word [ebp + esi*2 - 0x248], 0
add esp, 0xc
mov ebx, 0x4a6630
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4a5b6c
push 0x10000
lea eax, [ebp - 0x2e4]
push eax
push 0x45bb69
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x45c578
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x1c], 0x270f
cmp dword [ebp - 0x24c], edi
jne 0x45c56f
push 0
call esi
dec dword [ebp + 0x1c]
jns 0x45c550
jmp 0x45c567
push 1
call esi
cmp dword [ebp - 0x24c], edi
je 0x45c563
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 0x46df1f
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 0x46df6d
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 0x46e4a3
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 0x46e4ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46e5ba
push esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x46e4fe
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 0x46e5b9
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 0x46e525
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x46e4ed
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.00432b5e
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 + 0x14]
push 0x48f6be
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x46e59b
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 0x46e57b
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.0042dd2d
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x46e5f8
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4a6a58], 0
jne 0x46e606
call fcn.0046e5bd
mov ecx, dword [esp + 8]
push esi
or esi, 0xffffffff
test ecx, ecx
je 0x46e635
mov eax, dword [esp + 8]
push edi
movzx edi, byte [eax]
mov edx, esi
and edx, 0xff
xor edx, edi
mov edi, dword [0x4a6a58]
shr esi, 8
xor esi, dword [edi + edx*4]
inc eax
dec ecx
jne 0x46e617
pop edi
cmp dword [esp + 0x10], 0
not esi
je 0x46e651
push esi
push str._08X
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x46ead8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx edx, word [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
and eax, 0x1000000
test edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x1c], edx
jne 0x46eb0d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
leave
ret
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov bl, dl
add eax, esi
xor bl, 0xa
cmp esi, eax
push edi
mov dword [ebp - 8], eax
jae 0x46eb8c
mov edi, dword [ebp + 0x14]
jmp 0x46eb30
mov edx, dword [ebp + 0x1c]
mov ecx, esi
jmp 0x46eb3b
mov al, byte [esi]
inc esi
cmp bl, al
je 0x46eb40
cmp esi, dword [ebp - 8]
jb 0x46eb34
cmp ecx, esi
mov eax, ecx
jae 0x46eb4d
xor byte [eax], dl
inc eax
cmp eax, esi
jb 0x46eb46
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 4]
push eax
push edi
mov eax, esi
sub eax, ecx
push eax
push ecx
push 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x46eb74
cmp dword [ebp - 0xc], 0
je 0x46eb87
xor eax, eax
jmp 0x46eb8f
add dword [ebp - 4], eax
dec eax
js 0x46eb87
inc eax
mov cx, word [ebp + 0x1c]
xor word [edi], cx
inc edi
inc edi
dec eax
jne 0x46eb7b
cmp esi, dword [ebp - 8]
jb 0x46eb2d
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46ebc1
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.00432cfe
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 0x470fd0
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 0x470fe3
xor eax, eax
jmp 0x471199
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x470ff5
xor eax, eax
jmp 0x471198
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x471195
add esi, ebx
cmp dword [esi], 0x4550
jne 0x471195
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x471195
test al, 2
je 0x471195
cmp word [esi + 0x14], 0xe0
jne 0x471195
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0046e031
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x471195
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x47107d
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x471077
cmp esi, dword [ebp + 0xc]
jae 0x471077
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x471069
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 0x4710b8
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x471195
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.0047a350
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 0x471190
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 0x47111b
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47115f
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.0047a350
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 0x47115f
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 0x471175
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 0x47110b
xor eax, eax
inc eax
jmp 0x471197
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x472a06
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 0x472ac0
test edi, edi
jl 0x472ac0
cmp edi, dword [esi + 0x78]
jge 0x472ac0
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x472a58
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 0x472a6f
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 0x472a83
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x4957c8
lea ecx, [ebp - 4]
call fcn.0043ccfc
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.00432d25
push str..Select
lea ecx, [ebp - 4]
call fcn.00432d25
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.00434ea0
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0042dd2d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47386d
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 0x473898
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 0x4795c5
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 0x4795e3
cmp ax, 0x42
je 0x4795e3
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 0x479768
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 0x47ceba
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x498850
call fcn.0047b114
mov edi, 0x94
mov eax, edi
call fcn.0047a810
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 [0x4a6bb8], ecx
mov eax, dword [esi + 4]
mov dword [0x4a6bc4], eax
mov edx, dword [esi + 8]
mov dword [0x4a6bc8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4a6bbc], esi
cmp ecx, 2
je 0x47cf1a
or esi, 0x8000
mov dword [0x4a6bbc], esi
shl eax, 8
add eax, edx
mov dword [0x4a6bc0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x47cf55
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47cf55
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x47cf6d
cmp eax, 0x20b
je 0x47cf5a
mov dword [ebp - 0x1c], esi
jmp 0x47cf81
cmp dword [ecx + 0x84], 0xe
jbe 0x47cf55
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x47cf7b
cmp dword [ecx + 0x74], 0xe
jbe 0x47cf55
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00481379
pop ecx
test eax, eax
jne 0x47cf95
push 0x1c
call fcn.0047ce96
pop ecx
call fcn.0047fa3a
test eax, eax
jne 0x47cfa6
push 0x10
call fcn.0047ce96
pop ecx
call fcn.00487484
mov dword [ebp - 4], esi
call fcn.0047e782
test eax, eax
jge 0x47cfbf
push 0x1b
call fcn.0047ce71
pop ecx
call fcn.004873e5
mov dword [0x4a7570], eax
call fcn.0048727b
mov dword [0x4a6bac], eax
call fcn.004871e5
test eax, eax
jge 0x47cfe4
push 8
call fcn.0047ce71
pop ecx
call fcn.00486fb2
test eax, eax
jge 0x47cff5
push 9
call fcn.0047ce71
pop ecx
push 1
call fcn.0047d295
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x47d00b
push eax
call fcn.0047ce71
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00486f6c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x47d02c
movzx eax, word [ebp - 0x40]
jmp 0x47d02f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040ac5e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x47d04d
push edi
call fcn.0047d3c2
call fcn.0047d3e4
jmp 0x47d07f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0047b14f
ret
Function at 0x47d2ff
Capabilities:
Terminate process

Disassembly:
push 8
push 0x498888
call fcn.0047b114
push 8
call fcn.0047ed92
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4a6bf8], esi
jne 0x47d333
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4a6bf4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4a6bf0], al
cmp dword [ebp + 0xc], edi
jne 0x47d37d
cmp dword [0x4a7568], edi
je 0x47d36d
mov eax, dword [0x4a7564]
sub eax, 4
mov dword [0x4a7564], eax
cmp eax, dword [0x4a7568]
jb 0x47d36d
mov eax, dword [eax]
cmp eax, edi
je 0x47d34e
call eax
jmp 0x47d34e
push 0x4a40bc
mov eax, 0x4a40b4
call fcn.0047d27d
pop ecx
push 0x4a40c8
mov eax, 0x4a40c0
call fcn.0047d27d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x47d3ae
cmp dword [ebp + 0x10], edi
jne 0x47d3bc
mov dword [0x4a6bf8], esi
push dword [ebp + 8]
call fcn.0047d23b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x47d3bb
push 8
call fcn.0047ecdd
pop ecx
ret
call fcn.0047b14f
ret
Function at 0x47efca
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4a530c]
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 0x47effb
xor eax, eax
jmp 0x47f184
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 + 0x4a7460]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x47f037
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00487b14
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x47f112
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x47f150
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 0x47f09b
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x47f08c
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 0x47f06c
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 0x47f0db
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x47f0e4
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x47f05d
jmp 0x47f0e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x47f17f
cmp dword [ebp - 0x6c], edi
je 0x47f150
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x47f145
call fcn.0047ef45
mov dword [eax], 9
call fcn.0047ef4e
mov dword [eax], esi
jmp 0x47f17a
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 0x47f13a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x47f0e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x47f0e6
push dword [ebp - 0x6c]
call fcn.0047ef57
pop ecx
jmp 0x47f17a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x47f168
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x47f168
xor eax, eax
jmp 0x47f182
call fcn.0047ef45
mov dword [eax], 0x1c
call fcn.0047ef4e
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x47f182
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0048788b
add ebp, 0x3a0
leave
ret