joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c51
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x4781ac
call fcn.0045c348
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push 1
or dword [esi + 0x1cc], 0xffffffff
pop eax
or dword [esi + 0x1e0], 0xffffffff
mov dword [esi + 0x38], eax
mov dword [esi + 0x1f8], eax
mov eax, 0x7530
xor ebx, ebx
mov dword [esi + 0x200], eax
mov dword [esi + 0x204], eax
lea eax, [esi + 0x3c]
mov dword [ebp - 4], ebx
push eax
push 0x101
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 2
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1fc], ebx
mov dword [esi], vtable.CUT_WSClient.0
mov byte [esi + 0x10], bl
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x404cd3
mov dword [esi + 0x1f8], ebx
push dword [esi + 0x204]
mov ecx, esi
call fcn.004059f6
push dword [esi + 0x200]
mov ecx, esi
call fcn.00405a39
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404e49
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1cc], 0xffffffff
lea edi, [esi + 0x1cc]
je 0x404e6c
mov eax, dword [esi]
push 0x10
jmp 0x40500c
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00405f09
cmp eax, 1
lea eax, [esi + 0x10]
push 0x1e
je 0x404e98
push eax
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00405e7f
test eax, eax
je 0x404ea2
mov eax, dword [esi]
push 0x64
jmp 0x40500c
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x1d0]
push 0x10
push 0
push eax
mov dword [esi + 0x34], ebx
call fcn.0045c460
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.dll_htons
mov word [esi + 0x1d2], ax
lea eax, [esi + 0x10]
push eax
mov word [esi + 0x1d0], bx
call sub.WSOCK32.dll_inet_addr
push 0
mov dword [esi + 0x1d4], eax
push dword [ebp + 0x18]
mov eax, dword [esi]
mov ecx, esi
push ebx
push edi
call dword [eax + 0x2c]
cmp eax, 1
jne 0x404f02
mov eax, dword [esi]
push 0x11
jmp 0x40500c
cmp dword [ebp + 0x10], 0
jl 0x404f11
push 1
mov ecx, esi
call fcn.00405a75
push 0x10
lea eax, [esi + 0x1d0]
pop ebx
push ebx
push eax
push dword [edi]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x404fd1
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x404fbf
cmp dword [ebp + 0x10], 0
jl 0x404f70
mov eax, dword [esi]
push 0
push dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
je 0x404f67
mov eax, dword [esi]
push dword [edi]
mov ecx, esi
call dword [eax + 8]
or dword [edi], 0xffffffff
mov eax, dword [esi]
push 5
jmp 0x40500c
push 0
mov ecx, esi
call fcn.00405a75
push dword [esi + 0x204]
mov ecx, esi
call fcn.004059f6
push dword [esi + 0x200]
mov ecx, esi
call fcn.00405a39
mov ax, word [esi + 0x1d2]
push eax
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 4], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp + 0x10], ebx
push dword [edi]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0xe]
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 8], eax
jmp 0x404feb
mov eax, dword [esi]
push dword [edi]
mov ecx, esi
call dword [eax + 8]
or dword [edi], 0xffffffff
mov eax, dword [esi]
push 0x13
jmp 0x40500c
push dword [esi + 0x204]
mov ecx, esi
call fcn.004059f6
push dword [esi + 0x200]
mov ecx, esi
call fcn.00405a39
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [edi]
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
je 0x405009
mov eax, dword [esi]
push dword [edi]
mov ecx, esi
call dword [eax + 8]
or dword [edi], 0xffffffff
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x88]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40501b
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1cc], 0xffffffff
lea edi, [esi + 0x1cc]
je 0x40503e
mov eax, dword [esi]
push 0x10
jmp 0x40515a
push 0x1e
lea eax, [esi + 0x10]
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov edx, dword [esi]
push 0
push eax
push ebx
push edi
mov ecx, esi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], eax
call dword [edx + 0x2c]
cmp eax, 1
jne 0x405073
mov eax, dword [esi]
push 0x11
jmp 0x40515a
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0045c460
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.dll_htons
push dword [ebp + 0x10]
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], bx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [edi]
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4050b9
mov eax, dword [esi]
push 0x12
jmp 0x40515a
lea ebx, [esi + 0x1d0]
push 0x10
push 0
push ebx
call fcn.0045c460
add esp, 0xc
push dword [ebp + 0xc]
call sub.WSOCK32.dll_htons
push dword [ebp + 0x14]
mov word [esi + 0x1d2], ax
mov ax, word [ebp + 0x18]
mov word [ebx], ax
call sub.WSOCK32.dll_inet_addr
push 0x10
push ebx
push dword [edi]
mov dword [esi + 0x1d4], eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x405105
mov eax, dword [esi]
push 0x13
jmp 0x40515a
mov ax, word [esi + 0x1d2]
push eax
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 0x10
push dword [edi]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0x22]
call sub.WSOCK32.dll_ntohs
push dword [esi + 0x204]
mov ecx, esi
movzx eax, ax
mov dword [esi + 8], eax
call fcn.004059f6
push dword [esi + 0x200]
mov ecx, esi
call fcn.00405a39
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x88]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x405169
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1cc], 0xffffffff
lea edi, [esi + 0x1cc]
je 0x40518b
mov eax, dword [esi]
push 0x10
jmp 0x405267
push 0x1e
lea eax, [esi + 0x10]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esi]
push 2
pop eax
mov ecx, esi
push 0
push eax
push eax
push edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
call dword [edx + 0x2c]
cmp eax, 1
jne 0x4051bd
mov eax, dword [esi]
push 0x11
jmp 0x405267
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.0045c460
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.dll_htons
cmp dword [ebp + 0x14], 0
mov word [ebp - 0xe], ax
mov ax, word [esi + 0x34]
mov word [ebp - 0x10], ax
jne 0x4051f0
push 0
call sub.WSOCK32.dll_htonl
jmp 0x4051f8
push dword [ebp + 0x14]
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [edi]
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x40521f
mov eax, dword [esi]
push dword [edi]
mov ecx, esi
call dword [eax + 8]
or dword [edi], 0xffffffff
mov eax, dword [esi]
push 0x12
jmp 0x405267
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [edi]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0x1e]
call sub.WSOCK32.dll_ntohs
push dword [esi + 0x204]
mov ecx, esi
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
call fcn.004059f6
push dword [esi + 0x200]
mov ecx, esi
call fcn.00405a39
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x88]
pop edi
pop esi
leave
ret 0x10
Function at 0x405275
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1e0], 0xffffffff
lea edi, [esi + 0x1e0]
je 0x405298
mov eax, dword [esi]
push 0x10
jmp 0x405352
lea ebx, [esi + 0x1e4]
push 0x10
push 0
push ebx
call fcn.0045c460
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.dll_htons
push dword [esi + 0x30]
mov ecx, dword [ebp + 0x14]
mov word [esi + 0x1e6], ax
mov ax, word [ebp + 0x10]
mov edx, dword [esi]
mov word [ebx], ax
movsx eax, ax
push 1
mov dword [esi + 0x1e8], ecx
push eax
push edi
mov ecx, esi
call dword [edx + 0x2c]
cmp eax, 1
jne 0x4052e6
mov eax, dword [esi]
push 0x11
jmp 0x405352
push 0x10
push ebx
push dword [edi]
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4052fb
mov eax, dword [esi]
push 0x12
jmp 0x405352
push dword [ebp + 0xc]
push dword [edi]
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
jne 0x405310
mov eax, dword [esi]
push 0x17
jmp 0x405352
push dword [esi + 0x204]
mov ecx, esi
call fcn.004059f6
push dword [esi + 0x200]
mov ecx, esi
call fcn.00405a39
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0x12]
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x88]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405361
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
push 0x10
or edi, 0xffffffff
mov eax, dword [esi + 0x1cc]
pop ebx
cmp eax, edi
mov dword [ebp - 4], ebx
je 0x4053a2
cmp dword [esi + 0x38], 1
jne 0x405391
mov edx, dword [esi]
push 2
push eax
call dword [edx + 0xc]
cmp eax, edi
je 0x4053c2
mov eax, dword [esi]
push dword [esi + 0x1cc]
mov ecx, esi
call dword [eax + 8]
cmp eax, edi
je 0x4053c2
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x1d0]
push eax
push dword [esi + 0x1e0]
call sub.WSOCK32.dll_accept
cmp eax, edi
mov dword [esi + 0x1cc], eax
jne 0x4053d0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x88]
jmp 0x40542c
push dword [esi + 0x1d4]
lea edi, [esi + 0x10]
call sub.WSOCK32.dll_inet_ntoa
push eax
push edi
call fcn.0045d0d0
mov ax, word [esi + 0x1d2]
pop ecx
pop ecx
push eax
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 8], ebx
push dword [esi + 0x1cc]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0x16]
call sub.WSOCK32.dll_ntohs
movzx eax, ax
push edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push dword [esi + 0x1cc]
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405431
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10c], 1
mov eax, dword [esi + 0x1e0]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x10c]
push 0
push eax
push 0xffffffffffffffff
call sub.WSOCK32.dll_select
cmp eax, 1
mov eax, dword [esi]
je 0x40547e
push 1
jmp 0x405480
push 0
mov ecx, esi
call dword [eax + 0x88]
pop esi
leave
ret 4

Function at 0x4057f2
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], 1
mov eax, dword [esi + 0x1cc]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
push 0
push 0xffffffffffffffff
call sub.WSOCK32.dll_select
cmp eax, 1
mov eax, dword [esi]
je 0x405841
push 1
jmp 0x405843
push 0
mov ecx, esi
call dword [eax + 0x88]
pop esi
leave
ret 8

Function at 0x405850
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1cc], 0xffffffff
jne 0x405862
mov eax, dword [esi]
push 0xf
jmp 0x4058c7
push edi
lea edi, [esi + 0x1d0]
push 0x10
push 0
push edi
call fcn.0045c460
mov ax, word [esi + 4]
add esp, 0xc
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 0x1d2], ax
mov ax, word [esi + 0x34]
mov word [edi], ax
lea eax, [esi + 0x10]
push eax
call sub.WSOCK32.dll_inet_addr
push 0x10
push edi
mov edi, dword [esp + 0x18]
push 0
mov dword [esi + 0x1d4], eax
push dword [edi]
push dword [esp + 0x1c]
push dword [esi + 0x1cc]
call sub.WSOCK32.dll_sendto
mov dword [edi], eax
cmp eax, 0xffffffff
mov eax, dword [esi]
pop edi
je 0x4058c5
push 0
jmp 0x4058c7
push 0x16
mov ecx, esi
call dword [eax + 0x88]
pop esi
ret 8

Function at 0x405e7f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, ecx
push esi
call edi
test eax, eax
jle 0x405ea1
cmp byte [eax + esi], 0x40
je 0x405ea0
dec eax
jmp 0x405e93
inc eax
add eax, esi
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x405ed7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov cl, byte [eax]
mov byte [ebp + 8], cl
mov cl, byte [eax + 1]
mov byte [ebp + 9], cl
mov cl, byte [eax + 2]
mov al, byte [eax + 3]
mov byte [ebp + 0xa], cl
mov byte [ebp + 0xb], al
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_ntoa
mov esi, eax
test esi, esi
jne 0x405edd
mov eax, dword [ebx]
push 7
jmp 0x405efa
push esi
call edi
inc eax
cmp eax, dword [ebp + 0x10]
jle 0x405eec
mov eax, dword [ebx]
push 0x23
jmp 0x405efa
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x88]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406755
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x40678e
cmp dword [esi + 8], 0
je 0x406771
mov eax, dword [esi]
push 2
push 0
call dword [eax + 0x14]
lea eax, [ebp - 4]
push 0
push eax
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406793
or eax, 0xffffffff
jmp 0x406796
mov eax, dword [ebp - 4]
pop esi
leave
ret 8

Function at 0x406d9e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4782a8
call fcn.0045c348
push ecx
mov eax, dword [0x4a84c4]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
mov dword [ebx], eax
mov eax, dword [0x4a84c4]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 8], eax
mov eax, dword [0x4a84c4]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040909b
mov ecx, ebx
mov byte [ebp - 4], 3
mov dword [esi], vtable.CIRCopyFiles.0
call fcn.0046b1d4
lea ecx, [esi + 8]
call fcn.0046b1d4
lea ecx, [esi + 0x2c]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
call fcn.0046b1d4
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x28], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407a29
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x478430
call fcn.0045c348
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push 1
pop eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407b6b
test al, 6
je 0x407a68
cmp dword [esi + 0x1c], 0
jne 0x407a68
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
jmp 0x407a8f
push 0
push dword [ebp + 0xc]
call fcn.0045da64
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ecx
test eax, eax
pop ecx
mov ebx, 0x80
jne 0x407ae4
cmp dword [esi + 0x10], 0
jne 0x407aa7
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
lea eax, [ebp + 8]
push eax
call fcn.0046afbe
mov ecx, esi
call fcn.00408027
sub dword [esi + 0x48], eax
jmp 0x407b6f
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x407ab9
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
jmp 0x407acc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407ae4
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
lea eax, [ebp + 8]
push eax
call fcn.0046afbe
mov ecx, esi
call fcn.00408027
sub dword [esi + 0x48], eax
jmp 0x407b6b
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0046afbe
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.0046afbe
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00407e3c
test eax, eax
je 0x407b6b
cmp dword [esi + 0x14], 0
je 0x407b6f
push ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x407b54
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x407b3f
mov dword [ebp - 0x18], esp
push str.Failed_to_delete_file_after_copy
jmp 0x407b5f
lea eax, [ebp + 8]
mov dword [ebp - 0x18], esp
push eax
call fcn.0046afbe
mov ecx, esi
call fcn.0040809d
jmp 0x407b6f
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Failed_to_set_source_file_attribute_to_normal_durign_move
call fcn.0046b2b7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
and dword [ebp - 0x10], 0
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0046b249
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x407cba
Capabilities:
Create directory
Set current directory

Disassembly:
mov eax, 0x478498
call fcn.0045c348
sub esp, 0x108
push ebx
push esi
push edi
mov esi, 0x49e93c
xor ebx, ebx
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.00468ce4
push esi
lea ecx, [ebp + 8]
call fcn.0046b5d9
mov eax, dword [ebp + 8]
push 0x104
push ebx
mov edi, dword [eax - 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0045c460
add esp, 0xc
cmp edi, 2
jle 0x407d63
mov eax, dword [ebp + 8]
cmp byte [eax + 1], 0x3a
jne 0x407d63
xor esi, esi
cmp edi, ebx
jle 0x407d66
cmp dword [ebp - 0x10], ebx
je 0x407d66
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x5c
mov byte [ebp + esi - 0x114], al
jne 0x407d5c
cmp esi, 2
je 0x407d5c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x407d5c
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], eax
inc esi
cmp esi, edi
jl 0x407d1f
jmp 0x407d66
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40809d
Capabilities:
Delete directory

Disassembly:
mov eax, 0x478538
call fcn.0045c348
sub esp, 0xc
push esi
mov eax, dword [0x4a84c4]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00468929
cmp eax, 0xffffffff
je 0x408101
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004688b1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0046b336
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046b249
push 0x49e93c
lea ecx, [ebp - 0x14]
call fcn.00468ce4
push 0x5c
lea ecx, [ebp + 8]
call fcn.00468929
cmp eax, 0xffffffff
pop esi
je 0x408161
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004688b1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0046b336
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046b249
push 0
push dword [ebp - 0x10]
call fcn.0045da64
pop ecx
test eax, eax
pop ecx
jne 0x408161
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0045c985
pop ecx
test eax, eax
pop ecx
je 0x408161
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0046b249
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0046b249
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x408ccd
Capabilities:
Delete directory

Disassembly:
mov eax, 0x47868c
call fcn.0045c348
sub esp, 0xc
push esi
mov eax, dword [0x4a84c4]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00468929
cmp eax, 0xffffffff
je 0x408d31
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004688b1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0046b336
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046b249
push 0x49e93c
lea ecx, [ebp - 0x14]
call fcn.00468ce4
push 0x5c
lea ecx, [ebp + 8]
call fcn.00468929
cmp eax, 0xffffffff
pop esi
je 0x408d91
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004688b1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0046b336
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046b249
push 0
push dword [ebp - 0x10]
call fcn.0045da64
pop ecx
test eax, eax
pop ecx
jne 0x408d91
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0045c985
pop ecx
test eax, eax
pop ecx
je 0x408d91
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0046b249
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0046b249
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x408dc3
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4786c0
call fcn.0045c348
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [0x4a84c4]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [esi + 4]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0046afbe
mov ecx, esi
call fcn.004088c0
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0046b336
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call esi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00468929
cmp eax, 0xffffffff
je 0x408e69
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004688b1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0046b336
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0046b249
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0045c985
pop ecx
test eax, eax
pop ecx
je 0x408e1e
push dword [ebp - 0x10]
jmp 0x408e1c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046b249
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0046b249
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0046b249
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x408f5c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4786f4
call fcn.0045c348
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0046b492
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
call fcn.0046b336
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0046b249
mov eax, dword [edi]
push 1
push ebx
push ebx
mov dword [esi + 8], eax
push dword [edi + 0x1c]
call fcn.0045c610
mov ecx, dword [edi + 0x20]
add eax, ecx
lea ecx, [ebp + 8]
adc edx, ebx
and dword [esi + 0x30], ebx
and dword [esi + 0x2c], ebx
mov dword [esi + 0x10], eax
or ebx, 0xffffffff
lea eax, [edi + 4]
push ebx
push eax
mov dword [esi + 0x14], edx
call fcn.00468377
mov eax, dword [ebp + 8]
push ebx
mov dword [esi + 0x18], eax
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.00468377
mov eax, dword [ebp + 8]
add edi, 0x14
push ebx
push edi
lea ecx, [ebp + 8]
mov dword [esi + 0x1c], eax
call fcn.00468377
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
mov dword [ebp - 4], ebx
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc