joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409af8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x409cb0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x409b33
dec eax
je 0x409b1d
dec eax
je 0x409b29
jmp 0x409b33
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x409b33
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x409b85
xor ebp, ebp
cmp esi, ebp
jle 0x409ba1
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x409b58
mov ecx, esi
sub ecx, ebp
jmp 0x409b5d
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x409ba1
add ebp, 0x4000
cmp esi, ebp
jg 0x409b3f
jmp 0x409ba1
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x409cac
cmp byte [edi + 0x14], 0
je 0x409cac
cmp dword [edi + 0xc], 0
jne 0x409cac
call sub.KERNEL32.DLL_GetLastError
mov ebp, eax
mov eax, edi
call fcn.00409ed4
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [edi + 0x17]
call fcn.0040a5e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push ebp
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
cdq
cmp edx, dword [esp + 0x14]
jne 0x409bfa
cmp eax, dword [esp + 0x10]
jae 0x409c46
jmp 0x409bfc
jge 0x409c46
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x409c1e
cmp eax, 0xffffffff
ja 0x409c46
jmp 0x409c20
jg 0x409c46
mov eax, esi
cdq
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
cmp edx, 0
jne 0x409c37
cmp eax, 0xffffffff
jbe 0x409c46
jmp 0x409c39
jle 0x409c46
lea edx, [edi + 0x17]
mov eax, 0x4b1ad4
call fcn.0042d478
lea edx, [edi + 0x17]
mov eax, 0x4b1ad4
call fcn.0042d4ac
test al, al
je 0x409c96
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x409b33
cmp dword [esp + 4], 0
jbe 0x409b33
mov eax, edi
call fcn.00409ed4
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.00409e1c
jmp 0x409b33
lea ecx, [edi + 0x17]
mov eax, 0x4b1ad4
xor edx, edx
call fcn.0042d460
jmp 0x409cac
mov byte [edi + 8], 1
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409d9c
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x409dc3
cmp esi, 0x4e20
jle 0x409db9
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x409e14
mov eax, ebx
call fcn.0040a140
test al, al
je 0x409dfb
cmp esi, 0x4e20
jle 0x409dfb
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00409d9c
jmp 0x409e17
cmp dword [ebx + 0xc], 1
jne 0x409e0f
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x409e0f
xor eax, eax
jmp 0x409e17
or eax, 0xffffffff
jmp 0x409e17
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a248
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00410420
test eax, eax
je 0x40a26e
test ebx, ebx
je 0x40a26e
cmp word [ebx], 0
je 0x40a26e
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40a276
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x40a289
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.0040ab70
xor eax, eax
jmp 0x40a2a4
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x40a298
cmp eax, 3
jne 0x40a29f
mov eax, 2
jmp 0x40a2a4
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x40a5ac
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffc00
mov edx, esp
call fcn.0040c938
cmp byte [esp], 0
je 0x40a5c3
mov eax, esp
jmp 0x40a5c5
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x40a5d9
cmp eax, 5
je 0x40a5d9
xor edx, edx
jmp 0x40a5de
mov edx, 1
mov eax, edx
add esp, 0x400
ret
Function at 0x40a5e8
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
add esp, 0xfffffbd0
mov ebx, eax
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040c938
cmp dword [0x4a2d90], 0
jne 0x40a626
push 0x4a2d94
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x40a626
push str.GetDiskFreeSpaceExA
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a2d90], eax
cmp dword [0x4a2d90], 0
je 0x40a69a
lea edx, [esp + 0x30]
mov ecx, 0x400
mov eax, ebx
call fcn.0040c258
xor eax, eax
lea edx, [esp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push edx
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x18]
push eax
cmp byte [esp + 0x3c], 0
je 0x40a665
lea edx, [esp + 0x3c]
jmp 0x40a667
xor edx, edx
push edx
call dword [0x4a2d90]
test eax, eax
je 0x40a69a
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
ja 0x40a69a
mov eax, dword [esp + 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
jmp 0x40a707
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
cmp byte [esp + 0x40], 0
je 0x40a6bb
lea eax, [esp + 0x40]
jmp 0x40a6bd
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x40a6d0
mov eax, 0x163e00
xor edx, edx
jmp 0x40a707
mov eax, dword [esp + 0x18]
imul dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.0049c168
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x430
pop esi
pop ebx
ret

Function at 0x40a710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00410420
test eax, eax
je 0x40a73b
test ebx, ebx
je 0x40a73b
cmp word [ebx], 0
je 0x40a73b
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x40ab44
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00410420
test eax, eax
je 0x40ab66
test ebx, ebx
je 0x40ab66
cmp word [ebx], 0
je 0x40ab66
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x40ab70
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00410420
test eax, eax
je 0x40ab9d
test ebx, ebx
je 0x40ab9d
cmp word [ebx], 0
je 0x40ab9d
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x40abac
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x40acf4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9b0
push ebx
push esi
push edi
mov edi, eax
mov eax, 0x4a2ea4
call fcn.00498090
mov word [ebp - 0x30], 8
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040f104
inc dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x30], 0x14
mov word [ebp - 0x30], 0x20
mov edx, 0x10000
call fcn.00402a98
inc dword [ebp - 0x24]
or esi, 0xffffffff
mov word [ebp - 0x30], 0x14
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, edi
call fcn.0040a0d4
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
cmp dword [0x4c4e30], 0
je 0x40ad8a
lea eax, [ebp - 0x250]
call fcn.00474878
push pe_nt_image_headers32
lea edx, [ebp - 0x450]
push edx
push dword [0x4c4e30]
call sub.USER32.DLL_GetWindowTextA
push 0
push 0
xor edx, edx
mov eax, edi
call fcn.00409e1c
jmp 0x40ae3a
add dword [ebp - 0x48], 1
adc dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
and eax, 0xf
xor edx, edx
cmp edx, 0
jne 0x40ae14
cmp eax, 0
jne 0x40ae14
cmp dword [0x4c4e30], 0
je 0x40ae0f
push 0
push 0x10000
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.0049c168
push edx
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0040efc8
push eax
mov eax, 0x51e
call fcn.004125b4
push eax
lea edx, [ebp - 0x650]
push edx
call fcn.0049abc0
add esp, 0xc
lea eax, [ebp - 0x650]
call fcn.00474888
call fcn.00473b88
call fcn.0040ff54
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00410c94
cmp dword [ebp + 0xc], 0x80000000
mov esi, eax
jne 0x40ae2f
cmp dword [ebp + 8], 0
je 0x40ae3a
mov eax, ebx
cdq
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x80000000
jne 0x40ae50
cmp dword [ebp + 8], 0
jne 0x40ae50
mov ecx, 0x10000
jmp 0x40ae6f
cmp dword [ebp + 0xc], 0
jne 0x40ae61
cmp dword [ebp + 8], 0x10000
jbe 0x40ae6a
jmp 0x40ae63
jle 0x40ae6a
mov ecx, 0x10000
jmp 0x40ae6f
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00409cb8
mov ebx, eax
test eax, eax
jne 0x40ad9c
cmp dword [0x4c4e30], 0
je 0x40aea7
lea eax, [ebp - 0x250]
call fcn.00474888
lea eax, [ebp - 0x450]
call fcn.00474850
call fcn.00473b88
mov eax, esi
mov edx, 2
xor eax, 0xffffffff
push eax
lea eax, [ebp - 0x1c]
dec dword [ebp - 0x24]
call fcn.004017ec
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040f170
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b8bc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40b8c5
mov eax, dword [ebp - 4]
add esp, 0xfffffb0c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x20f8]
mov eax, 0x4a2ffc
call fcn.00498090
lea eax, [ebp - 0x10e4]
call fcn.00413d44
lea eax, [ebp - 0x10b8]
call fcn.00413d44
lea eax, [ebp - 0x108c]
call fcn.00413d44
push 0
lea ecx, [ebp - 0x1cf8]
mov edx, ebx
mov eax, esi
call fcn.00412e5c
test al, al
jne 0x40b939
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40baea
cmp byte [ebp - 0x1cf8], 0
je 0x40b94b
cmp byte [ebp - 0x1060], 0
jne 0x40b95f
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40baea
lea eax, [ebp - 0x1cf8]
call fcn.0040bd0c
lea edx, [ebp - 0x1060]
call fcn.0040f208
test eax, eax
je 0x40b98f
mov eax, esi
call fcn.0040bd0c
lea edx, [ebp - 0x1060]
call fcn.0040f208
test eax, eax
je 0x40b9a3
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40baea
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.0040f420
push ebx
push str.rtmp_d
mov eax, edi
call fcn.0040bd0c
push eax
call fcn.0049abc0
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.0040a710
test al, al
je 0x40b9e1
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40b9a5
mov eax, edi
xor edx, edx
call fcn.0040a710
test al, al
je 0x40ba02
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40baea
lea eax, [ebp - 0x24f8]
mov ecx, 0x400
mov edx, esi
call fcn.0040f420
lea eax, [ebp - 0x1cf8]
call fcn.0040bd0c
push eax
lea eax, [ebp - 0x24f8]
call fcn.0040bd0c
push eax
call fcn.00497c60
add esp, 8
push edi
lea edx, [ebp - 0x24f8]
push edx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40ba59
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x40baea
mov word [ebp - 0xc34], 8
lea eax, [ebp - 0xc20]
call fcn.0040963c
inc dword [ebp - 0xc28]
mov word [ebp - 0xc34], 0x14
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.0040a710
test al, al
jne 0x40ba9c
lea eax, [ebp - 0xc20]
xor ecx, ecx
mov edx, esi
call fcn.004098ac
mov ebx, eax
lea eax, [ebp - 0x24f8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40bac3
lea eax, [ebp - 0xc20]
call fcn.004099e0
lea eax, [ebp - 0xc20]
call fcn.00409a74
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0xc20]
dec dword [ebp - 0xc28]
call fcn.004096ec
pop eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c344
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, eax
push esp
call sub.SHELL32.DLL_SHGetMalloc
mov byte [esi], 0
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x1a
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
test eax, eax
jne 0x40c3b5
push esi
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
test eax, eax
je 0x40c3b5
cmp byte [esi], 0
je 0x40c3b5
mov eax, esi
call fcn.0040c210
push 0x4a307e
push esi
call fcn.00497b84
add esp, 8
xor edx, edx
mov eax, esi
call fcn.0040a710
test al, al
jne 0x40c3b0
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.0040a248
test eax, eax
je 0x40c3b0
xor ebx, ebx
jmp 0x40c3b5
mov ebx, 1
test bl, bl
jne 0x40c3cd
push 0x400
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov eax, esi
call fcn.0040c2e0
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x40ff54
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x4a3cfc], 0
jne 0x40ff6d
call fcn.004a0084
mov dword [0x4a3cf8], eax
inc byte [0x4a3cfc]
call fcn.004a0084
sub eax, dword [0x4a3cf8]
cmp eax, 0x64
jle 0x40ffa9
cmp dword [0x4c77d4], 0
je 0x40ffa4
mov eax, 0x4b1ad4
mov edx, 0xff
call fcn.0042d6f0
mov eax, 0x4b1ad4
mov edx, 0xff
call fcn.0042d6d8
call fcn.0047cbc0
mov eax, dword [0x4a3cf4]
test eax, eax
je 0x40ffb8
push eax
call sub.KERNEL32.DLL_Sleep
ret
Function at 0x4103c4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
push esp
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x410410
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push 0x80000000
push 0xd
call sub.USER32.DLL_ExitWindowsEx
add esp, 0x14
ret

Function at 0x410c94
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x4b3a24
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x410cae
call fcn.00410c5c
mov eax, ebp
jmp 0x410cc6
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 0x410cce
test al, 7
jne 0x410cb2
cmp esi, 8
jb 0x410d57
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 0x410cd7
xor edx, edx
jmp 0x410d71
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x410d5b
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x410e44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov edx, dword [esp]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
xor edx, dword [eax + 0x204]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
xor edx, dword [eax + 0x208]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
mov esi, dword [edx + 0xc]
xor ebx, dword [eax + 0x20c]
xor esi, dword [eax + 0x210]
xor edx, edx
mov ecx, esi
mov edi, esi
shr edi, 0x15
shl ecx, 0xb
or ecx, edi
mov edi, edx
and edi, 3
add ecx, ebx
xor ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
mov ecx, ebx
xor edi, dword [esp + 4]
mov dword [esp + 0xc], edi
mov edi, ebx
shr edi, 0xf
shl ecx, 0x11
or ecx, edi
mov edi, edx
and edi, 3
xor ecx, esi
add ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
xor edi, dword [esp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov ecx, edi
mov esi, ecx
mov ebx, dword [esp + 0xc]
inc edx
cmp edx, 0x20
jl 0x410e92
mov edx, dword [esp + 0x10]
xor ebx, dword [eax + 0x204]
mov dword [edx], ebx
xor esi, dword [eax + 0x208]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x20c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x210]
mov dword [ecx + 0xc], edx
mov edx, dword [esp]
call fcn.00411190
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x410fe4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
xor ecx, dword [ebx + 0x204]
mov dword [esp], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
xor ecx, dword [ebx + 0x208]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x20c]
mov edi, dword [eax + 0xc]
xor edi, dword [ebx + 0x210]
push 0x10
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00497a70
add esp, 0xc
mov edx, 0x1f
mov eax, edi
mov ecx, edi
shr ecx, 0x15
shl eax, 0xb
or eax, ecx
mov ecx, edx
and ecx, 3
add eax, esi
xor eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
mov eax, esi
xor ecx, dword [esp]
mov dword [esp + 8], ecx
mov ecx, esi
shr ecx, 0xf
shl eax, 0x11
or eax, ecx
mov ecx, edx
and ecx, 3
xor eax, edi
add eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
xor ecx, dword [esp + 4]
mov dword [esp], esi
mov dword [esp + 4], edi
mov eax, ecx
mov edi, eax
mov esi, dword [esp + 8]
dec edx
test edx, edx
jge 0x411040
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x204]
mov dword [eax], esi
xor edi, dword [ebx + 0x208]
mov edx, dword [esp + 0xc]
mov dword [edx + 4], edi
mov ecx, dword [esp]
mov eax, dword [esp + 0xc]
xor ecx, dword [ebx + 0x20c]
mov dword [eax + 8], ecx
mov eax, ebx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor edx, dword [ebx + 0x210]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0x10]
call fcn.00411190
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x411190
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, 0x4b3a24
xor ecx, ecx
movzx esi, byte [edx + ecx]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x204], esi
movzx esi, byte [edx + ecx + 1]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x208], esi
movzx esi, byte [edx + ecx + 2]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x20c], esi
movzx esi, byte [edx + ecx + 3]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x210], esi
add ecx, 4
cmp ecx, 0x10
jl 0x411199
pop esi
pop ebx
ret
Function at 0x416ebc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xffffff70
xor eax, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor edx, edx
mov dword [esp + 8], edx
mov esi, dword [esp + 8]
jmp 0x416f39
xor eax, eax
mov edx, dword [esp]
add edx, esi
add edx, eax
mov cl, byte [edx + 1]
mov byte [esp + eax + 0x19], cl
mov bl, byte [edx]
sub bl, cl
mov byte [esp + eax + 0x18], bl
mov dl, byte [edx + 2]
sub dl, cl
mov byte [esp + eax + 0x1a], dl
add eax, 3
cmp eax, 0x78
jl 0x416ee7
mov ebx, 3
mov cl, byte [esp + ebx + 0x18]
sub cl, byte [esp + ebx + 0x15]
movsx ecx, cl
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 8]
add dword [esp + edx*4 + 0xc], eax
inc ebx
cmp ebx, 0x78
jl 0x416f13
add esi, 0x780
mov eax, dword [esp + 4]
add eax, 0xffffff88
cmp esi, eax
jl 0x416ee5
inc dword [esp + 8]
cmp dword [esp + 8], 2
jle 0x416edf
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp edx, eax
jb 0x416f65
cmp eax, dword [esp + 0x14]
ja 0x416f65
xor eax, eax
jmp 0x416f71
mov eax, 1
cmp edx, dword [esp + 0x14]
jbe 0x416f71
inc eax
add esp, 0x90
pop esi
pop ebx
ret

Function at 0x41757c
Capabilities:
Create thread

Disassembly:
push ebx
push ecx
push esp
push 0
push edx
push eax
push 0x10000
push 0
call sub.KERNEL32.DLL_CreateThread
mov ebx, eax
test ebx, ebx
jne 0x4175bd
mov edx, str.CreateThread_failed
mov eax, 0x4b1ad4
call fcn.0042d554
mov eax, 0x4b1ad4
call fcn.0042d778
mov eax, 0x4b1ad4
mov edx, 2
call fcn.0042d6d8
mov eax, ebx
pop edx
pop ebx
ret