joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c5a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x495918
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c81d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
lea ebx, [esi + 4]
push ecx
mov dword [esp + 0x30], 0
call fcn.0040abc0
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00405130
xor bl, bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46c62c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401820
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
call fcn.00404180
add esp, 4
push eax
mov byte [esp + 0x30], bl
call fcn.00404330
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46c684
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d96b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c81d0]
jne 0x46d975
repz ret
jmp fcn.00475991
Function at 0x480899
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c81d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004785af
and dword [ebp - 0x14], 0
cmp dword [0x4d1250], 0
mov dword [ebp - 0x18], eax
jne 0x48094c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4809f4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a1e34
push ebx
call edi
test eax, eax
je 0x4809f4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4d1250], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4d1254], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4d1258], eax
call edi
push eax
call esi
mov dword [0x4d1260], eax
test eax, eax
je 0x48094c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4d125c], eax
mov eax, dword [0x4d125c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4809a5
cmp dword [0x4d1260], ecx
je 0x4809a5
push eax
call esi
push dword [0x4d1260]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4809a5
test ebx, ebx
je 0x4809a5
call edi
test eax, eax
je 0x48099c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48099c
test byte [ebp - 8], 1
jne 0x4809a5
or dword [ebp + 0x10], 0x200000
jmp 0x4809d8
mov eax, dword [0x4d1254]
cmp eax, dword [ebp - 0x18]
je 0x4809d8
push eax
call esi
test eax, eax
je 0x4809d8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4809d8
mov eax, dword [0x4d1258]
cmp eax, dword [ebp - 0x18]
je 0x4809d8
push eax
call esi
test eax, eax
je 0x4809d8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4d1250]
call esi
test eax, eax
je 0x4809f4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4809f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d96b
leave
ret
Function at 0x488160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x48cae0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c81d0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c81d0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [0x4c96ac]
cmp eax, 0xffffffff
jne 0x4881a0
xor esi, esi
jmp 0x4881a9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x58], 0
test esi, esi
je 0x4881fd
nop
cmp dword [esi + 0x14], 0
jne 0x48824a
cmp dword [esi + 0x10], 0
jne 0x488250
push 0x4877d0
push 0x4d127c
call fcn.00487a50
mov eax, dword [0x4c96ac]
add esp, 8
cmp eax, 0xffffffff
je 0x488301
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x58], 0xffffffff
test esi, esi
je 0x48822b
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x48822b
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0046d96b
add esp, 0x48
ret
cmp dword [esi + 0x10], 0
je 0x488292
mov ebp, dword [esi + 0x10]
mov eax, dword [ebp + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x488280
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x10], 0
jne 0x488250
cmp dword [esi + 0x14], 0
je 0x4881ca
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4882b7
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebp, dword [edi + 8]
test ebp, ebp
je 0x4882ea
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4882ea
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4882ea
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x14], 0
jne 0x48829c
jmp 0x4881c0
call fcn.00489100
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov edi, 0xb
mov dword [esp + 0x18], str.boost::thread_resource_error
call fcn.0046e25f
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], vtable.boost::thread_resource_error.0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.00405dd0
int3
Function at 0x488450
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x48cb48
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4c81d0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
push edi
mov eax, dword [0x4c81d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x488360
push 0
push 0
call fcn.0046e932
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x4884f2
call fcn.00489100
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
mov esi, eax
lea edi, [ebp + 0xb]
mov dword [esp + 0x14], str.boost::thread_resource_error
call fcn.0046e25f
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
mov dword [esp + 0x14], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x54], ebp
call fcn.00405dd0
mov ecx, dword [esi]
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x488515
cmp eax, 0xffffffff
je 0x488515
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebp
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046d96b
add esp, 0x44
ret
Function at 0x48a1b1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4d1300], 0
push esi
push edi
jne 0x48a127
call fcn.0048a093
test eax, eax
je 0x48a16c
mov eax, dword [0x4d1300]
cmp eax, 1
jne 0x48a148
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x48a16c
jmp 0x48a1ae
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x48a1ae
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x48a170
xor eax, eax
jmp 0x48a1ae
mov eax, dword [esi]
push dword [0x4d1300]
call edi
mov edi, eax
test edi, edi
je 0x48a192
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x48a1ae
lea edi, [esi + 0xff0]
push esi
push dword [0x4d1300]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x48a198
mov eax, esi
pop edi
pop esi
ret
jmp 0x48a113
Function at 0x4011b2
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4204c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x20c]
push str._s.
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401202
xor al, al
jmp 0x40125a
test byte [ebp - 0x45c], 0x10
jne 0x401235
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x401269
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401202
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004069e7
leave
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4011fe

Function at 0x402e6c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00406a00
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x402ee7
push str._as_an_administrator._n
push edi
push 0x41a3e8
push 0x421928
call fcn.00402a1d
pop ecx
pop ecx
push eax
call fcn.00402a1d
pop ecx
pop ecx
push eax
call fcn.00402a1d
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4038e5
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00407ac0
mov eax, dword [0x4204c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push 0x41a558
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2010], eax
cmp eax, ebx
jne 0x40395e
push 0x41a554
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_failed_with_error:
push 0x421a38
call fcn.00402a1d
pop ecx
pop ecx
mov ecx, eax
call fcn.00402fd9
push eax
call fcn.00402bcd
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004069e7
leave
ret
push ebx
push 0x80000000
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x2008], eax
cmp eax, ebx
jne 0x4039b2
push 0x41a554
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpenUrl_failed_with_error:
push 0x421a38
call fcn.00402a1d
pop ecx
pop ecx
mov ecx, eax
call fcn.00402fd9
push eax
call fcn.00402bcd
pop ecx
pop ecx
push dword [ebp - 0x2010]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40394d
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2014], eax
cmp eax, 0xffffffff
jne 0x403a1a
push 0x41a554
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed_with_error:
push 0x421a38
call fcn.00402a1d
pop ecx
pop ecx
mov ecx, eax
call fcn.00402fd9
push eax
call fcn.00402bcd
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
pop ecx
push dword [ebp - 0x2008]
call esi
push dword [ebp - 0x2010]
call esi
jmp 0x40394d
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, 0x2000
jmp 0x403a62
cmp dword [ebp - 0x200c], ebx
je 0x403a7d
push ebx
lea eax, [ebp - 0x2018]
push eax
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403a81
mov eax, dword [ebp - 0x2018]
cmp eax, dword [ebp - 0x200c]
jne 0x403a81
lea eax, [ebp - 0x200c]
push eax
push edi
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2008]
call esi
test eax, eax
jne 0x403a27
mov bl, 1
jmp 0x403aad
push 0x41a554
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41a44c
push 0x421a38
call fcn.00402a1d
pop ecx
pop ecx
mov ecx, eax
call fcn.00402fd9
push eax
call fcn.00402bcd
pop ecx
pop ecx
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2008]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x2010]
call esi
mov al, bl
jmp 0x40394f
Function at 0x4060c1
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4197cf
call fcn.0040790f
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x4061b8
cmp byte [esi + 0x4a], bl
je 0x4061b8
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x4060fd
xor al, al
jmp 0x4061ba
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00405e87
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40615b
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x406160
dec eax
je 0x406164
dec eax
dec eax
je 0x4061b4
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401cd6
mov al, bl
jmp 0x4061ba
mov edx, dword [ebp - 0x2c]
jmp 0x406126
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406170
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x406196
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406183
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0040b55c
add esp, 0x10
cmp edi, eax
jne 0x406149
cmp byte [esi + 0x4a], 0
je 0x4061b4
test edi, edi
jne 0x406118
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402924
jmp 0x406118
mov bl, 1
jmp 0x40614b
mov al, 1
call fcn.00407959
ret
Function at 0x4061c0
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4197fc
call fcn.0040790f
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x4061e2
xor eax, eax
jmp 0x406355
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x406210
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x406210
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x406355
cmp dword [esi + 0x54], ebx
je 0x406350
mov ecx, esi
call fcn.004056a4
cmp dword [esi + 0x44], ebx
jne 0x406240
push dword [esi + 0x54]
push edi
call fcn.004057bd
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x406355
jmp 0x406350
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00405e87
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4062fd
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x406345
cmp eax, ebx
jg 0x406305
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4062af
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x4062d4
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4062c2
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.0040b55c
add esp, 0x10
cmp edi, eax
jne 0x406345
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x406334
test edi, edi
jne 0x406261
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x40634a
push 8
call fcn.00402924
jmp 0x406261
mov edx, dword [ebp - 0x2c]
jmp 0x406273
cmp eax, 3
jne 0x406345
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.004057bd
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x406324
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401cd6
mov ax, si
jmp 0x406355
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401cd6
mov ax, word [ebp + 8]
jmp 0x406355
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00401cd6
mov eax, 0xffff
call fcn.00407959
ret 4

Function at 0x4069e7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4204c4]
jne 0x4069f1
repz ret
jmp fcn.0040ca43
Function at 0x416296
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4204c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c435
and dword [ebp - 0x14], 0
cmp dword [0x4227d4], 0
mov dword [ebp - 0x18], eax
jne 0x416349
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4163f1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4163f1
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4227d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4227d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4227dc], eax
call edi
push eax
call esi
mov dword [0x4227e4], eax
test eax, eax
je 0x416349
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4227e0], eax
mov eax, dword [0x4227e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4163a2
cmp dword [0x4227e4], ecx
je 0x4163a2
push eax
call esi
push dword [0x4227e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4163a2
test ebx, ebx
je 0x4163a2
call edi
test eax, eax
je 0x416399
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x416399
test byte [ebp - 8], 1
jne 0x4163a2
or dword [ebp + 0x10], 0x200000
jmp 0x4163d5
mov eax, dword [0x4227d8]
cmp eax, dword [ebp - 0x18]
je 0x4163d5
push eax
call esi
test eax, eax
je 0x4163d5
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4163d5
mov eax, dword [0x4227dc]
cmp eax, dword [ebp - 0x18]
je 0x4163d5
push eax
call esi
test eax, eax
je 0x4163d5
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4227d4]
call esi
test eax, eax
je 0x4163f1
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4163f3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004069e7
leave
ret
Function at 0x10001193
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, eax
mov eax, dword [0x1000b70c]
xor esi, esi
cmp eax, esi
je 0x100011d7
cmp ecx, 0x90
jae 0x100011d7
push dword [ebp + 0x10]
push 1
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
push ecx
xor ecx, ecx
cmp dword [ebp + 0x14], esi
setne cl
inc ecx
inc ecx
push ecx
call eax
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
jmp 0x100012af
push ebx
push dword [ebp + 0x14]
call fcn.100010f6
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x100012ac
push esi
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100012a5
cmp esi, dword [ebp - 0x20]
jg 0x100012a5
jl 0x10001224
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x24]
ja 0x100012a5
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0xc], eax
ja 0x100012a5
cmp edi, dword [ebp - 0x14]
ja 0x100012a5
push esi
push dword [ebp + 8]
push esi
push eax
call fcn.10007720
xor ecx, ecx
add eax, dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
adc edx, ecx
push edx
push eax
call fcn.10007720
push esi
push dword [ebp - 0x10]
xor ecx, ecx
dec edi
add eax, edi
adc edx, ecx
push edx
push eax
call fcn.10007720
push esi
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100012a5
cmp dword [ebp + 0x14], esi
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x10001287
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push ebx
call eax
test eax, eax
push ebx
je 0x100012a6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x100012ae
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x1000141f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001429
repz ret
jmp fcn.10001874

Function at 0x1000447a
Capabilities:
Contain obfuscated stackstrings
Inspect section memory permissions

Disassembly:
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
invalid
inc ebp

Function at 0x10004498
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid

Function at 0x100044e0
Capabilities:
Inspect section memory permissions

Disassembly:
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x100047d0
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.10003f48
add esp, 0xc