joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40ba99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40baad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40bace
cmp esi, eax
jae 0x40baa7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40bac0
cmp esi, eax
jae 0x40baa7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40bc90
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
push esi
mov esi, dword [esp + 0xc]
je 0x40bcab
mov ecx, eax
mov eax, dword [ecx]
push esi
call dword [eax]
test eax, eax
jne 0x40bcab
pop esi
ret 0xc
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40bcd5
pop edi
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
pop edi
sete al
pop esi
ret 0xc

Function at 0x40bff0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x464738]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor eax, ebp
push 0x104
mov dword [esp + 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40c055
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x40c09b
push str.SigLib
push esi
mov word [eax], 0
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, ebp
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x214]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
Function at 0x40c300
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 8
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c3c7
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0x1400000
jbe 0x40c3bf
push esi
push esi
push esi
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x40c3bf
push edi
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40c398
lea eax, [edi + ebp - 0xa00000]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, 0xa
jne 0x40c370
mov esi, edi
sub esi, eax
add esi, ebp
push esi
push eax
push edi
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0xc
push edi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x40c39c
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop edi
je 0x40c3bf
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x40c3e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor ecx, ecx
xor eax, eax
mov esi, edi
lea esp, [esp]
mov byte [esi], al
inc eax
inc esi
cmp ax, 0x100
jl 0x40c3f0
mov byte [edi + 0x100], cl
mov byte [edi + 0x101], cl
xor dl, dl
mov esi, edi
mov ebp, 0x100
nop
mov eax, dword [esp + 0x10]
movzx ebx, byte [esi]
movzx edx, dl
movzx eax, byte [edx + eax]
add eax, ecx
add eax, ebx
and eax, 0x800000ff
jns 0x40c430
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
mov al, byte [esi]
mov bl, byte [ecx + edi]
mov byte [esi], bl
mov byte [ecx + edi], al
lea eax, [edx + 1]
cdq
idiv dword [esp + 0x14]
inc esi
dec ebp
jne 0x40c410
pop esi
pop ebp
pop ebx
ret
Function at 0x40c450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
test esi, esi
jbe 0x40c501
push ebx
movzx ecx, cl
movzx esi, dl
push ebp
lea edx, [ecx + 1]
and edx, 0x800000ff
jns 0x40c488
dec edx
or edx, 0xffffff00
inc edx
movzx ecx, dl
movzx ebx, byte [ecx + eax]
add ebx, esi
and ebx, 0x800000ff
jns 0x40c4a1
dec ebx
or ebx, 0xffffff00
inc ebx
movzx esi, bl
mov byte [esp + 0x13], bl
mov bl, byte [ecx + eax]
mov byte [esp + 0x12], bl
mov bl, byte [esi + eax]
mov byte [ecx + eax], bl
mov bl, byte [esp + 0x12]
mov byte [esi + eax], bl
movzx ebp, byte [ecx + eax]
movzx ebx, bl
add ebx, ebp
and ebx, 0x800000ff
jns 0x40c4d5
dec ebx
or ebx, 0xffffff00
inc ebx
mov ebp, dword [esp + 0x18]
movzx ebx, bl
mov bl, byte [ebx + eax]
xor byte [edi + ebp], bl
mov ebx, dword [esp + 0x1c]
inc edi
cmp edi, ebx
jb 0x40c475
mov cl, byte [esp + 0x13]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret
Function at 0x40c700
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x464738]
xor eax, ebp
push ebx
push esi
mov dword [esp + 0x878], eax
push edi
xor eax, eax
xor esi, esi
mov word [esp + 0x468], si
mov ecx, 0x81
lea edi, [esp + 0x46a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x468]
push eax
call fcn.0040bff0
add esp, 4
test eax, eax
je 0x40c913
mov word [esp + 0x670], si
mov esi, dword [sym.imp.MSVCR71.dll_swprintf]
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x672]
rep stosd dword es:[edi], eax
push str..slb
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x678]
push 0x457028
push edx
stosw word es:[edi], ax
call esi
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x674]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x40c913
mov edi, dword [sym.imp.MSVCR71.dll_wcscmp]
lea edx, [esp + 0x3c]
push 0x455ad4
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 8
test eax, eax
je 0x40c83d
lea eax, [esp + 0x3c]
push 0x455ad8
push eax
call edi
add esp, 8
test eax, eax
je 0x40c83d
xor eax, eax
mov word [esp + 0x260], 0
mov ecx, 0x81
lea edi, [esp + 0x262]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x46c]
push edx
stosw word es:[edi], ax
lea eax, [esp + 0x268]
push 0x455a8c
push eax
call esi
add esp, 0x10
push 0
lea ecx, [esp + 0x264]
push ecx
call ebx
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.MSVCR71.dll_wcscmp]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40c8ee
lea edx, [esp + 0x3c]
push 0x455ad4
push edx
call edi
add esp, 8
test eax, eax
je 0x40c8d6
lea eax, [esp + 0x3c]
push 0x455ad8
push eax
call edi
add esp, 8
test eax, eax
je 0x40c8d6
xor eax, eax
mov word [esp + 0x260], 0
mov ecx, 0x81
lea edi, [esp + 0x262]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x46c]
push edx
stosw word es:[edi], ax
lea eax, [esp + 0x268]
push 0x455a8c
push eax
call esi
add esp, 0x10
push 0
lea ecx, [esp + 0x264]
push ecx
call ebx
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.MSVCR71.dll_wcscmp]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c855
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, ebp
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
Function at 0x40ce80
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe74
mov eax, dword [0x464738]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0xe7c], eax
xor eax, eax
xor ebx, ebx
mov word [esp + 0x60], bx
mov ecx, 0x81
lea edi, [esp + 0x62]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x64]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40ceee
push 0x464944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe70]
xor ecx, ebp
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
push ecx
push 0x104
lea edx, [esp + 0x68]
push edx
call fcn.004030b0
test eax, eax
jl 0x40cf21
mov eax, dword [esp + 0xc]
push 0x455a98
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0x68]
push edx
call fcn.00402ff0
lea eax, [esp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x68]
push ecx
call fcn.004030b0
test eax, eax
jl 0x40cf54
mov eax, dword [esp + 0xc]
push 0x455b5c
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + eax*2 + 0x68]
push eax
call fcn.00402ff0
push ebx
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov word [esp + 0x268], bx
mov ecx, 0x103
lea edi, [esp + 0x26a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x678], bx
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x67a]
rep stosd dword es:[edi], eax
push 0x800
lea edx, [esp + 0x67c]
push edx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40d063
mov edi, dword [sym.imp.MSVCR71.dll_wcsrchr]
lea eax, [esp + 0x678]
push 0x5c
push eax
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40d063
add esi, 2
push 0x2e
push esi
call edi
add esp, 8
cmp eax, ebx
je 0x40d063
mov word [eax], bx
mov word [esp + 0x20], bx
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x12]
movzx ecx, word [esp + 0x10]
push edx
push eax
push ecx
push 0x455b34
lea edx, [esp + 0x30]
push 0x40
push edx
call fcn.00404790
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.MSVCR71.dll_wcscat]
push esi
lea ecx, [esp + 0x84]
push ecx
push 0x455a8c
lea edx, [esp + 0x294]
push 0x410
push edx
call fcn.00404790
push esi
lea ecx, [esp + 0x98]
call fcn.004047c0
add esp, 0x38
lea eax, [esp + 0x268]
call fcn.0040c300
push ebx
push ebx
push 4
push ebx
push ebx
push 0x40000000
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0xe7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
Function at 0x40d130
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x464940]
test eax, eax
jne 0x40d14f
push 0x464944
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x464940], 1
push esi
push 0x464944
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0040ce80
mov esi, eax
cmp esi, 0xffffffff
je 0x40d1a1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [esp + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d181
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x464944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x40d1c0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x464940]
test eax, eax
jne 0x40d1df
push 0x464944
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x464940], 1
mov eax, dword [0x46493c]
test eax, eax
jne 0x40d204
lea eax, [esp]
push eax
push 0
push 0
push 0x40d0a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46493c], eax
mov eax, dword [0x464938]
test eax, eax
jne 0x40d224
push 0xa00000
call sub.MFC71U.DLL_SerializeElements
add esp, 4
mov dword [0x464938], eax
mov dword [0x464934], eax
push 0x464944
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x464934]
mov ecx, esi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40d237
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d246
mov ecx, dword [0x464934]
sub eax, edx
add ecx, eax
push 0x464944
mov dword [0x464934], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop ecx
ret
Function at 0x40d270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1018
call fcn.00415b80
mov eax, dword [0x464738]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x101c], eax
xor eax, eax
mov byte [esp + 0x818], 0
mov ecx, 0x1ff
lea edi, [esp + 0x819]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x10]
push eax
push ecx
push 0x800
lea edx, [esp + 0x824]
push edx
call fcn.0040c2a0
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x1ff
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x14]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x818]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x18]
push eax
movzx eax, word [esp + 0x1a]
push ecx
movzx ecx, word [esp + 0x1a]
push edx
movzx edx, word [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x457070
lea eax, [esp + 0x48]
push 0x800
push eax
call fcn.0040cc80
add esp, 0x38
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x464930]
test eax, eax
je 0x40d372
lea esi, [esp + 0x18]
call fcn.0040d1c0
pop edi
pop esi
mov ecx, dword [esp + 0x1014]
xor ecx, ebp
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
lea edi, [esp + 0x18]
call fcn.0040d130
mov ecx, dword [esp + 0x101c]
pop edi
xor ecx, ebp
pop esi
call fcn.00415ae8
mov esp, ebp
pop ebp
ret
Function at 0x40d390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453f8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc28
mov eax, dword [0x464738]
xor eax, ebp
push ebx
mov dword [ebp - 0x14], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xc28], ecx
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x21c], bx
mov ecx, 0x81
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov dword [ebp - 0x10], esp
je 0x40d48c
dec eax
jne 0x40d56e
xor eax, eax
mov word [ebp - 0x824], bx
mov ecx, 0xff
lea edi, [ebp - 0x822]
rep stosd dword es:[edi], eax
push 1
stosw word es:[edi], ax
push 0x1a
lea eax, [ebp - 0x824]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x21c]
push 0x455a8c
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
xor eax, eax
mov word [ebp - 0x424], bx
mov ecx, 0x81
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
lea edx, [ebp - 0x424]
push 0x5c
push edx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
add esp, 0x20
cmp eax, ebx
je 0x40d47c
mov word [eax], bx
lea eax, [ebp - 0x424]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
jmp 0x40d4ca
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x21c]
push 0x5c
push edx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x40d56e
add eax, 2
push esi
push eax
mov word [eax], bx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
xor eax, eax
mov byte [ebp - 0xc24], bl
mov ecx, 0xff
lea edi, [ebp - 0xc23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x400
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
push eax
lea edx, [ebp - 0x21c]
push edx
call fcn.0040d590
mov esi, dword [ebp - 0xc28]
add esp, 0x10
lea eax, [ebp - 0xc24]
push eax
lea ecx, [esi + 8]
mov dword [ebp - 4], ebx
call fcn.00416560
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], 1
call dword [edx]
mov eax, 1
jmp 0x40d570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ae8
mov esp, ebp
pop ebp
ret 8
Function at 0x410040
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4541ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [esp + 0x10], esi
mov dword [esi], 0x4580a4
mov dword [edi], 0x45809c
mov dword [esp + 0x1c], 2
call fcn.0040da10
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0x444]
push eax
call ebx
mov ecx, dword [esi + 0x45c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea edx, [esi + 0x468]
push edx
call ebx
mov eax, dword [esi + 0x464]
test eax, eax
je 0x4100b7
push eax
call sub.MFC71U.DLL_operator_new
add esp, 4
mov eax, dword [esi + 0x480]
test eax, eax
je 0x4100c8
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esi + 0x488]
call fcn.00409ab0
push edi
mov ecx, 0x464968
mov dword [edi], 0x45805c
call fcn.0040ff60
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00411d00
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4109c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x454271
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00411cf0
push str.CDriverInterFace
push str._s_add_to_the_pipe_packet_chain.
xor ebx, ebx
lea edi, [esi + 4]
push str.CPipePacketChain
mov dword [esp + 0x2c], ebx
mov dword [edi], 0x45805c
call fcn.0040d270
add esp, 0xc
push edi
mov ecx, 0x464968
call fcn.0040ff00
mov dword [esi], 0x4580a4
mov dword [edi], 0x45809c
mov dword [esi + 0x48c], ebx
mov dword [esi + 0x490], ebx
mov dword [esi + 0x494], ebx
mov dword [esi + 0x498], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x444]
or edi, 0xffffffff
push eax
mov byte [esp + 0x24], 2
mov dword [esi + 0x438], edi
mov dword [esi + 0x440], ebx
call ebp
mov dword [esi + 0x41c], edi
xor eax, eax
mov dword [esi + 8], ebx
mov ecx, 0x104
lea edi, [esi + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x468]
push ecx
call ebp
push str.NTDll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x480], eax
je 0x410aa4
push 0x45813c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x484], eax
cmp dword [esi + 0x440], ebx
mov dword [esi + 0x460], ebx
mov dword [esi + 0x43c], ebx
jne 0x410aca
push str.Create_share_file_open_listen_thread_fail
push str.CEFOpenRightFunc
call fcn.00405160
add esp, 8
push 0xfa0
call sub.MFC71U.DLL_SerializeElements
add esp, 4
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push 0x40c6f0
push ebx
push ebx
mov dword [esi + 0x464], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x45c], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4115f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push ebx
mov esi, ecx
mov ecx, dword [esp + 0x20]
push edi
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411637
cmp dword [esp + 0xc], ebx
jne 0x411637
mov eax, dword [esi + 4]
test eax, eax
je 0x411640
mov ecx, eax
mov edx, dword [ecx]
push edi
call dword [edx + 4]
test eax, eax
jne 0x411640
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc

Function at 0x411670
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x420]
test eax, eax
mov dword [esi], 0x4584c8
je 0x4116a3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x420], 0
mov dword [esi], 0x4584b8
pop esi
ret

Function at 0x4116d0
Capabilities:
Get session user name

Disassembly:
push ecx
push esi
mov esi, ecx
lea eax, [esp + 4]
push eax
lea ecx, [esi + 8]
push ecx
mov dword [esi], 0x4584b8
mov dword [esi + 4], 0
mov dword [esp + 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [esi + 0x420], 0
mov dword [esi], 0x4584d0
mov dword [esi + 0x428], 1
mov dword [esi + 0x424], 0
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4118b0
Capabilities:
Terminate thread

Disassembly:
call fcn.00411730
mov ecx, dword [eax + 0x424]
test ecx, ecx
je 0x411933
call fcn.00411730
push 0x2710
mov dword [eax + 0x428], 0
call fcn.00411730
mov eax, dword [eax + 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x411912
push 0x458600
push str.Client
call fcn.00405160
add esp, 8
push 0xffffffffffffffff
call fcn.00411730
mov ecx, dword [eax + 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.00411730
mov edx, dword [eax + 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00411730
mov dword [eax + 0x424], 0
mov ecx, dword [0x4649b4]
test ecx, ecx
je 0x41194d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x4649b4], 0
mov eax, 1
ret

Function at 0x411ad0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
lea ecx, [esi + 0x208]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [esi + 0x414], eax
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4119c0
mov dword [esi + 0x410], edx
mov edx, dword [esp + 0x1c]
push 0
push 0
mov dword [esi + 0x418], ecx
mov dword [esi + 0x41c], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x420], eax
pop esi
jne 0x411b49
push 0x458678
push str.CPipeServer
call fcn.00405160
add esp, 8
xor eax, eax
ret 0x14
mov eax, 1
ret 0x14