joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451394
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00407000
mov eax, dword [ebp - 4]
call fcn.00407000
mov eax, dword [ebp - 0xc]
call fcn.00407000
mov eax, dword [ebp + 0x34]
call fcn.00407000
mov eax, dword [ebp + 0x30]
call fcn.00407000
mov eax, dword [ebp + 0x2c]
call fcn.00409340
mov eax, dword [ebp + 0x28]
call fcn.00409340
mov eax, dword [ebp + 0x24]
call fcn.00409340
mov eax, dword [ebp + 0x20]
call fcn.0040a7b0
mov eax, dword [ebp + 0x1c]
call fcn.00407000
mov eax, dword [ebp + 0x18]
call fcn.00407000
mov eax, dword [ebp + 0x14]
call fcn.00407000
mov eax, dword [ebp + 8]
call fcn.0040a7b0
xor eax, eax
push ebp
push 0x4515a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x451543
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
push 0
push 0x3e8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, 0x4515c4
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 8], 0
je 0x451476
push ebp
call fcn.00450bc0
pop ecx
mov ebx, eax
jmp 0x45152c
cmp dword [ebp - 0xc], 0
je 0x45152c
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x1c], 0
jne 0x4514fd
lea eax, [ebp - 0xc]
call fcn.0044cb28
mov esi, eax
test esi, esi
jle 0x4514a8
push ebp
mov al, 1
call fcn.0044ef90
pop ecx
mov dword [ebp - 0x10], eax
dec esi
jne 0x451499
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
lea eax, [ebp - 0xc]
call fcn.0044cb28
mov esi, eax
test esi, esi
jle 0x45152c
mov edi, 1
push ebp
lea eax, [ebp - 0x1a4]
push eax
mov cl, 0x2c
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.00411dcc
mov eax, dword [ebp - 0x1a4]
call fcn.0044fb68
pop ecx
or bl, al
mov edx, dword [ebp - 0x10]
imul edx, edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
inc edi
dec esi
jne 0x4514c5
jmp 0x45152c
push ebp
xor eax, eax
call fcn.0044ef90
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
push ebp
mov eax, dword [ebp - 0xc]
call fcn.0044fb68
pop ecx
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x451543
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4515ad
lea eax, [ebp - 0x1a4]
call fcn.004067fc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406820
lea eax, [ebp + 8]
call fcn.0040a73c
lea eax, [ebp + 0x14]
mov edx, 3
call fcn.00406820
lea eax, [ebp + 0x20]
call fcn.0040a73c
lea eax, [ebp + 0x24]
mov edx, dword [0x40f5d4]
mov ecx, 3
call fcn.004085d0
lea eax, [ebp + 0x30]
mov edx, 2
call fcn.00406820
ret
Function at 0x451768
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407000
xor eax, eax
push ebp
push 0x45183d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00437e70
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004068ac
cmp dword [ebp - 4], 0
je 0x451820
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a28
call fcn.00406bc0
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x4517e0
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a28
call fcn.00406bc0
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.004070f4
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x45181c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00451768
pop ecx
test al, al
je 0x451818
push 0
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x45181c
xor ebx, ebx
jmp 0x451822
mov bl, 1
jmp 0x451822
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451844
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406820
ret
Function at 0x45365c
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
xor eax, eax
push ebp
push 0x45377c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
mov edx, 0x44
call fcn.0040da54
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
call sub.kernel32.dll_GetCommandLineW_1
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x453754
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.004387ac
lea eax, [ebp - 0x7c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x6c]
call fcn.00411928
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x453798
call fcn.00406cbc
mov eax, dword [ebp - 0x78]
call fcn.00407010
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0xc]
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 0x45374b
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 - 0x74]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x61c730
mov ecx, 0x50
call fcn.00404460
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_ResumeThread
push 2
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453783
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00406820
ret
Function at 0x45be44
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x61cf3c
push 0x61cf38
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x45bea8
push 0x61cf30
push 0
push 0
push 0x45bde8
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x61cf34], eax
cmp dword [0x61cf34], 0
je 0x45bea8
push 0
push 0
push 0
mov ecx, 0x45beb8
mov edx, dword [0x61cf34]
mov eax, dword [0x61cf30]
call fcn.00438bb0
push 2
mov eax, dword [0x61cf34]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

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

Disassembly:
add esp, 0xffffffc4
cmp dword [0x61cf30], 0xffffffff
je 0x45bf79
mov eax, dword [0x61cf34]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.004392dc
test al, al
jne 0x45bf26
lea eax, [esp + 4]
mov edx, 0x38
call fcn.0040da54
push 0
lea eax, [esp + 4]
push eax
push 0x38
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x61cf3c]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x61cf3c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
mov eax, dword [0x61cf34]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x45bf31
mov eax, dword [0x61cf3c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x32
mov eax, dword [0x61cf34]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x45bf4f
push 0
mov eax, dword [0x61cf34]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x61cf34]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x61cf38]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x61cf30]
call fcn.00438bb0
add esp, 0x3c
ret
Function at 0x45cb68
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x45cba0
mov eax, ebx
mov edx, esp
mov ecx, 0x105
push 0
call fcn.00406b64
jmp 0x45cba7
mov eax, ebx
call fcn.004067fc
add esp, 0x108
pop ebx
ret

Function at 0x45ceb0
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 0x45cfaa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45cfb8
push 0x45cfe4
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040cca4
test eax, eax
je 0x45cef7
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x45cf1d
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.00408b2c
push edx
push eax
lea ecx, [ebp - 0x64]
mov dl, 0x30
mov eax, 1
call fcn.004118d4
push dword [ebp - 0x64]
push 0x45d00c
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.00408b2c
push edx
push eax
lea ecx, [ebp - 0x68]
mov dl, 0x30
mov eax, 1
call fcn.004118d4
push dword [ebp - 0x68]
push 0x45d01c
mov eax, ebx
mov edx, 4
call fcn.00406dac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cfb1
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00406820
ret
Function at 0x45d370
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 0x45d4bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call fcn.004067fc
xor eax, eax
push ebp
push 0x45d498
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call fcn.00406934
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call fcn.00406934
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a28
call fcn.00406bc0
cmp ebx, eax
jne 0x45d48e
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406a28
call fcn.00406bc0
cmp ebx, eax
jne 0x45d48e
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406f8c
je 0x45d48e
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45d48e
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.00404460
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 [0x62fe14]
call fcn.00408ff4
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x62fe14
mov ecx, 1
mov edx, dword [0x45d344]
call fcn.004091bc
add esp, 4
lea edi, [ebx + ebx*2]
mov eax, dword [0x62fe14]
mov dword [eax + edi*4], esi
mov eax, dword [0x62fe14]
lea eax, [eax + edi*4 + 4]
mov edx, dword [ebp - 4]
call fcn.00406850
mov eax, dword [0x62fe14]
lea eax, [eax + edi*4 + 8]
mov edx, dword [ebp - 8]
call fcn.00406850
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45d4a2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d4c4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406820
ret
Function at 0x45d4d0
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 0x45d5c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x62fe14]
call fcn.00408ffc
test eax, eax
jl 0x45d5b1
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
lea eax, [eax + eax*2]
mov edx, dword [0x62fe14]
lea ebx, [edx + eax*4]
xor eax, eax
push ebp
push 0x45d59b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebx + 8]
call fcn.00406bc0
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call fcn.00406934
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.00406f8c
jne 0x45d591
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.00406bc0
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45d591
mov eax, dword [ebx + 4]
call fcn.00406bc0
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.00404460
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.00406bc0
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 0x45d5a5
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x45d509
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d5ce
lea eax, [ebp - 4]
call fcn.004067fc
ret
Function at 0x4604e8
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 0x460512
push edi
call sub.kernel32.dll_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x460512
push edi
call sub.kernel32.dll_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x464400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00407000
mov eax, dword [ebp - 8]
call fcn.00407000
xor eax, eax
push ebp
push 0x464529
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x4644fc
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
call sub.kernel32.dll_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0041be9c
mov dword [edi], eax
test esi, esi
je 0x464470
cmp word [esi], 0x25ff
jne 0x464470
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x464472
xor ebx, ebx
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x62ec40]
je 0x46448a
cmp byte [0x61c6fc], 0
je 0x4644a1
lea eax, [ebp - 0x14]
call fcn.00438850
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
call fcn.00438b20
jmp 0x4644b0
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
mov eax, dword [0x62ec40]
call fcn.00438a88
test ebx, ebx
je 0x4644bf
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x4644c3
xor eax, eax
jmp 0x4644c5
mov al, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x464500
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x464500
mov eax, dword [ebp + 8]
mov dword [ebx], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x464500
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464530
lea eax, [ebp - 0x14]
mov edx, dword [0x438820]
call fcn.004092dc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406820
ret
Function at 0x464540
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 0x464615
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4645f9
test esi, esi
je 0x464581
cmp word [esi], 0x25ff
jne 0x464581
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x464583
xor ebx, ebx
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x62ec40]
je 0x46459b
cmp byte [0x61c6fc], 0
je 0x4645b2
lea eax, [ebp - 0xc]
call fcn.00438850
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.00438b20
jmp 0x4645c1
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x62ec40]
call fcn.00438a88
test ebx, ebx
je 0x4645f9
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x4645f9
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 0x4645f9
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 0x46461c
lea eax, [ebp - 0xc]
mov edx, dword [0x438820]
call fcn.004092dc
ret
Function at 0x464ddc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0x44], ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x41d770]
call fcn.004084a8
xor eax, eax
push ebp
push 0x464e9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x45], 0
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00422bf0
cmp byte [ebp - 0x40], 0
je 0x464e80
mov eax, dword [ebp - 0x20]
call fcn.00408ffc
test eax, eax
jl 0x464e80
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]
cmp byte [ebx + 0x10], 0
je 0x464e7c
cmp edi, dword [ebx + 0xc]
jne 0x464e7c
lea eax, [ebp - 0x4c]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x464e80
mov edx, dword [ebp - 0x44]
sub edx, dword [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [eax], edx
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov byte [ebp - 0x45], 1
jmp 0x464e80
inc esi
dec eax
jne 0x464e2b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464ea3
lea eax, [ebp - 0x40]
mov edx, dword [0x41d770]
call fcn.00408580
ret

Function at 0x46566c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407000
lea eax, [ebp - 0xc]
mov edx, dword [0x465514]
call fcn.004084a8
xor eax, eax
push ebp
push 0x46571e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x46572c
call sub.user32.dll_FindWindowW
mov ebx, eax
test ebx, ebx
je 0x4656f2
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.00411928
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x465750
call fcn.00406cbc
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004068ac
lea eax, [ebp - 0xc]
push eax
push 0x465578
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465725
lea eax, [ebp - 0x10]
call fcn.004067fc
lea eax, [ebp - 0xc]
mov edx, dword [0x465514]
call fcn.00408580
lea eax, [ebp - 4]
call fcn.004067fc
ret
Function at 0x46578c
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 0x46585a
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.00411928
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x465874
call fcn.00406cbc
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x46583f
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x465839
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 0x465821
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle_1
mov edx, 0x61c730
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.00404460
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 0x465861
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406820
ret
Function at 0x465964
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x465b16
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
push 0x104
lea edx, [ebp - 0x119]
push edx
push eax
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x119]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x465a75
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
test edi, edi
je 0x465a6f
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x465a69
mov eax, dword [ebp - 8]
call fcn.0041bbd4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x465a60
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x58], 0
je 0x465a60
mov eax, dword [ebp - 0xc]
add eax, 0x58
mov dword [ebp - 0x10], eax
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00465908
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub edx, eax
sub edx, 4
mov eax, dword [ebp - 0x10]
add eax, 4
call fcn.00465908
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x58]
je 0x465a60
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x465aea
push 0x10
push 0
lea edx, [ebp - 0x120]
mov eax, dword [0x61ce34]
mov ecx, dword [eax]
call dword [ecx + 0x248]
mov eax, dword [ebp - 0x120]
call fcn.00407010
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x62ec40]
je 0x465ae3
mov eax, 0x61ce34
call fcn.0040a73c
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 4]
call fcn.00407994
mov ecx, dword [ebp - 0x124]
mov dl, 1
mov eax, dword [0x40f640]
call fcn.0040f768
call fcn.00405fd4
jmp 0x465aea
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465b1d
lea eax, [ebp - 0x124]
call fcn.00407758
lea eax, [ebp - 0x120]
call fcn.004067fc
lea eax, [ebp - 4]
call fcn.004067fc
ret