joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40686a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
lea eax, [ebp - 0x8c]
push eax
call fcn.00406a1a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], 8
lea edx, [ebp - 0x38]
push edx
call dword [ebp - 0x58]
call dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x34]
cmp eax, 0x30d40
jbe 0x406909
mov byte [ebp - 0x28], 0x45
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x6f
mov byte [ebp - 0x24], 0x72
mov byte [ebp - 0x23], 0x3a
mov byte [ebp - 0x22], 0x20
mov byte [ebp - 0x21], 0x30
mov byte [ebp - 0x20], 0x78
mov byte [ebp - 0x1f], 0x43
mov byte [ebp - 0x1e], 0x30
mov byte [ebp - 0x1d], 0x30
mov byte [ebp - 0x1c], 0x30
mov byte [ebp - 0x1b], 0x30
mov byte [ebp - 0x1a], 0x30
mov byte [ebp - 0x19], 0x30
mov byte [ebp - 0x18], 0x35
mov byte [ebp - 0x17], 0
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0
call dword [ebp - 0x8c]
nop
jmp 0x406a0f
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x21c]
push edx
push 0x202
call dword [ebp - 0x7c]
push 0
push 1
push 2
call dword [ebp - 0x78]
mov dword [ebp - 4], eax
mov eax, 2
mov word [ebp - 0x50], ax
push 0x49ad
call dword [ebp - 0x60]
mov word [ebp - 0x4e], ax
mov byte [ebp - 0x14], 0x31
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x30
mov byte [ebp - 0x11], 0x2e
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x32
mov byte [ebp - 0xe], 0x2e
mov byte [ebp - 0xd], 0x33
mov byte [ebp - 0xc], 0x36
mov byte [ebp - 0xb], 0x2e
mov byte [ebp - 0xa], 0x31
mov byte [ebp - 9], 0x31
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 2
call dword [ebp - 0x5c]
push 0x10
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x74]
push 0x40
push 0x1000
push 0x32000
push 0
call dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x1000
mov dword [ebp - 0x2c], 0
mov edx, 1
test edx, edx
je 0x406a01
push 0
push 0x1000
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x6c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4069de
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 8]
mov dword [ebp - 0x2c], edx
jmp 0x4069ff
cmp dword [ebp - 8], 0
jne 0x4069e8
jmp 0x406a01
cmp dword [ebp - 8], 0
jge 0x4069f2
jmp 0x406a01
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x68]
call dword [ebp - 0x64]
nop
jmp 0x406a0f
jmp 0x4069ac
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x68]
call dword [ebp - 0x64]
call dword [ebp - 0x30]
nop
mov esp, ebp
pop ebp
ret
Function at 0x406f6a
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402240
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x9e
push eax
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xa2]
push eax
call fcn.00406ba0
add esp, 0xc
push str.ADSafeSvc
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4022e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegisterServiceCtrlHandler
push str._s_failed_with__d
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.00401fc0
add esp, 0x14
mov dword [ebp - 0xac], str.ADSafeSvc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push 0
push eax
push 0
push 2
push 0
push 0xc0020100
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004044b0
mov esp, ebp
pop ebp
ret

Function at 0x402350
Capabilities:
Create service
Delete service
Modify service
Persist via windows service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4023b0
test esi, esi
jne 0x4023d8
push esi
push esi
push esi
push esi
push esi
push 0x41f318
push 1
push 2
push 0x10
push 0xf01ff
push str.ADSafe_Host_Service
push str.ADSafeSvc
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4023c2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x41afb8
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
jmp 0x402414
push 0xf01ff
push str.ADSafeSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4023a9
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x40240d
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004044b0
mov esp, ebp
pop ebp
ret
Function at 0x402540
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402579
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.ADSafeSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4025ab
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4025d9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
dec eax
je 0x4025f7
sub eax, 3
jne 0x402607
test ebx, ebx
je 0x402607
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x402607
cmp ebx, 1
je 0x402607
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004044b0
mov esp, ebp
pop ebp
ret

Function at 0x402630
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, 3
call fcn.00402730
push 0xf003f
test eax, eax
mov ecx, 2
push 0
push 0
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40267b
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.ADSafeSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4026ad
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0x41f318
push 1
push ebx
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x4026ed
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x41afb8
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004044b0
mov esp, ebp
pop ebp
ret
Function at 0x402820
Capabilities:
Modify service

Disassembly:
push ebx
push edi
push 0xf003f
test ecx, ecx
mov eax, 2
push 0
mov ebx, 3
push 0
cmovne ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402849
pop edi
pop ebx
ret
push esi
push 0xf01ff
push str.ADSafeSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40286e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0x41f318
push 1
push ebx
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x4028a1
call esi
push edi
call esi
pop esi
pop edi
xor eax, eax
pop ebx
ret
call esi
push edi
call esi
pop esi
pop edi
mov eax, 1
pop ebx
ret
Function at 0x403550
Capabilities:
Create thread
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call fcn.004037c0
test eax, eax
jne 0x40358c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push esi
call fcn.00403860
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4035b3
lea esp, [esp]
push 0x32
push dword [0x41f524]
call esi
call fcn.00403860
test eax, eax
je 0x4035a0
push ebx
push edi
call fcn.004030e0
call fcn.00402f90
mov edi, eax
call fcn.00402f90
mov ebx, eax
mov eax, dword [0x41f520]
test eax, eax
jne 0x4035e2
push eax
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41f520], eax
push 0xffffffffffffffff
push eax
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
call fcn.00403c00
cmp dword [eax], 1
jne 0x4035fc
xor esi, esi
jmp 0x403613
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
call fcn.00403c00
mov esi, 1
mov dword [eax], 1
push dword [0x41f520]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
jne 0x403636
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 4
push edi
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x403659
mov eax, dword [ebp - 0x10]
push eax
mov edi, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov edi, 1
test eax, eax
je 0x4036b1
mov ecx, dword [ebp - 0xc]
call fcn.00403010
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov eax, 0
mov dword [0x41f548], edi
cmovne eax, edi
test eax, eax
jne 0x4036a0
push 0
push 0
push 0
push 0x403b30
push 0
push 0
call esi
push 0
push 0
push 0
push 0x403a30
push 0
push 0
call esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4036bf
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004044b0
mov esp, ebp
pop ebp
ret
Function at 0x4036e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x234], 0
test edi, edi
jne 0x403715
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40374a
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40375c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00405584
add esp, 8
test eax, eax
je 0x403787
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x403763
jmp 0x403793
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop ebx
pop esi
pop edi
call fcn.004044b0
mov esp, ebp
pop ebp
ret

Function at 0x4037c0
Capabilities:
Get logon sessions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.Secur32.dll_LsaEnumerateLogonSessions]
test eax, eax
je 0x4037f9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
cmp dword [ebp - 8], esi
jbe 0x40385b
push ebx
mov ebx, dword [sym.imp.Secur32.dll_LsaGetLogonSessionData]
nop
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + esi*8]
push eax
call ebx
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x40382a
cmp dword [eax + 0x24], 2
je 0x403851
test eax, eax
je 0x403831
push eax
call edi
inc esi
cmp esi, dword [ebp - 8]
jb 0x403810
xor esi, esi
pop ebx
push dword [ebp - 0xc]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push eax
mov esi, 1
call edi
jmp 0x403839
xor esi, esi
jmp 0x40383a
Function at 0x403860
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
xor ebx, ebx
call fcn.00402f90
push ebx
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x403905
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4038fe
push 0xc
lea eax, [ebp - 0x210]
push str.explorer.exe
push eax
call fcn.00405b56
add esp, 0xc
test eax, eax
jne 0x4038e5
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4038e5
cmp dword [ebp - 8], edi
je 0x4038f9
lea eax, [ebp - 0x234]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4038b2
jmp 0x4038fe
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b0
mov esp, ebp
pop ebp
ret

Function at 0x403920
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413028
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x41d010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae ecx, dword [ebp + 8]
call fcn.004036e0
test eax, eax
je 0x403982
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403982
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x20]
push eax
call fcn.00401740
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00401740
mov byte [ebp - 4], 1
call fcn.00403190
add esp, 0x30
mov esi, eax
cmp dword [ebp + 0x1c], 8
jb 0x4039f0
push dword [ebp + 8]
call fcn.004044ab
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x403a15
push dword [ebp + 0x20]
call fcn.004044ab
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ea4f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d010]
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.0040b047
mov dword [ebp - 0x14], eax
cmp dword [0x41f2b0], esi
jne 0x40eb42
push 0x800
push esi
push 0x41652c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40eacf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ec22
push esi
push esi
push 0x41652c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ec22
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ec22
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41f2b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41f2b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41f2b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41f2c0], eax
test eax, eax
je 0x40eb3f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41f2bc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40eb67
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40eb5a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40eb7c
push 4
pop eax
jmp 0x40ec24
cmp dword [ebp - 0x14], esi
je 0x40eb7c
push dword [0x41f2b0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40eb61
mov eax, dword [0x41f2bc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ebda
cmp dword [0x41f2c0], edi
je 0x40ebda
push eax
call ebx
push dword [0x41f2c0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ebda
test eax, eax
je 0x40ebda
call ecx
test eax, eax
je 0x40ebcf
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 0x40ebcf
test byte [ebp - 8], 1
jne 0x40ebda
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ec0a
mov eax, dword [0x41f2b4]
cmp eax, edi
je 0x40ec07
push eax
call ebx
test eax, eax
je 0x40ec07
call eax
mov esi, eax
test esi, esi
je 0x40ec07
mov eax, dword [0x41f2b8]
cmp eax, edi
je 0x40ec07
push eax
call ebx
test eax, eax
je 0x40ec07
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41f2b0]
call ebx
test eax, eax
je 0x40ec22
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ec24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044b0
mov esp, ebp
pop ebp
ret
Function at 0x4084e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41f29c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], ebx
mov eax, dword [ebx + 0x1cc]
mov edi, dword [ebx + 0x104]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x1d0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x1d8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
add eax, 6
lea edi, [eax + edi*2]
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 0x140], esi
je 0x4085b8
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x148]
call dword [0x41f1cc]
mov esi, dword [0x41f1c8]
push 1
push dword [ebx + 0x148]
call esi
push 0xd
xor eax, eax
push eax
push eax
push edi
push dword [ebx + 0x6c]
push eax
push dword [ebx + 0x148]
push dword [ebp - 0x18]
call dword [0x41f128]
push 1
push dword [ebx + 0x15c]
call esi
mov ecx, dword [ebx + 0x6c]
xor edx, edx
mov eax, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
add eax, 6
push 0xd
push edx
push edx
push edi
add eax, ecx
push eax
push edx
push dword [ebx + 0x15c]
push dword [ebp - 0x18]
call dword [0x41f128]
imul eax, dword [ebx + 0xfc], 0xe
add eax, 4
add edi, eax
mov dword [ebp - 0x1c], edi
jmp 0x4085ea
mov edi, dword [0x41f184]
push esi
push dword [ebx + 0x15c]
call edi
push esi
push dword [ebx + 0x15c]
mov esi, dword [0x41f1c8]
call esi
push 0
push dword [ebx + 0x148]
call edi
push 0
push dword [ebx + 0x148]
call esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 0xc]
mov edi, ebx
mov esi, dword [ebp - 0x28]
sub edi, esi
mov ecx, dword [ebp - 0x24]
sub edi, ecx
mov edx, dword [ebp - 0x2c]
sub edi, edx
push 0xd
mov dword [eax + 0x1d0], ecx
xor ecx, ecx
push ecx
push ecx
push dword [ebp - 0x1c]
mov dword [eax + 0x1cc], esi
push esi
push ecx
mov dword [eax + 0x1d4], edi
mov dword [eax + 0x1d8], edx
push dword [eax + 0x170]
push dword [ebp - 0x18]
call dword [0x41f128]
add esi, dword [ebp - 0x24]
xor eax, eax
push 0xd
push eax
push eax
push dword [ebp - 0x1c]
push esi
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x184]
push dword [ebp - 0x18]
call dword [0x41f128]
push 0xd
xor ecx, ecx
lea eax, [esi + edi]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
push ecx
push ecx
push dword [ebp - 0x1c]
push eax
push ecx
push dword [esi + 0x198]
push edi
call dword [0x41f128]
mov eax, dword [esi + 0xfc]
add eax, dword [esi + 0xc0]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp + 0x14]
push 0xc
sub eax, ecx
push eax
lea eax, [ebx - 1]
push eax
push ecx
push 0
push 0
push dword [esi + 0x1b8]
push edi
call dword [0x41f128]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414f12
mov esp, ebp
pop ebp
ret 0x10