joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009db0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1024b072
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 4]
mov dword [ebx], eax
mov ecx, dword [0x1025e6e4]
lea ebp, [esi + 8]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebp], ecx
mov edx, dword [0x1025e6e4]
mov dword [esi + 0xc], edx
mov eax, dword [0x1025e6e4]
mov dword [esi + 0x18], eax
mov ecx, dword [0x1025e6e4]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 4
call fcn.10088e80
push 0x102e269c
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 5
mov dword [esi], 0x1025ba90
mov dword [esi + 0x1c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.100837e0
push 0x102e269c
mov ecx, ebx
call fcn.100837e0
push 0x102e269c
lea ecx, [esi + 0xc]
call fcn.100837e0
push 0x102e269c
mov ecx, ebp
mov dword [esi + 0x1c], edi
call fcn.100837e0
push 0x102e269c
lea ecx, [esi + 0x30]
call fcn.100837e0
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0xea60
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10009ec0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1024b0c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x1025ba90
mov dword [esp + 0x10], 5
call fcn.1000a340
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 4
call fcn.10088e90
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 3
call fcn.10083560
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 2
call fcn.10083560
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.10083560
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.10083560
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000f0f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x1024b83d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1025e6e4]
lea ebx, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [ebx], ecx
mov edx, dword [0x1025e6e4]
lea ebp, [esi + 8]
mov dword [ebp], edx
mov eax, dword [0x1025e6e4]
mov dword [esi + 0xc], eax
mov ecx, dword [0x1025e6e4]
mov dword [esi + 0x10], ecx
mov edx, dword [0x1025e6e4]
mov dword [esi + 0x14], edx
mov eax, dword [0x1025e6e4]
mov dword [esi + 0x18], eax
mov ecx, dword [0x1025e6e4]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1025e6e4]
mov dword [esi + 0x28], edx
mov eax, dword [0x1025e6e4]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1025e6e4]
mov dword [esi + 0x34], ecx
mov edx, dword [0x1025e6e4]
mov dword [esi + 0x38], edx
mov eax, dword [0x1025e6e4]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x1025e6e4]
mov dword [esi + 0x40], ecx
mov edx, dword [0x1025e6e4]
mov dword [esi + 0x48], edx
mov eax, dword [0x1025e6e4]
mov dword [esi + 0x4c], eax
mov edi, dword [esp + 0x24]
mov ecx, esi
push edi
mov byte [esp + 0x20], 0xf
call fcn.100836f0
lea ecx, [edi + 4]
push ecx
mov ecx, ebx
call fcn.100836f0
lea edx, [edi + 8]
mov ecx, ebp
push edx
call fcn.100836f0
lea eax, [edi + 0xc]
lea ecx, [esi + 0xc]
push eax
call fcn.100836f0
lea ecx, [edi + 0x10]
push ecx
lea ecx, [esi + 0x10]
call fcn.100836f0
lea edx, [edi + 0x14]
lea ecx, [esi + 0x14]
push edx
call fcn.100836f0
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
call fcn.100836f0
mov ecx, dword [edi + 0x1c]
lea eax, [edi + 0x24]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
push eax
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], edx
call fcn.100836f0
lea ecx, [edi + 0x28]
push ecx
lea ecx, [esi + 0x28]
call fcn.100836f0
lea edx, [edi + 0x2c]
lea ecx, [esi + 0x2c]
push edx
call fcn.100836f0
mov ax, word [edi + 0x30]
lea ecx, [edi + 0x34]
push ecx
lea ecx, [esi + 0x34]
mov word [esi + 0x30], ax
call fcn.100836f0
lea edx, [edi + 0x38]
lea ecx, [esi + 0x38]
push edx
call fcn.100836f0
lea eax, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push eax
call fcn.100836f0
lea ecx, [edi + 0x48]
push ecx
lea ecx, [esi + 0x48]
call fcn.100836f0
lea edx, [edi + 0x40]
lea ecx, [esi + 0x40]
push edx
call fcn.100836f0
mov ax, word [edi + 0x44]
lea ecx, [edi + 0x4c]
push ecx
lea ecx, [esi + 0x4c]
mov word [esi + 0x44], ax
call fcn.100836f0
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x58], ecx
mov dx, word [edi + 0x5c]
mov ecx, dword [esp + 0x14]
mov word [esi + 0x5c], dx
mov eax, dword [edi + 0x60]
pop edi
mov dword [esi + 0x60], eax
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10010070
Capabilities:
Delete file

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

Disassembly:
push 0xffffffffffffffff
push 0x1024bb38
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.1007da80
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.1007e1e0
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 0x100122b5
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, dword [0x102f7658]
test eax, eax
je 0x100122a1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x2c]
call fcn.10082c60
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x1c
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10083560
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov eax, dword [0x102f7658]
test eax, eax
je 0x100122d7
push str.MailSender::ConnectServer:_Connect_to_the__server_successfully__r_n
push str.MailSender
push 4
push 0x102f6dc4
call fcn.10098fb0
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 0x100122f0
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 0x10012395
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.10012740
test eax, eax
je 0x10012383
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10012378
mov eax, dword [esi]
push 0
lea edx, [esp + 0x18]
push 0x400
push edx
push eax
call ebx
test eax, eax
je 0x10012383
cmp eax, 0xffffffff
je 0x10012383
call ebp
mov edi, eax
jmp 0x1001233d
call ebp
sub eax, edi
cmp eax, 0xea60
jbe 0x1001233d
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 0x100123a0
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 0x100123e8
mov eax, dword [0x102f7658]
test eax, eax
je 0x100123e3
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
xor eax, eax
ret 8
mov eax, 1
ret 8

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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1024bb5b
push eax
mov eax, 0x203c
mov dword fs:[0], esp
call fcn.1006c090
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2058]
xor ebp, ebp
push edi
cmp esi, ebp
mov ebx, ecx
jne 0x10012429
xor eax, eax
jmp 0x1001253a
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.1009f470
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], ebp
mov dword [esp + 0x24], connect
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 3
call fcn.1009fcd0
test eax, eax
jne 0x100124b5
cmp dword [0x102f7658], ebp
je 0x1001249a
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.1009f4f0
xor eax, eax
jmp 0x1001253a
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
call fcn.1009f7b0
cmp eax, ebp
mov dword [esp + 0x14], eax
jbe 0x10012518
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.1009ff00
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 0x10012555
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, esi
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x100124d1
lea ecx, [esp + 0x18]
call fcn.1009fd20
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.1009f4f0
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 [0x102f7658]
test eax, eax
je 0x1001257e
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x2054], 0xffffffff
call fcn.1009f4f0
xor eax, eax
jmp 0x1001253a
Function at 0x100125a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1024bb86
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 0x102a91c4
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.100127b0
cmp eax, ebx
jne 0x10012615
xor eax, eax
jmp 0x10012725
cmp dword [esp + 0xc], ebx
jne 0x10012694
lea edi, [esi + 8]
lea edx, [esp + 0x1c]
push edi
push 0x102a91c0
push edx
call fcn.1006c0bf
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esi + 0xc]
push eax
call fcn.1007e440
cmp dword [0x102f7658], ebx
je 0x10012715
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10082c60
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x424], 0xffffffff
call fcn.10083560
jmp 0x10012715
cmp dword [0x102f7658], ebx
je 0x100126e5
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.10082c60
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x424], 0xffffffff
call fcn.10083560
mov edx, dword [esp + 0xc]
lea edi, [esi + 8]
push edi
push 0x102a91c0
push edx
call fcn.1006c0bf
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esi + 0xc]
push eax
call fcn.1007e440
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1023d925
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 0x10012740
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 0x1001278f
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 0x100127b0
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 0x10012915
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
call fcn.10012740
test eax, eax
je 0x10012947
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10012833
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x100127e7
jmp 0x1001296f
mov esi, dword [esp + 0x2c]
sub esi, ebp
dec esi
jns 0x1001283e
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 0x1001285e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
add ebp, ebx
cmp ebx, 1
jl 0x10012957
test edi, edi
je 0x1001286f
mov byte [edi + ebp], 0
sub esi, ebx
jne 0x100128c4
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
add eax, esi
push eax
mov dword [esp + 0x30], eax
call fcn.1023d8fc
add esp, 4
mov ebx, eax
test edi, edi
je 0x100128ad
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 0x100128c2
push eax
call fcn.1023d925
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.1006c180
mov esi, eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x1001282a
test esi, esi
je 0x100127e7
push str.250
push edi
call fcn.1006c100
add esp, 8
test eax, eax
jne 0x1001282a
xor esi, esi
jmp 0x100127e7
mov byte [edi + ebp], 0
mov eax, dword [0x102f7658]
test eax, eax
je 0x1001293b
push str.TMGateway:_Timed_Out_waiting_for_response_from_SMTP_server
push str.MailSender
push 4
push 0x102f6dc4
call fcn.10098fb0
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 0x10012963
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 0x100170e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x102e2f18
jmp 0x10017110

Function at 0x10019a30
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024c27b
push eax
mov eax, dword [0x102e4b30]
mov dword fs:[0], esp
sub esp, 0x20c
test eax, eax
je 0x10019a63
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x10019b62
push edi
mov ecx, 0x82
xor eax, eax
mov edi, 0x102e4b34
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 0x10019afc
lea ecx, [esp + 4]
push ecx
call fcn.1006b93e
add esp, 4
test eax, eax
jbe 0x10019abb
cmp word [esp + eax*2 + 2], 0x5c
lea eax, [esp + eax*2 + 2]
jne 0x10019abb
mov word [eax], 0
lea edx, [esp + 4]
push 0x7e
push edx
call fcn.1006bbe5
add esp, 8
test eax, eax
je 0x10019ae5
push 0x104
lea eax, [esp + 8]
push 0x102e4b34
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x10019afc
lea ecx, [esp + 4]
push 0x103
push ecx
push 0x102e4b34
call fcn.1006c1b8
add esp, 0xc
push 0x102e4b34
lea ecx, [esp + 4]
call fcn.10082dc0
mov eax, dword [esp]
mov dword [esp + 0x214], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x10019b4e
push eax
push 0x102e4b34
call fcn.1006bf80
push str.TEC_MailBackup
push 0x102e4b34
call fcn.1006bf56
push 0
push 0x102e4b34
call fcn.100aad70
add esp, 0x18
mov dword [0x102e4b30], eax
lea ecx, [esp]
mov dword [esp + 0x214], 0xffffffff
call fcn.10083560
mov eax, dword [0x102e4b30]
mov ecx, dword [esp + 0x20c]
neg eax
sbb eax, eax
mov dword fs:[0], ecx
and eax, 0x102e4b34
add esp, 0x218
ret
Function at 0x10019b90
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 0x10019df2
push ebx
call fcn.1006b93e
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x10019df2
cmp esi, 0x104
jae 0x10019df2
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.1006c1b8
lea eax, [esp + esi*2 + 0x478]
add esp, 0xc
cmp word [eax - 2], 0x5c
je 0x10019c09
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.1006c1b8
lea eax, [esp + 0x680]
push 0x102a82e0
push eax
call fcn.1006bf56
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 0x10019de0
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.1006c1b8
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.1006bf56
mov eax, dword [esp + 0x28]
add esp, 0x14
test al, 0x10
je 0x10019d4d
lea ecx, [esp + 0x40]
push 0x102ab568
push ecx
call fcn.1006bfa5
add esp, 8
test eax, eax
je 0x10019db6
lea edx, [esp + 0x40]
push 0x102ab560
push edx
call fcn.1006bfa5
add esp, 8
test eax, eax
je 0x10019db6
mov eax, dword [esp + 0x884]
test eax, eax
je 0x10019db6
push ebx
push esi
lea eax, [esp + 0x26c]
push 1
push eax
call fcn.10019b90
add esp, 0x10
jmp 0x10019db6
test ebx, ebx
je 0x10019d93
test bl, 1
je 0x10019d72
push 7
lea ecx, [esp + 0x44]
push str.Backup_
push ecx
call fcn.1006d108
add esp, 0xc
test eax, eax
je 0x10019db6
mov eax, dword [esp + 0x14]
test bl, 2
je 0x10019d93
push 7
lea edx, [esp + 0x44]
push str.Delete_
push edx
call fcn.1006d108
add esp, 0xc
test eax, eax
je 0x10019db6
mov eax, dword [esp + 0x14]
test esi, esi
je 0x10019da8
test al, 1
je 0x10019da8
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 0x10019cb1
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 0x1001e4b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1024c870
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.1001dbf0
lea eax, [esi + 0x18]
xor ebx, ebx
push 1
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], ebx
call fcn.10091800
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 0x1001e51c
mov eax, dword [esi + edx*4]
cmp eax, ebx
je 0x1001e51c
cmp dword [eax + 8], ecx
je 0x1001e59d
mov eax, dword [eax]
cmp eax, ebx
jne 0x1001e50d
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x1001e60a
mov ebp, dword [eax + 0x70]
xor edx, edx
cmp ebp, ebx
jbe 0x1001e568
mov ecx, dword [eax + 0x6c]
add ecx, 6
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, 4
mov edi, 0x102e4e00
mov esi, eax
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1001e55a
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001e5e4
inc edx
add eax, 0x14
cmp edx, ebp
jb 0x1001e53d
mov eax, dword [esp + 0x44]
xor ebx, ebx
mov ebp, dword [eax + 0x6c]
xor edx, edx
cmp ebp, ebx
jbe 0x1001e60a
add eax, 0x78
mov ecx, 4
mov edi, 0x102e4e00
mov esi, eax
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1001e591
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001e5e4
inc edx
add eax, 0x14
cmp edx, ebp
jb 0x1001e578
xor ebx, ebx
jmp 0x1001e60a
cmp eax, ebx
je 0x1001e51c
add eax, 0xc
lea ecx, [esp + 0x1c]
push eax
call fcn.1001dff0
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.1001de90
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x3c], bl
call fcn.10091860
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001de30
mov eax, esi
jmp 0x1001e62a
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.10091860
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001de30
mov eax, 1
jmp 0x1001e62a
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.10091860
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001de30
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