joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c2d6
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 0x40c2f6
xor al, al
jmp 0x40c40b
push ebx
push edi
push esi
call fcn.0044e9ed
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.0044f00e
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e9ed
mov esi, 0x46c388
mov edi, eax
push esi
push edi
call fcn.0044e973
push esi
push ebx
call fcn.0044ef27
add esp, 0x18
test eax, eax
je 0x40c3d1
push str.StringFileInfo_
push edi
call fcn.0044e949
push esi
push ebx
call fcn.0044f286
add esp, 0x10
test eax, eax
jne 0x40c3c8
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 0x40c3a8
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.0040db8a
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040db8a
mov ebx, dword [ebp + 0x10]
jmp 0x40c3b3
push str.04090000
push edi
call fcn.0044e949
pop ecx
pop ecx
push esi
push edi
call fcn.0044e949
push ebx
push edi
call fcn.0044e949
add esp, 0x10
jmp 0x40c3d1
push ebx
push edi
call fcn.0044e949
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044e8b8
test eax, eax
pop ecx
pop ecx
jne 0x40c40e
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.0045158d
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044e722
push edi
call fcn.0044e722
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 0x40c484
push esi
push ebx
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
jne 0x40c45b
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.0044f059
add esp, 0x18
jmp 0x40c46e
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0045158d
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044e722
push edi
call fcn.0044e722
pop ecx
pop ecx
mov al, bl
jmp 0x40c409
xor bl, bl
jmp 0x40c470

Function at 0x40c49d
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 0x40c4d7
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40c4cd
or eax, eax
jmp 0x40c4d7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40c672
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.0040c4db
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c6b7
test al, 0x10
je 0x40c6b7
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044e949
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.004514e8
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 0x40c788
cmp bl, 1
jne 0x40c788
test byte [esp + 0x220], 0x10
jne 0x40c760
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044e973
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044e949
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044e949
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40c777
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c704
xor bl, bl
jmp 0x40c704
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 0x40c779
Function at 0x40c78e
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.00453ed0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040c4db
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040c4db
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040c5cd
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 0x40c80c
test al, 0x10
je 0x40c80c
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044e949
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c82f
test al, 0x10
je 0x40c82f
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044e949
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.004514e8
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 0x40c9c7
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40c9c7
test byte [esp + 0x858], 0x10
jne 0x40c9a2
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.0040c9da
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044e973
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044e949
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044e949
mov eax, esi
push eax
call fcn.0040c488
add esp, 0x2c
test al, al
je 0x40c938
cmp byte [ebp + 0x10], 0
je 0x40c983
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 0x40c991
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40c975
cmp byte [esp + 0x13], 0
jne 0x40c95a
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40c97f
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c983
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c97f
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c9a0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40c9d3
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40c9c5
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c88d
mov byte [esp + 0x12], al
jmp 0x40c88d
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 0x40cbf6
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.0044f00e
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40cc12
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cc89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x40cc3c
push 0
push esi
call ebp
test eax, eax
je 0x40cc41
mov al, 1
jmp 0x40cc8f
cmp eax, 3
jne 0x40cc8d
push esi
call fcn.0040d6da
mov edi, eax
push 0x5c
push edi
call fcn.00452dc0
add esp, 0xc
test eax, eax
jne 0x40cc61
push edi
call fcn.0044e722
pop ecx
jmp 0x40cc8d
and word [eax], 0
push ebx
push edi
call fcn.0040cbf6
push edi
mov bl, al
call fcn.0044e722
test bl, bl
pop ecx
pop ecx
je 0x40cc84
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40cc8f
test al, 0x10
jne 0x40cc38
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40cc93
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.0040c4db
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040c4db
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 0x40cd0c
cmp byte [ebp + 0x10], al
je 0x40cd08
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x40cd04
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 0x40cd25
test al, 0x10
jne 0x40cd2c
xor al, al
jmp 0x40cde5
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cd46
test al, 0x10
je 0x40cd46
cmp byte [ebp + 0x10], bl
jmp 0x40cd67
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cbf6
test al, al
pop ecx
je 0x40cd69
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd69
test al, 0x10
jne 0x40cd6d
xor al, al
jmp 0x40cde4
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044e949
lea eax, [ebp - 0x438]
push eax
call fcn.0044f00e
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044f00e
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 0x40cde8
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.0040c4db
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.0040c4db
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ce28
test al, 0x10
jne 0x40ce2f
xor al, al
jmp 0x40cf48
push ebx
lea eax, [ebp - 0x438]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ce92
test al, 0x10
je 0x40ce92
cmp byte [ebp + 0x10], bl
je 0x40cec7
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ce92
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x40ce92
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jmp 0x40cedd
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040c5cd
test al, al
pop ecx
pop ecx
je 0x40cee2
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cc93
add esp, 0xc
test al, al
jne 0x40cecb
xor al, al
jmp 0x40cf47
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.0040cf4b
pop ecx
pop ecx
test al, al
setne al
jmp 0x40cf47
lea eax, [ebp - 0x22c]
push eax
call fcn.0044f00e
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.0044f00e
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 0x40cf4b
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.0040c4db
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cf79
test al, 0x10
jne 0x40cf7d
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x40cf99
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40cfdc
call fcn.0044f00e
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 0x40d0aa
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 0x40d16a
push pe_nt_image_headers32
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 0x40d16a
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40d104
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40d0fb
cmp esi, edx
jle 0x40d119
push str.0.0.0.0
push dword [ebp + 8]
call fcn.0044e973
pop ecx
pop ecx
jmp 0x40d163
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.00450dd0
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00450c40
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040ded4
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044e973
push esi
call fcn.0044e722
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40d179
push 0x46bf68
push dword [ebp + 8]
call fcn.0044e973
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x40d288
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x48b7b4], 0
push ebx
push esi
mov ebx, eax
je 0x40d2f3
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 0x40d2b6
xor eax, eax
jmp 0x40d335
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 0x40d2f5
jmp 0x40d2b2
xor esi, esi
cmp byte [0x48b7b5], 0
je 0x40d312
test bl, 4
je 0x40d312
push esi
push 0x40d339
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40d326
cmp ebx, 0x40
je 0x40d326
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40d335
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 0x40d375
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40d38e
push dword [esp + 4]
call fcn.0040d350
test al, al
pop ecx
jne 0x40d3aa
push 1
jmp 0x40d390
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 0x40d649
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 0x40d6d5
jne 0x40d65d
push 0
jmp 0x40d6cf
mov al, byte [0x48b7b5]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40d6ce
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40d6ce
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 [0x4723a0]
call fcn.00465e16
cmp eax, edi
jb 0x40d68c
jmp 0x40d6d5
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d921
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [0x4795bc]
push edi
push 0x8000
push esi
call fcn.00452a09
pop ecx
push eax
call fcn.00452912
push dword [ebp + 8]
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.0040df43
mov edi, eax
push edi
push 0x46ced4
push esi
call fcn.00452a36
push edi
call fcn.0044e722
push esi
call fcn.00452d03
add esp, 0x20
cmp dword [ebp - 4], 0xffffffff
jne 0x40d977
push 0x4000
jmp 0x40d97a
push dword [ebp - 4]
push esi
call fcn.00452a09
pop ecx
push eax
call fcn.00452912
pop ecx
pop ecx
pop edi
test bl, bl
pop ebx
je 0x40d998
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x489628], eax
push edi
mov edx, esi
mov eax, 0x489628
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, 0x489fe4
jl 0x4118d8
pop edi
mov dword [0x478078], esi
mov dword [0x489ff8], esi
pop esi
ret
Function at 0x411906
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x489ff8], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x489628
jne 0x411926
push 0
call fcn.00452f3f
pop ecx
call fcn.004118c7
mov dword [0x478078], 0x270
mov dword [0x489620], 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 0x411945
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 0x41197b
mov edx, dword [0x489628]
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 0x4119d5
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x478078]
jne 0x4119e2
call fcn.00411906
mov eax, dword [0x489620]
mov ecx, dword [eax]
add dword [0x489620], 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 0x411a19
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x478078]
jne 0x411a27
call fcn.00411906
mov eax, dword [0x489620]
mov eax, dword [eax]
add dword [0x489620], 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 0x411a6d
fadd qword [0x472380]
fmul qword [0x472378]
pop ecx
ret

Function at 0x411c18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x411c3a
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00450dd0
add esp, 0xc
jmp 0x411c4d
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.004523ce
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.00451670
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x41ba0a
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41ba8a
lea eax, [ebp - 0x22c]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41ba78
lea eax, [ebp - 0x22c]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41ba78
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0040c25d
add esp, 0xc
test al, al
je 0x41baa2
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ba31
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41baad
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x41ba9b
lea eax, [ebp - 0x258]
push eax
push 0x46faa0
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41bb3b
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x41bb27
lea eax, [ebp - 0x22c]
push 0x46cd14
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41bb27
lea eax, [ebp - 0x22c]
push 0x46faa8
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x41bb27
lea eax, [ebp - 0x22c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ba0a
test al, al
je 0x41bb3f
push 0x46faa8
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41bac9
mov bl, 1
jmp 0x41bb41
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41ba9b