joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405140
Capabilities:
Connect to http server
Create http request
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x447df0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], 3
push eax
call fcn.00411986
add esp, 4
mov esi, eax
push 0
push 0
push 0
push 0
push str.HttpSendRequestEx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
jne 0x40519a
push str.Failed_to_open_hSession_handle_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x405270
mov ecx, dword [esp + 0x28]
push 0
push 0
push 3
push 0
push 0
push esi
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
jne 0x4051c7
push str.Failed_to_open_hConnect_handle_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x405270
mov edx, dword [esp + 0x30]
push 0
push 0x4000000
push 0
push 0
push 0
push edx
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x405200
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Failed_to_open_request_handle_n
call ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x405254
push 0xa0000000
push 0xffffffffffffffff
push str.Content_Type:application_x_www_form_urlencoded_r_n
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042d0ca
push 0
push esi
call fcn.00405310
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
test al, al
jne 0x405240
push str.Failed_to_send_log_str_n
call ebx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
test eax, eax
jne 0x405254
push str.Failed_to_close_Request_handle_n
call ebx
push edi
call esi
test eax, eax
jne 0x405262
push str.Failed_to_close_Connect_handle_n
call ebx
push ebp
call esi
test eax, eax
jne 0x4052c0
push str.Failed_to_close_Session_handle_n
call ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.0042d355
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call fcn.0042d355
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call fcn.0042d355
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042d355
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.0042d355
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call fcn.0042d355
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call fcn.0042d355
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042d355
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x405310
Capabilities:
Access peb ldr_data
Send data

Disassembly:
push 0xffffffffffffffff
push 0x447e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
xor edi, edi
lea ecx, [esp + 0xc]
mov esi, dword [eax - 8]
push edi
push edi
push edi
push ecx
push ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], 0x28
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x4053a0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0042d355
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
lea edx, [esp + 0x44]
lea ecx, [esp + 0x4c]
push edx
push esi
push esi
call fcn.0042d785
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
push 0xffffffffffffffff
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0042d7d4
cmp esi, edi
jne 0x4053ee
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0042d355
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push edi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x4c]
jne 0x405421
call fcn.0042d355
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
call fcn.0042d355
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x4296b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00410fb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42977b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42977b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42972e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x429739
or bh, 8
and edi, 0x8000000
je 0x429754
mov eax, dword [0x46513c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42977b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x429b7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x429b9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x429bba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x43076f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4307a7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042d7fc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042d7d4
jmp 0x4307b3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x432571
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4325b3
call fcn.0043ea66
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4325b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4325aa
xor eax, eax
jmp 0x4325bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004325c1
pop edi
pop esi
pop ebx
ret 4
Function at 0x446742
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x4467c0
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 1
push eax
and edi, 0x300
mov eax, edi
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.00406a1f
test eax, eax
jne 0x401530
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40150c
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
push dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebp
test eax, eax
jne 0x4014e1
test esi, esi
jne 0x40150c
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014e1
push 0x105
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014b2
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004072ed
test eax, eax
jne 0x40151d
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401530
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401530
push 0
push edi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x4037e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x403809
mov eax, dword [0x46f5b8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40c014]
mov dword [0x42014c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403661
test eax, eax
js 0x4038df
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40c014]
call fcn.0040734f
test eax, eax
je 0x4038da
push dword [ebp + 8]
add dword [0x42014c], 4
call fcn.00403661
mov esi, eax
test esi, esi
js 0x4038d6
cmp dword [ebp + 0x10], edi
jne 0x4038aa
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4038d6
mov ebx, 0x4000
mov edi, 0x4281f0
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40c014]
mov dword [ebp - 4], eax
call fcn.0040734f
test eax, eax
je 0x4038da
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00407412
test eax, eax
je 0x4038a6
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x42014c], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x403862
jmp 0x4038d6
push 0xfffffffffffffffe
jmp 0x4038dc
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4038da
mov esi, dword [ebp - 4]
add dword [0x42014c], esi
mov eax, esi
jmp 0x4038dd
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x403902
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x40392a
mov eax, dword [0x420160]
test eax, eax
je 0x403921
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420160], 0
leave
ret
cmp dword [0x420160], 0
je 0x40393c
push 0
call fcn.00406956
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x46f560]
jbe 0x4039a6
cmp dword [0x467558], 0
je 0x403981
test byte [0x46f654], 1
je 0x4039a6
call fcn.004038e4
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00406493
leave
ret
push 0
push 0x403c60
push 0
push 0x6f
push dword [0x467554]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420160], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x406577
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406591
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x4068e5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x40691f
test eax, eax
je 0x40691f
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x406921
mov ecx, 0x409aa4
jmp 0x406926
xor eax, eax
mov ecx, 0x409aa6
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406984
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4069a7
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406a4d
pop ecx
pop ecx
inc dword [0x46f630]
ret 8

Function at 0x406a4d
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x45ce78], 0x55004e
mov ebp, 0x45ce78
mov dword [0x45ce7c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406aa3
push 1
push 0
push esi
call fcn.00407322
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406b83
cmp eax, ebx
jg 0x406b83
push ebx
mov esi, 0x45c678
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406b83
cmp eax, ebx
jg 0x406b83
push esi
push ebp
push str._ls_ls_r_n
push 0x45c278
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x46f570]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.004065f2
push 4
push 0xc0000000
push esi
call fcn.00407322
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406b83
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 0xa]
add ecx, ebp
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406b7c
push esi
push edi
push ebx
call fcn.0040734f
test eax, eax
je 0x406b7c
push str._Rename__r_n
push edi
call fcn.0040753d
test eax, eax
jne 0x406b88
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x45c278
lea eax, [ecx + edi]
push eax
call fcn.00407061
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00407412
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40a938
add eax, 0xa
push eax
call fcn.0040753d
mov ecx, eax
test ecx, ecx
je 0x406b4d
lea edx, [edi + esi]
jmp 0x406ba7
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406ba1
sub ecx, edi
inc ecx
jmp 0x406b4f
Function at 0x406e64
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004075a4
mov edi, eax
cmp edi, 0xffffffff
je 0x406e9a
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406ea1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406ea9
test byte [ebp + 0xc], 4
jne 0x406e9a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406e86
xor eax, eax
inc eax
jmp 0x406e9c

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x458278
push ebx
call fcn.00407521
push ebx
call fcn.004075cc
mov esi, eax
test esi, esi
je 0x406f8e
push esi
call fcn.00407744
test byte [0x46f56c], 0x80
je 0x406f50
movzx eax, word [esi]
test ax, ax
je 0x406f8e
cmp eax, 0x5c
je 0x406f8e
sub esi, ebx
sar esi, 1
jmp 0x406f6a
call fcn.00406eae
test eax, eax
je 0x406f64
test byte [eax], 0x10
je 0x406f8e
push ebx
call fcn.00407717
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406f56
call fcn.00406e35
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x406f90
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x407083
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x454230], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x454230
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4070c2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4070c6
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406f17
mov dword [esp + 0x14], eax
test bl, 8
je 0x407108
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x46f628], eax
jmp 0x4072e1
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x407125
test eax, eax
je 0x40726c
test bl, 2
je 0x407274
push esi
push 0x454278
call fcn.00407521
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x407148
push str..
push 0x454278
call ebp
jmp 0x40714e
push esi
call fcn.00407717
xor eax, eax
cmp word [esi], ax
jne 0x40715f
cmp word [0x454278], 0x5c
jne 0x407167
push 0x409aa4
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x454278
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407251
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x4071b5
cmp word [esp + 0x4a], 0
je 0x407233
cmp word [esp + 0x4a], ax
jne 0x4071b5
cmp word [esp + 0x4c], 0
je 0x407233
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00407521
test byte [esp + 0x1c], 0x10
je 0x4071dc
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x407233
push ebx
push esi
call fcn.004070c6
jmp 0x407233
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406f95
pop ecx
pop ecx
push edi
push esi
call fcn.00406e64
push esi
test eax, eax
jne 0x40722c
test edi, edi
je 0x407218
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406f95
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406493
xor eax, eax
push eax
push esi
call fcn.00406984
jmp 0x407233
push str.Delete:_DeleteFile_failed___s__
call fcn.00406f95
inc dword [0x46f628]
pop ecx
pop ecx
jmp 0x407233
push 0xfffffffffffffff2
call fcn.00406493
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x407193
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4072e0
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
jne 0x407274
push esi
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x4072ca
push esi
call fcn.00406eae
test eax, eax
je 0x4072e0
push esi
call fcn.00406e35
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406f95
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406e64
push esi
test eax, eax
jne 0x4072d9
test edi, edi
je 0x4072c5
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406f95
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406493
xor eax, eax
push eax
push esi
call fcn.00406984
jmp 0x4072e0
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406f95
inc dword [0x46f628]
pop ecx
pop ecx
jmp 0x4072e0
push 0xffffffffffffffe5
call fcn.00406493
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8