joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b74f
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x40b76e
xor eax, eax
inc eax
jmp 0x40b880
push edi
xor edi, edi
cmp esi, edi
jne 0x40b783
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40b797
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0xc], edi
call ebx
test eax, eax
jne 0x40b875
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
push 1
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 0x10]
push dword [ebp - 8]
call esi
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x40b851
push edi
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call ebx
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call ebx
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor edi, edi
test eax, eax
je 0x40b858
mov dword [ebp - 0xc], 4
jmp 0x40b858
mov dword [ebp - 0xc], 3
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 0x10]
push dword [ebp - 8]
call esi
jmp 0x40b87c
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40dc5f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
jne 0x40dc7e
push esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0040dc38
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x40dcc7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jne 0x40dcaf
push ebx
lea eax, [ebp - 4]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40dcc7
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov al, byte [eax + ecx]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc edi
inc dword [esi + 0xc]
cmp edi, dword [ebp + 0xc]
jb 0x40dc85
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], ebx
pop ebx
leave
ret 8
Function at 0x40dcd5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 8], edi
je 0x40dd10
push esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0040dc38
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, dword [esi + 0x14]
push 1
push edi
sbb eax, edx
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push esi
call fcn.0040dc38
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
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
leave
ret 8

Function at 0x40df0b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp + 0x14], eax
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40df52
lea eax, [ebp + 0x14]
push eax
push esi
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40df54
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 0x40dfb4
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 0x40dff4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
push 0
push 2
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
mov esi, dword [ebp + 8]
mov byte [edi], 0
call fcn.0040e1ed
mov esi, eax
jmp 0x40e0b0
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
cmp eax, 1
jne 0x40e0b9
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00457a9e
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.004555c6
push dword [ebp + 8]
lea eax, [ebp - 0x43c]
push eax
call fcn.0045553b
add esp, 0x24
test eax, eax
jne 0x40e09d
mov eax, dword [ebp - 0x230]
jmp 0x40e0ab
test esi, esi
je 0x40e0b0
mov eax, dword [ebp - 0x230]
cmp esi, eax
jne 0x40e0b0
mov dword [ebx], eax
mov byte [edi], 1
cmp byte [edi], 0
je 0x40e032
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
pop esi
leave
ret

Function at 0x40e0c7
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.004666e0
lea eax, [ebp - 0x10]
push eax
push 0x800
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40e0f2
xor al, al
leave
ret
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp - 0x10]
shr edi, 2
mov byte [ebx], 0
call fcn.0040e1ed
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
test edi, edi
je 0x40e1e7
cmp byte [ebx], 0
jne 0x40e1e7
mov esi, dword [ebp - 4]
lea esi, [ebp + esi*4 - 0x1034]
push dword [esi]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
lea ecx, [ebp - 0x10]
push ecx
push 4
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
push 0x104
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x40e1d2
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.00457a9e
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004555c6
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
call fcn.0045553b
add esp, 0x24
test eax, eax
jne 0x40e1bd
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40e1cf
cmp dword [ebp - 8], 0
je 0x40e1d2
mov esi, dword [esi]
cmp dword [ebp - 8], esi
jne 0x40e1d2
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov byte [ebx], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jb 0x40e114
pop edi
mov al, 1
pop esi
leave
ret
Function at 0x40e21c
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
mov byte [0x4803ce], bl
cmp edi, ebx
je 0x40e262
mov byte [0x4803cf], 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 0x40e2a5
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00457e0f
add esp, 0x18
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
cmp esi, ebx
je 0x40e290
push 0xffffffffffffffff
push esi
mov byte [0x4803cf], bl
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x4803ce], 1
jne 0x40e29e
or eax, 0xffffffff
jmp 0x40e2a0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e63e
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 0x40e678
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e66e
or eax, eax
jmp 0x40e678
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret

Function at 0x40e7f2
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, 0xa88
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x1c]
mov byte [esp + 0x13], 0
call fcn.0040e67c
pop ecx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e837
test al, 0x10
je 0x40e837
lea eax, [esp + 0x18]
push str..
push eax
call fcn.004555c6
pop ecx
pop ecx
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x88c]
push eax
lea eax, [esp + 0x480]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00457a9e
add esp, 0x14
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x40e902
cmp bl, 1
jne 0x40e902
test byte [esp + 0x228], 0x10
jne 0x40e8da
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x17], bl
call fcn.004555f7
lea eax, [esp + 0x480]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004555c6
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004555c6
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x40e8f1
lea eax, [esp + 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40e881
xor bl, bl
jmp 0x40e881
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 0x40e8f3
Function at 0x40e908
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, 0x10bc
call fcn.004666e0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x444]
xor bl, bl
call fcn.0040e67c
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x654]
call fcn.0040e67c
pop ecx
lea eax, [esp + 0x650]
push eax
lea eax, [esp + 0x444]
push eax
call fcn.0040e771
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x440]
push eax
call esi
mov edi, str..
cmp eax, 0xffffffff
je 0x40e986
test al, 0x10
je 0x40e986
lea eax, [esp + 0x440]
push edi
push eax
call fcn.004555c6
pop ecx
pop ecx
lea eax, [esp + 0x650]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e9a9
test al, 0x10
je 0x40e9a9
lea eax, [esp + 0x650]
push edi
push eax
call fcn.004555c6
pop ecx
pop ecx
lea eax, [esp + 0xec0]
push eax
lea eax, [esp + 0xab4]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x450]
push eax
call fcn.00457a9e
add esp, 0x14
lea eax, [esp + 0x860]
push eax
lea eax, [esp + 0x444]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
cmp eax, 0xffffffff
je 0x40eb3b
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40eb3b
test byte [esp + 0x860], 0x10
jne 0x40eb16
lea eax, [esp + 0x650]
push eax
lea eax, [esp + 0xec4]
push eax
lea eax, [esp + 0xab8]
push eax
lea eax, [esp + 0x898]
push eax
lea esi, [esp + 0x240]
call fcn.0040eb4e
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004555f7
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004555c6
lea eax, [esp + 0x8ac]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004555c6
mov eax, esi
push eax
call fcn.0040e628
add esp, 0x2c
test al, al
je 0x40eaac
cmp byte [ebp + 0x10], 0
je 0x40eaf7
mov eax, esi
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40eb05
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x230]
jne 0x40eae9
cmp byte [esp + 0x13], 0
jne 0x40eace
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x40eaf3
push 0
push eax
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
je 0x40eaf7
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x40eaf3
push 0
push eax
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x40eb14
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x40eb47
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x40eb39
mov bl, 1
lea eax, [esp + 0x860]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40ea04
mov byte [esp + 0x12], al
jmp 0x40ea04
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 0x40ed5d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push 0x103
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0045704a
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00455251
add esp, 0x10
test eax, eax
je 0x40eda5
lea eax, [ebp + eax*2 - 0x20e]
cmp word [eax], 0x5c
jne 0x40eda5
xor ecx, ecx
mov word [eax], cx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ee37
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp eax, 2
jne 0x40eddd
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x40ede2
mov al, 1
jmp 0x40ee3d
cmp eax, 3
jne 0x40ee3b
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f873
mov esi, eax
push 0x5c
push esi
call fcn.00457f1a
add esp, 0xc
test eax, eax
jne 0x40ee08
push esi
call fcn.0045526c
pop ecx
jmp 0x40ee3b
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0040ed5d
push esi
mov bl, al
call fcn.0045526c
pop ecx
pop ecx
test bl, bl
je 0x40ee32
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40ee3d
test al, 0x10
jne 0x40edd9
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40ee41
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.0040e67c
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040e67c
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 0x40eeba
cmp byte [ebp + 0x10], al
je 0x40eeb6
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x40eeb2
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 0x40eed3
test al, 0x10
jne 0x40eeda
xor al, al
jmp 0x40ef9a
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40eef4
test al, 0x10
je 0x40eef4
cmp byte [ebp + 0x10], bl
jmp 0x40ef15
lea eax, [ebp - 0x22c]
push eax
call fcn.0040ed5d
pop ecx
test al, al
je 0x40ef17
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ef17
test al, 0x10
jne 0x40ef1b
xor al, al
jmp 0x40ef99
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.004555c6
lea eax, [ebp - 0x438]
push eax
call fcn.00455251
xor ecx, ecx
mov word [ebp + eax*2 - 0x436], cx
lea eax, [ebp - 0x22c]
push eax
call fcn.00455251
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
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
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40ef9d
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.0040e67c
push dword [ebp + 0xc]
lea eax, [ebp - 0x234]
call fcn.0040e67c
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x440]
push eax
call esi
cmp eax, 0xffffffff
je 0x40efdd
test al, 0x10
jne 0x40efe4
xor al, al
jmp 0x40f19a
push ebx
lea eax, [ebp - 0x234]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40f0c7
test al, 0x10
je 0x40f0c7
cmp byte [ebp + 0x10], bl
je 0x40f129
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40f05d
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x40f056
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jmp 0x40f10e
mov al, 1
jmp 0x40f199
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.00457a9e
lea eax, [ebp - 0x234]
push 0x46e4b0
push eax
call fcn.004555c6
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004555c6
add esp, 0x24
cmp word [ebp - 0x644], bx
je 0x40f0c7
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004555c6
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040e771
pop ecx
test al, al
pop ecx
lea eax, [ebp - 0x234]
je 0x40f116
push 1
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040ee41
add esp, 0xc
test al, al
je 0x40f129
lea eax, [ebp - 0x440]
push 1
push eax
call fcn.0040f19d
pop ecx
pop ecx
test al, al
setne al
jmp 0x40f199
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
jne 0x40f12d
xor al, al
jmp 0x40f199
lea eax, [ebp - 0x440]
push eax
call fcn.00455251
xor ecx, ecx
mov word [ebp + eax*2 - 0x43e], cx
lea eax, [ebp - 0x234]
push eax
call fcn.00455251
pop ecx
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x232], cx
lea eax, [ebp - 0x440]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x14], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
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
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40f19d
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.0040e67c
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f1cb
test al, 0x10
jne 0x40f1cf
xor al, al
leave
ret
push ebx
xor ebx, ebx
lea eax, [ebp - 0x22c]
push eax
cmp byte [ebp + 0xc], bl
jne 0x40f1eb
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40f233
call fcn.00455251
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
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
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x40f30a
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 dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x40f3cf
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40f3cf
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40f367
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40f35e
cmp esi, edx
jle 0x40f37c
push str.0.0.0.0
push dword [ebp + 8]
call fcn.004555f7
pop ecx
pop ecx
jmp 0x40f3c7
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.00454ef0
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004576e0
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.00410101
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.004555f7
push esi
call fcn.0045526c
add esp, 0x18
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x40f3de
push 0x46df88
push dword [ebp + 8]
call fcn.004555f7
pop ecx
pop ecx
pop esi
leave
ret