joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f1950
Capabilities:
Hash data with md5

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x5f1af9
sub esp, 0x84
lea eax, [0x64f480]
mov dword [esp], eax
mov dword [esp + 4], 0x24
mov dword [esp + 8], 0x24
call fcn.0044a050
mov eax, dword [esp + 0xc]
mov dword [esp + 0x80], eax
nop
lea edi, [esp + 0x20]
xor eax, eax
call fcn.004628f9
nop
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x88]
xor ecx, ecx
jmp 0x5f1a1d
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x7c], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
lea ebp, [esp + 0x20]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004bef90
mov eax, dword [esp + 0x7c]
add eax, 0xc
mov ecx, dword [esp + 0x1c]
inc ecx
mov edx, dword [esp + 0x8c]
cmp edx, ecx
jg 0x5f19e9
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004bf160
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ecx, 0x24
jl 0x5f1a5e
mov ecx, 0x24
mov edx, dword [esp + 0x80]
cmp eax, edx
je 0x5f1a79
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00463000
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], eax
call fcn.005f1830
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x14
jl 0x5f1ab0
mov ecx, 0x14
mov edx, dword [esp + 0x80]
lea ebx, [edx + 0x10]
cmp eax, ebx
je 0x5f1ad5
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00463000
mov edx, dword [esp + 0x80]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], 0x24
mov dword [esp + 0x9c], 0x24
add esp, 0x84
ret
call fcn.00461280
jmp fcn.005f1950
Function at 0x1002ee50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1002ee79
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1002ee8f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1002ee86
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1002eec2
nop
cmp esi, ecx
jae 0x1002ee86
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1002eeb0
cmp esi, ecx
jae 0x1002ee86
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1002ef70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.100466d4
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x1002f068
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x1002f068
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1002efbd
xor esi, esi
jmp 0x1002f002
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1002f002
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1002eff2
nop
cmp esi, ecx
jae 0x1002eff6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1002efe0
cmp esi, ecx
jb 0x1002effa
xor esi, esi
jmp 0x1002f002
xor eax, eax
cmp word [esi], ax
cmove esi, eax
test esi, esi
je 0x1002f068
mov eax, dword [ebx]
mov ecx, 1
movzx edi, word [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x1002f024
push edi
mov ecx, ebx
call fcn.1002f250
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.1006cc40
add esp, 0x10
cmp eax, 0x50
ja case.0x1002f043.1
movzx eax, byte [eax + 0x1002f098]
jmp dword [eax*4 + 0x1002f088]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x1002f078
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.1004650d
push 0x80070057
call fcn.1002f460
fiadd word [ebx]
add byte [eax], al
call fcn.100464f3
nop
dec edx
lock add dl, byte [eax]
jae 0x1002f07e
add dl, byte [eax]
xor al, 2
adc byte [edx + 1049328], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x10031320
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push edi
push 0x400
push 0
push eax
mov edi, ecx
call fcn.10056430
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10041020
push dword [edi + 0x80]
push 0x6c
push str.AdbSocketConnect::WriteToClient
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__writeToClient_with_client_id___d_n
push eax
call fcn.10008e00
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100313a2
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.10041170
mov eax, esi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100313c0
push 0
sub eax, edx
push eax
push esi
push dword [edi + 0x80]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10052d76
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x448
mov eax, dword [0x100a94c0]
xor eax, esp
mov dword [esp + 0x444], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
push edi
test esi, esi
jle 0x100315c7
push 0
push esi
push edx
push dword [ecx + 0x80]
call dword [sym.imp.WS2_32.dll_send]
push 0x400
mov edi, eax
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.10056430
add esp, 0xc
mov dword [esp + 0x30], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
call fcn.10041020
push edi
push 0x89
push str.AdbSocketConnect::WriteBuffToClient
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x60]
push str._s_t__d__d___INFO____s:_d__sended_data___d_n
push eax
call fcn.10008e00
lea eax, [esp + 0x68]
add esp, 0x20
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10031590
sub eax, edx
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.10041170
mov eax, dword [esp + 0x1c]
add esp, 8
test edi, edi
jle 0x100315c7
mov ecx, dword [esp + 0x18]
add eax, edi
mov edx, dword [esp + 0x1c]
sub esi, edi
mov dword [esp + 0x14], eax
test esi, esi
jg 0x10031518
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
xor ecx, esp
call fcn.10052d76
mov esp, ebp
pop ebp
ret 8
Function at 0x100315e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push 0x400
push 0
push eax
mov esi, ecx
call fcn.10056430
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10041020
push dword [esi + 0x80]
push 0x95
push str.AdbSocketConnect::ReadFromClient
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__readFromClient_with_client_id___d_n
push eax
call fcn.10008e00
lea eax, [ebp - 0x418]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10031665
sub eax, edx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10041170
add esp, 8
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 0x80]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10052d76
mov esp, ebp
pop ebp
ret 8

Function at 0x10031eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100a94c0]
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 0x10031f9a
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10031f9a
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 0x10031f0d
cmp dword [ebp - 0x18], 0
jbe 0x10031f0d
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 0x10031f72
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 0x10031f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10031f56
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 0x10031f46
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.10052d76
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.10052d76
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.10052d76
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10031fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x10032152
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10032152
push 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x420], 0
push ecx
push eax
mov dword [ebp - 0x41c], 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x1003201e
cmp dword [ebp - 0x420], 0
jbe 0x1003201e
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
shr eax, 1
test al, 1
je 0x1003206e
lea eax, [edi + 0x188]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10032060
call ebx
cmp eax, 0x3e5
je 0x10032060
mov dword [ebp - 0x41c], 0
jmp 0x1003209a
add dword [edi + 0x138], esi
mov eax, dword [ebp - 0x41c]
jmp 0x10032092
push 0
lea eax, [ebp - 0x41c]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x41c]
add dword [edi + 0x138], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10032154
call ebx
mov esi, eax
lea eax, [ebp - 0x420]
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10056430
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10041020
push dword [ebp - 0x420]
push esi
push 0x20c
push str.CnComm::WritePort
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__GetLastError__d_dwError___d_n
push eax
call fcn.10008e00
lea ecx, [ebp - 0x418]
add esp, 0x24
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032120
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.10041170
mov eax, dword [ebp - 0x41c]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052d76
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052d76
mov esp, ebp
pop ebp
ret 8
Function at 0x100322c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x100323fa
cmp dword [esi + 0x150], 0
jne 0x100323fa
cmp dword [esi + 0x15c], 0
jne 0x100323fa
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 0x10032324
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10033d40
push 0
push 0
call fcn.1006d4b8
add esp, 0x18
mov dword [esi + 0x144], eax
test byte [esi + 4], 0x10
je 0x10032347
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x10033d80
push 0
push 0
call fcn.1006d4b8
add esp, 0x18
mov dword [esi + 0x150], eax
test byte [esi + 4], 0x20
je 0x1003236a
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x10033da0
push 0
push 0
call fcn.1006d4b8
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 0x10032394
mov eax, dword [ebp - 4]
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x144]
test eax, eax
je 0x100323cc
test cl, cl
jns 0x10032394
push 1
push eax
call edi
mov ecx, dword [esi + 4]
test cl, 0x10
je 0x100323b7
mov eax, dword [ebp - 8]
mov dword [esi + 0x154], eax
test eax, eax
je 0x100323cc
test cl, cl
jns 0x100323b7
push 1
push dword [esi + 0x150]
call edi
mov ecx, dword [esi + 4]
test cl, 0x20
je 0x100323f0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x160], eax
test eax, eax
jne 0x100323e2
push 0x1f4
mov ecx, esi
call fcn.10032410
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
test cl, cl
jns 0x100323f0
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 0x10032410
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x10032438
cmp dword [esi + 0x150], 0
jne 0x10032438
cmp dword [esi + 0x15c], 0
jne 0x10032438
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [esi + 4]
and eax, 0x208
push edi
cmp eax, 0x208
jne 0x10032464
cmp dword [esi + 0x114], 0
je 0x10032464
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call edi
cmp dword [esi + 0x114], 0
jne 0x10032457
mov eax, dword [esi + 4]
shr eax, 1
mov byte [esi + 0x13c], 0
test al, 1
je 0x1003247f
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 0x100324de
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 0x100324c7
push 0
push dword [esi + 0x144]
call ebx
test eax, eax
je 0x10032558
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 0x10032522
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 0x10032510
push 0
push dword [esi + 0x150]
call ebx
test eax, eax
je 0x10032558
push dword [esi + 0x150]
call edi
mov dword [esi + 0x150], 0
cmp dword [esi + 0x15c], 0
je 0x10032573
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 0x10032561
push 0
push dword [esi + 0x15c]
call ebx
test eax, eax
jne 0x10032561
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 0x10037940
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
mov eax, dword [0x100a94c0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.C:UsbDeamon]
mov ax, word [0x1009d33c]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
push eax
movq xmm0, qword [0x1009d334]
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.10056430
lea ecx, [ebp - 0x138]
call fcn.100437b0
push 0x400
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.10056430
add esp, 0x18
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10041020
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.10008e00
lea eax, [ebp - 0x538]
add esp, 0x20
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10037a10
sub eax, edx
push eax
lea eax, [ebp - 0x538]
push eax
call fcn.10041170
add esp, 8
call fcn.100376a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052d76
mov esp, ebp
pop ebp
ret 4
Function at 0x100410e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x1009e070
push str.C:logsesuiteDll.log
mov edi, edx
call fcn.100666bf
mov esi, eax
add esp, 8
test esi, esi
je 0x10041129
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041107
push esi
sub ecx, edx
push 1
push ecx
push edi
call fcn.1006cc06
push esi
call fcn.1006694b
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, str.file__
mov ecx, 0x100ad4b0
call fcn.100272e0
mov edx, str.C:logsesuiteDll.log
mov ecx, eax
call fcn.100272e0
mov edx, str.__not_exist__create_first_
mov ecx, eax
call fcn.100272e0
push eax
call fcn.10027580
add esp, 4
push str.C:logs
call fcn.1006e35f
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100425a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100a94c0]
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 0x1004271c
test ebx, ebx
je 0x1004271c
cmp edi, 0xffffffff
je 0x1004279a
push dword [ebp + 8]
call fcn.10042bd0
add esp, 4
cmp eax, 0xffffffff
je 0x1004279a
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.10056430
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 0x10042640
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004266d
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x1004265b
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.10055eb0
add esp, 0xc
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
cmp dword [ebp - 0x41c], 0
jg 0x1004268a
inc esi
cmp esi, 2
jl 0x100425f0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052d76
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10056430
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10041020
push ebx
push 0x18d
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.10008e00
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100426f0
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.10041170
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052d76
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10056430
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10041020
push 0x182
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.10008e00
lea ecx, [ebp - 0x418]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042781
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.10041170
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052d76
mov esp, ebp
pop ebp
ret