joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c000
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x549fbc
push 0x549fb8
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x45c058
push 0x549fb0
push 0
push 0
push 0x45bf84
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x549fb4], eax
cmp dword [0x549fb4], 0
je 0x45c058
mov edx, 0x45c068
mov eax, dword [0x549fb0]
call fcn.00435b24
push 2
mov eax, dword [0x549fb4]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

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

Disassembly:
add esp, 0xffffff6c
cmp dword [0x549fb0], 0xffffffff
je 0x45c194
mov eax, dword [0x549fb4]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.00436048
test al, al
jne 0x45c11c
lea eax, [esp + 4]
mov edx, 0x90
call fcn.00409f50
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x549fbc]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x549fbc]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
mov eax, dword [0x549fb4]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x45c127
mov eax, dword [0x549fbc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x549fb8]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x32
mov eax, dword [0x549fb4]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x45c164
push 0
mov eax, dword [0x549fb4]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x549fc0], 0
je 0x45c164
mov eax, dword [0x549fc0]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
mov dword [0x549fc0], eax
mov eax, dword [0x549fb4]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x549fb0]
call fcn.00435898
mov dword [0x549fb0], 0xffffffff
add esp, 0x94
ret
Function at 0x45d090
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 0x45d155
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.004062bc
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x45d0fa
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x45d13c
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004064bc
jmp 0x45d13c
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x45d13c
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0
call fcn.00405770
mov edx, dword [ebp - 0x210]
mov eax, ebx
call fcn.004064d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d15c
lea eax, [ebp - 0x210]
call fcn.004054bc
ret

Function at 0x45d50c
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 0x45d60a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45d618
push 0x45d644
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040929c
test eax, eax
je 0x45d553
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x45d579
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.0040738c
push edx
push eax
lea ecx, [ebp - 0x64]
mov dx, 0x30
mov eax, 1
call fcn.0040d000
push dword [ebp - 0x64]
push 0x45d66c
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.0040738c
push edx
push eax
lea ecx, [ebp - 0x68]
mov dx, 0x30
mov eax, 1
call fcn.0040d000
push dword [ebp - 0x68]
push 0x45d67c
mov eax, ebx
mov edx, 4
call fcn.00406760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d611
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004062b4
ret
Function at 0x45d9e4
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 0x45db56
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call fcn.004054bc
push 0x555d60
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x45db27
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call fcn.004055f4
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call fcn.004055f4
lea eax, [ebp - 4]
xor edx, edx
call fcn.004056cc
call fcn.00405850
cmp ebx, eax
jne 0x45db1d
lea eax, [ebp - 8]
xor edx, edx
call fcn.004056cc
call fcn.00405850
cmp ebx, eax
jne 0x45db1d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405b60
je 0x45db1d
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45db1d
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.00403230
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 [0x555d78]
call fcn.00407834
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x555d78
mov ecx, 1
mov edx, dword [0x45d9c0]
call fcn.004079fc
add esp, 4
mov edi, ebx
add edi, edi
mov eax, dword [0x555d78]
mov dword [eax + edi*8], esi
mov eax, dword [0x555d78]
lea eax, [eax + edi*8 + 4]
mov edx, dword [ebp - 4]
call fcn.00405510
mov eax, dword [0x555d78]
lea eax, [eax + edi*8 + 8]
mov edx, dword [ebp - 8]
call fcn.00405510
mov eax, dword [0x555d78]
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 0x45db31
push 0x555d60
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45db5d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054e0
ret
Function at 0x45db6c
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 0x45dc9a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x555d60
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x555d78]
call fcn.0040783c
test eax, eax
jl 0x45dc6b
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add eax, eax
mov edx, dword [0x555d78]
lea ebx, [edx + eax*8]
xor eax, eax
push ebp
push 0x45dc55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call fcn.00405850
mov edx, eax
mov eax, dword [ebx]
call fcn.0041a984
test al, al
jne 0x45dc4b
push 0
mov eax, dword [ebx + 8]
call fcn.00405850
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call fcn.004055f4
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.00405b60
jne 0x45dc4b
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.00405850
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45dc4b
mov eax, dword [ebx + 4]
call fcn.00405850
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.00403230
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.00405850
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 0x45dc5f
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x45dbaf
push 0x555d60
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 0x45dca1
lea eax, [ebp - 4]
call fcn.004054bc
ret
Function at 0x461360
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 0x46138a
push edi
call sub.kernel32.dll_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x46138a
push edi
call sub.kernel32.dll_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x465c98
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 0x465da8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x465d88
mov eax, ebx
call fcn.00405b78
push eax
call sub.kernel32.dll_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00419c28
mov dword [edi], eax
test esi, esi
je 0x465cf6
cmp word [esi], 0x25ff
jne 0x465cf6
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x465cf8
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x465d16
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x549664]
je 0x465d16
cmp byte [0x549670], 0
je 0x465d2d
lea eax, [ebp - 0x10]
call fcn.004350f0
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.00435544
jmp 0x465d3c
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x549664]
call fcn.0043548c
test ebx, ebx
je 0x465d4b
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x465d4f
xor eax, eax
jmp 0x465d51
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x465d8c
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 0x465d8c
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 0x465d8c
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465daf
lea eax, [ebp - 0x10]
mov edx, dword [0x4350c4]
call fcn.00407b1c
ret

Function at 0x465dbc
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 0x465e97
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x465e7b
test esi, esi
je 0x465dfd
cmp word [esi], 0x25ff
jne 0x465dfd
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x465dff
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x465e1d
push 0
call sub.kernel32.dll_GetModuleHandleW_2
cmp eax, dword [0x549664]
je 0x465e1d
cmp byte [0x549670], 0
je 0x465e34
lea eax, [ebp - 0xc]
call fcn.004350f0
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.00435544
jmp 0x465e43
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x549664]
call fcn.0043548c
test ebx, ebx
je 0x465e7b
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x465e7b
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 0x465e7b
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 0x465e9e
lea eax, [ebp - 0xc]
mov edx, dword [0x4350c4]
call fcn.00407b1c
ret
Function at 0x4666b4
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 [0x41b73c]
call fcn.00406ccc
xor eax, eax
push ebp
push 0x466824
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.00420b44
cmp byte [ebp - 0x40], 0
je 0x466808
mov eax, dword [ebp - 0x20]
call fcn.0040783c
test eax, eax
jl 0x466808
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 0x466800
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp byte [eax], 0xe8
jne 0x4667a2
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 0x466808
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 0x466808
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp word [eax], 0x15ff
jne 0x466808
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 0x466808
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 0x466808
inc esi
dec eax
jne 0x466727
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46682b
lea eax, [ebp - 0x40]
mov edx, dword [0x41b73c]
call fcn.00406da4
ret
Function at 0x466a94
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov byte [0x54a00c], 0
cmp dword [0x54a010], 0
je 0x466adb
push esp
push 0x40
push 4
mov eax, dword [0x54a010]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x466b31
mov eax, dword [0x54a010]
mov edx, dword [0x54a014]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x54a010]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x466b31
cmp dword [0x54a018], 0
je 0x466b1a
push esp
push 0x40
push 4
mov eax, dword [0x54a018]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x466b31
mov eax, dword [0x54a018]
mov edx, dword [0x54a01c]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x54a018]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x466b31
push 0
mov ecx, 0x4663cc
mov eax, sub.kernel32.dll_CreateThread_1
mov edx, dword [0x54a004]
call fcn.00465dbc
push 0
mov ecx, 0x466688
mov edx, dword [0x54a008]
xor eax, eax
call fcn.00465dbc
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
ret

Function at 0x467124
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 [0x466ff4]
call fcn.00406ccc
xor eax, eax
push ebp
push 0x467203
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x467210
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x4671da
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040ce70
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x467228
call fcn.00405900
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040e430
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0040556c
lea eax, [ebp - 4]
mov edx, 0x467250
call fcn.00405884
mov eax, dword [ebp - 4]
call fcn.00405850
cmp eax, 0x104
jge 0x4671cc
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.00405d18
lea eax, [ebp - 8]
push eax
push 0x46702c
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46720a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004054e0
lea eax, [ebp - 8]
mov edx, dword [0x466ff4]
call fcn.00406da4
ret
Function at 0x467b1c
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 0x467bf1
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.0040ce70
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x467c0c
call fcn.00405900
mov eax, dword [ebp - 4]
call fcn.00405b78
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x467bd6
mov byte [0x5495a4], 1
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x467bd0
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 0x467bb8
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle_1
mov edx, 0x5496c4
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.00403230
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 0x467bf8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054e0
ret
Function at 0x468128
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4682bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov edx, 0x4682cc
mov ecx, 0x4682e0
mov eax, ebx
call fcn.0041a144
lea eax, [ebp - 4]
xor edx, edx
call fcn.004056cc
call fcn.00405850
cmp eax, 0x14
jne 0x4682a6
cmp ebx, dword [0x549664]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x4682a6
mov eax, ebx
call fcn.00419950
mov esi, eax
cmp word [esi + 0x18], 0x20b
jne 0x46820e
lea eax, [ebp - 8]
push eax
push 0x40
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp ebx, dword [0x549664]
jne 0x4681cb
mov eax, 0x433a48
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, ebx
mov dword [esi + 0x2c], eax
jmp 0x4681d8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x468297
lea eax, [ebp - 8]
push eax
push 0x40
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp ebx, dword [0x549664]
jne 0x46824b
mov eax, 0x433a48
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, ebx
mov dword [esi + 0x2c], eax
mov eax, 0x5495d4
mov edx, dword [ebp - 4]
sub eax, dword [edx + 4]
sub eax, ebx
mov dword [esi + 0x30], eax
jmp 0x468266
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
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 0x4682c3
lea eax, [ebp - 4]
call fcn.004054bc
ret
Function at 0x4683e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4685c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4685e0
call fcn.0040556c
mov eax, dword [ebp - 4]
call fcn.00405b78
push eax
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
jne 0x4685ad
xor eax, eax
push ebp
push 0x4685a3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor esi, esi
jmp 0x468584
cmp dword [ebp - 0x1c], 0x1000
jne 0x46857c
cmp dword [ebp - 0x18], 1
je 0x46857c
cmp esi, dword [ebp - 0x28]
je 0x46857c
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jne 0x46857c
push 0x104
lea eax, [ebp - 0x236]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
test eax, eax
jbe 0x46857c
mov eax, dword [ebp - 0x28]
call fcn.00438f70
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46857c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46857c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x46857c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x550dbc]
mov esi, dword [esi]
mov eax, 0x4685f0
mov ecx, 0xe
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x46853d
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x550dbc]
mov esi, dword [esi]
mov eax, 0x468600
mov ecx, 0x10
mov edx, dword [ebp - 0x10]
call esi
inc eax
sete dl
mov eax, dword [ebp - 0x28]
call fcn.00467ad4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x550dbc]
mov esi, dword [esi]
mov eax, 0x468614
mov ecx, 0xc
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x46857c
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.004678f0
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add ebx, eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x46843d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4685ad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4685ca
lea eax, [ebp - 4]
call fcn.004054bc
ret