joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4cd0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x509208
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x4c4df4
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x4c4e06
dec ecx
je 0x4c4d4c
dec ecx
jne 0x4c4df4
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4c4e1b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4c4e1b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4c4d45
mov eax, dword [0x59ef7c]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.004c5210
mov bl, 1
jmp 0x4c4de7
mov edx, dword [0x59ef7c]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004c5010
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x4c4dd5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4c4dd5
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4c4da4
mov eax, dword [0x59ef7c]
mov ecx, edi
push eax
push ebp
call fcn.004c5210
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x4c4db3
mov eax, 0x59ef78
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x4c4de3
mov al, byte [ecx - 1]
test al, al
je 0x4c4dd9
cmp al, 0xff
je 0x4c4dd9
dec al
mov byte [ecx - 1], al
jmp 0x4c4de3
xor bl, bl
jmp 0x4c4dba
dec ecx
push ecx
call fcn.004f9a83
add esp, 4
test bl, bl
je 0x4c4df2
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x4c4e1b
push eax
call fcn.004c5d70
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x4c4de7
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4c56c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x608554
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4c570f
call fcn.00503477
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4c56f4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x608554
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4c570f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4c5725
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4c5739
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4c5752
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.004c5e70
add esp, 0xc
test al, al
jne 0x4c57f1
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x4c57f9
mov esi, dword [0x59ef84]
jae 0x4c5781
call fcn.004f6261
mov ecx, edi
call fcn.004c5a00
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x4c5795
mov esi, ecx
test esi, esi
jbe 0x4c57d3
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.004e6410
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.004c58e0
test al, al
je 0x4c57cf
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x4c57df
mov edi, 0x59ef80
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.004c5810
jmp 0x4c57d3
Function at 0x4d06e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x63359c]
xor edx, edx
cmp eax, edx
jne 0x4d0706
xor eax, eax
mov byte [eax + 0x63349c], al
inc eax
cmp eax, 0x100
jl 0x4d06ee
mov dword [0x63359c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x63349c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4d0797
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4d076a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4d0738
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4d0810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4d0863
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4d084a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d71e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50941e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004d7b00
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5a346c
call fcn.004f9a5a
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4d7273
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f9a5a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4d726c
push 0
mov ecx, eax
call fcn.004ce310
mov dword [esi + 0xc], eax
jmp 0x4d7275
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4d7275
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4e8731
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4e8751
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004e75ca
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4e8774
test byte [esp + 8], 2
je 0x4e8774
call fcn.004e763d
mov dword [eax], 0xd
call fcn.004e7646
mov dword [eax], 5
jmp 0x4e874d
xor eax, eax
ret

Function at 0x4fc0e7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4fc11f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004fa174
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004fa14c
jmp 0x4fc12b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4fd7d9
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 0x4fd81b
call fcn.00503477
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4fd81b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4fd812
xor eax, eax
jmp 0x4fd823
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004fd829
pop edi
pop esi
pop ebx
ret 4

Function at 0x5039a7
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 0x5039d5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5039f3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0050390d
jmp 0x5039f3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5039f3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0050390d
test edi, edi
mov eax, edi
jne 0x5039dd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x401000
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x4160ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 4], ecx
mov dword [ecx + 4], eax
mov ecx, dword [esi + 4]
xor ebx, ebx
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x4010f1
mov edx, dword [esi + 4]
mov dword [edx + 0x284], ecx
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x284]
push edi
push 0x190
lea ecx, [ebp - 0x1f8]
push ecx
push eax
mov dword [edx + 0x110], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x1f8]
push edx
call edi
sub eax, 1
je 0x40108e
mov cl, 0x5c
cmp byte [ebp + eax - 0x1f8], cl
je 0x401087
sub eax, 1
jne 0x401077
jmp 0x40108e
mov byte [ebp + eax - 0x1f7], bl
lea eax, [ebp - 0x1f8]
push eax
call edi
lea ecx, [ebp - 0x200]
push ecx
lea edx, [ebp - 0x1fc]
push edx
push ebx
push 0xf003f
push ebx
push 0x4140e1
push ebx
push 0x414068
push 0x80000001
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp - 0x1fc]
push edi
lea eax, [ebp - 0x1f8]
push eax
push 1
push ebx
push 0x41407c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
jmp 0x4010fa
mov eax, dword [esi + 4]
mov dword [eax + 0x284], ebx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x288], ebx
mov edx, dword [esi + 4]
mov dword [esi], ebx
mov dword [edx + 0x18], ebx
mov eax, dword [esi + 4]
mov dword [eax + 0x10], ebx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x14], ebx
mov dword [esi + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00406a2b
add esp, 4
push 0x414088
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406012
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4017a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0x4140e1
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp + 0x18], 0
je 0x4017fb
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x401830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0x4140e1
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp + 0x18], 0
je 0x40188b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x403ef0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [ebp + 8]
push edi
call esi
cmp byte [eax + edi - 1], 0x5c
jne 0x403f11
push edi
call esi
mov byte [eax + edi - 1], 0
push edi
call esi
mov esi, eax
dec esi
cmp esi, 2
jle 0x403f38
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call ebx
test eax, eax
jne 0x403f3f
cmp byte [esi + edi], 0x5c
je 0x403f38
mov byte [esi + edi], al
dec esi
cmp esi, 2
jg 0x403f22
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x4040b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x417bd4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x100
push eax
je 0x4040de
push 0x20119
jmp 0x4040e3
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404128
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebp - 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], 1
mov edi, eax
je 0x40411a
mov byte [esi], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x417bd4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, 0x100
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
je 0x404162
push 0x20119
jmp 0x404167
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404183
mov dword [0x41fa20], 0
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x10]
push edi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x41fa20]
push 0
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 4]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
mov eax, 1
cmp dword [ebp - 8], eax
je 0x4041bb
mov byte [edi], 0
add dword [0x41fa20], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4041d9
mov dword [0x41fa20], 0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4041f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x417bd4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x100
push eax
je 0x404217
push 0x20119
jmp 0x40421c
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40425a
mov edx, dword [ebp + 0x10]
push esi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x14]
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405a70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x41267c
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405af8
push esi
mov esi, dword [ebp + 8]
push 0x5c
mov dword [0x417788], esi
call fcn.00405dbe
add esp, 4
test eax, eax
je 0x405abb
push 0
push esi
push 0x417928
mov ecx, eax
call section..text
jmp 0x405abd
xor eax, eax
push 0
push 0x404810
push 0
push 0x412674
push esi
mov dword [0x41778c], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop esi
test eax, eax
je 0x405aed
push 0
push 0
push 0x412670
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test edi, edi
je 0x405af8
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
pop edi
pop ebp
ret 0x10

Function at 0x406012
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4160ac]
jne 0x40601c
repz ret
jmp fcn.00408ef5
Function at 0x410e16
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409a75
and dword [ebp - 4], 0
cmp dword [0x420484], 0
mov ebx, eax
jne 0x410ec7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410f78
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41391c
push edi
call esi
test eax, eax
je 0x410f78
push eax
call fcn.00409a03
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420484], eax
call esi
push eax
call fcn.00409a03
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x420488], eax
call esi
push eax
call fcn.00409a03
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42048c], eax
call esi
push eax
call fcn.00409a03
pop ecx
mov dword [0x420494], eax
test eax, eax
je 0x410ec7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409a03
pop ecx
mov dword [0x420490], eax
mov eax, dword [0x420490]
cmp eax, ebx
je 0x410f1f
cmp dword [0x420494], ebx
je 0x410f1f
push eax
call fcn.00409a7e
push dword [0x420494]
mov esi, eax
call fcn.00409a7e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410f1f
test edi, edi
je 0x410f1f
call esi
test eax, eax
je 0x410f16
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410f16
test byte [ebp - 0xc], 1
jne 0x410f1f
or dword [ebp + 0x10], 0x200000
jmp 0x410f58
mov eax, dword [0x420488]
cmp eax, ebx
je 0x410f58
push eax
call fcn.00409a7e
pop ecx
test eax, eax
je 0x410f58
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410f58
mov eax, dword [0x42048c]
cmp eax, ebx
je 0x410f58
push eax
call fcn.00409a7e
pop ecx
test eax, eax
je 0x410f58
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420484]
call fcn.00409a7e
pop ecx
test eax, eax
je 0x410f78
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410f7a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005b8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push esi
push edi
push eax
push ebx
push ecx
push edx
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov ebx, esi
shl ebx, 6
shr eax, 2
add ebx, eax
movsx edx, byte [ecx]
lea ebx, [edx + ebx - 0x61c88647]
xor ebx, esi
inc ecx
mov esi, ebx
cmp ecx, edi
jne 0x10005bad
mov dword [ebp - 4], ebx
pop edx
pop ecx
pop ebx
pop eax
pop edi
pop esi
push dword [ebp - 4]
call fcn.10005be8
jmp 0x10005be2
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000d7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
push esi
push edi
push eax
push ebx
push ecx
push edx
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov ebx, esi
shl ebx, 6
shr eax, 2
add ebx, eax
movsx edx, byte [ecx]
lea ebx, [edx + ebx - 0x61c88647]
xor ebx, esi
inc ecx
mov esi, ebx
cmp ecx, edi
jne 0x1000d80f
mov dword [ebp - 4], ebx
pop edx
pop ecx
pop ebx
pop eax
pop edi
pop esi
push dword [ebp - 4]
call fcn.1000d86d
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.1000b8c2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x1000d867
mov esp, ebp
pop ebp
ret 0xc