joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ff33
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 0x45ff64
cmp byte [esi + 1], 0
jne 0x45ff64
cmp byte [esi + 2], 0
jne 0x45ff64
cmp byte [esi + 3], 0
jne 0x45ff64
cmp byte [esi + 4], 0
je 0x460120
cmp dword [edi + 0x20], 0
push ebx
je 0x4600a2
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4600a2
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x45ffee
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x45ffac
xor al, cl
xor byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x45ffbd
xor al, cl
xor byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x45ffc9
xor byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x45ffd5
xor byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x45ffe1
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 0x45ffff
cmp byte [esi + 1], 0
je 0x460018
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 0x460037
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push 0x101
push dword [edi + 0x20]
call ebx
mov al, byte [esi + 3]
test al, al
je 0x46007d
cmp byte [esi + 2], 0
jne 0x460060
cmp byte [edi + 0x1c], 0
jne 0x460060
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x460078
test al, al
je 0x46007d
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 0x460118
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push dword [edi + 0x20]
call ebx
jmp 0x460118
cmp byte [esi], 0
push 2
pop ebx
je 0x4600bd
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.004602ad
cmp byte [esi + 1], 0
je 0x4600d6
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.004602ad
cmp byte [esi + 2], 0
je 0x4600ec
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.004602ad
cmp byte [esi + 3], 0
je 0x460102
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.004602ad
cmp byte [esi + 4], 0
je 0x460118
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.004602ad
mov ecx, edi
call fcn.0045ecbb
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x460128
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
test esi, esi
js 0x4601ad
jne 0x46013c
push 0
jmp 0x4601a7
cmp esi, 0xf
jae 0x4601a6
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4601a6
mov dword [ebp + 8], esi
fild dword [ebp + 8]
test esi, esi
jns 0x46015f
fadd qword [0x4b8d08]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fstp qword [ebp - 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
call fcn.0041f736
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x460168
jmp 0x4601ad
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor eax, eax
mov dword [esi + 4], eax
mov byte [esi + 0xa], al
mov eax, dword [ebp + 8]
mov dword [esi], 0xff
mov word [esi + 8], ax
test ax, ax
jne 0x46032b
xor al, al
jmp 0x460370
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
cmp ax, 0xffff
je 0x460327
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 0x46035b
mov byte [esi + 1], 1
test bl, 2
je 0x460364
mov byte [esi + 3], 1
test bl, 4
pop ebx
je 0x46036e
mov byte [esi + 4], 1
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x462174
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00461f30
push 0
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], 0
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4622e7
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20030
call fcn.004308b0
push ebx
push esi
lea eax, [esp + 0x10038]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.00463332
lea eax, [esp + 0x3c]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.00463332
pop ecx
pop ecx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x462375
cmp byte [ebp + 8], al
je 0x46236e
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call fcn.004224be
pop ecx
pop ecx
test eax, eax
je 0x462367
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x462421
xor al, al
jmp 0x462421
lea ecx, [esp + 0x10038]
call fcn.0046375b
test al, al
je 0x46236e
lea ecx, [esp + 0x38]
call fcn.0046375b
test al, al
je 0x462427
cmp byte [ebp + 8], 0
je 0x46236e
lea eax, [esp + 0x10038]
push str..
push eax
call fcn.00421cfd
lea eax, [esp + 0x10040]
push eax
call fcn.00421b6c
xor ecx, ecx
mov word [esp + eax*2 + 0x10046], cx
lea eax, [esp + 0x44]
push eax
call fcn.00421b6c
xor ecx, ecx
mov dword [esp + 0x1c], 2
add esp, 0x10
mov word [esp + eax*2 + 0x3a], cx
lea eax, [esp + 0x10038]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407b51
lea ecx, [esp + 0x28]
call fcn.004626f1
mov bl, al
lea ecx, [esp + 0x28]
neg bl
sbb bl, bl
call fcn.00405832
inc bl
jne 0x46236e
lea ecx, [esp + 0x38]
call fcn.0046375b
test al, al
jmp 0x46239a
Function at 0x4626f1
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 0x48eacc
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.00407496
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4627be
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x462755
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46275a
jmp 0x4627c2
cmp eax, 3
jne 0x4627c6
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 0x48eacc
inc dword [eax]
call fcn.00407a3f
cmp eax, 0xffffffff
je 0x4627b3
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00407a9c
lea ecx, [esp + 0x18]
call fcn.004626f1
test al, al
je 0x4627b1
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.00405832
jmp 0x4627c8
test al, 0x10
je 0x4627c6
mov bl, 1
jmp 0x4627c8
xor bl, bl
lea ecx, [esp + 8]
call fcn.00405832
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4627d9
Capabilities:
Delete file
Enumerate files on windows

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.004073d7
lea ecx, [esp + 0x20]
call fcn.004073d7
lea ecx, [esp + 0x30]
call fcn.004073d7
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00404894
mov ecx, dword [esp + 0x10]
call fcn.0046375b
test al, al
je 0x462830
push str..
lea ecx, [esp + 0x14]
call fcn.00407a1b
push ebx
lea eax, [esp + 0x34]
push ebx
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.004046df
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 0x4628d0
cmp al, 1
jne 0x4628d0
test byte [esp + 0x40], 0x10
jne 0x4628ab
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.00407d2b
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.0040789e
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.00407a1b
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x4628c7
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x462863
mov al, bl
mov byte [esp + 0xe], al
jmp 0x462863
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4628db
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x30]
call fcn.00405832
lea ecx, [esp + 0x20]
call fcn.00405832
lea ecx, [esp + 0x10]
call fcn.00405832
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46291c
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.00463451
mov ebx, eax
jmp 0x462a0f
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x462a18
lea ecx, [esp + 0x18]
call fcn.004073d7
lea ecx, [esp + 0x28]
call fcn.004073d7
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00407b51
lea eax, [esp + 0x28]
xor edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.004046df
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.00405832
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040789e
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.00407678
test eax, eax
jne 0x4629e8
mov eax, dword [esp + 0x50]
jmp 0x4629f4
test ebx, ebx
je 0x4629fd
mov eax, dword [esp + 0x50]
cmp ebx, eax
jne 0x4629fd
mov ecx, dword [esp + 0x10]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.00405832
lea ecx, [esp + 0x18]
call fcn.00405832
cmp byte [esi], 0
je 0x462969
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 0x462a28
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 0x462a59
xor al, al
jmp 0x462aa2
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 0x462a55
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 0x462aa9
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c4338]
sub esp, 0x1c
cmp byte [eax + 0x25], 0
jne 0x462ac1
mov eax, 0x80004005
jmp 0x462b35
push ebx
push esi
xor esi, esi
mov eax, 0x80
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
je 0x462b24
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
jne 0x462b2b
mov eax, 0x80004005
jmp 0x462b33
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46311e
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 0x463159
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x46314e
or eax, eax
jmp 0x463159
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46315e
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 0x463183
xor al, al
jmp 0x46332b
push esi
call fcn.0041fd2e
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.00421b6c
xor ecx, ecx
add eax, 0x1a
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fd2e
mov edi, eax
push 0x48eacc
push edi
call fcn.00421d2c
push 0x48eacc
push esi
call fcn.004224be
add esp, 0x18
test eax, eax
je 0x46326f
push str.StringFileInfo_
push edi
call fcn.00421cfd
push 0x48eacc
push esi
call fcn.004228f7
add esp, 0x10
test eax, eax
jne 0x463266
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 0x463242
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
push 0
mov esi, dword [eax]
push esi
push 4
pop edx
call fcn.0041ead4
push 0
shr esi, 0x10
lea ecx, [edi + 0x28]
push esi
push 4
pop edx
call fcn.0041ead4
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x46324f
push str.04090000
push edi
call fcn.00421cfd
pop ecx
pop ecx
push 0x48eacc
push edi
call fcn.00421cfd
push esi
push edi
call fcn.00421cfd
add esp, 0x10
jmp 0x46326f
push esi
push edi
call fcn.00421cfd
pop ecx
pop ecx
push str.DefaultLangCodepage
push esi
call fcn.00421e6d
pop ecx
pop ecx
test eax, eax
jne 0x4632aa
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.0042302d
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.0041fda4
push edi
call fcn.0041fda4
add esp, 0x14
mov al, 1
jmp 0x46332b
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 0x463318
push 0x48eacc
push esi
call fcn.004224be
pop ecx
pop ecx
test eax, eax
jne 0x4632fa
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.0042260a
add esp, 0x18
jmp 0x463314
push 0x200
push dword [ebp - 8]
push ebx
call fcn.0042302d
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.0041fda4
push edi
call fcn.0041fda4
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46337b
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 0x46343e
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 0x46343e
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x4633db
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0x4633d2
cmp esi, ecx
jle 0x4633ee
push str.0.0.0.0
push edi
call fcn.00421d2c
pop ecx
pop ecx
jmp 0x463436
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.0041fdb0
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.004232b0
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.004641c6
mov esi, eax
push esi
push edi
call fcn.00421d2c
push esi
call fcn.0041fda4
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x46344b
push 0x48e91c
push edi
call fcn.00421d2c
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46368b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x4636e4
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46376e
test al, 0x10
je 0x46376e
mov al, 1
ret
xor al, al
ret
Function at 0x4637bd
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 [0x4c32b7], 0
mov ebx, edx
test edi, edi
je 0x46380f
mov byte [0x4c32b8], 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 0x463c9f
push ecx
push ecx
call fcn.00422dfe
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 0x46383a
push 0xffffffffffffffff
push esi
mov byte [0x4c32b8], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4c32b7], 1
jne 0x463848
or eax, 0xffffffff
jmp 0x46384a
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4639eb
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20450
call fcn.004308b0
push ebx
push esi
lea eax, [esp + 0x10458]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.00463332
pop ecx
lea eax, [esp + 0x458]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.00463332
pop ecx
lea ecx, [esp + 0x10458]
call fcn.0046375b
test al, al
jne 0x463a3e
xor al, al
jmp 0x463c4c
lea ecx, [esp + 0x458]
call fcn.0046375b
xor esi, esi
test al, al
je 0x463b1a
cmp byte [ebp + 8], 0
je 0x463a37
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x463ab6
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.004224be
pop ecx
pop ecx
test eax, eax
je 0x463aaf
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 0x463c4c
mov al, 1
jmp 0x463c4c
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x254]
push eax
push esi
lea eax, [esp + 0x10464]
push esi
push eax
call fcn.0042306d
add esp, 0x14
lea eax, [esp + 0x458]
push 0x48eacc
push eax
call fcn.00421cfd
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x464]
push eax
call fcn.00421cfd
add esp, 0x10
cmp word [esp + 0x48], si
je 0x463b1a
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x45c]
push eax
call fcn.00421cfd
pop ecx
pop ecx
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0xc]
call fcn.00407b51
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0x3c]
call fcn.00407b51
lea edx, [esp + 8]
lea ecx, [esp + 0x38]
call fcn.004636f1
lea ecx, [esp + 0x38]
mov bl, al
call fcn.00405832
lea ecx, [esp + 8]
call fcn.00405832
test bl, bl
je 0x463bb4
push 1
lea edx, [esp + 0x45c]
lea ecx, [esp + 0x1045c]
call fcn.004622e7
pop ecx
test al, al
je 0x463a37
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0xc]
call fcn.00407b51
mov dl, 1
lea ecx, [esp + 8]
call fcn.00463e4d
mov bl, al
lea ecx, [esp + 8]
neg bl
sbb bl, bl
call fcn.00405832
inc bl
sete al
jmp 0x463c4c
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.004224be
pop ecx
pop ecx
test eax, eax
je 0x463a37
lea eax, [esp + 0x10458]
push eax
call fcn.00421b6c
pop ecx
xor ecx, ecx
mov word [esp + eax*2 + 0x1045a], cx
lea eax, [esp + 0x458]
push eax
call fcn.00421b6c
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
pop esi
pop ebx
mov esp, ebp
pop ebp
ret