joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451438
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406998
xor eax, eax
push ebp
push 0x45158c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040f404
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00406a04
cmp dword [ebp - 4], 0
je 0x451562
lea eax, [ebp - 4]
call fcn.00405c14
call fcn.00406d20
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00405c14
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x4514b6
lea eax, [ebp - 4]
call fcn.00405c14
call fcn.00406d20
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.0040722c
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x451502
mov eax, dword [ebp - 4]
call fcn.00406a3c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4514fe
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00451438
pop ecx
test al, al
je 0x4514fa
push 0
mov eax, dword [ebp - 4]
call fcn.00406a3c
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4514fe
xor ebx, ebx
jmp 0x451564
mov bl, 1
jmp 0x451564
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00406bf4
mov eax, dword [ebp - 0xc]
call fcn.004061d8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x45155e
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00451438
pop ecx
test al, al
je 0x45155a
push 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00406bf4
mov eax, dword [ebp - 0x10]
call fcn.004061d8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x45155e
xor ebx, ebx
jmp 0x451564
mov bl, 1
jmp 0x451564
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451593
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405a3c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004069a8
ret
Function at 0x454004
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x294], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 9], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x45421e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x70]
mov edx, 0x44
call fcn.0040abf0
mov dword [ebp - 0x70], 0x44
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4540b7
test ebx, ebx
jne 0x45406b
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.00406b5c
jmp 0x454075
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406a04
lea eax, [ebp - 0x28a]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28a]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406a3c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x454120
test ebx, ebx
jne 0x4540d1
call sub.kernel32.dll_GetCommandLineA
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 0
call fcn.00405cfc
jmp 0x4540e0
lea eax, [ebp - 8]
mov edx, ebx
mov ecx, 0
call fcn.00406bf4
lea eax, [ebp - 0x28a]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28a]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004061d8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4541d1
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.00435e9c
lea eax, [ebp - 0x294]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x78]
call fcn.0040db34
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x290]
mov edx, 0x454238
call fcn.00405ed8
mov eax, dword [ebp - 0x290]
call fcn.004061d8
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
test ebx, ebx
je 0x4541c8
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebx], eax
push 2
push 0
push 0
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x80]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x6196d0
mov ecx, 0x50
call fcn.00403294
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_ResumeThread
cmp byte [ebp - 9], 0
je 0x4541e6
push 2
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x4541f0
mov eax, 2
call fcn.0040592c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454225
lea eax, [ebp - 0x294]
mov edx, 2
call fcn.00405a3c
lea eax, [ebp - 8]
call fcn.00405a18
lea eax, [ebp - 4]
call fcn.004069a0
ret
Function at 0x45cfd4
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x619fc8
push 0x619fc4
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x45d02c
push 0x619fbc
push 0
push 0
push 0x45cf58
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x619fc0], eax
cmp dword [0x619fc0], 0
je 0x45d02c
mov edx, 0x45d03c
mov eax, dword [0x619fbc]
call fcn.00436af8
push 2
mov eax, dword [0x619fc0]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x45d080
Capabilities:
Resume thread
Terminate thread
Write file on windows

Disassembly:
add esp, 0xffffff6c
cmp dword [0x619fbc], 0xffffffff
je 0x45d168
mov eax, dword [0x619fc0]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.0043701c
test al, al
jne 0x45d0f0
lea eax, [esp + 4]
mov edx, 0x90
call fcn.0040abf0
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x619fc8]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x619fc8]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
mov eax, dword [0x619fc0]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x45d0fb
mov eax, dword [0x619fc8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x619fc4]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x32
mov eax, dword [0x619fc0]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x45d138
push 0
mov eax, dword [0x619fc0]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x619fcc], 0
je 0x45d138
mov eax, dword [0x619fcc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
mov dword [0x619fcc], eax
mov eax, dword [0x619fc0]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x619fbc]
call fcn.0043686c
mov dword [0x619fbc], 0xffffffff
add esp, 0x94
ret
Function at 0x45e194
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45e259
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.004069b0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x45e1fe
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x45e240
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406bb0
jmp 0x45e240
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x45e240
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0
call fcn.00405cfc
mov edx, dword [ebp - 0x210]
mov eax, ebx
call fcn.00406bcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e260
lea eax, [ebp - 0x210]
call fcn.00405a18
ret

Function at 0x45e610
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45e70e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45e71c
push 0x45e748
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409db4
test eax, eax
je 0x45e657
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x45e67d
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push 0
push 0x100000
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, 0x80000
adc edx, 0
call fcn.00407dd0
push edx
push eax
lea ecx, [ebp - 0x64]
mov dx, 0x30
mov eax, 1
call fcn.0040dcc4
push dword [ebp - 0x64]
push 0x45e770
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.00407dd0
push edx
push eax
lea ecx, [ebp - 0x68]
mov dx, 0x30
mov eax, 1
call fcn.0040dcc4
push dword [ebp - 0x68]
push 0x45e780
mov eax, ebx
mov edx, 4
call fcn.00406f68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e715
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004069a8
ret
Function at 0x45eae8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45ec5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call fcn.00405a18
push 0x633d9c
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x45ec2b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call fcn.00405b50
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call fcn.00405b50
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405c44
call fcn.00405ddc
cmp ebx, eax
jne 0x45ec21
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405c44
call fcn.00405ddc
cmp ebx, eax
jne 0x45ec21
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004061c0
je 0x45ec21
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45ec21
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.00403294
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, dword [0x633db4]
call fcn.00408278
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x633db4
mov ecx, 1
mov edx, dword [0x45eac4]
call fcn.00408440
add esp, 4
mov edi, ebx
add edi, edi
mov eax, dword [0x633db4]
mov dword [eax + edi*8], esi
mov eax, dword [0x633db4]
lea eax, [eax + edi*8 + 4]
mov edx, dword [ebp - 4]
call fcn.00405a6c
mov eax, dword [0x633db4]
lea eax, [eax + edi*8 + 8]
mov edx, dword [ebp - 8]
call fcn.00405a6c
mov eax, dword [0x633db4]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 0xc], edx
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ec35
push 0x633d9c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ec61
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405a3c
ret
Function at 0x45ec70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ed9e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x633d9c
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x633db4]
call fcn.00408280
test eax, eax
jl 0x45ed6f
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add eax, eax
mov edx, dword [0x633db4]
lea ebx, [edx + eax*8]
xor eax, eax
push ebp
push 0x45ed59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call fcn.00405ddc
mov edx, eax
mov eax, dword [ebx]
call fcn.0041b6a4
test al, al
jne 0x45ed4f
push 0
mov eax, dword [ebx + 8]
call fcn.00405ddc
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call fcn.00405b50
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.004061c0
jne 0x45ed4f
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.00405ddc
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45ed4f
mov eax, dword [ebx + 4]
call fcn.00405ddc
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.00403294
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.00405ddc
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ed63
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x45ecb3
push 0x633d9c
call sub.kernel32.dll_LeaveCriticalSection
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45eda5
lea eax, [ebp - 4]
call fcn.00405a18
ret
Function at 0x462464
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
call sub.kernel32.dll_GetCurrentThreadId_1
cmp esi, eax
je 0x46248e
push edi
call sub.kernel32.dll_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x46248e
push edi
call sub.kernel32.dll_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x466d9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x466eac
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x466e8c
mov eax, ebx
call fcn.004061d8
push eax
call sub.kernel32.dll_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.0041a948
mov dword [edi], eax
test esi, esi
je 0x466dfa
cmp word [esi], 0x25ff
jne 0x466dfa
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x466dfc
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x466e1a
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x619670]
je 0x466e1a
cmp byte [0x61967c], 0
je 0x466e31
lea eax, [ebp - 0x10]
call fcn.004360c4
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.00436518
jmp 0x466e40
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x619670]
call fcn.00436460
test ebx, ebx
je 0x466e4f
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x466e53
xor eax, eax
jmp 0x466e55
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x466e90
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x466e90
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x466e90
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466eb3
lea eax, [ebp - 0x10]
mov edx, dword [0x436098]
call fcn.00408560
ret

Function at 0x466ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x466f9b
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x466f7f
test esi, esi
je 0x466f01
cmp word [esi], 0x25ff
jne 0x466f01
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x466f03
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x466f21
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x619670]
je 0x466f21
cmp byte [0x61967c], 0
je 0x466f38
lea eax, [ebp - 0xc]
call fcn.004360c4
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.00436518
jmp 0x466f47
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x619670]
call fcn.00436460
test ebx, ebx
je 0x466f7f
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x466f7f
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x466f7f
mov dword [ebx], edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466fa2
lea eax, [ebp - 0xc]
mov edx, dword [0x436098]
call fcn.00408560
ret
Function at 0x4677b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x41c45c]
call fcn.00407704
xor eax, eax
push ebp
push 0x467928
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x49], 0
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00421864
cmp byte [ebp - 0x40], 0
je 0x46790c
mov eax, dword [ebp - 0x20]
call fcn.00408280
test eax, eax
jl 0x46790c
inc eax
xor esi, esi
mov edx, esi
add edx, edx
add edx, edx
add edx, edx
sub edx, esi
mov ecx, dword [ebp - 0x20]
lea ebx, [ecx + edx*4]
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x44]
jne 0x467904
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp byte [eax], 0xe8
jne 0x4678a6
lea eax, [ebp - 0x50]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x46790c
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x14]
mov dword [edx], eax
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
mov edx, dword [edx]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov edx, dword [ebp - 0x48]
sub edx, dword [ebx + 8]
mov dword [eax], edx
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x50]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp + 0x18]
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x49], 1
jmp 0x46790c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp word [eax], 0x15ff
jne 0x46790c
lea eax, [ebp - 0x50]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x46790c
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp - 0x48]
mov dword [eax], edx
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x50]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp + 0x18]
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x49], 1
jmp 0x46790c
inc esi
dec eax
jne 0x46782b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46792f
lea eax, [ebp - 0x40]
mov edx, dword [0x41c45c]
call fcn.004077dc
ret
Function at 0x467b98
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov byte [0x61a018], 0
cmp dword [0x61a01c], 0
je 0x467bdf
push esp
push 0x40
push 4
mov eax, dword [0x61a01c]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x467c35
mov eax, dword [0x61a01c]
mov edx, dword [0x61a020]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x61a01c]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x467c35
cmp dword [0x61a024], 0
je 0x467c1e
push esp
push 0x40
push 4
mov eax, dword [0x61a024]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x467c35
mov eax, dword [0x61a024]
mov edx, dword [0x61a028]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x61a024]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x467c35
push 0
mov ecx, 0x4674d0
mov eax, sub.kernel32.dll_CreateThread_1
mov edx, dword [0x61a010]
call fcn.00466ec0
push 0
mov ecx, 0x46778c
mov edx, dword [0x61a014]
xor eax, eax
call fcn.00466ec0
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
ret

Function at 0x468228
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov esi, eax
lea eax, [ebp - 8]
mov edx, dword [0x4680f8]
call fcn.00407704
xor eax, eax
push ebp
push 0x468307
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x468314
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x4682de
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040db34
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x46832c
call fcn.00405ed8
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040f0f4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00405ac8
lea eax, [ebp - 4]
mov edx, 0x468354
call fcn.00405e10
mov eax, dword [ebp - 4]
call fcn.00405ddc
cmp eax, 0x104
jge 0x4682d0
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.00406378
lea eax, [ebp - 8]
push eax
push 0x468130
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46830e
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405a3c
lea eax, [ebp - 8]
mov edx, dword [0x4680f8]
call fcn.004077dc
ret
Function at 0x468c20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x468cf5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040db34
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x468d10
call fcn.00405ed8
mov eax, dword [ebp - 4]
call fcn.004061d8
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x468cda
mov byte [0x6195b0], 1
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x468cd4
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esi]
push eax
push 0
push 0x100000
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x468cbc
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle_1
mov edx, 0x6196d0
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.00403294
push esi
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468cfc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405a3c
ret