joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b8ce
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40b8ee
xor al, al
jmp 0x40ba03
push ebx
push edi
push esi
call fcn.0044b6ac
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0044bc79
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044b6ac
mov esi, 0x468460
mov edi, eax
push esi
push edi
call fcn.0044b632
push esi
push ebx
call fcn.0044bbeb
add esp, 0x18
test eax, eax
je 0x40b9c9
push str.StringFileInfo_
push edi
call fcn.0044b608
push esi
push ebx
call fcn.0044bebc
add esp, 0x10
test eax, eax
jne 0x40b9c0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b9a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
push 4
lea ebx, [edi + 0x20]
pop edx
mov dword [ebp - 0x10], eax
call fcn.0040d0c1
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040d0c1
mov ebx, dword [ebp + 0x10]
jmp 0x40b9ab
push str.04090000
push edi
call fcn.0044b608
pop ecx
pop ecx
push esi
push edi
call fcn.0044b608
push ebx
push edi
call fcn.0044b608
add esp, 0x10
jmp 0x40b9c9
push ebx
push edi
call fcn.0044b608
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044b577
test eax, eax
pop ecx
pop ecx
jne 0x40ba06
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.0044da9c
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044b716
push edi
call fcn.0044b716
add esp, 0x14
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ba7c
push esi
push ebx
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
jne 0x40ba53
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.0044bc8f
add esp, 0x18
jmp 0x40ba66
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0044da9c
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044b716
push edi
call fcn.0044b716
pop ecx
pop ecx
mov al, bl
jmp 0x40ba01
xor bl, bl
jmp 0x40ba68

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bacf
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40bac5
or eax, eax
jmp 0x40bacf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40bc5f
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xca8
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040bad3
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bca4
test al, 0x10
je 0x40bca4
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044b608
pop ecx
pop ecx
lea eax, [esp + 0xaa0]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x68c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0044e200
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40bd75
cmp bl, 1
jne 0x40bd75
test byte [esp + 0x220], 0x10
jne 0x40bd4d
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044b632
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044b608
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044b608
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40bd64
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40bcf1
xor bl, bl
jmp 0x40bcf1
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40bd66
Function at 0x40bd7b
Capabilities:
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12dc
call fcn.00450b00
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040bad3
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040bad3
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040bbba
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x438]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40bdf9
test al, 0x10
je 0x40bdf9
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044b608
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40be1c
test al, 0x10
je 0x40be1c
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044b608
pop ecx
pop ecx
lea eax, [esp + 0x10d8]
push eax
lea eax, [esp + 0xaac]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0xed4]
push eax
lea eax, [esp + 0x448]
push eax
call fcn.0044e200
add esp, 0x14
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40bfb4
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40bfb4
test byte [esp + 0x858], 0x10
jne 0x40bf8f
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x10dc]
push eax
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x890]
push eax
lea esi, [esp + 0x238]
call fcn.0040bfc7
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044b632
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044b608
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044b608
mov eax, esi
push eax
call fcn.0040ba80
add esp, 0x2c
test al, al
je 0x40bf25
cmp byte [ebp + 0x10], 0
je 0x40bf70
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40bf7e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40bf62
cmp byte [esp + 0x13], 0
jne 0x40bf47
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40bf6c
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40bf70
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40bf6c
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40bf8d
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40bfc0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40bfb2
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40be7a
mov byte [esp + 0x12], al
jmp 0x40be7a
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c1e3
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0044bc79
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40c1ff
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c276
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x40c229
push 0
push esi
call ebp
test eax, eax
je 0x40c22e
mov al, 1
jmp 0x40c27c
cmp eax, 3
jne 0x40c27a
push esi
call fcn.0040cc11
mov edi, eax
push 0x5c
push edi
call fcn.0044fa72
add esp, 0xc
test eax, eax
jne 0x40c24e
push edi
call fcn.0044b716
pop ecx
jmp 0x40c27a
and word [eax], 0
push ebx
push edi
call fcn.0040c1e3
push edi
mov bl, al
call fcn.0044b716
test bl, bl
pop ecx
pop ecx
je 0x40c271
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40c27c
test al, 0x10
jne 0x40c225
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40c280
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0040bad3
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040bad3
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c2f9
cmp byte [ebp + 0x10], al
je 0x40c2f5
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x40c2f1
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c312
test al, 0x10
jne 0x40c319
xor al, al
jmp 0x40c3d2
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c333
test al, 0x10
je 0x40c333
cmp byte [ebp + 0x10], bl
jmp 0x40c354
lea eax, [ebp - 0x22c]
push eax
call fcn.0040c1e3
test al, al
pop ecx
je 0x40c356
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c356
test al, 0x10
jne 0x40c35a
xor al, al
jmp 0x40c3d1
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044b608
lea eax, [ebp - 0x438]
push eax
call fcn.0044bc79
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044bc79
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40c3d5
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.0040bad3
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.0040bad3
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c415
test al, 0x10
jne 0x40c41c
xor al, al
jmp 0x40c535
push ebx
lea eax, [ebp - 0x438]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c47f
test al, 0x10
je 0x40c47f
cmp byte [ebp + 0x10], bl
je 0x40c4b4
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c47f
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x40c47f
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jmp 0x40c4ca
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040bbba
test al, al
pop ecx
pop ecx
je 0x40c4cf
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040c280
add esp, 0xc
test al, al
jne 0x40c4b8
xor al, al
jmp 0x40c534
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.0040c538
pop ecx
pop ecx
test al, al
setne al
jmp 0x40c534
lea eax, [ebp - 0x22c]
push eax
call fcn.0044bc79
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.0044bc79
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret

Function at 0x40c538
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.0040bad3
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c566
test al, 0x10
jne 0x40c56a
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x40c586
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40c5c9
call fcn.0044bc79
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x40c68f
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push esi
mov esi, eax
lea eax, [ebp - 0x29c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40c74f
push 0x100
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40c74f
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40c6e9
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40c6e0
cmp esi, edx
jle 0x40c6fe
push str.0.0.0.0
push dword [ebp + 8]
call fcn.0044b632
pop ecx
pop ecx
jmp 0x40c748
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044dc10
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0044d880
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040d40b
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044b632
push esi
call fcn.0044b716
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40c75e
push 0x468050
push dword [ebp + 8]
call fcn.0044b632
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x40c86d
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x486ecc], 0
push ebx
push esi
mov ebx, eax
je 0x40c8d8
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40c89b
xor eax, eax
jmp 0x40c91a
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c8da
jmp 0x40c897
xor esi, esi
cmp byte [0x486ecd], 0
je 0x40c8f7
test bl, 4
je 0x40c8f7
push esi
push 0x40c91e
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40c90b
cmp ebx, 0x40
je 0x40c90b
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40c91a
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.dll_SetSystemPowerState
pop esi
pop ebx
leave
ret

Function at 0x40c95a
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40c973
push dword [esp + 4]
call fcn.0040c935
test al, al
pop ecx
jne 0x40c98f
push 1
jmp 0x40c975
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret
Function at 0x40cb80
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x40cc0c
jne 0x40cb94
push 0
jmp 0x40cc06
mov al, byte [0x486ecd]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40cc05
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40cc05
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x46e168]
call fcn.00462ac6
cmp eax, edi
jb 0x40cbc3
jmp 0x40cc0c
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ce58
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [0x474cd3]
push edi
push 0x8000
push esi
call fcn.0044f6bb
pop ecx
push eax
call fcn.0044f5c4
push dword [ebp + 8]
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.0040d472
mov edi, eax
push edi
push 0x468fc4
push esi
call fcn.0044f6e8
push edi
call fcn.0044b716
push esi
call fcn.0044f9b5
add esp, 0x20
cmp dword [ebp - 4], 0xffffffff
jne 0x40ceae
push 0x4000
jmp 0x40ceb1
push dword [ebp - 4]
push esi
call fcn.0044f6bb
pop ecx
push eax
call fcn.0044f5c4
pop ecx
pop ecx
pop edi
test bl, bl
pop ebx
je 0x40cecf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret

Function at 0x410c47
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x484d38], eax
push edi
mov edx, esi
mov eax, 0x484d38
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4856f4
jl 0x410c58
pop edi
mov dword [0x472c34], esi
mov dword [0x485708], esi
pop esi
ret
Function at 0x410c86
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x485708], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x484d38
jne 0x410ca6
push 0
call fcn.0044fbf1
pop ecx
call fcn.00410c47
mov dword [0x472c34], 0x270
mov dword [0x484d34], esi
mov edx, 0xe3
mov ecx, bind
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x410cc5
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x410cfb
mov edx, dword [0x484d38]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x410d55
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x472c34]
jne 0x410d62
call fcn.00410c86
mov eax, dword [0x484d34]
mov ecx, dword [eax]
add dword [0x484d34], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x410d99
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x472c34]
jne 0x410da7
call fcn.00410c86
mov eax, dword [0x484d34]
mov eax, dword [eax]
add dword [0x484d34], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x410ded
fadd qword [0x46e148]
fmul qword [0x46e140]
pop ecx
ret

Function at 0x410f98
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x410fba
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044dc10
add esp, 0xc
jmp 0x410fcd
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0044ecb1
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
add dword [esi + 0xc], 8
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.0044e3b0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x4110a1
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x464]
test eax, eax
mov ecx, 0x10000
je 0x4110b4
cmp eax, ecx
jne 0x4110cf
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x45c]
call fcn.0044ecb1
add esp, 0x10
and dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
ret

Function at 0x4110e6
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x444]
push edi
je 0x41119d
cmp eax, dword [esi + 0x43c]
jae 0x411169
mov edi, 0x10000
push ebx
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov ebx, dword [esi + 0x460]
mov edx, dword [esi + 0x458]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc dword [esi + 0x460]
cmp dword [esi + 0x460], edi
jne 0x411151
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x458]
call fcn.0044e8a5
add esp, 0x10
and dword [esi + 0x460], 0
inc dword [esi + 0x444]
inc dword [esi + 8]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x411105
pop ebx
and dword [esi + 0x440], 0
pop edi
ret
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov edi, dword [esi + 8]
mov edx, dword [esi]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + edi], al
inc dword [esi + 8]
inc dword [esi + 0x444]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x411172
jmp 0x411169