joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b68b
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b6bb
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b6e1
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
jmp 0x40b6e3
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.004519fe
mov dword [edi], eax
push dword [esi + 4]
call fcn.00451214
add esp, 0x14
test eax, eax
je 0x40b6e1
and dword [edi], 0
jmp 0x40b6b7
mov al, 1
pop ebx
ret 4

Function at 0x40b9fc
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40ba7b
cmp edi, 4
jle 0x40ba0d
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00450e80
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.00450190
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.004519fe
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40ba7b
push dword [esi + 4]
call fcn.004511e5
test eax, eax
pop ecx
jne 0x40ba76
push dword [esi + 4]
call fcn.00451214
test eax, eax
pop ecx
jne 0x40ba76
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40bb94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbe1
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x40bbd8
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40bbe4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x40bc44
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40c04d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x4786c2], bl
je 0x40c093
mov byte [0x4786c3], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40c0d4
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00451ba4
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, ebx
mov edi, eax
je 0x40c0bf
push 0xffffffffffffffff
push esi
mov byte [0x4786c3], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4786c2], 1
jne 0x40c0cd
or eax, 0xffffffff
jmp 0x40c0cf
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c257
test al, 0x10
je 0x40c257
cmp byte [0x48a8ad], bl
je 0x40c257
mov al, 1
jmp 0x40c2a9
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c27c
xor al, al
jmp 0x40c2a8
cmp dword [ebp + 0x10], ebx
jne 0x40c287
push dword [ebp + 0xc]
push ebx
jmp 0x40c297
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40c294
push ebx
push dword [ebp + 0xc]
jmp 0x40c298
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x40c2ac
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 0x40c2cc
xor al, al
jmp 0x40c3e1
push ebx
push edi
push esi
call fcn.0044de32
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.0044e3ca
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044de32
mov esi, 0x46b574
mov edi, eax
push esi
push edi
call fcn.0044ddb8
push esi
push ebx
call fcn.0044e371
add esp, 0x18
test eax, eax
je 0x40c3a7
push str.StringFileInfo_
push edi
call fcn.0044dd8e
push esi
push ebx
call fcn.0044e642
add esp, 0x10
test eax, eax
jne 0x40c39e
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 0x40c37e
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.0040db55
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040db55
mov ebx, dword [ebp + 0x10]
jmp 0x40c389
push str.04090000
push edi
call fcn.0044dd8e
pop ecx
pop ecx
push esi
push edi
call fcn.0044dd8e
push ebx
push edi
call fcn.0044dd8e
add esp, 0x10
jmp 0x40c3a7
push ebx
push edi
call fcn.0044dd8e
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044dcfd
test eax, eax
pop ecx
pop ecx
jne 0x40c3e4
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.0045089d
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044de9c
push edi
call fcn.0044de9c
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 0x40c45a
push esi
push ebx
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
jne 0x40c431
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.0044e3e0
add esp, 0x18
jmp 0x40c444
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0045089d
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044de9c
push edi
call fcn.0044de9c
pop ecx
pop ecx
mov al, bl
jmp 0x40c3df
xor bl, bl
jmp 0x40c446

Function at 0x40c473
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 0x40c4ad
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40c4a3
or eax, eax
jmp 0x40c4ad
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40c648
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.0040c4b1
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c68d
test al, 0x10
je 0x40c68d
lea eax, [esp + 0x10]
push 0x46bf0c
push eax
call fcn.0044dd8e
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.004507f8
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 0x40c75e
cmp bl, 1
jne 0x40c75e
test byte [esp + 0x220], 0x10
jne 0x40c736
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044ddb8
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044dd8e
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044dd8e
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40c74d
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c6da
xor bl, bl
jmp 0x40c6da
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 0x40c74f
Function at 0x40c764
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.00453310
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040c4b1
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040c4b1
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040c5a3
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, 0x46bf0c
je 0x40c7e2
test al, 0x10
je 0x40c7e2
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044dd8e
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c805
test al, 0x10
je 0x40c805
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044dd8e
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.004507f8
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 0x40c99d
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40c99d
test byte [esp + 0x858], 0x10
jne 0x40c978
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.0040c9b0
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044ddb8
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044dd8e
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044dd8e
mov eax, esi
push eax
call fcn.0040c45e
add esp, 0x2c
test al, al
je 0x40c90e
cmp byte [ebp + 0x10], 0
je 0x40c959
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 0x40c967
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40c94b
cmp byte [esp + 0x13], 0
jne 0x40c930
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40c955
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c959
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c955
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c976
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40c9a9
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40c99b
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c863
mov byte [esp + 0x12], al
jmp 0x40c863
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 0x40cbcc
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.0044e3ca
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40cbe8
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cc5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x40cc12
push 0
push esi
call ebp
test eax, eax
je 0x40cc17
mov al, 1
jmp 0x40cc65
cmp eax, 3
jne 0x40cc63
push esi
call fcn.0040d6aa
mov edi, eax
push 0x5c
push edi
call fcn.00451a7a
add esp, 0xc
test eax, eax
jne 0x40cc37
push edi
call fcn.0044de9c
pop ecx
jmp 0x40cc63
and word [eax], 0
push ebx
push edi
call fcn.0040cbcc
push edi
mov bl, al
call fcn.0044de9c
test bl, bl
pop ecx
pop ecx
je 0x40cc5a
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40cc65
test al, 0x10
jne 0x40cc0e
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40cc69
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.0040c4b1
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040c4b1
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 0x40cce2
cmp byte [ebp + 0x10], al
je 0x40ccde
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x40ccda
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 0x40ccfb
test al, 0x10
jne 0x40cd02
xor al, al
jmp 0x40cdbb
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cd1c
test al, 0x10
je 0x40cd1c
cmp byte [ebp + 0x10], bl
jmp 0x40cd3d
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cbcc
test al, al
pop ecx
je 0x40cd3f
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd3f
test al, 0x10
jne 0x40cd43
xor al, al
jmp 0x40cdba
lea eax, [ebp - 0x438]
push 0x46bf0c
push eax
call fcn.0044dd8e
lea eax, [ebp - 0x438]
push eax
call fcn.0044e3ca
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044e3ca
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 0x40cdbe
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.0040c4b1
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.0040c4b1
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cdfe
test al, 0x10
jne 0x40ce05
xor al, al
jmp 0x40cf1e
push ebx
lea eax, [ebp - 0x438]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ce68
test al, 0x10
je 0x40ce68
cmp byte [ebp + 0x10], bl
je 0x40ce9d
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ce68
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044e371
test eax, eax
pop ecx
pop ecx
je 0x40ce68
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jmp 0x40ceb3
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040c5a3
test al, al
pop ecx
pop ecx
je 0x40ceb8
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cc69
add esp, 0xc
test al, al
jne 0x40cea1
xor al, al
jmp 0x40cf1d
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.0040cf21
pop ecx
pop ecx
test al, al
setne al
jmp 0x40cf1d
lea eax, [ebp - 0x22c]
push eax
call fcn.0044e3ca
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.0044e3ca
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 0x40cf21
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.0040c4b1
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cf4f
test al, 0x10
jne 0x40cf53
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x40cf6f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40cfb2
call fcn.0044e3ca
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 0x40d07a
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 0x40d13a
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 0x40d13a
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40d0d4
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40d0cb
cmp esi, edx
jle 0x40d0e9
push str.0.0.0.0
push dword [ebp + 8]
call fcn.0044ddb8
pop ecx
pop ecx
jmp 0x40d133
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.00450190
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00450000
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040de9f
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044ddb8
push esi
call fcn.0044de9c
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40d149
push 0x46b160
push dword [ebp + 8]
call fcn.0044ddb8
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x40d258
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x48a8ac], 0
push ebx
push esi
mov ebx, eax
je 0x40d2c3
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 0x40d286
xor eax, eax
jmp 0x40d305
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 0x40d2c5
jmp 0x40d282
xor esi, esi
cmp byte [0x48a8ad], 0
je 0x40d2e2
test bl, 4
je 0x40d2e2
push esi
push 0x40d309
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40d2f6
cmp ebx, 0x40
je 0x40d2f6
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40d305
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 0x40d345
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40d35e
push dword [esp + 4]
call fcn.0040d320
test al, al
pop ecx
jne 0x40d37a
push 1
jmp 0x40d360
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 0x40d619
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 0x40d6a5
jne 0x40d62d
push 0
jmp 0x40d69f
mov al, byte [0x48a8ad]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40d69e
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40d69e
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 [0x4713d0]
call fcn.00465256
cmp eax, edi
jb 0x40d65c
jmp 0x40d6a5
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d8f1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [0x4786bb]
push edi
push 0x8000
push esi
call fcn.00451ee0
pop ecx
push eax
call fcn.00451de9
push dword [ebp + 8]
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.0040df0e
mov edi, eax
push edi
push 0x46c0d8
push esi
call fcn.00451f0d
push edi
call fcn.0044de9c
push esi
call fcn.004521da
add esp, 0x20
cmp dword [ebp - 4], 0xffffffff
jne 0x40d947
push 0x4000
jmp 0x40d94a
push dword [ebp - 4]
push esi
call fcn.00451ee0
pop ecx
push eax
call fcn.00451de9
pop ecx
pop ecx
pop edi
test bl, bl
pop ebx
je 0x40d968
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x488720], eax
push edi
mov edx, esi
mov eax, 0x488720
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, 0x4890dc
jl 0x411860
pop edi
mov dword [0x476c94], esi
mov dword [0x4890f0], esi
pop esi
ret