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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00403130
mov edi, 1
cmp dword [esi + 0xa44], edi
mov ebp, eax
mov ebx, edx
jne 0x40627f
or eax, ebx
jne 0x40628b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 8
mov ebp, dword [esi + 0xa48]
mov ebx, dword [esi + 0xa4c]
push 0x3e8
mov ecx, esi
call fcn.00403930
mov dword [esi + 0xa50], edi
xor edi, edi
push edi
push 0x3e8
push ebx
push ebp
mov dword [esi + 0xbc0], edi
mov dword [esi + 0xa68], edi
mov dword [esi + 0xa6c], edi
call fcn.0040a4f0
mov dword [esi + 0xd48], eax
mov dword [esi + 0xd4c], edx
mov dword [esi + 0xd38], edi
mov dword [esi + 0xd3c], edi
mov dword [esi + 0xd40], edi
mov dword [esi + 0xd44], edi
mov dword [esi + 0xd50], edi
call fcn.00401950
lea ebp, [esi + 0xa7c]
push ebp
push edi
push esi
push 0x405ec0
push edi
push edi
mov dword [esi + 0xa8c], edi
mov dword [esi + 0xa98], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x406322
mov dword [ebp], edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 8
cmp dword [esi + 0xa50], edi
je 0x406384
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
call fcn.00402df0
mov ecx, esi
call fcn.00404180
mov ecx, dword [esi + 0xd50]
push ecx
call fcn.00401970
add esp, 4
push 1
push edi
push edi
push edi
lea edx, [esp + 0x20]
push edx
call ebx
test eax, eax
je 0x406375
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40637c
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xa50], edi
jne 0x406336
mov ecx, esi
call fcn.00404180
cmp dword [esi + 0xbc0], edi
jg 0x406273
cmp dword [esi + 0xa44], 1
jle 0x4063cc
mov edx, dword [esi + 0xd4c]
mov eax, dword [esi + 0xd48]
push edi
push 0x3e8
push edx
push eax
call fcn.0040ae10
mov ecx, esi
mov dword [esi + 0xa68], eax
mov dword [esi + 0xa6c], edx
call fcn.00404180
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret 8

Function at 0x406400
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push esi
push eax
mov eax, dword [esp + 0xc]
mov esi, ecx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xab4]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x406437
mov ecx, esi
call fcn.004063e0
xor al, al
pop esi
ret 0x10
mov al, 1
pop esi
ret 0x10

Function at 0x406440
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0xab4]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406489
mov ecx, esi
call fcn.004063e0
xor al, al
pop esi
pop ecx
ret 0x10
mov al, 1
pop esi
pop ecx
ret 0x10
Function at 0x406780
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42424c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x218]
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, dword [esp + 0x220]
push 0x104
lea eax, [esp + 0x118]
push 0
push eax
call fcn.00409790
add esp, 0xc
lea ecx, [esp + 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00409790
mov eax, dword [esp + 0x238]
push eax
push 0
push esi
call fcn.00409790
push edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x30]
push 0x41cf70
push ecx
call ebx
push edi
lea edx, [esp + 0x140]
push edx
push str._s_s
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x38
push 0
push esi
lea eax, [esp + 0x18]
push eax
xor bl, bl
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jne 0x406852
push 0x80
push esi
call ebp
push 0
push esi
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
je 0x406854
mov bl, 1
push 0x80
push esi
call ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004096cb
add esp, 0x20c
ret 0x10

Function at 0x406880
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42424c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x220]
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x220]
push 0x104
lea eax, [esp + 0x118]
push 0
push eax
call fcn.00409790
add esp, 0xc
lea ecx, [esp + 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00409790
mov eax, dword [esp + 0x23c]
push eax
push 0
push esi
call fcn.00409790
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea ecx, [esp + 0x30]
push 0x41cf70
push ecx
call edi
push ebp
lea edx, [esp + 0x140]
push edx
push str._s_s
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x38
push 0
push esi
lea eax, [esp + 0x18]
push eax
xor bl, bl
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jne 0x406959
push 0x80
push esi
call ebp
push 0
push esi
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
je 0x40695b
mov bl, 1
push 0x80
push esi
call ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004096cb
add esp, 0x20c
ret 0x14
Function at 0x406980
Capabilities:
Get common file path

Disassembly:
sub esp, 0x314
mov eax, dword [0x42424c]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
push ebp
mov ebp, dword [esp + 0x328]
push esi
mov esi, dword [esp + 0x324]
push edi
push 0x104
lea eax, [esp + 0x11c]
push 0
push eax
call fcn.00409790
add esp, 0xc
lea ecx, [esp + 0x118]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.004095f5
mov ebx, dword [esp + 0x340]
push ebx
push 0
push ebp
call fcn.00409790
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov esi, 1
mov edi, edi
push ebx
lea eax, [esp + 0x220]
push 0
push eax
call fcn.00409790
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x234]
push str._s_s_02d.exe
push eax
call edi
push 0x41d5f0
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00409bd4
add esp, 0x2c
test eax, eax
jne 0x406a8d
mov eax, dword [esp + 0x10]
push eax
call fcn.00409a81
add esi, 1
add esp, 4
cmp esi, 0x64
jl 0x406a00
lea edx, [esp + 0x14]
push edx
push str._s.exe
push ebp
call edi
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x320]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004096cb
add esp, 0x314
ret 0x10
push esi
lea ecx, [esp + 0x18]
push ecx
push str._s_02d.exe
push ebp
call edi
add esp, 0x10
mov al, 1
jmp 0x406a72
Function at 0x406ab0
Capabilities:
Delete file
Get common file path
Move file
Read .ini file

Disassembly:
sub esp, 0x29c
mov eax, dword [0x42424c]
xor eax, esp
mov dword [esp + 0x298], eax
push esi
mov esi, dword [esp + 0x2a4]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406cb6
push ebx
push ebp
push edi
push 0x104
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.WININIT.INI
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea edx, [esp + 0x1a8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x8000
push 0
call edi
mov ebx, eax
push str._Rename_
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call ebp
mov esi, eax
add esi, ebx
mov byte [esi], 0xd
add esi, 1
push 0x8000
mov byte [esi], 0xa
push 0
add esi, 1
call edi
lea ecx, [esp + 0xa0]
push ecx
push 0x8000
push eax
push 0x41ceca
push 0
push str.Rename
mov dword [esp + 0x2c], eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, edi
cmp byte [edx], 0
je 0x406bf3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x41d6a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call ebp
add esi, eax
mov ecx, ebx
lea eax, [esp + 0xa0]
push eax
sub ecx, esi
add ecx, 0x8000
push ecx
push esi
push 0x41ceca
push edi
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call ebp
add esi, eax
mov byte [esi], 0xd
add esi, 1
mov byte [esi], 0xa
push edi
add esi, 1
call ebp
mov edx, esi
sub edx, ebx
cmp edx, 0x7530
lea edi, [edi + eax + 1]
jg 0x406cb3
cmp byte [edi], 0
jne 0x406b88
push str.NUL
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x1a4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call ebp
mov ecx, dword [esp + 0x14]
add esi, eax
mov byte [esi], 0xd
add esi, 1
push ecx
mov byte [esi], 0xa
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [esp + 0xa0]
push edx
push 0
push 0
push str.Rename
call edi
lea eax, [esp + 0xa0]
push eax
push 0
push 0
push 0
call edi
push 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
je 0x406cac
mov ebp, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 1
push edi
call ebp
push 1
lea eax, [esp + 0x17]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lread]
xor ecx, ecx
cmp byte [esp + 0x13], 0x1a
push 2
sete cl
push ecx
push edi
call ebp
sub esi, ebx
add esi, 1
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x29c]
pop esi
xor ecx, esp
call fcn.004096cb
add esp, 0x29c
ret 4
Function at 0x408e90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x408eaf
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x4090f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41b798
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42424c]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42424c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x64]
cmp dword [ecx + 0x18], 0x10
mov dword [esp + 0x14], ecx
jb 0x409135
mov esi, dword [ecx + 4]
jmp 0x409138
lea esi, [ecx + 4]
mov al, byte [esi]
test al, al
je 0x40924d
cmp al, 0x5c
jne 0x40922e
call fcn.00408e80
xor ebp, ebp
cmp eax, esi
mov edi, 0xf
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebp
mov byte [esp + 0x38], 0
je 0x409176
mov ecx, esi
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00405db0
cmp dword [esp + 0x4c], 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 0x5c], ebp
jae 0x409189
lea edx, [esp + 0x38]
mov eax, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
lea edi, [eax + 1]
jmp 0x4091a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4091a0
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00405db0
lea edx, [esp + 0x18]
push edx
call fcn.00408e90
add esp, 4
test al, al
mov edi, 0x10
sete bl
cmp dword [esp + 0x30], edi
jb 0x4091e0
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040a6f2
add esp, 4
test bl, bl
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
je 0x40920f
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x409203
lea eax, [esp + 0x38]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40926e
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x5c], 0xffffffff
jb 0x40922a
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040a6f2
add esp, 4
mov ecx, dword [esp + 0x14]
movzx edx, byte [esi]
xor dl, 0x20
add dl, 0x5f
mov al, 0x3b
cmp al, dl
sbb edx, edx
add edx, 2
mov al, byte [esi + edx]
add esi, edx
test al, al
jne 0x409142
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004096cb
add esp, 0x4c
ret
cmp dword [esp + 0x4c], edi
jb 0x409281
mov eax, dword [esp + 0x38]
push eax
call fcn.0040a6f2
add esp, 4
xor al, al
jmp 0x40924f
Function at 0x4096cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42424c]
jne 0x4096d5
repz ret
jmp fcn.0040b72a

Function at 0x41598b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040bcbd
xor ebx, ebx
cmp dword [0x457380], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x415a60
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4159cb
xor eax, eax
jmp 0x415b24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e840
push edi
call esi
cmp eax, ebx
je 0x4159c4
push eax
call fcn.0040bc5a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x457380], eax
call esi
push eax
call fcn.0040bc5a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x457384], eax
call esi
push eax
call fcn.0040bc5a
mov dword [0x457388], eax
lea eax, [ebp - 8]
push eax
call fcn.0040c3ac
test eax, eax
pop ecx
pop ecx
je 0x415a2e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b58b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x415a60
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040bc5a
cmp eax, ebx
pop ecx
mov dword [0x457390], eax
je 0x415a60
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040bc5a
pop ecx
mov dword [0x45738c], eax
mov eax, dword [0x45738c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x415ad9
cmp dword [0x457390], esi
je 0x415ad9
push eax
call fcn.0040bcc6
pop ecx
call eax
cmp eax, ebx
je 0x415aa6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x457390]
call fcn.0040bcc6
pop ecx
call eax
test eax, eax
je 0x415aa6
test byte [ebp - 0x18], 1
jne 0x415ad9
lea eax, [ebp - 0xc]
push eax
call fcn.0040c3e3
test eax, eax
pop ecx
je 0x415ac1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b58b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x415ad0
or dword [ebp + 0x10], 0x200000
jmp 0x415b0a
or dword [ebp + 0x10], 0x40000
jmp 0x415b0a
mov eax, dword [0x457384]
cmp eax, esi
je 0x415b0a
push eax
call fcn.0040bcc6
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x415b0a
mov eax, dword [0x457388]
cmp eax, esi
je 0x415b0a
push dword [ebp - 4]
push eax
call fcn.0040bcc6
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x457380]
call fcn.0040bcc6
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, 0
mov ecx, dword [0x4f2078]
mov edx, dword [0x4f2074]
sub eax, 1
mov esi, ecx
add esi, eax
imul ecx, esi
and ecx, 1
cmp ecx, 0
sete bl
and bl, 1
mov byte [ebp - 0x12], bl
cmp edx, 0xa
setl bl
and bl, 1
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], 0xdda34a99
mov eax, dword [ebp - 0x18]
mov ecx, eax
sub ecx, 0xdda34a98
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jg 0x415f73
jmp 0x415f5d
mov eax, dword [ebp - 0x1c]
sub eax, 0xacb23ca5
mov dword [ebp - 0x24], eax
je 0x4160cd
jmp 0x415fb5
mov eax, dword [ebp - 0x1c]
sub eax, 0xdda34a99
mov dword [ebp - 0x28], eax
je 0x415fba
jmp 0x415f89
mov eax, dword [ebp - 0x1c]
sub eax, 0xe013b991
mov dword [ebp - 0x2c], eax
je 0x4160d8
jmp 0x415f9f
mov eax, dword [ebp - 0x1c]
sub eax, 0xebb950d6
mov dword [ebp - 0x30], eax
je 0x41600f
jmp 0x415fb5
jmp 0x41613d
mov eax, 0xe013b991
mov ecx, 0xebb950d6
mov dl, 1
mov dh, byte [ebp - 0x12]
mov bl, byte [ebp - 0x11]
mov bh, dh
xor bh, 1
mov dword [ebp - 0x34], eax
mov al, bl
xor al, 1
xor dl, 0
mov ah, bh
and ah, 0
and dh, dl
mov byte [ebp - 0x35], al
and al, 0
and bl, dl
or ah, dh
or al, bl
xor ah, al
mov al, byte [ebp - 0x35]
or bh, al
xor bh, 1
or dl, 0
and bh, dl
or ah, bh
test ah, 1
mov esi, dword [ebp - 0x34]
cmovne esi, ecx
mov dword [ebp - 0x18], esi
jmp 0x41613d
mov eax, 4
mov dword [ebp - 0x3c], eax
call fcn.004ce730
mov eax, esp
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, ecx
call fcn.004ce730
mov eax, esp
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, ecx
call fcn.004ce730
mov eax, esp
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword fs:[0x30]
mov dword [edx], eax
mov eax, 0xe013b991
mov esi, 0xacb23ca5
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
mov dword [ecx], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x4f2078]
mov edx, dword [0x4f2074]
mov edi, ecx
sub edi, 0x6842dc63
sub edi, 1
add edi, 0x6842dc63
imul ecx, edi
and ecx, 1
cmp ecx, 0
sete bl
cmp edx, 0xa
setl bh
mov cl, bl
and cl, bh
xor bl, bh
or cl, bl
test cl, 1
cmovne eax, esi
mov dword [ebp - 0x18], eax
jmp 0x41613d
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x48], eax
call fcn.004ce730
mov eax, esp
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, ecx
call fcn.004ce730
mov eax, esp
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, ecx
call fcn.004ce730
mov eax, esp
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword fs:[0x30]
mov dword [edx], eax
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
mov dword [ebp - 0x18], 0xebb950d6
jmp 0x415f41
Function at 0x4d1ada
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f0560]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004cfd81
mov dword [ebp - 0x14], eax
cmp dword [0x4f1d2c], edi
jne 0x4d1bcb
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4d1b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d1cab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4d1cab
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d1cab
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4f1d2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4f1d30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4f1d34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f1d3c], eax
test eax, eax
je 0x4d1bc8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f1d38], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d1bf0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d1be3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4d1c05
push 4
pop eax
jmp 0x4d1cad
cmp dword [ebp - 0x14], edi
je 0x4d1c05
push dword [0x4f1d2c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d1bea
mov eax, dword [0x4f1d38]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4d1c63
cmp dword [0x4f1d3c], esi
je 0x4d1c63
push eax
call ebx
push dword [0x4f1d3c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d1c63
test eax, eax
je 0x4d1c63
call ecx
test eax, eax
je 0x4d1c58
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4d1c58
test byte [ebp - 8], 1
jne 0x4d1c63
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4d1c93
mov eax, dword [0x4f1d30]
cmp eax, esi
je 0x4d1c90
push eax
call ebx
test eax, eax
je 0x4d1c90
call eax
mov edi, eax
test edi, edi
je 0x4d1c90
mov eax, dword [0x4f1d34]
cmp eax, esi
je 0x4d1c90
push eax
call ebx
test eax, eax
je 0x4d1c90
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4f1d2c]
call ebx
test eax, eax
je 0x4d1cab
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4d1cad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1cbc
leave
ret