joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x406050
test ebp, ebp
setl bl
mov eax, edi
mov edx, 0xb
call fcn.00403f58
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, ebp
mov ebp, 0xa
cdq
idiv ebp
mov ebp, eax
add cx, 0x30
mov eax, dword [edi]
mov word [eax + esi*2 - 2], cx
dec esi
test ebp, ebp
jne 0x405fe6
test bl, bl
je 0x406023
mov eax, dword [edi]
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40605c
mov eax, dword [edi]
call fcn.00403cd0
mov edx, eax
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
mov eax, dword [edi]
lea eax, [eax + esi*2]
call fcn.004025ec
mov edx, ebx
mov eax, edi
call fcn.00403f58
jmp 0x40605c
mov eax, edi
mov edx, 0x406068
call fcn.00403b74
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406714
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040357c
mov eax, ebx
call fcn.00403a08
mov eax, dword [ebx]
call fcn.004037b8
test eax, eax
jle 0x406745
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40673a
pop esi
pop ebx
ret

Function at 0x4070a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x4070ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.KERNEL32.dll_IsBadReadPtr
test eax, eax
jne 0x4070e2
cmp word [edi], 0x5a4d
jne 0x4070e2
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x4070e2
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4070f8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407288
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x4f635c], 0
jne 0x407369
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4072db
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x40730c
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x407369
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x407337
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x407349
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x407363
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x407560
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40765b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4075a4
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x4075d8
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00403c50
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.004037a4
mov eax, dword [ebp - 8]
call fcn.004039b8
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40763d
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x407637
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407631
mov eax, dword [ebp - 4]
call fcn.004070a4
test eax, eax
je 0x40761e
cmp word [eax + 0x18], 0x20b
je 0x407622
xor eax, eax
jmp 0x407624
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407662
lea eax, [ebp - 0xc]
call fcn.00403b38
lea eax, [ebp - 8]
call fcn.00403528
ret

Function at 0x40a758
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x40a7d4
cmp dword [esp + 0x10], 0x1000
jne 0x40a7d4
cmp dword [esp + 4], 0
je 0x40a7d4
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x40a7d4
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x40a7d4
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x40a7d4
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40d234
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x410800
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
cmp dword [0x4f6f38], 0xffffffff
jne 0x41084f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x410848
mov eax, esp
mov edx, 0x114
call fcn.00404ee8
mov dword [esp], 0x114
mov eax, esp
push eax
call sub.KERNEL32.dll_GetVersionExW
cmp dword [esp + 4], 6
setae al
and eax, 0x7f
mov dword [0x4f6f38], eax
jmp 0x41084f
xor eax, eax
mov dword [0x4f6f38], eax
cmp dword [0x4f6f38], 1
sete al
add esp, 0x114
ret

Function at 0x41144c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x411503
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x4f6e50]
call fcn.00406714
push dword [ebp - 0xc]
push 0x41151c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, dword [0x4f6e54]
call fcn.0041133c
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403878
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.004039b8
push eax
call fcn.00411150
mov esi, eax
test esi, esi
je 0x4114e8
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x4114e2
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41150a
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040354c
ret

Function at 0x411754
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4117b5
mov ebx, 0x71af0000
jmp 0x4117a3
cmp dword [esp + 0x10], 0x10000
jne 0x411791
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
jmp 0x4117b5
mov eax, dword [esp + 4]
cmp ebx, eax
jne 0x4117a1
sub ebx, 0x10000
jmp 0x4117a3
mov ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
je 0x411771
push 0x40
push 0x1000
push edi
push esi
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x411a80
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x4f6f24]
cmp eax, 0x1c
jne 0x411afb
cmp dword [ebp - 0xc], 0x1000
jne 0x411af6
cmp dword [ebp - 0x18], 0
je 0x411af6
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x411af6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x411ad5
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x411afb
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4f6ef8]
cmp eax, 0
je 0x411af6
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4f6f54]
add ebx, dword [ebp - 0x10]
jmp 0x411a97
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x415580
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x415767
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x4f6db0]
call fcn.0040a5c8
mov dword [0x4f86e8], eax
xor edx, edx
mov eax, dword [0x4f6db4]
call fcn.0040a5c8
mov dword [0x4f86ec], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403aa4
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x4f6e38]
call fcn.00406714
push dword [ebp - 0xc]
push 0x415780
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.004061ac
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403878
mov eax, dword [ebp - 8]
call fcn.004039b8
push eax
push 0
push 0
call fcn.00404bb8
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x41574c
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x4f86dc], esi
mov dword [0x4f86e0], edi
cmp dword [0x4f86e8], 0
je 0x41569c
cmp dword [0x4f86ec], 0
jne 0x41571e
mov dl, 1
mov eax, dword [0x4f6d20]
call fcn.0040a6d4
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x415730
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x415730
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x415730
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x415730
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x415730
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x415730
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x4f86e4], edx
mov edx, 0x415530
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x415730
push 0x4154dc
push 1
call dword [0x4f86e8]
test eax, eax
setne bl
test bl, bl
jne 0x41574c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41576e
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040354c
ret
Function at 0x415784
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x4f86e8], 0
je 0x41579c
cmp dword [0x4f86ec], 0
jne 0x4157f5
mov dl, 1
mov eax, dword [0x4f6d20]
call fcn.0040a6d4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x4157db
mov eax, dword [0x4f86e4]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x415800
push 0x4154dc
call dword [0x4f86ec]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4189e4
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418b2f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x418b48
call fcn.00403d4c
mov eax, dword [ebp - 0x14]
call fcn.00403cd0
push eax
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x418b17
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov edi, dword [ebp - 8]
mov edi, dword [edi]
sub edi, 0x18
dec edi
test edi, edi
jl 0x418a72
inc edi
xor esi, esi
mov al, byte [ebp - 0x10]
xor al, byte [ecx]
mov edx, esi
and dl, 0xff
xor al, dl
mov byte [ecx], al
inc ecx
inc esi
dec edi
jne 0x418a5f
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
sub edx, 0x18
mov eax, dword [ebp - 8]
add eax, 0x18
call fcn.0040f1e8
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x28]
lea edi, [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov edi, dword [ebp - 8]
mov edi, dword [edi]
sub edi, 0x18
dec edi
test edi, edi
jl 0x418ad4
inc edi
xor esi, esi
mov eax, esi
mov ebx, 0x14
cdq
idiv ebx
mov eax, dword [ebp - 8]
mov al, byte [eax + edx + 4]
xor edx, edx
mov dl, al
shr edx, 4
xor dl, byte [ecx]
and al, 0xf
shl eax, 4
xor dl, al
mov byte [ecx], dl
inc ecx
inc esi
dec edi
jne 0x418aac
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_SetLastError
jmp 0x418b19
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418b36
lea eax, [ebp - 0x14]
call fcn.00403b38
ret

Function at 0x418b54
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, eax
push esp
push 0xf003f
push 0
push ebp
push edi
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x418bb1
xor esi, esi
push 0x208
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
jmp 0x418b8d
mov edx, ebx
mov eax, dword [esp]
call fcn.00418b54
inc esi
push 0x104
push ebx
push esi
mov eax, dword [esp + 0xc]
push eax
call sub.ADVAPI32.dll_RegEnumKeyW
test eax, eax
je 0x418b82
push ebx
call sub.KERNEL32.dll_LocalFree
mov eax, dword [esp]
push eax
call sub.ADVAPI32.dll_RegCloseKey
push ebp
push edi
call sub.ADVAPI32.dll_RegDeleteKeyW
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x419c58
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419de1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x419dab
mov edi, 1
mov bl, 1
lea edx, [ebp - 0x28c]
mov eax, dword [0x4f6e84]
call fcn.00406714
mov eax, dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x290]
mov edx, edi
add dl, 0x30
call fcn.00403710
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x14]
pop edx
call fcn.00403804
mov eax, dword [ebp - 0x14]
call fcn.004039b8
push eax
push 0
push 4
call sub.KERNEL32.dll_OpenFileMappingA
mov esi, eax
test esi, esi
je 0x419d9c
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x419d96
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x419d29
cmp eax, dword [esp]
pop edx
pop eax
jne 0x419d8d
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x419d8d
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
imul eax, dword [ebp - 8], 0x4e
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x288]
mov ecx, 0x9c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [ebp - 0x288], 0
jne 0x419d6e
mov bl, 1
jmp 0x419d8d
lea eax, [ebp - 0x288]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
cmp eax, dword [ebp - 4]
jne 0x419d85
mov byte [ebp - 9], 1
jmp 0x419d8d
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x419d45
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
or bl, byte [ebp - 9]
jne 0x419dab
inc edi
cmp edi, 0xa
jne 0x419c9f
cmp byte [ebp - 9], 0
jne 0x419dbb
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00419b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419de8
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.0040354c
lea eax, [ebp - 0x14]
call fcn.00403528
ret
Function at 0x41a948
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041a68c
pop ecx
test al, al
jne 0x41aa70
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.0041a68c
pop ecx
test al, al
jne 0x41aa70
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x4f8658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x4f8658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.0041a68c
pop ecx
test al, al
jne 0x41aa70
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.0041a68c
pop ecx
test al, al
jne 0x41aa70
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.0041a68c
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41b2f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x41b31f
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x41b333
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x41b337
xor eax, eax
jmp 0x41b339
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x41b4f4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x41b58b
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0041b2c8
test al, al
je 0x41b58b
cmp word [ebp - 2], 0x5a4d
jne 0x41b58b
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0041b2c8
test al, al
je 0x41b58b
push pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0041b2c8
test al, al
je 0x41b58b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x41b58b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x41b58f
xor eax, eax
jmp 0x41b591
mov al, 1
test al, al
je 0x41b5ae
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret