joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4563d1
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 0x4564fa
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00433c42
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x4564f2
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 0x4564e2
cmp word [edi], si
je 0x4564e2
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0043ddc9
push 0x48fc60
lea ecx, [ebp - 4]
call fcn.00433c92
push edi
lea ecx, [ebp - 4]
call fcn.00433c92
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 [0x4a6b68]
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 0x4564da
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.004563d1
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x4564da
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.0042eb98
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x456428
pop edi
lea ecx, [ebp - 0x18]
call fcn.0042eb98
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x45d87b
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 0x45d89d
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.0047b530
and word [ebp + esi*2 - 0x248], 0
add esp, 0xc
mov ebx, 0x4a7630
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4a6b6c
push 0x10000
lea eax, [ebp - 0x2e4]
push eax
push 0x45cf5d
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x45d96e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x1c], 0x270f
cmp dword [ebp - 0x24c], edi
jne 0x45d965
push 0
call esi
dec dword [ebp + 0x1c]
jns 0x45d946
jmp 0x45d95d
push 1
call esi
cmp dword [ebp - 0x24c], edi
je 0x45d959
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 0x46f42e
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 0x46f47c
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 0x46f9b2
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 0x46f9dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46fac9
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 0x46fa0d
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 0x46fac8
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 0x46fa34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x46f9fc
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.00433b18
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 0x4906be
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x46faaa
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 0x46fa8a
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.0042eb98
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x46fb07
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4a7a58], 0
jne 0x46fb15
call fcn.0046facc
mov ecx, dword [esp + 8]
push esi
or esi, 0xffffffff
test ecx, ecx
je 0x46fb44
mov eax, dword [esp + 8]
push edi
movzx edi, byte [eax]
mov edx, esi
and edx, 0xff
xor edx, edi
mov edi, dword [0x4a7a58]
shr esi, 8
xor esi, dword [edi + edx*4]
inc eax
dec ecx
jne 0x46fb26
pop edi
cmp dword [esp + 0x10], 0
not esi
je 0x46fb60
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 0x46ffe7
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 0x47001c
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 0x47009b
mov edi, dword [ebp + 0x14]
jmp 0x47003f
mov edx, dword [ebp + 0x1c]
mov ecx, esi
jmp 0x47004a
mov al, byte [esi]
inc esi
cmp bl, al
je 0x47004f
cmp esi, dword [ebp - 8]
jb 0x470043
cmp ecx, esi
mov eax, ecx
jae 0x47005c
xor byte [eax], dl
inc eax
cmp eax, esi
jb 0x470055
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 0x470083
cmp dword [ebp - 0xc], 0
je 0x470096
xor eax, eax
jmp 0x47009e
add dword [ebp - 4], eax
dec eax
js 0x470096
inc eax
mov cx, word [ebp + 0x1c]
xor word [edi], cx
inc edi
inc edi
dec eax
jne 0x47008a
cmp esi, dword [ebp - 8]
jb 0x47003c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4700d0
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.00433c6b
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 0x4724e4
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 0x4724f7
xor eax, eax
jmp 0x4726ad
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x472509
xor eax, eax
jmp 0x4726ac
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x4726a9
add esi, ebx
cmp dword [esi], 0x4550
jne 0x4726a9
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x4726a9
test al, 2
je 0x4726a9
cmp word [esi + 0x14], 0xe0
jne 0x4726a9
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0046f540
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x4726a9
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x472591
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x47258b
cmp esi, dword [ebp + 0xc]
jae 0x47258b
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x47257d
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 0x4725cc
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x4726a9
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.0047b870
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 0x4726a4
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 0x47262f
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x472673
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.0047b870
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 0x472673
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 0x472689
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 0x47261f
xor eax, eax
inc eax
jmp 0x4726ab
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x473f1a
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 0x473fd4
test edi, edi
jl 0x473fd4
cmp edi, dword [esi + 0x78]
jge 0x473fd4
mov eax, dword [ebx + eax*4]
mov eax, dword [eax]
test eax, eax
je 0x473f6c
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 0x473f83
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 0x473f97
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x4968e8
lea ecx, [ebp - 4]
call fcn.0043ddc9
push dword [esi + 0x4c]
lea ecx, [ebp - 4]
call fcn.00433c92
push str..Select
lea ecx, [ebp - 4]
call fcn.00433c92
push dword [ebp - 4]
inc edi
push edi
push dword [esi + 0x50]
call fcn.00435ee3
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0042eb98
pop edi
pop esi
pop ebx
leave
ret

Function at 0x474d81
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 0x474dac
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 0x47aaea
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 0x47ab08
cmp ax, 0x42
je 0x47ab08
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 0x47ac8d
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 0x47e3da
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x499960
call fcn.0047c634
mov edi, 0x94
mov eax, edi
call fcn.0047bd30
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 [0x4a7bb8], ecx
mov eax, dword [esi + 4]
mov dword [0x4a7bc4], eax
mov edx, dword [esi + 8]
mov dword [0x4a7bc8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4a7bbc], esi
cmp ecx, 2
je 0x47e43a
or esi, 0x8000
mov dword [0x4a7bbc], esi
shl eax, 8
add eax, edx
mov dword [0x4a7bc0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x47e475
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47e475
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x47e48d
cmp eax, 0x20b
je 0x47e47a
mov dword [ebp - 0x1c], esi
jmp 0x47e4a1
cmp dword [ecx + 0x84], 0xe
jbe 0x47e475
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x47e49b
cmp dword [ecx + 0x74], 0xe
jbe 0x47e475
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00482899
pop ecx
test eax, eax
jne 0x47e4b5
push 0x1c
call fcn.0047e3b6
pop ecx
call fcn.00480f5a
test eax, eax
jne 0x47e4c6
push 0x10
call fcn.0047e3b6
pop ecx
call fcn.004889a4
mov dword [ebp - 4], esi
call fcn.0047fca2
test eax, eax
jge 0x47e4df
push 0x1b
call fcn.0047e391
pop ecx
call fcn.00488905
mov dword [0x4a8570], eax
call fcn.0048879b
mov dword [0x4a7bac], eax
call fcn.00488705
test eax, eax
jge 0x47e504
push 8
call fcn.0047e391
pop ecx
call fcn.004884d2
test eax, eax
jge 0x47e515
push 9
call fcn.0047e391
pop ecx
push 1
call fcn.0047e7b5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x47e52b
push eax
call fcn.0047e391
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0048848c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x47e54c
movzx eax, word [ebp - 0x40]
jmp 0x47e54f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040ac80
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x47e56d
push edi
call fcn.0047e8e2
call fcn.0047e904
jmp 0x47e59f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0047c66f
ret
Function at 0x47e81f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x499998
call fcn.0047c634
push 8
call fcn.004802b2
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4a7bf8], esi
jne 0x47e853
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4a7bf4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4a7bf0], al
cmp dword [ebp + 0xc], edi
jne 0x47e89d
cmp dword [0x4a8568], edi
je 0x47e88d
mov eax, dword [0x4a8564]
sub eax, 4
mov dword [0x4a8564], eax
cmp eax, dword [0x4a8568]
jb 0x47e88d
mov eax, dword [eax]
cmp eax, edi
je 0x47e86e
call eax
jmp 0x47e86e
push 0x4a50bc
mov eax, 0x4a50b4
call fcn.0047e79d
pop ecx
push 0x4a50c8
mov eax, 0x4a50c0
call fcn.0047e79d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x47e8ce
cmp dword [ebp + 0x10], edi
jne 0x47e8dc
mov dword [0x4a7bf8], esi
push dword [ebp + 8]
call fcn.0047e75b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x47e8db
push 8
call fcn.004801fd
pop ecx
ret
call fcn.0047c66f
ret
Function at 0x4804ea
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4a630c]
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 0x48051b
xor eax, eax
jmp 0x4806a4
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 + 0x4a8460]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x480557
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00489034
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x480632
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x480670
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 0x4805bb
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4805ac
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 0x48058c
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 0x4805fb
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x480604
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x48057d
jmp 0x480606
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x48069f
cmp dword [ebp - 0x6c], edi
je 0x480670
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x480665
call fcn.00480465
mov dword [eax], 9
call fcn.0048046e
mov dword [eax], esi
jmp 0x48069a
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 0x48065a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x480606
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x480606
push dword [ebp - 0x6c]
call fcn.00480477
pop ecx
jmp 0x48069a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x480688
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x480688
xor eax, eax
jmp 0x4806a2
call fcn.00480465
mov dword [eax], 0x1c
call fcn.0048046e
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4806a2
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00488dab
add ebp, 0x3a0
leave
ret
Function at 0x4822b9
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 0x4822e7
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 0x4822ee
cmp ebx, dword [eax + 4]
jae 0x4822ee
xor eax, eax
jmp 0x4824de
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4822ff
xor eax, eax
inc eax
jmp 0x4824dd
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x482315
cmp ecx, edx
jae 0x48245a
cmp dword [eax + 4], 0
je 0x48231e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x482306
cmp dword [ebp + 8], 0
je 0x482340
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x48245a
cmp eax, esi
jae 0x48245a
mov eax, dword [0x4a7d78]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x482365
cmp dword [esi*4 + 0x4a7d80], edi
je 0x48245e
inc esi
cmp esi, eax
jl 0x482353
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4824da
cmp dword [ebp - 8], 0x1000000
jne 0x4824da
test byte [ebp - 0xc], 0xcc
je 0x4823e3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4824da
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4824da
cmp word [eax + 0x18], 0x10b
jne 0x4824da
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4824da
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4823e3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4823e3
test byte [ecx + 0x27], 0x80
jne 0x48245a
push 1
push 0x4a7dc0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4822f7
mov ecx, dword [0x4a7d78]
test ecx, ecx
mov edx, ecx
jle 0x482417
lea eax, [ecx*4 + 0x4a7d7c]
cmp dword [eax], edi
je 0x482417
dec edx
sub eax, 4
test edx, edx
jg 0x48240b
test edx, edx
jne 0x482448
push 0xf
pop ebx
cmp ecx, ebx
jg 0x482424
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x48243c
lea eax, [edx*4 + 0x4a7d80]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x48242a
cmp ecx, 0x10
jge 0x482448
inc ecx
mov dword [0x4a7d78], ecx
push 0
push 0x4a7dc0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4822f7
xor eax, eax
jmp 0x4824dd
test esi, esi
jle 0x4822f7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4a7dc0
call ebx
test eax, eax
jne 0x4822f7
cmp dword [esi*4 + 0x4a7d80], edi
je 0x4824b4
mov eax, dword [0x4a7d78]
lea esi, [eax - 1]
test esi, esi
jl 0x4824a2
cmp dword [esi*4 + 0x4a7d80], edi
je 0x48249e
dec esi
jns 0x482492
test esi, esi
jge 0x4824b2
cmp eax, 0x10
jge 0x4824ad
inc eax
mov dword [0x4a7d78], eax
lea esi, [eax - 1]
jmp 0x4824b4
je 0x4824cc
xor ecx, ecx
test esi, esi
jl 0x4824cc
lea eax, [ecx*4 + 0x4a7d80]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4824ba
push 0
push 0x4a7dc0
call ebx
jmp 0x4822f7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret