joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065eb0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
sub esp, 0x664
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x10066088
push esi
call fcn.10076fb2
add esp, 4
test eax, eax
je 0x10066088
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
push esi
mov dword [esp + 0x24], ebp
call fcn.10063230
add esp, 0x1c
test eax, eax
je 0x10066088
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x10066088
test al, 1
je 0x10065f1c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x10066061
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push esi
push ecx
stosw word es:[edi], ax
call fcn.100775f4
lea edx, [esp + 0x474]
push 0x102b3864
push edx
call fcn.100775ca
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x230]
mov dword [esp + 0x22c], ebp
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10066038
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x102bb320
push edx
call ebp
test eax, eax
je 0x10066018
lea eax, [esp + 0x248]
push 0x102bb328
push eax
call ebp
test eax, eax
je 0x10066018
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.100775f4
lea edx, [esp + 0x1c]
push 0x102b386c
push edx
call fcn.100775ca
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.100775ca
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.10065eb0
add esp, 0x20
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10065fa1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
cmp eax, ebp
pop ebx
jne 0x1006608a
cmp dword [esp + 0x674], ebp
je 0x1006608a
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x1006608a
cmp dword [esp + 0x674], ebp
je 0x1006608a
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
xor eax, eax
pop esi
pop ebp
add esp, 0x664
ret
Function at 0x100667c0
Capabilities:
Get graphical window text

Disassembly:
call fcn.100a6710
test eax, eax
je 0x100667df
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x10066860
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10066860
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.1024ac71
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10066860
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x10066860
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.10073460
add esp, 0x10
test eax, eax
je 0x10066860
push esi
call fcn.10076fb2
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x10068d50
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 1
push 0
push 0
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x10068d99
mov eax, dword [0x1030aa70]
test eax, eax
je 0x10068d96
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CIOCPSocket::Initialize___Create_SOCKET_failed___errno___d__n
push str.IOCPSocket
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
xor eax, eax
ret
mov eax, 1
ret

Function at 0x10068da0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
mov dword [esp + 6], eax
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
push ecx
mov word [esp + 0x16], ax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi]
mov word [esp + 6], ax
xor eax, eax
lea ecx, [esp + 4]
push 0x10
mov dword [esp + 0x10], eax
push ecx
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_connect]
pop esi
add esp, 0x10
ret 8
Function at 0x1006ad70
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025f700
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov ecx, ebp
call fcn.1008ea00
mov esi, dword [esp + 0x24]
push esi
call fcn.10076fb2
mov cx, word [esi]
add esp, 4
cmp eax, 1
jl 0x1006aee5
cmp cx, 0x5c
je 0x1006aee5
cmp cx, 0x2e
jne 0x1006add7
cmp eax, 1
je 0x1006aee5
cmp eax, 2
jne 0x1006add7
cmp word [esi + 2], cx
je 0x1006aee5
mov edx, dword [0x1026c87c]
mov dword [esp + 0x28], edx
cmp eax, 3
mov dword [esp + 0x1c], 0
jle 0x1006ae14
cmp word [esi + 2], 0x3a
jne 0x1006ae14
cmp word [esi + 4], 0x5c
jne 0x1006ae14
cmp cx, 0x61
jb 0x1006ae08
cmp cx, 0x7a
jbe 0x1006ae69
cmp cx, 0x41
jb 0x1006ae14
cmp cx, 0x5a
jbe 0x1006ae69
push 0x105
lea ecx, [esp + 0x2c]
call fcn.1008f960
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.1008fa30
test edi, edi
je 0x1006aefc
cmp edi, 0x104
ja 0x1006aefc
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1006ae69
push 0x5c
lea ecx, [esp + 0x2c]
call fcn.1008f920
push 0x102c67e8
lea ecx, [esp + 0x14]
call fcn.1008e4f0
lea ecx, [esp + 0x28]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x28], 1
call fcn.1008f230
push esi
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x24], 2
push eax
call fcn.1008f400
push eax
mov ecx, ebp
mov byte [esp + 0x20], 3
call fcn.1008ee20
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.1008ec90
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.1008ec90
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call fcn.1008ec90
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1008ec90
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1006b070
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1025f758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026c87c]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x1006b0b2
lea ecx, [esp + 4]
push ecx
push esi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b0b5
push esi
jmp 0x1006b0ba
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1006b0f0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1025f778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026c87c]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x1006b132
lea ecx, [esp + 4]
push ecx
push esi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b13a
mov edx, dword [esp + 0x1c]
push edx
push esi
jmp 0x1006b144
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1006b200
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x1025f7c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1026c87c]
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov esi, dword [esp + 0x20]
mov byte [esp + 0x18], 1
test esi, esi
je 0x1006b27c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1006b27c
lea eax, [esp + 0xc]
push eax
push esi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b260
push esi
lea ecx, [esp + 0x10]
call fcn.1008ef10
lea ecx, [esp + 8]
push ecx
push edi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b27c
push edi
lea ecx, [esp + 0xc]
call fcn.1008ef10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.1008ec90
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1006b2d0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x1025f7e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1026c87c]
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov esi, dword [esp + 0x20]
mov byte [esp + 0x18], 1
test esi, esi
je 0x1006b34c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1006b34c
lea eax, [esp + 0xc]
push eax
push esi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b330
push esi
lea ecx, [esp + 0x10]
call fcn.1008ef10
lea ecx, [esp + 8]
push ecx
push edi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b34c
push edi
lea ecx, [esp + 0xc]
call fcn.1008ef10
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.1008ec90
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1006b390
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x1025f800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1026c87c]
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov esi, dword [esp + 0x20]
mov byte [esp + 0x18], 1
test esi, esi
je 0x1006b40c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1006b40c
lea eax, [esp + 0xc]
push eax
push esi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b3f0
push esi
lea ecx, [esp + 0x10]
call fcn.1008ef10
lea ecx, [esp + 8]
push ecx
push edi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b40c
push edi
lea ecx, [esp + 0xc]
call fcn.1008ef10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.1008ec90
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1006b460
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1025f818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026c87c]
push esi
push edi
xor esi, esi
mov dword [esp + 8], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
test edi, edi
je 0x1006b4a6
lea ecx, [esp + 8]
push ecx
push edi
call fcn.1006ace0
add esp, 8
test eax, eax
je 0x1006b4a6
mov esi, 1
mov eax, dword [0x1030aa70]
test eax, eax
je 0x1006b4ce
mov edx, dword [esp + 8]
push edx
push esi
push str.COverlongPathApi::CreateDirectoryW_bChangeToLongPath__d__wstrLongPath__s_
push str.COverlongPathApi
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
test esi, esi
jne 0x1006b4da
mov eax, dword [esp + 0x20]
push eax
push edi
jmp 0x1006b4e4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1006b4bf
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1025f818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026c87c]
push esi
push edi
xor esi, esi
mov dword [esp + 8], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
test edi, edi
je 0x1006b4a6
lea ecx, [esp + 8]
push ecx
push edi
call fcn.1006ace0
add esp, 8
test eax, eax
je 0x1006b4a6
mov esi, 1
mov eax, dword [0x1030aa70]
test eax, eax
je 0x1006b4ce
mov edx, dword [esp + 8]
push edx
push esi
push str.COverlongPathApi::CreateDirectoryW_bChangeToLongPath__d__wstrLongPath__s_
push str.COverlongPathApi
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x18
test esi, esi
jne 0x1006b4da
mov eax, dword [esp + 0x20]
push eax
push edi
jmp 0x1006b4e4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1006b510
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x1025f838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026c87c]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x1006b552
lea ecx, [esp + 4]
push ecx
push esi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b555
push esi
jmp 0x1006b55a
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1006b590
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1025f858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026c87c]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x1006b5d2
lea ecx, [esp + 4]
push ecx
push esi
call fcn.1006ace0
add esp, 8
test eax, eax
jne 0x1006b5d5
push esi
jmp 0x1006b5da
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1006c0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025f9a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [esp + 8], 0
call fcn.1004c3d0
push eax
lea ecx, [esp + 4]
call fcn.1008e4f0
mov eax, dword [esp]
push 0
push eax
mov dword [esp + 0x2c], 1
call fcn.100b5610
add esp, 8
test eax, eax
jne 0x1006c0f8
mov ecx, dword [esp]
push eax
push ecx
call fcn.100b6440
add esp, 8
xor edx, edx
lea eax, [esp + 0xc]
mov dword [esp + 0xe], edx
push eax
mov dword [esp + 0x16], edx
mov word [esp + 0x10], 0
mov dword [esp + 0x1a], edx
mov word [esp + 0x1e], dx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x1026c87c]
mov dword [esp + 4], ecx
mov byte [esp + 0x24], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esp + 0x12]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x12]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push str.TMailgateway
lea edx, [esp + 0x18]
push str._s__4d__02d__02d_P__d.txt
push edx
call fcn.10091c10
add esp, 0x1c
lea eax, [esp + 4]
lea ecx, [esp]
push eax
call fcn.1008f940
mov eax, dword [0x1030aa70]
test eax, eax
je 0x1006c19f
mov ecx, dword [esp]
push ecx
push str.CRunningLogMgr::GetCurLogPath___s_
push str.RunningLog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
push esi
mov esi, dword [esp + 0x30]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.1008e290
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.1008ec90
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.1008ec90
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x1006c190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025f9a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [esp + 8], 0
call fcn.1004c3d0
push eax
lea ecx, [esp + 4]
call fcn.1008e4f0
mov eax, dword [esp]
push 0
push eax
mov dword [esp + 0x2c], 1
call fcn.100b5610
add esp, 8
test eax, eax
jne 0x1006c0f8
mov ecx, dword [esp]
push eax
push ecx
call fcn.100b6440
add esp, 8
xor edx, edx
lea eax, [esp + 0xc]
mov dword [esp + 0xe], edx
push eax
mov dword [esp + 0x16], edx
mov word [esp + 0x10], 0
mov dword [esp + 0x1a], edx
mov word [esp + 0x1e], dx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x1026c87c]
mov dword [esp + 4], ecx
mov byte [esp + 0x24], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esp + 0x12]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x12]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push str.TMailgateway
lea edx, [esp + 0x18]
push str._s__4d__02d__02d_P__d.txt
push edx
call fcn.10091c10
add esp, 0x1c
lea eax, [esp + 4]
lea ecx, [esp]
push eax
call fcn.1008f940
mov eax, dword [0x1030aa70]
test eax, eax
je 0x1006c19f
mov ecx, dword [esp]
push ecx
push str.CRunningLogMgr::GetCurLogPath___s_
push str.RunningLog
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
push esi
mov esi, dword [esp + 0x30]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.1008e290
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.1008ec90
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.1008ec90
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x1006e880
Capabilities:
Get common file path

Disassembly:
mov cl, byte [0x10307a14]
mov al, 1
sub esp, 0x208
test al, cl
jne 0x1006e8b3
mov dl, cl
push 0x1006e910
or dl, al
mov eax, dword [0x1026c87c]
mov byte [0x10307a14], dl
mov dword [0x10307a10], eax
call fcn.10076b7b
add esp, 4
mov ecx, dword [0x10307a10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1006e903
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 4]
mov ecx, 0x10307a10
push eax
call fcn.1008ef10
mov eax, 0x10307a10
pop edi
add esp, 0x208
ret
mov eax, 0x10307a10
add esp, 0x208
ret
Function at 0x1006ebe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025fc98
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax - 8], edi
je 0x1006ec9e
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x1006ec9e
push eax
lea ecx, [esp + 0x24]
call fcn.1008e4f0
mov esi, dword [esp + 0x24]
push ebx
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.1008ee20
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
jne 0x1006ec52
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx]
push ecx
push edx
push 0x102b7d2c
push esi
call fcn.10091c10
add esp, 0x10
jmp 0x1006ec69
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
push eax
push edi
push ecx
push 0x102cedb8
push esi
call fcn.10091c10
add esp, 0x14
mov eax, dword [esi]
push eax
call ebp
cmp eax, 0xffffffff
je 0x1006ec7c
inc edi
cmp edi, 0x3e8
jb 0x1006ec36
xor edx, edx
cmp edi, 0x3e8
setne dl
lea ecx, [esp + 0x20]
mov esi, edx
mov dword [esp + 0x18], 0xffffffff
call fcn.1008ec90
mov eax, esi
jmp 0x1006eca0
xor eax, eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc

Function at 0x1006f500
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov ecx, 0x10307a70
jmp 0x1006f510
push 0xffffffffffffffff
push 0x1025fd6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov eax, 0x1e
mov dword [esp + 8], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
lea ecx, [esi + 0x64]
mov byte [esp + 0x14], 3
call fcn.1009ca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], 0x11
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], 0xa
mov dword [esi + 0xa0], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret