joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103a6704
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103a670e
pushal
call 0x103a6714
pop ebp
sub ebp, 0x10
sub ebp, 0x3a6704
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a6738
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103a6741
mov eax, 0x3a6704
add eax, ebp
add eax, 0x63
mov ecx, 0x5e6
mov edx, 0x9403ac6d
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a6758
jmp 0x103a676b
out 0xa0, al
out 0xe4, al
push ecx
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
in al, dx
lodsb al, byte [esi]
xchg ebp, eax
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
outsb dx, byte [esi]
mov al, byte [0x6d6d65d5]
insd dword es:[edi], dx
xlatb
inc ebp
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
lcall 0x61ec, 0xe6a56e8f
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
outsb dx, byte [esi]
test al, 0xe0
or dword [ecx - 0x6f], ecx
in al, 0x69
dec ecx
cmp eax, 0x63dc6505
insd dword es:[edi], dx
add eax, 0x6d46d897
insb byte es:[edi], dx
inc ecx
dec ecx
add eax, 0xb6a3eafb
test dword [eax + 0x6d], ebp
insd dword es:[edi], dx
insd dword es:[edi], dx
test byte [ebp + 0x6d], bl
insd dword es:[edi], dx
insd dword es:[edi], dx
loopne 0x103a67c0
dec ecx
xchg ecx, eax
in al, 0x41
dec ecx
loopne 0x103a67bf
dec ecx
insd dword es:[edi], dx
out 0xe8, al
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
out 0xf8, al
popal
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
out 0xe0, al
jge 0x103a683d
insd dword es:[edi], dx
insd dword es:[edi], dx
lodsb al, byte [esi]
test byte [edi + 0x5c], ch
outsd dx, dword [esi]
out dx, al
scasd eax, dword es:[edi]
imul esp, dword [edx], 0x929299e8
xchg edx, eax
xor byte [edi - 0x1e19929f], ch
dec ecx
imul ebp, dword [ebp + 0x6d], 0xdc65056d
arpl word [ebp + 5], bp
xchg edi, eax
fadd dword [esi + 0x6d]
insb byte es:[edi], dx
inc ecx
dec ecx
cmp al, 0x85
push 0x846d6d6d
pop eax
outsd dx, dword [esi]
insd dword es:[edi], dx
insd dword es:[edi], dx
cmp al, ah
add dword [ecx + 0x6d], ecx
xchg edx, eax
sbb byte [ecx - 0x6e], ah
sbb byte [ebp - 0x7b], ah
or ebp, dword [ebp + 0x6d]
insd dword es:[edi], dx
out 0xd0, al
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
pop esi
movsb byte es:[edi], byte [esi]
pop esi
mov edi, 0x256885ee
invalid
test byte [edx - 0x17], ah
jl 0x103a68af
insd dword es:[edi], dx
insd dword es:[edi], dx
or ebp, esp
xchg esi, eax
xchg edx, eax
dec eax
invalid
xchg edx, eax
xchg edx, eax
outsd dx, dword [esi]
mov edi, 0x6d68e862
insd dword es:[edi], dx
insd dword es:[edi], dx
out 0x7b, eax
sub edi, dword [edi - 0x41]
invalid
Function at 0x10029dc0
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 0x10029de9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10029dff
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 0x10029df6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10029e32
nop
cmp esi, ecx
jae 0x10029df6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10029e20
cmp esi, ecx
jae 0x10029df6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10029ee0
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.10040876
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10029fd0
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 0x10029fd0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029fd0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10029fd0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10029f64
cmp esi, ecx
jae 0x10029fd0
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10029f52
cmp esi, ecx
jae 0x10029fd0
cmp word [esi], 0
je 0x10029fd0
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 0x10029f8c
push edi
mov ecx, ebx
call fcn.1002a350
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.10063b2c
add esp, 0x10
cmp eax, 0x50
ja case.0x10029fab.1
movzx eax, byte [eax + 0x1002a000]
jmp dword [eax*4 + 0x10029ff0]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x10029fe0
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.100406af
push 0x80070057
call fcn.1002a5f0
call fcn.10040695
nop
mov dl, 0x9f
add dl, byte [eax]
fistp dword [edi - 0x6015effe]
add dl, byte [eax]
ljmp 0x303
Function at 0x1002a060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
xor cl, cl
test eax, eax
je 0x1002a15d
test eax, 0xffff0000
jne 0x1002a15d
push esi
push edi
movzx edi, ax
push edi
call fcn.10040876
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x1002a159
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x1002a159
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002a159
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1002a159
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1002a0f9
cmp esi, ecx
jae 0x1002a159
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1002a0e7
cmp esi, ecx
jae 0x1002a159
cmp word [esi], 0
je 0x1002a159
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 0x1002a121
push edi
mov ecx, ebx
call fcn.1002a350
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.10063b2c
add esp, 0x10
cmp eax, 0x50
ja case.0x1002a140.1
movzx eax, byte [eax + 0x1002a18c]
jmp dword [eax*4 + 0x1002a17c]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x1002a170
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop edi
mov cl, 1
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10040695
call fcn.100406af
push 0x80070057
call fcn.1002a5f0
nop
inc edi
mov eax, dword [-1586819070]
add dl, byte [eax]
mov ax, word [0xa1661002]
add dl, byte [eax]
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [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 [ebx]
add ah, cl
int3
Function at 0x1002c4d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a249c]
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.10050780
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003b200
push dword [edi + 0x80]
push 0x67
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.10007a20
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c552
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.1003b350
mov eax, esi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c570
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.1004ce09
mov esp, ebp
pop ebp
ret 4

Function at 0x1002c690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a249c]
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.10050780
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003b200
push dword [esi + 0x80]
push 0x7f
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.10007a20
lea eax, [ebp - 0x418]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c712
sub eax, edx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.1003b350
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.1004ce09
mov esp, ebp
pop ebp
ret 8
Function at 0x1002cd10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100a249c]
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 0x1002cdfa
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1002cdfa
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 0x1002cd6d
cmp dword [ebp - 0x18], 0
jbe 0x1002cd6d
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 0x1002cdd2
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 0x1002cdb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002cdb6
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 0x1002cda6
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.1004ce09
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.1004ce09
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.1004ce09
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002ce80
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 0x1002cf2e
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1002cf2e
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 0x1002cec8
cmp dword [ebp - 4], 0
jbe 0x1002cec8
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 0x1002cf0c
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 0x1002cefb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002cf2e
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 0x1002d090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x1002d1ca
cmp dword [esi + 0x150], 0
jne 0x1002d1ca
cmp dword [esi + 0x15c], 0
jne 0x1002d1ca
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 0x1002d0f4
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1002e7c0
push 0
push 0
call fcn.10064141
add esp, 0x18
mov dword [esi + 0x144], eax
test byte [esi + 4], 0x10
je 0x1002d117
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x1002e800
push 0
push 0
call fcn.10064141
add esp, 0x18
mov dword [esi + 0x150], eax
test byte [esi + 4], 0x20
je 0x1002d13a
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x1002e820
push 0
push 0
call fcn.10064141
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 0x1002d164
mov eax, dword [ebp - 4]
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x144]
test eax, eax
je 0x1002d19c
test cl, cl
jns 0x1002d164
push 1
push eax
call edi
mov ecx, dword [esi + 4]
test cl, 0x10
je 0x1002d187
mov eax, dword [ebp - 8]
mov dword [esi + 0x154], eax
test eax, eax
je 0x1002d19c
test cl, cl
jns 0x1002d187
push 1
push dword [esi + 0x150]
call edi
mov ecx, dword [esi + 4]
test cl, 0x20
je 0x1002d1c0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x160], eax
test eax, eax
jne 0x1002d1b2
push 0x1f4
mov ecx, esi
call fcn.1002d1e0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
test cl, cl
jns 0x1002d1c0
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 0x1002d1e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x1002d208
cmp dword [esi + 0x150], 0
jne 0x1002d208
cmp dword [esi + 0x15c], 0
jne 0x1002d208
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [esi + 4]
and eax, 0x208
push edi
cmp eax, 0x208
jne 0x1002d234
cmp dword [esi + 0x114], 0
je 0x1002d234
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call edi
cmp dword [esi + 0x114], 0
jne 0x1002d227
mov eax, dword [esi + 4]
shr eax, 1
mov byte [esi + 0x13c], 0
test al, 1
je 0x1002d24f
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 0x1002d2ae
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 0x1002d297
push 0
push dword [esi + 0x144]
call ebx
test eax, eax
je 0x1002d328
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 0x1002d2f2
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 0x1002d2e0
push 0
push dword [esi + 0x150]
call ebx
test eax, eax
je 0x1002d328
push dword [esi + 0x150]
call edi
mov dword [esi + 0x150], 0
cmp dword [esi + 0x15c], 0
je 0x1002d343
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 0x1002d331
push 0
push dword [esi + 0x15c]
call ebx
test eax, eax
jne 0x1002d331
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 0x1002d930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x100a249c]
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 0x1002d9fe
test esi, esi
je 0x1002d971
lea edi, [esi + 0x14]
push edi
mov dword [ebp - 0x408], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x1002d97b
mov dword [ebp - 0x408], 0x14
cmp dword [ebx + 0x114], 0
jne 0x1002d988
xor edi, edi
jmp 0x1002d9d9
mov ecx, dword [ebx + 0x10c]
test ecx, ecx
je 0x1002d9b3
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 0x400
jae 0x1002d9a5
mov edi, dword [ecx + 4]
sub edi, dword [ecx]
jmp 0x1002d9b5
mov eax, dword [ecx]
mov edi, 0x400
add eax, 0x10
add eax, ecx
jmp 0x1002d9c4
xor edi, edi
test ecx, ecx
je 0x1002d9c2
mov eax, dword [ecx]
add eax, 0x10
add eax, ecx
jmp 0x1002d9c4
xor eax, eax
push edi
push eax
mov ecx, ebx
call fcn.1002ce80
push edi
push 0
mov ecx, esi
call fcn.1002d440
mov edi, eax
test esi, esi
je 0x1002d9e9
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.1004ce09
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.1002d440
mov esi, eax
push edi
mov dword [ebp - 0x410], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1002db03
xor edi, edi
mov eax, dword [ebx + 8]
sub esi, edi
cmp eax, 0xffffffff
je 0x1002daf1
test esi, esi
je 0x1002daf1
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 0x1002da7f
cmp dword [ebp - 0x40c], 0
jbe 0x1002da7f
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 0x1002dac9
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 0x1002dabb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002daf1
add dword [ebx + 0x138], esi
mov eax, dword [ebp - 0x408]
jmp 0x1002daf3
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 0x1002daf3
xor eax, eax
mov esi, dword [ebp - 0x410]
add edi, eax
cmp edi, esi
jb 0x1002da37
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ce09
mov esp, ebp
pop ebp
ret 4
Function at 0x10031f60
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
mov eax, dword [0x100a249c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.C:UsbDeamon]
mov ax, word [0x100967d4]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
push eax
movq xmm0, qword [0x100967cc]
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.10050780
lea ecx, [ebp - 0x138]
call fcn.1003d9a0
push 0x400
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.10050780
add esp, 0x18
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003b200
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.10007a20
lea eax, [ebp - 0x538]
add esp, 0x20
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10032030
sub eax, edx
push eax
lea eax, [ebp - 0x538]
push eax
call fcn.1003b350
add esp, 8
call fcn.10031cc0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ce09
mov esp, ebp
pop ebp
ret 4
Function at 0x1003b2c0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x100974d0
push 0x1008bc40
mov edi, edx
call fcn.1005e809
mov esi, eax
add esp, 8
test esi, esi
je 0x1003b309
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b2e7
push esi
sub ecx, edx
push 1
push ecx
push edi
call fcn.10063ac9
push esi
call fcn.1005e9d8
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, str.file__
mov ecx, 0x100a6398
call fcn.100241d0
mov edx, 0x1008bc40
mov ecx, eax
call fcn.100241d0
mov edx, str.__not_exist__create_first_
mov ecx, eax
call fcn.100241d0
push eax
call fcn.10024470
add esp, 4
push str.C:logs
call fcn.100653cb
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret