joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002caa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x1c], ebx
push edi
mov dword [ebp - 0x14], 0
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1002cb8a
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1002cb8a
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x1002cafd
cmp dword [ebp - 0x18], 0
jbe 0x1002cafd
push 2
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
shr eax, 1
test al, 1
lea eax, [ebp - 0x14]
je 0x1002cb62
lea ebx, [esi + 0x174]
push ebx
push eax
push edi
push dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002cb46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002cb46
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x1002cb36
mov eax, dword [ebp - 0x14]
add dword [esi + 0x134], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 0xc
push 0
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
add dword [esi + 0x134], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002cc10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1002ccbe
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1002ccbe
push 0
lea ecx, [ebp - 4]
mov dword [ebp + 0xc], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x1002cc58
cmp dword [ebp - 4], 0
jbe 0x1002cc58
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
shr eax, 1
test al, 1
je 0x1002cc9c
lea eax, [esi + 0x188]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002cc8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002ccbe
add dword [esi + 0x138], edi
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
add dword [esi + 0x138], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1002ce20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x1002cf5a
cmp dword [esi + 0x150], 0
jne 0x1002cf5a
cmp dword [esi + 0x15c], 0
jne 0x1002cf5a
mov eax, dword [esi + 4]
push edi
mov edi, eax
mov byte [esi + 0x13c], 1
shr edi, 4
and edi, 4
test al, 1
je 0x1002ce84
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1002e550
push 0
push 0
call fcn.10063f01
add esp, 0x18
mov dword [esi + 0x144], eax
test byte [esi + 4], 0x10
je 0x1002cea7
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x1002e590
push 0
push 0
call fcn.10063f01
add esp, 0x18
mov dword [esi + 0x150], eax
test byte [esi + 4], 0x20
je 0x1002ceca
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x1002e5b0
push 0
push 0
call fcn.10063f01
add esp, 0x18
mov dword [esi + 0x15c], eax
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test cl, 1
je 0x1002cef4
mov eax, dword [ebp - 4]
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x144]
test eax, eax
je 0x1002cf2c
test cl, cl
jns 0x1002cef4
push 1
push eax
call edi
mov ecx, dword [esi + 4]
test cl, 0x10
je 0x1002cf17
mov eax, dword [ebp - 8]
mov dword [esi + 0x154], eax
test eax, eax
je 0x1002cf2c
test cl, cl
jns 0x1002cf17
push 1
push dword [esi + 0x150]
call edi
mov ecx, dword [esi + 4]
test cl, 0x20
je 0x1002cf50
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x160], eax
test eax, eax
jne 0x1002cf42
push 0x1f4
mov ecx, esi
call fcn.1002cf70
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
test cl, cl
jns 0x1002cf50
push 1
push dword [esi + 0x15c]
call edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002cf70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x1002cf98
cmp dword [esi + 0x150], 0
jne 0x1002cf98
cmp dword [esi + 0x15c], 0
jne 0x1002cf98
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [esi + 4]
and eax, 0x208
push edi
cmp eax, 0x208
jne 0x1002cfc4
cmp dword [esi + 0x114], 0
je 0x1002cfc4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call edi
cmp dword [esi + 0x114], 0
jne 0x1002cfb7
mov eax, dword [esi + 4]
shr eax, 1
mov byte [esi + 0x13c], 0
test al, 1
je 0x1002cfdf
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetCommMask]
cmp dword [esi + 0x144], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x1002d03e
push dword [esi + 0x14c]
call eax
push dword [ebp + 8]
push dword [esi + 0x144]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002d027
push 0
push dword [esi + 0x144]
call ebx
test eax, eax
je 0x1002d0b8
push dword [esi + 0x144]
call edi
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0x144], 0
cmp dword [esi + 0x150], 0
je 0x1002d082
push dword [esi + 0x158]
call eax
push dword [ebp + 8]
push dword [esi + 0x150]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002d070
push 0
push dword [esi + 0x150]
call ebx
test eax, eax
je 0x1002d0b8
push dword [esi + 0x150]
call edi
mov dword [esi + 0x150], 0
cmp dword [esi + 0x15c], 0
je 0x1002d0d3
push dword [esi + 0x164]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp + 8]
push dword [esi + 0x15c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002d0c1
push 0
push dword [esi + 0x15c]
call ebx
test eax, eax
jne 0x1002d0c1
pop ebx
pop edi
xor al, al
pop esi
pop ebp
ret 4
push dword [esi + 0x15c]
call edi
mov dword [esi + 0x15c], 0
pop ebx
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x1002d6c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x108]
shr eax, 1
test al, 1
je 0x1002d78e
test esi, esi
je 0x1002d701
lea edi, [esi + 0x14]
push edi
mov dword [ebp - 0x408], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x1002d70b
mov dword [ebp - 0x408], 0x14
cmp dword [ebx + 0x114], 0
jne 0x1002d718
xor edi, edi
jmp 0x1002d769
mov ecx, dword [ebx + 0x10c]
test ecx, ecx
je 0x1002d743
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 0x400
jae 0x1002d735
mov edi, dword [ecx + 4]
sub edi, dword [ecx]
jmp 0x1002d745
mov eax, dword [ecx]
mov edi, 0x400
add eax, 0x10
add eax, ecx
jmp 0x1002d754
xor edi, edi
test ecx, ecx
je 0x1002d752
mov eax, dword [ecx]
add eax, 0x10
add eax, ecx
jmp 0x1002d754
xor eax, eax
push edi
push eax
mov ecx, ebx
call fcn.1002cc10
push edi
push 0
mov ecx, esi
call fcn.1002d1d0
mov edi, eax
test esi, esi
je 0x1002d779
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 4
lea edi, [ebx + 0x11c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x400
lea eax, [ebp - 0x404]
mov ecx, esi
push eax
call fcn.1002d1d0
mov esi, eax
push edi
mov dword [ebp - 0x410], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1002d893
xor edi, edi
mov eax, dword [ebx + 8]
sub esi, edi
cmp eax, 0xffffffff
je 0x1002d881
test esi, esi
je 0x1002d881
push 0
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x408], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x1002d80f
cmp dword [ebp - 0x40c], 0
jbe 0x1002d80f
push 1
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
shr eax, 1
test al, 1
je 0x1002d859
lea eax, [ebx + 0x188]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
lea eax, [ebp - 0x404]
add eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002d84b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002d881
add dword [ebx + 0x138], esi
mov eax, dword [ebp - 0x408]
jmp 0x1002d883
push 0
lea eax, [ebp - 0x408]
push eax
push esi
lea eax, [ebp - 0x404]
add eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x408]
add dword [ebx + 0x138], eax
jmp 0x1002d883
xor eax, eax
mov esi, dword [ebp - 0x410]
add edi, eax
cmp edi, esi
jb 0x1002d7c7
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 4
Function at 0x10031d00
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.C:UsbDeamon]
mov ax, word [0x100957d4]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
push eax
movq xmm0, qword [0x100957cc]
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.10050540
lea ecx, [ebp - 0x138]
call fcn.1003d760
push 0x400
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.10050540
add esp, 0x18
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003afa0
lea eax, [ebp - 0x138]
push eax
push 0xc4
push str.StartUsbEventMonitor
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x538]
push str._s_t__d__d___INFO____s:_d__StartUsbEventMonitor_with_path____s__n
push eax
call fcn.10007a40
lea eax, [ebp - 0x538]
add esp, 0x20
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10031dd0
sub eax, edx
push eax
lea eax, [ebp - 0x538]
push eax
call fcn.1003b0f0
add esp, 8
call fcn.10031a60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 4
Function at 0x1003b060
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x100964d0
push 0x1008ac40
mov edi, edx
call fcn.1005e5c9
mov esi, eax
add esp, 8
test esi, esi
je 0x1003b0a9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b087
push esi
sub ecx, edx
push 1
push ecx
push edi
call fcn.10063889
push esi
call fcn.1005e798
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, str.file__
mov ecx, 0x100a4398
call fcn.10023f60
mov edx, 0x1008ac40
mov ecx, eax
call fcn.10023f60
mov edx, str.__not_exist__create_first_
mov ecx, eax
call fcn.10023f60
push eax
call fcn.10024200
add esp, 4
push str.C:logs
call fcn.1006518b
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003c560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test edi, edi
je 0x1003c6dc
test ebx, ebx
je 0x1003c6dc
cmp edi, 0xffffffff
je 0x1003c75a
push dword [ebp + 8]
call fcn.1003cb90
add esp, 4
cmp eax, 0xffffffff
je 0x1003c75a
xor esi, esi
nop word [eax + eax]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea eax, [ebp - 0x218]
mov dword [ebp - 0x41c], 0x200
push 0
push eax
call fcn.10050540
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0
push eax
push 0x200
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003c600
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003c62d
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x1003c61b
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.1004ffc0
add esp, 0xc
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
cmp dword [ebp - 0x41c], 0
jg 0x1003c64a
inc esi
cmp esi, 2
jl 0x1003c5b0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10050540
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003afa0
push ebx
push 0x18c
push str.CommunicationStream100
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___INFO____s:_d__call__CommunicationStream100_Ok_return_recvStream___s_n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c6b0
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.1003b0f0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10050540
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003afa0
push 0x181
push str.CommunicationStream100
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___ERROR____s:_d__handle_or_recvStream_is_NULL_n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x418]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c741
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.1003b0f0
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
Function at 0x1003ca70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x1003cacd
test esi, esi
je 0x1003cacd
test ebx, ebx
je 0x1003cacd
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x614]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0
lea eax, [ebp - 0x618]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1003cae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x1003cb70
push 0x600
lea eax, [ebp - 0x604]
mov dword [ebp - 0x614], 0x600
push 0
push eax
call fcn.10050540
add esp, 0xc
lea eax, [ebp - 0x614]
push 0
push eax
push 0x600
lea eax, [ebp - 0x604]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003cb4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x614]
test eax, eax
je 0x1003cb67
push eax
lea eax, [ebp - 0x604]
push eax
push edi
call fcn.1004ffc0
add esp, 0xc
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret

Function at 0x1003d760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1003d793
sub edx, ecx
sar edx, 1
lea edi, [edx + 1]
cmp edi, 0x3fffffff
jg 0x1003d7e0
add edi, edi
mov eax, edi
call fcn.10078dd0
mov esi, esp
test esi, esi
je 0x1003d7e0
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb edx, edx
and edx, esi
jmp 0x1003d7e2
xor edx, edx
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d7e7
sub ecx, esi
push ecx
push edx
push 0x104
push ebx
call fcn.1005d518
add esp, 0x10
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
Function at 0x1003e580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x1003e666
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x1003e655
jg 0x1003e5c0
test edx, edx
je 0x1003e655
nop dword [eax]
call fcn.10023f30
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1003e614
jg 0x1003e5d7
test esi, esi
je 0x1003e614
cmp ebx, eax
jg 0x1003e5e7
jl 0x1003e5e1
cmp edi, esi
jae 0x1003e5e7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1004ffc0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1003e639
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x1003e64f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x1003e5c0
jl 0x1003e64f
test edi, edi
jne 0x1003e5c0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x1003e68e
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x1003e694
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x1003e6fc
jg 0x1003e6a9
test esi, esi
je 0x1003e6fc
test edx, edx
jl 0x1003e6f7
jg 0x1003e6b3
test eax, eax
je 0x1003e6f7
cmp edi, edx
jg 0x1003e6c7
jl 0x1003e6bd
cmp esi, eax
jae 0x1003e6c7
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.1004ffc0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x1003e6ff
mov ebx, dword [ebp + 8]
jmp 0x1003e709
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x1003e722
jg 0x1003e709
test esi, esi
je 0x1003e722
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1003e722
push eax
push esi
push 1
push ebx
call fcn.10063889
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003ed30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1003ed60
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1003ed9c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1003ed9c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1003ee82
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1003edc4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003edf7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1006536d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x1003ee55
sub eax, 1
je 0x1003ee55
sub eax, 2
jne 0x1003ee82
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1003cc10
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1003ee72
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10063889
add esp, 0x10
cmp edi, eax
jne 0x1003ee82
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x1003ed87
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret 4