joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fba0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10258c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026c87c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1026c87c]
lea ebx, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [ebx], ecx
mov edx, dword [0x1026c87c]
lea ebp, [esi + 8]
mov dword [ebp], edx
mov eax, dword [0x1026c87c]
mov dword [esi + 0xc], eax
mov ecx, dword [0x1026c87c]
mov dword [esi + 0x10], ecx
mov edx, dword [0x1026c87c]
mov dword [esi + 0x14], edx
mov eax, dword [0x1026c87c]
mov dword [esi + 0x18], eax
mov ecx, dword [0x1026c87c]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1026c87c]
mov dword [esi + 0x28], edx
mov eax, dword [0x1026c87c]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1026c87c]
mov dword [esi + 0x34], ecx
mov edx, dword [0x1026c87c]
mov dword [esi + 0x38], edx
mov eax, dword [0x1026c87c]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x1026c87c]
mov dword [esi + 0x40], ecx
mov edx, dword [0x1026c87c]
mov dword [esi + 0x48], edx
mov eax, dword [0x1026c87c]
mov dword [esi + 0x4c], eax
mov ecx, dword [0x1026c87c]
mov dword [esi + 0x64], ecx
mov edi, dword [esp + 0x24]
mov ecx, esi
push edi
mov byte [esp + 0x20], 0x10
call fcn.1008ee20
lea edx, [edi + 4]
mov ecx, ebx
push edx
call fcn.1008ee20
lea eax, [edi + 8]
mov ecx, ebp
push eax
call fcn.1008ee20
lea ecx, [edi + 0xc]
push ecx
lea ecx, [esi + 0xc]
call fcn.1008ee20
lea edx, [edi + 0x10]
lea ecx, [esi + 0x10]
push edx
call fcn.1008ee20
lea eax, [edi + 0x14]
lea ecx, [esi + 0x14]
push eax
call fcn.1008ee20
lea ecx, [edi + 0x18]
push ecx
lea ecx, [esi + 0x18]
call fcn.1008ee20
mov edx, dword [edi + 0x1c]
lea ecx, [edi + 0x24]
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x20]
push ecx
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], eax
call fcn.1008ee20
lea edx, [edi + 0x28]
lea ecx, [esi + 0x28]
push edx
call fcn.1008ee20
lea eax, [edi + 0x2c]
lea ecx, [esi + 0x2c]
push eax
call fcn.1008ee20
mov cx, word [edi + 0x30]
lea edx, [edi + 0x34]
mov word [esi + 0x30], cx
push edx
lea ecx, [esi + 0x34]
call fcn.1008ee20
lea eax, [edi + 0x38]
lea ecx, [esi + 0x38]
push eax
call fcn.1008ee20
lea ecx, [edi + 0x3c]
push ecx
lea ecx, [esi + 0x3c]
call fcn.1008ee20
lea edx, [edi + 0x48]
lea ecx, [esi + 0x48]
push edx
call fcn.1008ee20
lea eax, [edi + 0x40]
lea ecx, [esi + 0x40]
push eax
call fcn.1008ee20
mov cx, word [edi + 0x44]
lea edx, [edi + 0x4c]
mov word [esi + 0x44], cx
push edx
lea ecx, [esi + 0x4c]
call fcn.1008ee20
mov eax, dword [edi + 0x50]
add edi, 0x64
mov dword [esi + 0x50], eax
mov ecx, dword [edi - 0x10]
mov dword [esi + 0x54], ecx
mov edx, dword [edi - 0xc]
mov dword [esi + 0x58], edx
mov ax, word [edi - 8]
mov word [esi + 0x5c], ax
mov ecx, dword [edi - 4]
mov dword [esi + 0x60], ecx
push edi
lea ecx, [esi + 0x64]
call fcn.1008ee20
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10010b90
Capabilities:
Delete file

Disassembly:
sub esp, 0x1c
lea ecx, [esp]
push 0xffffffffffffffff
call fcn.10038260
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
call fcn.100383c0
add esp, 0x1c
ret 4
Function at 0x10012e40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x10258fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x28]
mov word [esp + 8], 2
call fcn.100891b0
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 0x24]
mov dword [esp + 8], eax
call fcn.10089910
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
xor edx, edx
push 6
mov dword [esp + 0x10], edx
push 1
push 2
mov word [esp + 0x12], ax
mov dword [esp + 0x1c], edx
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 4]
push 0x10
push ecx
push eax
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10012f55
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10012f41
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x2c]
call fcn.1008e390
mov esi, eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 6]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esi]
and eax, 0xffff
push eax
push edx
push str.MailSender::ConnectServer:_Connect_to_server__s___d__failed__errno__d__r_n
push str.MailSender
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x1c
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1008ec90
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10012f77
push str.MailSender::ConnectServer:_Connect_to_the__server_successfully__r_n
push str.MailSender
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x10012f90
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x404
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10013035
push ebx
push ebp
push edi
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
call ebp
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.100133e0
test eax, eax
je 0x10013023
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10013018
mov eax, dword [esi]
push 0
lea edx, [esp + 0x18]
push 0x400
push edx
push eax
call ebx
test eax, eax
je 0x10013023
cmp eax, 0xffffffff
je 0x10013023
call ebp
mov edi, eax
jmp 0x10012fdd
call ebp
sub eax, edi
cmp eax, 0xea60
jbe 0x10012fdd
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebp
mov dword [esi], 0xffffffff
pop ebx
pop esi
add esp, 0x404
ret
Function at 0x10013040
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10013088
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10013083
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CMailSender::SendCommand_failed__errno__d__r_n
push str.MailSender
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
xor eax, eax
ret 8
mov eax, 1
ret 8

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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x10258fdb
push eax
mov eax, 0x203c
mov dword fs:[0], esp
call fcn.10077700
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2058]
xor ebp, ebp
push edi
cmp esi, ebp
mov ebx, ecx
jne 0x100130c9
xor eax, eax
jmp 0x100131da
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x1c]
call fcn.100aab40
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], ebp
mov dword [esp + 0x24], getsockopt
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 3
call fcn.100ab3a0
test eax, eax
jne 0x10013155
cmp dword [0x1030aa70], ebp
je 0x1001313a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CMailSender::SendFile:_Open_file__s_failed__errno__d__r_n
push str.CMailSender
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.100aabc0
xor eax, eax
jmp 0x100131da
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
call fcn.100aae80
cmp eax, ebp
mov dword [esp + 0x14], eax
jbe 0x100131b8
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x48]
push 0x2000
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x1c]
push eax
call fcn.100ab5d0
mov edx, dword [ebx]
mov esi, eax
push 0
lea ecx, [esp + 0x4c]
push esi
push ecx
push edx
call ebp
cmp eax, 0xffffffff
je 0x100131f5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, esi
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x10013171
lea ecx, [esp + 0x18]
call fcn.100ab3f0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.100aabc0
mov eax, 1
mov ecx, dword [esp + 0x204c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2048
ret 4
mov eax, dword [0x1030aa70]
test eax, eax
je 0x1001321e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMailSender::SendFile:_Send_file_failed__errno__d__r_n
push str.CMailSender
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.100aabc0
xor eax, eax
jmp 0x100131da
Function at 0x10013240
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10259006
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esi]
push 0x400
push edx
push 0x102b8c90
lea eax, [esp + 0x30]
push 0x400
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call fcn.10013450
cmp eax, ebx
jne 0x100132b5
xor eax, eax
jmp 0x100133c5
cmp dword [esp + 0xc], ebx
jne 0x10013334
lea edi, [esi + 8]
lea edx, [esp + 0x1c]
push edi
push 0x102b8c8c
push edx
call fcn.1007772f
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esi + 0xc]
push eax
call fcn.10089b70
cmp dword [0x1030aa70], ebx
je 0x100133b5
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1008e390
mov edx, dword [eax]
mov dword [esp + 0x424], ebx
push edx
push str.CMailSender::ReadResponse:_S__T:__s__r_n
push str.CMailSender
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x424], 0xffffffff
call fcn.1008ec90
jmp 0x100133b5
cmp dword [0x1030aa70], ebx
je 0x10013385
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.1008e390
mov ecx, dword [eax]
mov dword [esp + 0x424], 1
push ecx
push str.CMailSender::ReadResponse:_S__T:__s__r_n
push str.CMailSender
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x424], 0xffffffff
call fcn.1008ec90
mov edx, dword [esp + 0xc]
lea edi, [esi + 8]
push edi
push 0x102b8c8c
push edx
call fcn.1007772f
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esi + 0xc]
push eax
call fcn.10089b70
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1024ac9a
add esp, 4
mov edx, dword [edi]
mov ecx, dword [esp + 0x42c]
xor eax, eax
cmp edx, ecx
sete al
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret 4

Function at 0x100133e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1001342f
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x114]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8
Function at 0x10013450
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
not ecx
dec ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
xor esi, esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
ja 0x100135b5
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
call fcn.100133e0
test eax, eax
je 0x100135e7
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100134d3
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x10013487
jmp 0x1001360f
mov esi, dword [esp + 0x2c]
sub esi, ebp
dec esi
jns 0x100134de
xor esi, esi
push 0
lea edx, [edi + ebp]
push esi
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x100134fe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
add ebp, ebx
cmp ebx, 1
jl 0x100135f7
test edi, edi
je 0x1001350f
mov byte [edi + ebp], 0
sub esi, ebx
jne 0x10013564
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
add eax, esi
push eax
mov dword [esp + 0x30], eax
call fcn.1024ac71
add esp, 4
mov ebx, eax
test edi, edi
je 0x1001354d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x34]
mov edi, ebx
mov eax, dword [esi]
test eax, eax
je 0x10013562
push eax
call fcn.1024ac9a
add esp, 4
mov dword [esi], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, ebp
push eax
sub edx, eax
push ecx
add edx, edi
push edx
call fcn.100777f0
mov esi, eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x100134ca
test esi, esi
je 0x10013487
push str.250
push edi
call fcn.10077770
add esp, 8
test eax, eax
jne 0x100134ca
xor esi, esi
jmp 0x10013487
mov byte [edi + ebp], 0
mov eax, dword [0x1030aa70]
test eax, eax
je 0x100135db
push str.TMGateway:_Timed_Out_waiting_for_response_from_SMTP_server
push str.MailSender
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x20
mov byte [edi + ebp], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x20
test edi, edi
je 0x10013603
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x20
mov ecx, dword [esp + 0x3c]
mov byte [edi + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0x20
Function at 0x10018600
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x102f4c88
jmp 0x10018630

Function at 0x1001af50
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025977b
push eax
mov eax, dword [0x102f68a0]
mov dword fs:[0], esp
sub esp, 0x20c
test eax, eax
je 0x1001af83
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x1001b082
push edi
mov ecx, 0x82
xor eax, eax
mov edi, 0x102f68a4
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [esp + 0xa]
mov word [esp + 8], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
pop edi
jbe 0x1001b01c
lea ecx, [esp + 4]
push ecx
call fcn.10076fb2
add esp, 4
test eax, eax
jbe 0x1001afdb
cmp word [esp + eax*2 + 2], 0x5c
lea eax, [esp + eax*2 + 2]
jne 0x1001afdb
mov word [eax], 0
lea edx, [esp + 4]
push 0x7e
push edx
call fcn.10077259
add esp, 8
test eax, eax
je 0x1001b005
push 0x104
lea eax, [esp + 8]
push 0x102f68a4
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x1001b01c
lea ecx, [esp + 4]
push 0x103
push ecx
push 0x102f68a4
call fcn.10077828
add esp, 0xc
push 0x102f68a4
lea ecx, [esp + 4]
call fcn.1008e4f0
mov eax, dword [esp]
mov dword [esp + 0x214], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1001b06e
push eax
push 0x102f68a4
call fcn.100775f4
push str.TEC_MailBackup
push 0x102f68a4
call fcn.100775ca
push 0
push 0x102f68a4
call fcn.100b6440
add esp, 0x18
mov dword [0x102f68a0], eax
lea ecx, [esp]
mov dword [esp + 0x214], 0xffffffff
call fcn.1008ec90
mov eax, dword [0x102f68a0]
mov ecx, dword [esp + 0x20c]
neg eax
sbb eax, eax
mov dword fs:[0], ecx
and eax, 0x102f68a4
add esp, 0x218
ret
Function at 0x1001b0b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x86c
push ebx
mov ebx, dword [esp + 0x874]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
je 0x1001b312
push ebx
call fcn.10076fb2
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x1001b312
cmp esi, 0x104
jae 0x1001b312
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x470]
push ebx
push eax
call fcn.10077828
lea eax, [esp + esi*2 + 0x478]
add esp, 0xc
cmp word [eax - 2], 0x5c
je 0x1001b129
mov word [eax], 0x5c
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x676]
mov word [esp + 0x674], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push 0x104
lea edx, [esp + 0x678]
push ecx
push edx
stosw word es:[edi], ax
call fcn.10077828
lea eax, [esp + 0x680]
push 0x102b7d58
push eax
call fcn.100775ca
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x674]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x1001b300
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], bp
mov ebx, dword [esp + 0x88c]
mov esi, dword [esp + 0x888]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x264]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x470]
lea ecx, [esp + 0x268]
push eax
push ecx
call fcn.10077828
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.100775ca
mov eax, dword [esp + 0x28]
add esp, 0x14
test al, 0x10
je 0x1001b26d
lea ecx, [esp + 0x40]
push 0x102bb328
push ecx
call fcn.10077619
add esp, 8
test eax, eax
je 0x1001b2d6
lea edx, [esp + 0x40]
push 0x102bb320
push edx
call fcn.10077619
add esp, 8
test eax, eax
je 0x1001b2d6
mov eax, dword [esp + 0x884]
test eax, eax
je 0x1001b2d6
push ebx
push esi
lea eax, [esp + 0x26c]
push 1
push eax
call fcn.1001b0b0
add esp, 0x10
jmp 0x1001b2d6
test ebx, ebx
je 0x1001b2b3
test bl, 1
je 0x1001b292
push 7
lea ecx, [esp + 0x44]
push str.Backup_
push ecx
call fcn.100787c8
add esp, 0xc
test eax, eax
je 0x1001b2d6
mov eax, dword [esp + 0x14]
test bl, 2
je 0x1001b2b3
push 7
lea edx, [esp + 0x44]
push str.Delete_
push edx
call fcn.100787c8
add esp, 0xc
test eax, eax
je 0x1001b2d6
mov eax, dword [esp + 0x14]
test esi, esi
je 0x1001b2c8
test al, 1
je 0x1001b2c8
and al, 0xfe
push eax
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001b1d1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x880]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x86c
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x86c
ret
Function at 0x1001fb80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10259d80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.1001f2c0
lea eax, [esi + 0x18]
xor ebx, ebx
push 1
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], ebx
call fcn.1009cf30
mov ecx, dword [esp + 0x48]
xor edx, edx
mov eax, ecx
mov byte [esp + 0x3c], 1
shr eax, 4
div dword [esi + 0x3c]
mov esi, dword [esi + 0x38]
cmp esi, ebx
je 0x1001fbec
mov eax, dword [esi + edx*4]
cmp eax, ebx
je 0x1001fbec
cmp dword [eax + 8], ecx
je 0x1001fc6d
mov eax, dword [eax]
cmp eax, ebx
jne 0x1001fbdd
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x1001fcda
mov ebp, dword [eax + 0x70]
xor edx, edx
cmp ebp, ebx
jbe 0x1001fc38
mov ecx, dword [eax + 0x6c]
add ecx, 6
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, 4
mov edi, 0x102f6b70
mov esi, eax
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1001fc2a
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001fcb4
inc edx
add eax, 0x14
cmp edx, ebp
jb 0x1001fc0d
mov eax, dword [esp + 0x44]
xor ebx, ebx
mov ebp, dword [eax + 0x6c]
xor edx, edx
cmp ebp, ebx
jbe 0x1001fcda
add eax, 0x78
mov ecx, 4
mov edi, 0x102f6b70
mov esi, eax
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1001fc61
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001fcb4
inc edx
add eax, 0x14
cmp edx, ebp
jb 0x1001fc48
xor ebx, ebx
jmp 0x1001fcda
cmp eax, ebx
je 0x1001fbec
add eax, 0xc
lea ecx, [esp + 0x1c]
push eax
call fcn.1001f6c0
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.1001f560
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x3c], bl
call fcn.1009cf90
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001f500
mov eax, esi
jmp 0x1001fcfa
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.1009cf90
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001f500
mov eax, 1
jmp 0x1001fcfa
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.1009cf90
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001f500
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8