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

Disassembly:
test byte [esi], 4
push ebx
je 0x40d362
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 0x40d388
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 0x40d38a
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00452f60
mov dword [edi], eax
push dword [esi + 4]
call fcn.00452776
add esp, 0x14
test eax, eax
je 0x40d388
and dword [edi], 0
jmp 0x40d35e
mov al, 1
pop ebx
ret 4

Function at 0x40d6d9
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40d758
cmp edi, 4
jle 0x40d6ea
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.00453170
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.0044fd10
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.00452f60
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40d758
push dword [esi + 4]
call fcn.00452747
test eax, eax
pop ecx
jne 0x40d753
push dword [esi + 4]
call fcn.00452776
test eax, eax
pop ecx
jne 0x40d753
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 0x40d871
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 [fcn.00467044]
test eax, eax
jne 0x40d8be
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [fcn.00467040]
cmp dword [ebp + 0x14], edi
je 0x40d8b5
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [fcn.0046703c]
pop edi
leave
ret

Function at 0x40d8c1
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 0x40d921
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 0x40dfc6
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 0x40dfe6
xor al, al
jmp 0x40e0fb
push ebx
push edi
push esi
call fcn.0044f8e7
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.0045177a
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f8e7
mov esi, 0x46c6b8
mov edi, eax
push esi
push edi
call fcn.0044f86d
push esi
push ebx
call fcn.004518ea
add esp, 0x18
test eax, eax
je 0x40e0c1
push 0x46cf74
push edi
call fcn.0044f843
push esi
push ebx
call fcn.00451c33
add esp, 0x10
test eax, eax
jne 0x40e0b8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x46cf94
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e098
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.0040f88d
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040f88d
mov ebx, dword [ebp + 0x10]
jmp 0x40e0a3
push 0x46cfc8
push edi
call fcn.0044f843
pop ecx
pop ecx
push esi
push edi
call fcn.0044f843
push ebx
push edi
call fcn.0044f843
add esp, 0x10
jmp 0x40e0c1
push ebx
push edi
call fcn.0044f843
pop ecx
pop ecx
push 0x46cfdc
push ebx
call fcn.0044f7b2
test eax, eax
pop ecx
pop ecx
jne 0x40e0fe
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00451790
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044f951
push edi
call fcn.0044f951
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 0x40e174
push esi
push ebx
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
jne 0x40e14b
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 0x46d004
push dword [ebp + 0xc]
call fcn.00451a06
add esp, 0x18
jmp 0x40e15e
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00451790
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044f951
push edi
call fcn.0044f951
pop ecx
pop ecx
mov al, bl
jmp 0x40e0f9
xor bl, bl
jmp 0x40e160

Function at 0x40e18d
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 0x40e1c7
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e1bd
or eax, eax
jmp 0x40e1c7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40e362
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.0040e1cb
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e3a7
test al, 0x10
je 0x40e3a7
lea eax, [esp + 0x10]
push 0x46d01c
push eax
call fcn.0044f843
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.0045237c
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 0x40e478
cmp bl, 1
jne 0x40e478
test byte [esp + 0x220], 0x10
jne 0x40e450
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044f86d
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044f843
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044f843
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40e467
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e3f4
xor bl, bl
jmp 0x40e3f4
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 0x40e469
Function at 0x40e47e
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.00454dd0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040e1cb
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040e1cb
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040e2bd
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, 0x46d01c
je 0x40e4fc
test al, 0x10
je 0x40e4fc
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044f843
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e51f
test al, 0x10
je 0x40e51f
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044f843
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.0045237c
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 0x40e6b7
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40e6b7
test byte [esp + 0x858], 0x10
jne 0x40e692
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.0040e6ca
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044f86d
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044f843
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044f843
mov eax, esi
push eax
call fcn.0040e178
add esp, 0x2c
test al, al
je 0x40e628
cmp byte [ebp + 0x10], 0
je 0x40e673
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 0x40e681
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40e665
cmp byte [esp + 0x13], 0
jne 0x40e64a
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40e66f
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40e673
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40e66f
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40e690
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40e6c3
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40e6b5
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e57d
mov byte [esp + 0x12], al
jmp 0x40e57d
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 0x40e8e6
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.0045177a
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40e902
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e979
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x40e92c
push 0
push esi
call ebp
test eax, eax
je 0x40e931
mov al, 1
jmp 0x40e97f
cmp eax, 3
jne 0x40e97d
push esi
call fcn.0040f3a1
mov edi, eax
push 0x5c
push edi
call fcn.00453b1a
add esp, 0xc
test eax, eax
jne 0x40e951
push edi
call fcn.0044f951
pop ecx
jmp 0x40e97d
and word [eax], 0
push ebx
push edi
call fcn.0040e8e6
push edi
mov bl, al
call fcn.0044f951
test bl, bl
pop ecx
pop ecx
je 0x40e974
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40e97f
test al, 0x10
jne 0x40e928
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40e983
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.0040e1cb
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040e1cb
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 0x40e9fc
cmp byte [ebp + 0x10], al
je 0x40e9f8
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x40e9f4
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 0x40ea15
test al, 0x10
jne 0x40ea1c
xor al, al
jmp 0x40ead5
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ea36
test al, 0x10
je 0x40ea36
cmp byte [ebp + 0x10], bl
jmp 0x40ea57
lea eax, [ebp - 0x22c]
push eax
call fcn.0040e8e6
test al, al
pop ecx
je 0x40ea59
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ea59
test al, 0x10
jne 0x40ea5d
xor al, al
jmp 0x40ead4
lea eax, [ebp - 0x438]
push 0x46d01c
push eax
call fcn.0044f843
lea eax, [ebp - 0x438]
push eax
call fcn.0045177a
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0045177a
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 [fcn.004673fc]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40ead8
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x440]
call fcn.0040e1cb
push dword [ebp + 0xc]
lea eax, [ebp - 0x234]
call fcn.0040e1cb
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x440]
push eax
call esi
cmp eax, 0xffffffff
je 0x40eb18
test al, 0x10
jne 0x40eb1f
xor al, al
jmp 0x40ecca
push ebx
lea eax, [ebp - 0x234]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ec14
test al, 0x10
je 0x40ec14
cmp byte [ebp + 0x10], bl
je 0x40ec49
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40eb98
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x40eb91
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jmp 0x40ec5f
mov al, 1
jmp 0x40ecc9
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0045237c
lea eax, [ebp - 0x234]
push 0x46c6b8
push eax
call fcn.0044f843
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0044f843
add esp, 0x24
cmp word [ebp - 0x644], bx
je 0x40ec14
lea eax, [ebp - 0x234]
push 0x46d028
push eax
call fcn.0044f843
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0044f843
add esp, 0x10
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040e2bd
test al, al
pop ecx
pop ecx
je 0x40ec64
push 1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040e983
add esp, 0xc
test al, al
jne 0x40ec4d
xor al, al
jmp 0x40ecc9
lea eax, [ebp - 0x440]
push 1
push eax
call fcn.0040eccd
pop ecx
pop ecx
test al, al
setne al
jmp 0x40ecc9
lea eax, [ebp - 0x440]
push eax
call fcn.0045177a
mov word [ebp + eax*2 - 0x43e], bx
lea eax, [ebp - 0x234]
push eax
call fcn.0045177a
mov word [ebp + eax*2 - 0x232], bx
lea eax, [ebp - 0x440]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x234]
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 [fcn.004673fc]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40eccd
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.0040e1cb
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ecfb
test al, 0x10
jne 0x40ecff
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x40ed1b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40ed5e
call fcn.0045177a
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 [fcn.004673fc]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x40ee2c
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 0x40eeec
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 0x40eeec
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40ee86
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40ee7d
cmp esi, edx
jle 0x40ee9b
push 0x46d034
push dword [ebp + 8]
call fcn.0044f86d
pop ecx
pop ecx
jmp 0x40eee5
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044fd10
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00451f70
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040fbdc
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044f86d
push esi
call fcn.0044f951
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40eefb
push 0x46bf80
push dword [ebp + 8]
call fcn.0044f86d
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x40f00a
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x48a2ec], 0
push ebx
push esi
mov ebx, eax
je 0x40f075
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x467028]
test eax, eax
jne 0x40f038
xor eax, eax
jmp 0x40f0b7
lea eax, [ebp - 0x10]
push eax
push 0x46d0ec
xor esi, esi
push esi
call dword [0x467024]
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 [0x467020]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f077
jmp 0x40f034
xor esi, esi
cmp byte [0x48a2ed], 0
je 0x40f094
test bl, 4
je 0x40f094
push esi
push 0x40f0bb
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40f0a8
cmp ebx, 0x40
je 0x40f0a8
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40f0b7
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 0x40f0f7
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40f110
push dword [esp + 4]
call fcn.0040f0d2
test al, al
pop ecx
jne 0x40f12c
push 1
jmp 0x40f112
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 0x40f310
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 0x40f39c
jne 0x40f324
push 0
jmp 0x40f396
mov al, byte [0x48a2ed]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40f395
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40f395
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 [0x4726e0]
call fcn.00466d06
cmp eax, edi
jb 0x40f353
jmp 0x40f39c
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41159d
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
test byte [eax], 1
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x4115dd
mov eax, dword [esi]
cmp eax, edi
jne 0x411647
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x41162b
or eax, 0xffffffff
jmp 0x411647
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, edi
mov dword [esi], eax
je 0x4115fe
cmp eax, 0xffffffff
je 0x4115fe
push 1
push esi
push eax
call fcn.0041145a
add esp, 0xc
jmp 0x411645
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push 0x80000000
push 0x46d4e8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x411627
cmp eax, edi
jne 0x41162b
mov dword [esi], edi
jmp 0x411645
push 1
lea eax, [ebp + 8]
push eax
push dword [esi]
call fcn.0041145a
add esp, 0xc
call fcn.00411449
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 4

Function at 0x411765
Capabilities:
Create thread

Disassembly:
push ecx
xor eax, eax
cmp dword [esi + 0x30], eax
jne 0x411783
lea ecx, [esp]
push ecx
push eax
push esi
push 0x411953
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
pop ecx
ret

Function at 0x411785
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
lea esi, [ebp + 0x30]
cmp dword [esi], 0
je 0x4117e0
push ebx
push edi
lea ebx, [ebp + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, 0x1f6
cmp eax, edi
je 0x4117de
add ebp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00411449
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
pop ebp
ret 4