joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b34d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [esi], 0
jne 0x46b37e
cmp byte [esi + 1], 0
jne 0x46b37e
cmp byte [esi + 2], 0
jne 0x46b37e
cmp byte [esi + 3], 0
jne 0x46b37e
cmp byte [esi + 4], 0
je 0x46b535
cmp dword [edi + 0x20], 0
push ebx
je 0x46b4b7
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x46b4b7
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46b408
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x46b3c6
xor al, cl
xor byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x46b3d7
xor al, cl
xor byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x46b3e3
xor byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x46b3ef
xor byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x46b3fb
xor byte [ebp - 0xa5], cl
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [esi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x46b419
cmp byte [esi + 1], 0
je 0x46b432
movzx eax, byte [edi + 0x26]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 2], 0
je 0x46b451
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 3], 0
je 0x46b492
cmp byte [esi + 2], 0
jne 0x46b479
cmp byte [edi + 0x1c], 0
jne 0x46b479
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x46b48d
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 4], 0
je 0x46b52d
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push dword [edi + 0x20]
call ebx
jmp 0x46b52d
cmp byte [esi], 0
push 2
pop ebx
je 0x46b4d2
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.0046b6bf
cmp byte [esi + 1], 0
je 0x46b4eb
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.0046b6bf
cmp byte [esi + 2], 0
je 0x46b501
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.0046b6bf
cmp byte [esi + 3], 0
je 0x46b517
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.0046b6bf
cmp byte [esi + 4], 0
je 0x46b52d
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.0046b6bf
mov ecx, edi
call fcn.0046a0ba
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46b53d
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x46b5c1
jne 0x46b550
push 0
jmp 0x46b5bb
cmp esi, 0xf
jae 0x46b5ba
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x46b5ba
mov dword [ebp - 4], esi
fild dword [ebp - 4]
test esi, esi
jns 0x46b573
fadd qword [0x4c7f60]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fstp qword [ebp - 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sbb eax, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
fild qword [ebp - 8]
fstp qword [ebp - 0x20]
call fcn.0041fb95
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x46b57c
jmp 0x46b5c1
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46b715
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.0046a3f7
mov eax, dword [ebp + 8]
mov word [esi + 8], ax
test ax, ax
jne 0x46b730
xor al, al
jmp 0x46b775
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
cmp ax, 0xffff
je 0x46b72c
push ebx
mov ebx, eax
mov byte [esi], al
push 0
movzx eax, al
push eax
sar ebx, 8
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [esi + 7], al
test bl, 1
je 0x46b760
mov byte [esi + 1], 1
test bl, 2
je 0x46b769
mov byte [esi + 3], 1
test bl, 4
pop ebx
je 0x46b773
mov byte [esi + 4], 1
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x46d0f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 8], edi
je 0x46d10c
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0046d026
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x46d2fb
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20034
call fcn.00441bc0
push ebx
push esi
lea eax, [ebp - 0x20034]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0046e205
lea eax, [ebp - 0x10034]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.0046e205
pop ecx
pop ecx
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46d380
cmp byte [ebp + 8], al
je 0x46d3b0
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call fcn.00424e88
pop ecx
pop ecx
test eax, eax
je 0x46d37c
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x46d3b2
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20034]
push eax
call esi
cmp eax, 0xffffffff
je 0x46d3b0
test al, 0x10
je 0x46d3b0
lea eax, [ebp - 0x10034]
push eax
call esi
cmp eax, 0xffffffff
je 0x46d3b8
test al, 0x10
je 0x46d3b8
cmp byte [ebp + 8], 0
jne 0x46d3f4
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10034]
push eax
lea ecx, [ebp - 0x34]
call fcn.004045fd
lea ecx, [ebp - 0x34]
call fcn.0046d6df
mov bl, al
lea ecx, [ebp - 0x34]
neg bl
sbb bl, bl
call fcn.004020f8
add bl, 1
jne 0x46d3b0
lea eax, [ebp - 0x10034]
push eax
call esi
cmp eax, 0xffffffff
je 0x46d3b0
test al, 0x10
je 0x46d3b0
lea eax, [ebp - 0x20034]
push 0x4c6728
push eax
call fcn.00428c68
lea eax, [ebp - 0x20034]
push eax
call fcn.0042462e
xor ecx, ecx
mov word [ebp + eax*2 - 0x20032], cx
lea eax, [ebp - 0x10034]
push eax
call fcn.0042462e
xor ecx, ecx
mov dword [ebp - 0x20], 2
add esp, 0x10
mov word [ebp + eax*2 - 0x10032], cx
lea eax, [ebp - 0x20034]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10034]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0x24], eax
mov eax, 0x614
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
jmp 0x46d3b2
Function at 0x46d6df
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 4]
push esi
push 0x49cb78
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.0040400e
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46d7ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x46d743
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46d748
jmp 0x46d7b0
cmp eax, 3
jne 0x46d7b4
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
push 0x49cb78
inc dword [eax]
call fcn.00404505
cmp eax, 0xffffffff
je 0x46d7a1
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00404562
lea ecx, [esp + 0x18]
call fcn.0046d6df
test al, al
je 0x46d79f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [esp + 0x18]
call fcn.004020f8
jmp 0x46d7b6
test al, 0x10
je 0x46d7b4
mov bl, 1
jmp 0x46d7b6
xor bl, bl
lea ecx, [esp + 8]
call fcn.004020f8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d7c7
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, 0x288
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.00403f6a
lea ecx, [esp + 0x30]
call fcn.00403f6a
lea ecx, [esp + 0x20]
call fcn.00403f6a
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0041bdf5
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46d824
test al, 0x10
je 0x46d824
push 0x4c6728
lea ecx, [esp + 0x14]
call fcn.004044dd
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.0041bc41
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x46d8c4
cmp al, 1
jne 0x46d8c4
test byte [esp + 0x40], 0x10
jne 0x46d89f
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.0040478a
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00404350
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.004044dd
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x46d8bb
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x46d857
mov al, bl
mov byte [esp + 0xe], al
jmp 0x46d857
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x46d8cf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.004020f8
lea ecx, [esp + 0x30]
call fcn.004020f8
lea ecx, [esp + 0x10]
call fcn.004020f8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d8f2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
push ebx
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x14], edx
push 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x50], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx]
mov byte [esi], 0
call fcn.0046e320
mov ebx, eax
jmp 0x46d9f9
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x46da02
lea ecx, [esp + 0x18]
call fcn.00403f6a
lea ecx, [esp + 0x28]
call fcn.00403f6a
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.004045fd
lea eax, [esp + 0x28]
xor edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.0041bc41
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.004020f8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404350
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [esp + 0x24]
push dword [esp + 0x24]
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringW]
test eax, eax
je 0x46d9da
add eax, 0xfffffffe
je 0x46d9da
test ebx, ebx
je 0x46d9e7
mov eax, dword [esp + 0x50]
cmp ebx, eax
jne 0x46d9e7
jmp 0x46d9de
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.004020f8
lea ecx, [esp + 0x18]
call fcn.004020f8
cmp byte [esi], 0
je 0x46d93f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46da12
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
mov eax, 0x80
push esi
push eax
push 3
push esi
push 3
mov ebx, edx
push eax
push ecx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 8], edx
cmp edx, 0xffffffff
jne 0x46da43
xor al, al
jmp 0x46da8c
push 0xa
pop ecx
xor eax, eax
mov dword [ebp - 0x14], esi
push esi
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
push 0x28
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], esi
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x46da3f
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46da93
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, 0x80
push ebx
push esi
xor esi, esi
push esi
push eax
push 3
push esi
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46dabf
mov eax, 0x80004005
jmp 0x46db0b
push edi
xor eax, eax
mov dword [ebp - 0x10], 7
lea edi, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
je 0x46dab8
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46e02c
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x46e021
or eax, eax
jmp 0x46e02c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46e031
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x46e056
xor al, al
jmp 0x46e1fe
push esi
call fcn.004201ab
pop ecx
push eax
mov dword [ebp - 4], eax
xor eax, eax
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [ebp + 8]
push esi
call fcn.0042462e
xor ecx, ecx
add eax, 0x1a
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004201ab
mov edi, eax
push 0x49cb78
push edi
call fcn.0042464e
push 0x49cb78
push esi
call fcn.00424e88
add esp, 0x18
test eax, eax
je 0x46e142
push str.StringFileInfo_
push edi
call fcn.00428c68
push 0x49cb78
push esi
call fcn.0042348a
add esp, 0x10
test eax, eax
jne 0x46e139
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46e115
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
push 0
mov esi, dword [eax]
push esi
push 4
pop edx
call fcn.0041f1dc
push 0
shr esi, 0x10
lea ecx, [edi + 0x28]
push esi
push 4
pop edx
call fcn.0041f1dc
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x46e122
push str.04090000
push edi
call fcn.00428c68
pop ecx
pop ecx
push 0x49cb78
push edi
call fcn.00428c68
push esi
push edi
call fcn.00428c68
add esp, 0x10
jmp 0x46e142
push esi
push edi
call fcn.00428c68
pop ecx
pop ecx
push str.DefaultLangCodepage
push esi
call fcn.004246f3
pop ecx
pop ecx
test eax, eax
jne 0x46e17d
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.0042ce9a
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.004201b4
push edi
call fcn.004201b4
add esp, 0x14
mov al, 1
jmp 0x46e1fe
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46e1eb
push 0x49cb78
push esi
call fcn.00424e88
pop ecx
pop ecx
test eax, eax
jne 0x46e1cd
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push ebx
call fcn.0041feb4
add esp, 0x18
jmp 0x46e1e7
push 0x200
push dword [ebp - 8]
push ebx
call fcn.0042ce9a
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.004201b4
push edi
call fcn.004201b4
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e24e
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x46e30d
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x46e30d
mov eax, dword [eax + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
je 0x46e2aa
inc ecx
cmp dword [eax + ecx*4], 0
jne 0x46e2a3
cmp esi, ecx
jle 0x46e2bd
push str.0.0.0.0
push edi
call fcn.0042464e
pop ecx
pop ecx
jmp 0x46e305
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.004211a0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042d1a0
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.0046f025
mov esi, eax
push esi
push edi
call fcn.0042464e
push esi
call fcn.004201b4
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x46e31a
push 0x49c9dc
push edi
call fcn.0042464e
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46e5ea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4d135d], 0
mov ebx, edx
test edi, edi
je 0x46e63c
mov byte [0x4d135e], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x46eaee
push ecx
push ecx
call fcn.0042ce07
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
test esi, esi
je 0x46e667
push 0xffffffffffffffff
push esi
mov byte [0x4d135e], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4d135d], 1
jne 0x46e675
or eax, 0xffffffff
jmp 0x46e677
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e824
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20450
call fcn.00441bc0
push ebx
push esi
lea eax, [esp + 0x10458]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0046e205
pop ecx
lea eax, [esp + 0x458]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.0046e205
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x1045c]
pop ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x46ea99
test al, 0x10
je 0x46ea99
lea eax, [esp + 0x458]
push eax
call esi
xor esi, esi
cmp eax, 0xffffffff
je 0x46e968
test al, 0x10
je 0x46e968
cmp byte [ebp + 8], 0
je 0x46ea99
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46e904
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.00424e88
pop ecx
pop ecx
test eax, eax
je 0x46e8fd
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x46ea9b
mov al, 1
jmp 0x46ea9b
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x254]
push eax
push esi
lea eax, [esp + 0x10464]
push esi
push eax
call fcn.0042d132
add esp, 0x14
lea eax, [esp + 0x458]
push 0x49cb78
push eax
call fcn.00428c68
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x464]
push eax
call fcn.00428c68
add esp, 0x10
cmp word [esp + 0x48], si
je 0x46e968
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x45c]
push eax
call fcn.00428c68
pop ecx
pop ecx
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0xc]
call fcn.004045fd
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0x3c]
call fcn.004045fd
lea edx, [esp + 8]
lea ecx, [esp + 0x38]
call fcn.0046e56d
lea ecx, [esp + 0x38]
mov bl, al
call fcn.004020f8
lea ecx, [esp + 8]
call fcn.004020f8
test bl, bl
je 0x46ea03
push 1
lea edx, [esp + 0x45c]
lea ecx, [esp + 0x1045c]
call fcn.0046d2fb
pop ecx
test al, al
je 0x46ea99
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0xc]
call fcn.004045fd
mov dl, 1
lea ecx, [esp + 8]
call fcn.0046ec9b
mov bl, al
lea ecx, [esp + 8]
neg bl
sbb bl, bl
call fcn.004020f8
add bl, 1
sete al
jmp 0x46ea9b
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.00424e88
pop ecx
pop ecx
test eax, eax
je 0x46ea99
lea eax, [esp + 0x10458]
push eax
call fcn.0042462e
pop ecx
xor ecx, ecx
mov word [esp + eax*2 + 0x1045a], cx
lea eax, [esp + 0x458]
push eax
call fcn.0042462e
pop ecx
xor ecx, ecx
mov dword [esp + 0x2e], esi
mov dword [esp + 0x32], esi
mov word [esp + eax*2 + 0x45a], cx
lea eax, [esp + 0x10458]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x458]
mov dword [esp + 0x24], eax
mov eax, 0x614
mov word [esp + 0x28], ax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2e], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
jmp 0x46ea9b
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret