joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fd6f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4859a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov dword [ebp - 0x118], ecx
lea ecx, [ebp - 0x114]
call fcn.004032b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x118]
xor ecx, ecx
mov cl, byte [eax + 0x2024]
call fcn.00484002
nop
nop
nop
nop
call fcn.00484e27
mov byte [ebp - 0x10], al
mov edx, dword [ebp - 0x10]
and edx, 0xff
cmp edx, 0xff
jne 0x46fdd9
mov byte [ebp - 0x10], 1
mov eax, str.EFFAREA.E5
lea ecx, [ebp - 0x114]
call fcn.004165b8
mov eax, dword [ebp - 0x118]
add eax, 0x1024
push eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
push ecx
lea ecx, [ebp - 0x114]
call fcn.0041fc89
lea ecx, [ebp - 0x114]
call fcn.004192c5
push 0
mov edx, dword [0x4b5ffc]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc
call fcn.0047cae3
nop
nop
nop
push 7
call fcn.0047d1ca
add esp, 4
push 0
push 0
push 0
call fcn.0047d1f1
add esp, 0xc
mov eax, dword [ebp - 0x118]
add eax, 0x1024
push eax
mov ecx, dword [0x4868ac]
push ecx
mov edx, dword [0x4868a8]
push edx
push 0
push 0
call fcn.0047e09b
nop
nop
nop
push 0
call fcn.0047cae3
nop
nop
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.004192c5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4714e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 0x18], 0
jne 0x471503
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x47151d
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 8], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp - 4], ecx
push 0x100
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x471559
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x20], 1
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00471411
add esp, 0x20
mov esp, ebp
pop ebp
ret

Function at 0x474e0e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
call fcn.00426b52
add esp, 4
push 0
push dword [0x4b7508]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
push 1
call fcn.0041de7e
push 0x3fe
push 0x500c7e
call fcn.0042de26
cmp al, 2
je 0x474e52
inc al
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
call fcn.00423861
mov ecx, dword [ebp + 8]
mov byte [ecx], 2
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
call fcn.00426ba3
mov esp, ebp
pop ebp
ret 8
Function at 0x476eab
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
sub esp, 0x30
jmp 0x476ebb
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp al, 3
jae 0x477060
push eax
mov ecx, dword [ebp - 4]
call fcn.004065f0
mov ecx, dword [ebp - 0xc]
mov byte [ecx + ebp - 8], al
cmp al, 0xff
je 0x476fdb
mov ecx, eax
call fcn.004837c2
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0xc]
cmp al, 2
je 0x476ef8
push eax
push dword [ebp + 8]
call fcn.004669ff
mov eax, 0x56f
add eax, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x10
add ecx, 0x486cd0
push dword [ebp - 0x10]
push ecx
push eax
call fcn.00461dae
add esp, 0xc
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
call fcn.004032df
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 2
je 0x476fa4
push 0
push eax
mov eax, 0x58e
add eax, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov eax, 0x590
add eax, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x18], eax
push 1
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
push 5
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + ebp - 8]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.0040df60
lea edx, [ebp - 0x3c]
push edx
mov eax, 0x588
add eax, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0
push dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + ebp - 8]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00461fc8
lea edx, [ebp - 0x3c]
push edx
mov eax, 0x579
add eax, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp - 0x10]
call fcn.004520ba
jmp 0x477049
mov eax, 0x56f
add eax, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x486cfc
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x10
add ecx, 0x486cd0
push ecx
push eax
call fcn.00461dae
add esp, 0xc
cmp dword [ebp - 0xc], 2
je 0x477034
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00417d70
mov eax, 0x590
add eax, dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 0x579
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00477087
mov eax, 0x68
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 4
mov ecx, dword [ecx + 0x47707b]
push eax
call fcn.004633cf
jmp 0x476eb8
push dword [ebp - 4]
call fcn.0040be7d
push eax
lea edx, [ebp - 8]
push edx
push dword [ebp + 8]
call fcn.00477249
mov esp, ebp
pop ebp
ret 4
Function at 0x477ee2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x14], eax
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetParent]
lea edx, [ebp - 0x10]
push edx
push dword [ebp - 0x14]
call fcn.00461b6a
add esp, 8
mov eax, dword [ebp + 0x14]
push 0xc
mov ecx, dword [eax + 4]
add ecx, 2
push ecx
mov ecx, dword [eax]
add ecx, 2
push ecx
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
sub ecx, 2
sub ecx, dword [eax + 4]
cdq
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x10]
sub ecx, 2
sub ecx, dword [eax]
cdq
sub ecx, edx
sar ecx, 1
push ecx
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp + 0x14]
push 0
push dword [eax + 4]
push dword [eax]
push 0
push 0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x478384
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
cmp eax, 0x4b8
jb 0x4783cc
cmp eax, 0x4bf
ja 0x4783cc
push 8
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 8]
cmp byte [ecx], 0x2b
jne 0x4783c0
mov eax, 0xff0000
jmp 0x4783ce
cmp byte [ecx], 0x2d
jne 0x4783cc
mov eax, 0xff
jmp 0x4783ce
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x4790da
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x48e9a8], 0xffffffff
je 0x47912a
mov eax, dword [ebp + 8]
cmp eax, dword [0x48e9a8]
je 0x479115
mov ecx, dword [0x48e9a8]
mov edx, dword [ecx*4 + 0x4b6ba8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x479115
push 0
mov ecx, 0x4b69b0
call fcn.004746ad
push 0
mov eax, dword [0x48e9a8]
mov ecx, dword [eax*4 + 0x4b6ba8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0xffffffff
jne 0x479137
mov dword [ebp + 8], 0
push 5
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x4b6ba8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
mov dword [0x48e9a8], ecx
pop ebp
ret

Function at 0x479728
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x400
jb 0x479736
jmp 0x479793
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x479754
push 1
push 0
mov ecx, 0x4b69b0
call fcn.0047467a
mov ecx, dword [0x4b7508]
push ecx
push dword [ebp + 8]
call fcn.004061e4
nop
nop
nop
nop
call fcn.00478664
mov edx, dword [0x4b7508]
push edx
call fcn.00479647
add esp, 4
push 9
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.0047cae3
nop
nop
nop
pop ebp
ret

Function at 0x479b59
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x4b7504], 0
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x479ba8
push 0
push 0x479164
mov ecx, dword [0x4b6a68]
push ecx
push 0xa6
mov edx, dword [0x4b6a60]
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x4b7508], eax
cmp dword [0x4b7508], 0
jne 0x479ba8
xor eax, eax
jmp 0x479bbb
push 0
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop ebp
ret

Function at 0x479bd9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0047645e
pop ebp
ret

Function at 0x479bf1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [0x4b5fd8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4b5fec]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4b7508]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 0x48bae0
xor ecx, ecx
dec cx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push 0
push dword [0x4ff5b0]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
call fcn.00426c32
pop ebp
ret
Function at 0x1002592
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10025b1
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.01002717
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x1002967
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x10025db
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
pop esi
pop ebp
ret 4
shl esi, 0xa
push esi
jmp 0x10025d5

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x46cda5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0046cd21
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x46cf14
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x46cf14
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x46cec9
jg 0x46ce01
test eax, eax
je 0x46cebf
push 1
push 0x1000
call fcn.00459101
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x46ce24
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x46ceb6
push 0x8000
push ebx
call fcn.0045b491
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46ce4d
jg 0x46ce48
cmp ecx, 0x1000
jb 0x46ce4d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004609a5
add esp, 0x10
cmp eax, 0xffffffff
je 0x46ce92
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x46ce48
jl 0x46ce79
test ecx, ecx
jne 0x46ce3a
push dword [ebp - 0xc]
push ebx
call fcn.0045b491
push esi
call fcn.0045915e
add esp, 0xc
xor ebx, ebx
jmp 0x46cf22
cmp byte [edi + 0x24], 0
je 0x46cea9
cmp dword [edi + 0x20], 5
jne 0x46cea9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x46ceb4
mov ebx, dword [edi + 0x18]
jmp 0x46ceb6
xor ebx, ebx
push esi
call fcn.0045915e
pop ecx
jmp 0x46cf22
test ecx, ecx
jg 0x46ce8b
jl 0x46cec9
test eax, eax
jae 0x46ce8b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004617f1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46cee9
cmp byte [edi + 0x1c], 0
je 0x46ce8b
jmp 0x46cf1a
push ebx
call fcn.004656ab
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46ce8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x46cf22
cmp byte [edi + 0x1c], 0
je 0x46cf1f
mov ebx, dword [edi + 0x18]
jmp 0x46cf22
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004617f1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013b2
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a318]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a31c]
mov dword [ebp - 0x2c], eax
call fcn.004013ab
mov edi, dword [ebp - 0x10]
mov ecx, dword [0x41a320]
add edi, 0x23f
mov eax, dword [0x41a324]
push 0x20
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x767508], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x767504]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x767508], 0x3eb
mov dword [0x767504], eax
mov eax, dword [0x766f90]
cmove eax, dword [ebp - 0x1c]
mov dword [0x766f90], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [0x767500], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
add edi, 0x61c88647
mov dword [ebp - 0x10], edi
dec esi
jne 0x401404
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d1f4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406eab
mov dword [ebp - 0x14], eax
cmp dword [0x721c9c], esi
jne 0x40d2e7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d274
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d3c7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d3c7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d3c7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x721c9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x721ca0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x721ca4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x721cac], eax
test eax, eax
je 0x40d2e4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x721ca8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d30c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d2ff
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d321
push 4
pop eax
jmp 0x40d3c9
cmp dword [ebp - 0x14], esi
je 0x40d321
push dword [0x721c9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d306
mov eax, dword [0x721ca8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d37f
cmp dword [0x721cac], edi
je 0x40d37f
push eax
call ebx
push dword [0x721cac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d37f
test eax, eax
je 0x40d37f
call ecx
test eax, eax
je 0x40d374
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 0x40d374
test byte [ebp - 8], 1
jne 0x40d37f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d3af
mov eax, dword [0x721ca0]
cmp eax, edi
je 0x40d3ac
push eax
call ebx
test eax, eax
je 0x40d3ac
call eax
mov esi, eax
test esi, esi
je 0x40d3ac
mov eax, dword [0x721ca4]
cmp eax, edi
je 0x40d3ac
push eax
call ebx
test eax, eax
je 0x40d3ac
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x721c9c]
call ebx
test eax, eax
je 0x40d3c7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d3c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d90
mov esp, ebp
pop ebp
ret
Function at 0x406ba0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x481648
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4a6554]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00401570
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406c00
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00407020
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00401570
cmp dword [esp + 0x28], 8
jb 0x406c4b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00446c0b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x418d4e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x418d82
xor eax, eax
jmp 0x418e2b
push edi
xor edi, edi
inc edi
cmp dword [ebp - 4], edi
jle 0x418e1e
push ebx
push 2
pop ebx
lea esi, [eax + 8]
jmp 0x418d9b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edi*4]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x418deb
push 0x4848c4
push eax
call fcn.00448303
test eax, eax
pop ecx
pop ecx
jne 0x418dc9
cmp ebx, dword [ebp - 4]
jge 0x418dc9
mov eax, dword [esi]
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], eax
jmp 0x418de6
push 0x4848b8
push dword [ebp - 0x18]
call fcn.00448303
test eax, eax
pop ecx
pop ecx
jne 0x418deb
cmp ebx, dword [ebp - 4]
jge 0x418deb
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
inc edi
add esi, 4
inc ebx
inc edi
add esi, 4
inc ebx
cmp edi, dword [ebp - 4]
jl 0x418d98
cmp dword [ebp - 0x10], 0
pop ebx
je 0x418e0d
cmp dword [ebp - 8], 0
je 0x418e0d
push dword [ebp - 8]
mov ecx, dword [ebp + 8]
call fcn.004042b0
cmp dword [ebp - 0xc], 0
je 0x418e1e
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
call fcn.004042b0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret

Function at 0x418f6a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a6554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x419020
cmp dword [ebp - 0x24], edi
jle 0x419020
push dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.004039c0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x418fb9
lea eax, [ebp - 0x1c]
push 0x4848fc
push eax
call fcn.00448303
test eax, eax
pop ecx
pop ecx
je 0x418fe7
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x418fd6
lea eax, [ebp - 0x1c]
push 0x4848ec
push eax
call fcn.00448303
test eax, eax
pop ecx
pop ecx
jne 0x418fed
mov byte [esi + 0x30], 1
jmp 0x41900e
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x418ff9
lea eax, [ebp - 0x1c]
push 0x4848d8
push eax
call fcn.00448303
test eax, eax
pop ecx
pop ecx
jne 0x41900e
mov byte [esi + 0x2f], 1
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00401660
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x418fa2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447fc5
leave
ret

Function at 0x41dd1b
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8