joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0440
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x89000]
push edi
jmp 0x4e045a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e0461
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0450
mov eax, 1
add ebx, ebx
jne 0x4e0473
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e0484
jne 0x4e04a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e04a3
dec eax
add ebx, ebx
jne 0x4e0490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e0468
add ebx, ebx
jne 0x4e049f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e04f5
xor ecx, ecx
sub eax, 3
jb 0x4e04bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e052a
sar eax, 1
mov ebp, eax
jmp 0x4e04c6
add ebx, ebx
jne 0x4e04c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0494
inc ecx
add ebx, ebx
jne 0x4e04d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0494
add ebx, ebx
jne 0x4e04e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e04d6
jne 0x4e04f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e04d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e0514
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e0506
jmp 0x4e0456
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e0514
add edi, ecx
jmp 0x4e0456
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e0532
cmp byte [edi], 0x11
jne 0x4e0532
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e0537
lea edi, [esi + 0xd9000]
mov eax, dword [edi]
or eax, eax
je 0x4e05af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe7448]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe75ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e0564
mov ecx, edi
jns 0x4e0593
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe75f4]
or eax, eax
je 0x4e05a9
mov dword [ebx], eax
add ebx, 4
jmp 0x4e0581
call dword [esi + 0xe75f0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e05e0
cmp al, 0xef
ja 0x4e05d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e05b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e05c2
mov ebp, dword [esi + 0xe75f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e0614
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x10029cf0
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 0x10029d19
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10029d2f
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 0x10029d26
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10029d62
nop
cmp esi, ecx
jae 0x10029d26
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10029d50
cmp esi, ecx
jae 0x10029d26
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10029e10
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.10040746
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10029f00
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 0x10029f00
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029f00
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10029f00
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10029e94
cmp esi, ecx
jae 0x10029f00
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10029e82
cmp esi, ecx
jae 0x10029f00
cmp word [esi], 0
je 0x10029f00
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 0x10029ebc
push edi
mov ecx, ebx
call fcn.1002a280
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
inc esi
add dl, byte [ecx + 0x50]
push edi
push dword [ebx]
call fcn.100639fc
add esp, 0x10
cmp eax, 0x50
ja case.0x10029edb.1
movzx eax, byte [eax + 0x10029f30]
jmp dword [eax*4 + 0x10029f20]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x10029f10
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.1004057f
push 0x80070057
call fcn.1002a520
call fcn.10040565
nop
loop 0x10029ec0
add dl, byte [eax]
or ebx, dword [edi - 0x60e5effe]
add dl, byte [eax]
sbb bl, byte [edi + 0x3001002]
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 0x10029f90
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 0x1002a08d
test eax, 0xffff0000
jne 0x1002a08d
push esi
push edi
movzx edi, ax
push edi
call fcn.10040746
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x1002a089
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 0x1002a089
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002a089
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1002a089
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1002a029
cmp esi, ecx
jae 0x1002a089
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1002a017
cmp esi, ecx
jae 0x1002a089
cmp word [esi], 0
je 0x1002a089
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 0x1002a051
push edi
mov ecx, ebx
call fcn.1002a280
add al, byte [eax]
add byte [edi], cl
mov bh, 0xe
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.100639fc
add esp, 0x10
cmp eax, 0x50
ja case.0x1002a070.1
movzx eax, byte [eax + 0x1002a0bc]
jmp dword [eax*4 + 0x1002a0ac]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x1002a0a0
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.10040565
call fcn.1004057f
push 0x80070057
call fcn.1002a520
nop
ja 0x1002a04e
add dl, byte [eax]
wait
mov al, byte [2694189058]
add dl, byte [eax]
xchg esi, eax
mov al, byte [50335746]
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 0x1002c3d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a049c]
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.10050650
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003b0a0
push dword [edi + 0x80]
push 0x69
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.10007a40
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c452
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.1003b1f0
mov eax, esi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c470
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.1004ccd9
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100a049c]
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.10050650
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003b0a0
push dword [esi + 0x80]
push 0x81
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.10007a40
lea eax, [ebp - 0x418]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c615
sub eax, edx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.1003b1f0
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.1004ccd9
mov esp, ebp
pop ebp
ret 8
Function at 0x1002cc40
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 0x1002cd2a
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1002cd2a
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 0x1002cc9d
cmp dword [ebp - 0x18], 0
jbe 0x1002cc9d
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 0x1002cd02
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 0x1002cce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002cce6
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 0x1002ccd6
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.1004ccd9
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.1004ccd9
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.1004ccd9
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002cd40
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 0x1002cdee
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1002cdee
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 0x1002cd88
cmp dword [ebp - 4], 0
jbe 0x1002cd88
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 0x1002cdcc
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 0x1002cdbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002cdee
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 0x1002cf60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x1002d09a
cmp dword [esi + 0x150], 0
jne 0x1002d09a
cmp dword [esi + 0x15c], 0
jne 0x1002d09a
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 0x1002cfc4
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1002e690
push 0
push 0
call fcn.10064253
add esp, 0x18
mov dword [esi + 0x144], eax
test byte [esi + 4], 0x10
je 0x1002cfe7
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x1002e6d0
push 0
push 0
call fcn.10064253
add esp, 0x18
mov dword [esi + 0x150], eax
test byte [esi + 4], 0x20
je 0x1002d00a
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x1002e6f0
push 0
push 0
call fcn.10064253
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 0x1002d034
mov eax, dword [ebp - 4]
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x144]
test eax, eax
je 0x1002d06c
test cl, cl
jns 0x1002d034
push 1
push eax
call edi
mov ecx, dword [esi + 4]
test cl, 0x10
je 0x1002d057
mov eax, dword [ebp - 8]
mov dword [esi + 0x154], eax
test eax, eax
je 0x1002d06c
test cl, cl
jns 0x1002d057
push 1
push dword [esi + 0x150]
call edi
mov ecx, dword [esi + 4]
test cl, 0x20
je 0x1002d090
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x160], eax
test eax, eax
jne 0x1002d082
push 0x1f4
mov ecx, esi
call fcn.1002d0b0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
test cl, cl
jns 0x1002d090
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 0x1002d0b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x144], 0
jne 0x1002d0d8
cmp dword [esi + 0x150], 0
jne 0x1002d0d8
cmp dword [esi + 0x15c], 0
jne 0x1002d0d8
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [esi + 4]
and eax, 0x208
push edi
cmp eax, 0x208
jne 0x1002d104
cmp dword [esi + 0x114], 0
je 0x1002d104
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call edi
cmp dword [esi + 0x114], 0
jne 0x1002d0f7
mov eax, dword [esi + 4]
shr eax, 1
mov byte [esi + 0x13c], 0
test al, 1
je 0x1002d11f
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 0x1002d17e
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 0x1002d167
push 0
push dword [esi + 0x144]
call ebx
test eax, eax
je 0x1002d1f8
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 0x1002d1c2
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 0x1002d1b0
push 0
push dword [esi + 0x150]
call ebx
test eax, eax
je 0x1002d1f8
push dword [esi + 0x150]
call edi
mov dword [esi + 0x150], 0
cmp dword [esi + 0x15c], 0
je 0x1002d213
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 0x1002d201
push 0
push dword [esi + 0x15c]
call ebx
test eax, eax
jne 0x1002d201
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 0x1002d800
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 0x1002d8ce
test esi, esi
je 0x1002d841
lea edi, [esi + 0x14]
push edi
mov dword [ebp - 0x408], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x1002d84b
mov dword [ebp - 0x408], 0x14
cmp dword [ebx + 0x114], 0
jne 0x1002d858
xor edi, edi
jmp 0x1002d8a9
mov ecx, dword [ebx + 0x10c]
test ecx, ecx
je 0x1002d883
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 0x400
jae 0x1002d875
mov edi, dword [ecx + 4]
sub edi, dword [ecx]
jmp 0x1002d885
mov eax, dword [ecx]
mov edi, 0x400
add eax, 0x10
add eax, ecx
jmp 0x1002d894
xor edi, edi
test ecx, ecx
je 0x1002d892
mov eax, dword [ecx]
add eax, 0x10
add eax, ecx
jmp 0x1002d894
xor eax, eax
push edi
push eax
mov ecx, ebx
call fcn.1002cd40
push edi
push 0
mov ecx, esi
call fcn.1002d310
mov edi, eax
test esi, esi
je 0x1002d8b9
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.1004ccd9
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.1002d310
mov esi, eax
push edi
mov dword [ebp - 0x410], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1002d9d3
xor edi, edi
mov eax, dword [ebx + 8]
sub esi, edi
cmp eax, 0xffffffff
je 0x1002d9c1
test esi, esi
je 0x1002d9c1
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 0x1002d94f
cmp dword [ebp - 0x40c], 0
jbe 0x1002d94f
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 0x1002d999
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 0x1002d98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002d9c1
add dword [ebx + 0x138], esi
mov eax, dword [ebp - 0x408]
jmp 0x1002d9c3
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 0x1002d9c3
xor eax, eax
mov esi, dword [ebp - 0x410]
add edi, eax
cmp edi, esi
jb 0x1002d907
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ccd9
mov esp, ebp
pop ebp
ret 4
Function at 0x10031d70
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 [0x100957dc]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
push eax
movq xmm0, qword [0x100957d4]
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.10050650
lea ecx, [ebp - 0x138]
call fcn.1003d870
push 0x400
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.10050650
add esp, 0x18
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003b0a0
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 0x10031e40
sub eax, edx
push eax
lea eax, [ebp - 0x538]
push eax
call fcn.1003b1f0
add esp, 8
call fcn.10031ad0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ccd9
mov esp, ebp
pop ebp
ret 4
Function at 0x1003b160
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x10096510
push 0x1008ac40
mov edi, edx
call fcn.1005e6d9
mov esi, eax
add esp, 8
test esi, esi
je 0x1003b1a9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b187
push esi
sub ecx, edx
push 1
push ecx
push edi
call fcn.10063999
push esi
call fcn.1005e8a8
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, str.file__
mov ecx, 0x100a4398
call fcn.10023f80
mov edx, 0x1008ac40
mov ecx, eax
call fcn.10023f80
mov edx, str.__not_exist__create_first_
mov ecx, eax
call fcn.10023f80
push eax
call fcn.10024220
add esp, 4
push str.C:logs
call fcn.100654eb
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret