joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c0b
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x47b000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov ebp, 0x47b000
je 0x403c2b
push ebp
call fcn.00405ec7
jmp 0x403c31
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor esi, esi
mov edi, dword [0x44aa64]
mov eax, edi
dec edi
test eax, eax
je 0x403c8d
mov eax, dword [0x44aa28]
mov ecx, dword [eax + 0x64]
mov edx, ecx
imul ecx, edi
neg edx
add ecx, dword [0x44aa60]
mov ax, word [esp + 0x10]
mov esi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x403c75
mov eax, edi
dec edi
add ecx, edx
test eax, eax
jne 0x403c59
jmp 0x403c8d
mov eax, dword [esi + 2]
mov dword [0x446a00], eax
mov eax, dword [esi + 6]
mov dword [0x44aac8], eax
lea eax, [esi + 0xa]
mov dword [0x4469fc], eax
cmp dword [0x4469fc], 0
jne 0x403ca8
cmp bx, 0xffff
jne 0x403ca4
mov ebx, 0x3ff
jmp 0x403c37
xor ebx, ebx
jmp 0x403c37
movzx eax, word [esi]
push eax
push ebp
call fcn.00405eae
push 0xfffffffffffffffe
push 0x446a20
call fcn.00405f6f
push eax
push dword [0x4343c0]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44aa4c]
mov esi, dword [0x44aa48]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403cfc
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403cf5
push eax
push ebx
call fcn.00405f6f
add esi, edi
add ebx, edi
dec ebp
jne 0x403ce8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405769
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x4393e8], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40578d
test al, 0x10
jne 0x405790
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x4393e8
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4057bb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40584a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405b30
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x40587e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44aaa8], eax
jmp 0x405a47
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x40589c
test eax, eax
je 0x4059cb
test byte [ebp + 0xc], 2
je 0x4059cb
mov esi, 0x4353e8
push edi
push esi
call fcn.00405f51
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4058bc
push 0x4099b4
push esi
call ebx
jmp 0x4058c2
push edi
call fcn.00405a95
push 0x409228
push edi
call ebx
push edi
call fcn.00405f62
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059c1
cmp byte [ebp - 0x118], 0x2e
jne 0x405910
cmp byte [ebp - 0x117], 0x2e
je 0x4059a4
cmp byte [ebp - 0x117], 0
je 0x4059a4
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00405f51
test byte [ebp - 0x144], 0x10
je 0x40593b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059a4
push dword [ebp + 0xc]
push edi
call fcn.0040584a
jmp 0x4059a4
push edi
push str.Delete:_DeleteFile___s__
call fcn.004062f5
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40599c
test byte [ebp + 0xc], 4
push edi
je 0x405988
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004062f5
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405244
push 0
push edi
call fcn.00405c8d
jmp 0x4059a4
push str.Delete:_DeleteFile_failed___s__
call fcn.004062f5
inc dword [0x44aaa8]
pop ecx
pop ecx
jmp 0x4059a4
push edi
push 0xfffffffffffffff2
call fcn.00405244
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058ed
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4059cb
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405a47
cmp dword [ebp - 4], esi
push edi
jne 0x4059ed
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004062f5
inc dword [0x44aaa8]
pop ecx
pop ecx
jmp 0x405a47
call fcn.00406311
test eax, eax
je 0x405a47
push edi
call fcn.00405a4d
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.004062f5
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405a3f
test byte [ebp + 0xc], 4
push edi
je 0x405a38
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004062f5
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405244
push esi
push edi
call fcn.00405c8d
jmp 0x405a47
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4059de
push edi
push 0xffffffffffffffe5
call fcn.00405244
pop edi
pop esi
leave
ret 8
Function at 0x401840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
push edi
cmp ebp, esi
je 0x40188b
cmp byte [ebp], 0
je 0x40188b
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push esi
push eax
push esi
push 1
push esi
push esi
push esi
push ebp
push ecx
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [esp + 0x14]
cmp ebx, esi
jne 0x401885
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov dword [esp + 0x20], ebx
jmp 0x40188f
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
mov dword [esp + 0x1c], esi
push esi
mov esi, dword [esp + 0x38]
push esi
push ebx
call edi
test eax, eax
je 0x4018cc
test ebp, ebp
je 0x4018c2
cmp byte [ebp], 0
je 0x4018c2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x40193d
cmp eax, 2
je 0x40193d
cmp eax, 4
jne 0x40190a
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push esi
push ebx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
push 0xa
push eax
push ecx
call fcn.0040c2e6
add esp, 0xc
jmp 0x4019c4
mov edx, dword [esp + 0x30]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4019c4
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004033d3
add esp, 4
lea edx, [esp + 0x10]
mov ebp, eax
push edx
push ebp
push 0
push 0
push esi
push ebx
call edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004033c8
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4019bc
mov ecx, 0x41
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test ebp, ebp
je 0x4019d5
cmp byte [ebp], 0
je 0x4019d5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x4019f0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
push esi
je 0x401a3d
cmp byte [ebx], 0
je 0x401a3d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push ebx
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 8]
test eax, eax
jne 0x401a35
pop esi
pop ebx
add esp, 8
ret
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x401a41
mov esi, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x28]
cmp ebp, 3
push edi
je 0x401aae
cmp ebp, 7
je 0x401aae
cmp ebp, 4
je 0x401a82
cmp ebp, 5
je 0x401a82
mov edx, dword [esp + 0x28]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
shl ecx, 1
push ecx
push edx
mov edx, dword [esp + 0x2c]
push ebp
push eax
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x401b8f
mov eax, dword [esp + 0x28]
push eax
call fcn.004033e1
mov edx, dword [esp + 0x28]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push 4
push ecx
push ebp
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x401b8f
mov ebx, dword [esp + 0x28]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
shr esi, 1
inc esi
push esi
call fcn.004033d3
add esp, 4
xor edi, edi
test esi, esi
mov dword [esp + 0x28], eax
jle 0x401b61
fld qword [0x40d128]
fld qword [0x40d120]
call fcn.004034f0
mov ebp, ebx
mov al, byte [ebp]
mov bl, byte [ebp + 1]
cmp al, 0x61
jl 0x401b03
cmp al, 0x66
jg 0x401b03
movsx eax, al
sub eax, 0x57
jmp 0x401b09
movsx eax, al
sub eax, 0x30
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
fild qword [esp + 0x10]
fmul st(1)
call fcn.004034bc
cmp bl, 0x41
jl 0x401b31
cmp bl, 0x46
jg 0x401b31
movsx ecx, bl
lea eax, [eax + ecx - 0x37]
cmp bl, 0x61
jl 0x401b44
cmp bl, 0x66
jg 0x401b44
movsx edx, bl
lea eax, [eax + edx - 0x57]
jmp 0x401b4b
movsx ecx, bl
lea eax, [eax + ecx - 0x30]
mov edx, dword [esp + 0x28]
inc edi
add ebp, 3
cmp edi, esi
mov byte [edi + edx - 1], al
jl 0x401aed
mov ebp, dword [esp + 0x2c]
fstp st(0)
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push esi
push eax
push ebp
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x28]
push eax
call fcn.004033c8
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add esp, 4
pop edi
pop ebp
test ebx, ebx
je 0x401ba1
cmp byte [ebx], 0
je 0x401ba1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x401bb0
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 0x418
lea edx, [esp + 0x10c]
push eax
push ecx
push str._s_s.lnk
push edx
call fcn.0040370d
add esp, 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x40d140
push 1
push 0
push 0x40d130
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401d14
mov ecx, dword [esp + 0x428]
push ebx
push esi
push edi
push ecx
lea edx, [esp + 0x18]
push 0x40e054
push edx
call fcn.0040370d
mov edi, dword [esp + 0x434]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xc]
mov ecx, ebx
and ecx, 3
lea edx, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0xc]
push 0x40e03c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x40d150
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x401cfb
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x21c]
lea edx, [esp + 0x21c]
rep stosd dword es:[edi], eax
push 0x104
push edx
lea eax, [esp + 0x120]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x21c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x418
ret
xor eax, eax
add esp, 0x418
ret
Function at 0x401d20
Capabilities:
Create directory

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x120]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + 0x18]
xor edi, edi
mov byte [esp + 0x10], 0
mov dword [esp + 0x14], ecx
mov esi, ebp
sub ebx, ebp
cmp byte [esi], 0x5c
jne 0x401d81
lea eax, [esp + 0x18]
push eax
call fcn.00401780
add esp, 4
test eax, eax
jne 0x401d81
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401d93
mov eax, dword [esp + 0x14]
mov dl, byte [esi]
dec eax
mov byte [ebx + esi], dl
cmp edi, eax
je 0x401dad
inc edi
inc esi
jmp 0x401d5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x10c
ret
push ebp
call fcn.00401780
add esp, 4
test eax, eax
jne 0x401dc6
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401dcb
mov byte [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x10c
ret

Function at 0x401de0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Foxit_Reader
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401d20
add esp, 4
test eax, eax
jne 0x401e97
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
mov esi, dword [esp + 0x21c]
lea ecx, [esp + 0x10]
push esi
push 0x40e03c
push ecx
push 0x40e03c
call fcn.00401bb0
add esp, 0x10
test eax, eax
jne 0x401ec4
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push esi
lea edx, [esp + 0x14]
push str.Uninstall
push edx
push str.Uninstall
call fcn.00401bb0
add esp, 0x10
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x20c
ret
Function at 0x405340
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, eax
push edi
mov dword [ebp - 4], ecx
mov edi, edx
cmp dword [esi], 0
je 0x405439
mov edx, dword [ebp + 0xc]
sub edx, 1
jb 0x405368
je 0x40536f
dec edx
je 0x405376
jmp 0x40537b
mov eax, 0x415592
jmp 0x40537b
mov eax, 0x15594
jmp 0x40537b
mov eax, 0x415596
mov ecx, 1
mov edx, eax
or eax, 0xffffffff
call fcn.00408f48
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x4053a8
mov eax, dword [ebp + 8]
call fcn.00407e5c
mov ecx, eax
mov dword [ebp + 8], edx
mov eax, ebx
call fcn.00408f48
invalid
mov eax, edi
call fcn.0040fe64
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.00408f48
xor eax, 0xffffffff
lea edx, [ebp - 0x10]
mov ebx, eax
push ebx
push str._08x
push edx
call fcn.0040ffcc
add esp, 0xc
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00405454
mov ebx, eax
test dword [ebx + 0x74], ebx
adc byte [ebp - 0x39740fab], cl
call fcn.00405458
mov ebx, eax
test eax, eax
je 0x405439
invalid
invalid
aas
jge 0x405438
je 0x405448
mov edx, edi
mov eax, ebp
cld
call fcn.0040fee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408f48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x41764c
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x408f68
call fcn.00408f10
mov eax, dword [ebp - 4]
jmp 0x408f81
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408f89
test al, 7
jne 0x408f6d
cmp esi, 8
jb 0x409012
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x408f92
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x409034
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x409019
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x409790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4097a7
test esi, esi
jg 0x4097ae
xor eax, eax
jmp 0x409852
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x28]
mov ecx, 0x10
call fcn.0040fdf0
test esi, esi
jns 0x4097c8
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
test esi, esi
jle 0x409839
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00409b04
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x24]
xor dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x20]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0xc], eax
mov eax, ebx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec esi
test esi, esi
jg 0x4097d5
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0040fdf0
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401430
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x4014e3
push str.XLIPC.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x4014e3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitSender
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.FinitSender
push eax
call edi
mov ecx, dword [esi]
push str.InitReceiver
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.FinitReceiver
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.SendProcData
push eax
call edi
mov ecx, dword [esi]
push str.ReceiveProcData
push ecx
mov dword [esi + 0x14], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x18], eax
cmp ecx, ebx
pop edi
je 0x4014c6
cmp dword [esi + 8], ebx
je 0x4014c6
cmp dword [esi + 0xc], ebx
je 0x4014c6
cmp dword [esi + 0x10], ebx
je 0x4014c6
cmp dword [esi + 0x14], ebx
je 0x4014c6
cmp eax, ebx
jne 0x4014e3
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
pop esi
pop ebx
ret

Function at 0x401780
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, 1
mov ecx, dword [esi + 0x103c]
test ecx, ecx
jne 0x401808
mov eax, dword [esp + 0xc]
mov ecx, esi
mov dword [esi + 0x1038], eax
call fcn.004016f0
mov edi, eax
test edi, edi
je 0x4017f8
push str.Global00287872_EAE2_4005_A955_BC680E9D9C48
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [esi + 0x1040], eax
jne 0x4017ca
xor edi, edi
jmp 0x4017f8
push 0
push 0
push esi
push 0x401e50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x1034], eax
jne 0x4017ea
xor edi, edi
test edi, edi
mov dword [esi + 0x103c], 1
jne 0x401806
mov ecx, esi
call fcn.004016a0
mov ecx, esi
call fcn.00401e70
mov eax, edi
pop edi
pop esi
ret 4