joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e7c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x44e7d9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.00453460
add esp, 4
test eax, eax
jne 0x44e7ee
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44e808
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x44e808
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x44e8f0
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x44e840
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x44e857
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x44e85b
mov esi, dword [esp + 0x2c]
push esi
call fcn.00464cb8
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e894
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.00464ce1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x44e8b0
mov al, byte [ecx]
test al, al
je 0x44e8b0
cmp al, 0x1a
je 0x44e8b0
inc edi
inc ecx
cmp edi, edx
jb 0x44e8a0
lea ecx, [edi + 1]
push ecx
call fcn.0044c3d0
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.004599b0
push ebx
mov byte [edi + esi], 0
call fcn.00464ce1
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x44e96b
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x44e90a
or eax, 0xffffffff
jmp 0x44e90e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x44e93d
mov cl, byte [edx]
test cl, cl
je 0x44e93d
cmp cl, 0x1a
je 0x44e93d
inc edi
inc edx
cmp edi, eax
jb 0x44e92c
lea edx, [edi + 1]
push edx
call fcn.0044c3d0
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.004599b0
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x44efe0
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call sub.WS2_32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x44f007
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44f007
mov eax, dword [eax + 0xc]
pop edi
pop esi
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
mov eax, esi
pop edi
pop esi
ret

Function at 0x44f010
Capabilities:
Initialize winsock library
Send icmp echo request

Disassembly:
sub esp, 0x2a8
lea eax, [esp + 0x118]
push ebp
push eax
push 0x202
or ebp, 0xffffffff
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x44f0a7
mov ecx, dword [esp + 0x2b4]
push ebx
push esi
push edi
push ecx
call fcn.0044efe0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x44f095
mov eax, dword [esp + 0x2d4]
mov edi, 0x2710
test eax, eax
je 0x44f061
mov edi, dword [esp + 0x2cc]
call sub.icmp.dll_IcmpCreateFile
mov esi, eax
test esi, esi
je 0x44f095
push edi
lea edx, [esp + 0x14]
push 0x116
push edx
push 0
push 0xd
push str.BlackMoonPing
push ebx
push esi
call sub.icmp.dll_IcmpSendEcho
test eax, eax
je 0x44f08f
mov ebp, dword [esp + 0x18]
push esi
call sub.icmp.dll_IcmpCloseHandle
call sub.WS2_32.dll_WSACleanup
pop edi
pop esi
mov eax, ebp
pop ebx
pop ebp
add esp, 0x2a8
ret
mov eax, ebp
pop ebp
add esp, 0x2a8
ret
Function at 0x44f360
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x44f373
xor eax, eax
pop esi
add esp, 0x14
ret
push esi
call fcn.00453460
add esp, 4
test eax, eax
jne 0x44f385
pop esi
add esp, 0x14
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x44f486
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ecx
jle 0x44f519
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [esp + 0x38]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 8]
mov dword [esp + 0x18], 0
cmp eax, 0x80000004
jne 0x44f3da
mov esi, dword [edi]
jmp 0x44f403
push edi
call fcn.00453880
mov esi, eax
add esp, 4
test esi, esi
jne 0x44f3fb
push eax
lea eax, [esp + 0x18]
push eax
push 2
push 0x48f9f0
push ebx
call ebp
jmp 0x44f45e
mov dword [esp + 0x18], 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x44f43d
lea edx, [esp + 0x14]
push eax
push edx
push ecx
push esi
push ebx
call ebp
test eax, eax
je 0x44f435
lea eax, [esp + 0x14]
push 0
push eax
push 2
push 0x48f9f0
push ebx
call ebp
jmp 0x44f43d
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44f44e
push esi
call fcn.00459bcf
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44f519
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
jl 0x44f3c4
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
cmp eax, 2
jne 0x44f519
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
jle 0x44f519
lea edi, [esp + 0x38]
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x44f4bb
mov esi, dword [edi]
jmp 0x44f4cf
push edi
call fcn.00453880
mov esi, eax
add esp, 4
test esi, esi
je 0x44f507
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x44f4e8
mov edx, dword [ebx]
push ecx
push esi
mov ecx, ebx
call dword [edx + 0x24]
mov eax, dword [ebx]
push 2
push 0x48f9f0
mov ecx, ebx
call dword [eax + 0x24]
test ebp, ebp
je 0x44f503
push esi
call fcn.00459bcf
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add edi, 0xc
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
jne 0x44f4ab
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret

Function at 0x451b60
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x451b7e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x451b73
pop esi
ret
Function at 0x451e80
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x451e8e
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00453460
add esp, 4
test eax, eax
jne 0x451ea0
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x451ebb
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
cmp ecx, 2
jne 0x451ec8
mov ecx, dword [esi + 4]
call fcn.00454010
pop esi
ret

Function at 0x4526b0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4526da
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4526da
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x4526e0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x452708
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x45272a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x452730
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x452870
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4528d9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0044c3d0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x4528e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x452972
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x452964
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45295c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x452925
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x455ea0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x455eea
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x455f19
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x455f5b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x467685
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4676c7
call fcn.0046a9da
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4676c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4676be
xor eax, eax
jmp 0x4676cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004676d5
pop edi
pop esi
pop ebx
ret 4

Function at 0x468665
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46c2e0
call fcn.0045ac48
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0046a9da
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4686a4
call fcn.0046a9da
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4686b2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4686c0
or eax, 0xffffffff
jmp 0x4687a8
mov ecx, esi
call fcn.004685db
mov dword [ebp - 0x14], eax
call fcn.00465ccd
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4686f7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4686f7
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00465c81
push dword [ebp - 0x14]
call fcn.004657b3
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00468373
cmp eax, edi
je 0x46876a
test byte [esi + 0x24], 0x10
je 0x468738
push 4
mov ecx, esi
pop ebx
call fcn.004651b3
test ah, 1
je 0x468730
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004677d7
cmp dword [esi + 0x1c], edi
je 0x46876a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004651e7
jmp 0x46876a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x46877e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x468797
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x468797
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00468615
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46a54c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a57a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a598
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a4b2
jmp 0x46a598
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a598
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a4b2
test edi, edi
mov eax, edi
jne 0x46a582
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x531a34
call fcn.00412d60
mov ecx, 0x530c68
mov dword [esi + 0x20], ecx
pop esi
jmp fcn.004637b2

Function at 0x406e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x531a34
call fcn.00412d60
mov eax, dword [0x530c50]
mov ecx, 0x5319b8
mov dword [0x531a2c], eax
mov dword [esi + 0x20], ecx
pop esi
jmp fcn.004637b2

Function at 0x407350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e0d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push 0x40b
mov ecx, 0x531a34
call fcn.00412c90
mov eax, dword [0x530c50]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0040e590
mov dword [esp + 0x28], 0
push 0x4e90cc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00404a80
mov byte [esp + 0x34], 1
push 0x4e90b4
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00404a80
add esp, 0x20
mov byte [esp + 0x20], 3
lea ecx, [esp]
call fcn.00417490
call fcn.0040cba0
test eax, eax
je 0x407474
mov edx, dword [esp + 0x10]
push 0x1f4
push 0x14
push edx
call fcn.0040def0
add esp, 0xc
test eax, eax
je 0x407474
push 0
sub esp, 8
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call fcn.004176e0
mov byte [esp + 0x2c], 4
mov ecx, dword [0x530c50]
push ecx
mov byte [esp + 0x30], 3
call fcn.00411040
add esp, 8
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 8], esp
push edx
call fcn.004176e0
mov byte [esp + 0x28], 5
mov byte [esp + 0x28], 3
call fcn.004101b0
add esp, 8
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00417490
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.00417490
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00417490
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.00417490
mov ecx, dword [esp + 0x18]
mov eax, 2
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40b520
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b596
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40b565
cmp eax, 2
jne 0x40b581
mov eax, dword [esp + 0x14]
test esi, esi
je 0x40b590
test eax, eax
je 0x40b58b
test al, 1
jne 0x40b581
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40b590
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x40c600
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4e12b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [esp + 0x34]
push ebx
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x10], ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
call fcn.0040c3a0
mov dword [esp + 0x30], 1
mov edx, dword [esp + 0x40]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c655
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0040c140
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.0040c3a0
mov dword [esp + 8], 1
mov byte [esp + 0x30], bl
cmp dword [esp + 0x24], 8
jb 0x40c6ae
mov eax, dword [esp + 0x10]
push eax
call fcn.0045d8c9
add esp, 4
xor ecx, ecx
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x28]
mov eax, esi
mov dword [esp + 0x20], ebx
pop esi
mov dword [esp + 0x20], 7
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40ca20
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x18
xor eax, eax
push edi
mov word [esp + 8], ax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
je 0x40ca8c
push esi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, edi
je 0x40ca84
push 9
lea ecx, [esp + 0x10]
push ecx
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0xc]
push edx
call fcn.0047aaa9
add esp, 4
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, edi
pop edi
add esp, 0x18
ret
lea eax, [esp + 0x20]
push eax
push 0x40c990
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40cadf
mov eax, dword [0x530b30]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 4]
push edx
push 0x1f4
push 3
push edi
push edi
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x40cadf
mov eax, dword [esp + 4]
pop edi
add esp, 0x18
ret
or eax, 0xffffffff
pop edi
add esp, 0x18
ret
Function at 0x40cba0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
xor edi, edi
jmp 0x40cbc0
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push 0x40c990
mov word [esp + 0x24], ax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
mov dword [esp + 0x18], ebx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ccca
mov ecx, dword [0x530b30]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x1f4
push 3
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x40ccca
cmp dword [esp + 0x18], ebx
jle 0x40ccca
lea eax, [esp + 0x14]
push eax
push 0x40caf0
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x40cc67
push 0x3e8
call ebp
inc edi
cmp edi, 6
jl 0x40cbc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push ebx
push 0x100000
call edi
mov esi, eax
cmp esi, ebx
je 0x40cc5a
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
test eax, eax
jne 0x40cca0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push 1
call edi
cmp eax, ebx
je 0x40cc5a
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
xor esi, esi
jmp 0x40cce0
push 0x4eae68
push 0
push 0x1f0003
call ebx
test eax, eax
je 0x40cc5a
push eax
call edi
push 0x64
call ebp
inc esi
cmp esi, 0x64
jl 0x40cce0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret