joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1147c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1147c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1147c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1147c06a
add dl, dl
jne 0x1147c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1147c0dc
xor eax, eax
add dl, dl
jne 0x1147c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1147c17d
add dl, dl
jne 0x1147c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1147c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1147c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1147c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1147c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1147c075
mov eax, 1
add dl, dl
jne 0x1147c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1147c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1147c0e1
sub eax, ebx
mov ebx, 1
jne 0x1147c128
mov ecx, 1
add dl, dl
jne 0x1147c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1147c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1147c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1147c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1147c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1147c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1147c136
cmp eax, 0x7d00
jae 0x1147c16d
cmp eax, 0x500
jb 0x1147c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1147c075
cmp eax, 0x7f
ja 0x1147c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1147c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1147c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1147c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403475
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 4], 0xffffffff
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0x78
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jne 0x4034da
xor eax, eax
jmp 0x4036aa
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
je 0x403532
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x403539
xor eax, eax
jmp 0x4036aa
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0xc], ecx
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
and dword [ebp - 0x14], 0
jmp 0x4035b0
mov eax, dword [ebp - 8]
jmp 0x41c484
leave
ret

Function at 0x40388f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4038b8
cmp al, 0x22
je 0x4038b0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4038a4
cmp byte [esi], 0x22
jne 0x4038c2
inc esi
jmp 0x4038c2
cmp al, 0x20
jle 0x4038c2
inc esi
cmp byte [esi], 0x20
jg 0x4038bc
jmp 0x41b25e

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1002df80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e144
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x1002dfaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002dfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002dfa0
mov eax, 1
add ebx, ebx
jne 0x1002dfc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002dfb8
jne 0x1002dfd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002dfb8
xor ecx, ecx
sub eax, 3
jb 0x1002dfe8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002e05a
mov ebp, eax
add ebx, ebx
jne 0x1002dff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002e000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002e024
inc ecx
add ebx, ebx
jne 0x1002e010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002e005
jne 0x1002e021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e005
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002e044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002e035
jmp 0x1002dfa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002e044
add edi, ecx
jmp 0x1002dfa6
pop esi
mov edi, esi
mov ecx, 0xc42
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002e062
cmp byte [edi], 0x11
jne 0x1002e062
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 0x1002e067
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x1002e0d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e49c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002e094
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e4a0]
or eax, eax
je 0x1002e0d0
mov dword [ebx], eax
add ebx, 4
jmp 0x1002e0b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e107
cmp al, 0xef
ja 0x1002e0fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002e0dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e0e9
mov ebp, dword [esi + 0x2e4a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x1002e13b
sub esp, 0xffffff80
jmp 0x10013194

Function at 0x805e6c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805e72
pop ebp
sub ebp, 6
sub ebp, 0x405e6c
jmp 0x805ed0
jmp 0x805ed9
mov eax, 0x405e6c
add eax, ebp
add eax, 0x93
mov ecx, 0x633
mov edx, 0x115b3ca0
xor byte [eax], dl
inc eax
dec ecx
jne 0x805ef0
jmp 0x805f03
retf 0xc8e0
Function at 0x59a171
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ac86c]
jne 0x59a17b
repz ret
jmp fcn.0059bd71

Function at 0x59cb17
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00599e5f
and dword [ebp - 4], 0
cmp dword [0x5ae4c0], 0
mov ebx, eax
jne 0x59cbc8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x59cc79
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x59cc79
push eax
call fcn.00599ded
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5ae4c0], eax
call esi
push eax
call fcn.00599ded
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5ae4c4], eax
call esi
push eax
call fcn.00599ded
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5ae4c8], eax
call esi
push eax
call fcn.00599ded
pop ecx
mov dword [0x5ae4d0], eax
test eax, eax
je 0x59cbc8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00599ded
pop ecx
mov dword [0x5ae4cc], eax
mov eax, dword [0x5ae4cc]
cmp eax, ebx
je 0x59cc20
cmp dword [0x5ae4d0], ebx
je 0x59cc20
push eax
call fcn.00599e68
push dword [0x5ae4d0]
mov esi, eax
call fcn.00599e68
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x59cc20
test edi, edi
je 0x59cc20
call esi
test eax, eax
je 0x59cc17
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x59cc17
test byte [ebp - 0xc], 1
jne 0x59cc20
or dword [ebp + 0x10], 0x200000
jmp 0x59cc59
mov eax, dword [0x5ae4c4]
cmp eax, ebx
je 0x59cc59
push eax
call fcn.00599e68
pop ecx
test eax, eax
je 0x59cc59
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x59cc59
mov eax, dword [0x5ae4c8]
cmp eax, ebx
je 0x59cc59
push eax
call fcn.00599e68
pop ecx
test eax, eax
je 0x59cc59
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5ae4c0]
call fcn.00599e68
pop ecx
test eax, eax
je 0x59cc79
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x59cc7b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59f250
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x5ac2e4], 0x1b77
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [0x5ac2e4], 0x2357
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [0x5ac2e4], 0x2042
mov dword [ebp - 4], 0
jmp 0x59f2e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x59f2e8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2]
cmp eax, 0
jne 0x59f2f3
jmp 0x59f2f5
jmp 0x59f2db
mov eax, dword [0x5ac2e4]
sub eax, 0x2531
mov dword [0x5ac2e8], eax
mov dword [ebp - 0xc], 1
jmp 0x59f2e0
jmp 0x59f39c
jmp 0x59f3a3
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret
cmp dword [ebp - 4], 0x104
jl 0x59f2a9
jmp 0x59f2f5
jmp 0x59f29c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2 - 0x1a]
cmp eax, 0x6c
jne 0x59f3a5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2 - 0x18]
cmp eax, 0x6f
jne 0x59f3a3
mov dword [0x5ac2e8], 0x2099
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x59f2db
mov dword [0x5ac2e4], 0xe2e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x59f2bc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x59f39e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x59f39c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2 - 0xe]
cmp eax, 0x6c
je 0x59f2be
jmp 0x59f2d6
jmp 0x59f39e
jmp 0x59f2bc
jmp 0x59f3a5
mov dword [ebp - 0xc], 0
jmp 0x59f2e0

Function at 0x59f540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.0059f540]
mov dword [ebp - 8], eax
jmp 0x59f580
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
je 0x59f578
jmp 0x59f58f
mov dword [0x5ac2e8], 0x1b8b
mov dword [ebp - 4], 0
jmp 0x59f5a9
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x59f5a9
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x59f551
jmp 0x59f591
jmp 0x59f591
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov al, 1
test al, 1
jne 0x59f580
jmp 0x59f565
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret
Function at 0x402ad0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x410510
mov dword [ebp - 4], edx
mov ebx, ecx
call dword [sym.imp.pthreadVC3.dll_pthread_mutex_lock]
mov edi, dword [0x410490]
add esp, 4
xor eax, eax
test edi, edi
jle 0x402b10
mov ecx, dword [0x41048c]
nop dword [eax]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x402b0b
cmp dword [esi], ebx
je 0x402b35
inc eax
cmp eax, edi
jl 0x402b00
push 0x410510
call dword [sym.imp.pthreadVC3.dll_pthread_mutex_unlock]
add esp, 4
push ebx
push str.client_process:_fd__d_not_found_in_client_list
push 4
call fcn.004052a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x410510
call dword [sym.imp.pthreadVC3.dll_pthread_mutex_unlock]
add esp, 4
cmp dword [esi + 0x28], 4
jne 0x402b6c
push str.client_process_in_CONNECTED_state
push 6
call fcn.004052a0
push dword [ebp - 4]
mov ecx, dword [esi + 0x24]
mov edx, esi
call fcn.00403ec0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, 0x300
je 0x402b84
mov ecx, esi
call fcn.004029a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 0x10
je 0x402b2e
mov eax, dword [esi + 8]
test eax, eax
jne 0x402bac
push dword [esi]
push str.Client__d_OUT_process_but_nothing_to_send_
push 2
call fcn.004052a0
add esp, 0xc
and word [esi + 0x1c], 0xffef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jg 0x402bf2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push edi
push dword [esi]
push str.Sending_to_client_fd__d_failed:__d__s
push 1
call fcn.004052a0
add esp, 0x14
mov ecx, esi
call fcn.00401100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp edi, eax
jne 0x402c49
and word [esi + 0x1c], 0xffef
cmp dword [esi + 0x28], 3
mov dword [esi + 8], 0
jne 0x402b2e
push dword [esi]
push str.Client__d_switching_to_CONNECTED_state
push 5
call fcn.004052a0
mov ax, word [esi + 0x1e]
add esp, 0xc
mov dword [esi + 0x28], 4
mov word [esi + 0x1c], ax
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
sub eax, edi
push eax
mov dword [esi + 8], eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x410498]
push ebx
push esi
push edi
xor edi, edi
test eax, eax
jne 0x403043
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], edi
push eax
push 0x23
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x402fd8
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x402fd8
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402f07
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x22c], esi
test esi, esi
jle 0x402fca
lea eax, [esi + 1]
lea eax, [eax + eax*2]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x220], 0x800
xor edx, edx
mov dword [ebp - 0x224], 0x80
mov edi, eax
xor ebx, ebx
nop
movzx ecx, word [ebp + ebx*2 - 0x218]
lea esi, [edx + edi]
inc ebx
mov dword [ebp - 0x228], esi
inc edx
mov eax, ecx
cmp cx, word [ebp - 0x220]
jb 0x402f94
mov ax, cx
shr ax, 0xc
sub al, 0x20
mov byte [esi], al
mov eax, ecx
shr eax, 6
and cl, 0x3f
and al, 0x3f
add cl, 0x80
add al, 0x80
mov byte [edx + edi], al
mov byte [edx + edi + 1], cl
add edx, 2
jmp 0x402fbc
cmp cx, word [ebp - 0x224]
jb 0x402fb2
shr ecx, 6
and al, 0x3f
and cl, 0x1f
add al, 0x80
sub cl, 0x40
mov byte [esi], cl
mov byte [edx + edi], al
inc edx
jmp 0x402fbc
mov ecx, dword [ebp - 0x228]
and al, 0x7f
mov byte [ecx], al
cmp ebx, dword [ebp - 0x22c]
jl 0x402f50
mov byte [edx + edi], 0
jmp 0x402fcc
xor edi, edi
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
push str.AppleLockdown
push 0x40ad30
push edi
call fcn.00408550
mov edx, eax
add esp, 0x10
mov dword [0x410498], edx
test edx, edx
je 0x40301f
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403000
sub ecx, esi
lea eax, [ecx - 1]
test eax, eax
jle 0x40301f
cmp byte [edx + eax], 0x5c
jne 0x40301f
mov byte [edx + eax], 0
dec eax
test eax, eax
jg 0x403010
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [0x410498]
push str.Initialized_config_dir_to__s
push 5
call fcn.004052a0
mov eax, dword [0x410498]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408942
mov esp, ebp
pop ebp
ret
Function at 0x403060
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x40308c
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408942
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
je 0x4030f1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x11
je 0x4030f1
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
push 0
mov edi, eax
lea eax, [ebp - 0x404]
push 0
push eax
push 0
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath]
mov edx, 0x1ed
lea ecx, [ebp - 0x404]
call fcn.00403060
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408942
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00408942
mov esp, ebp
pop ebp
ret
Function at 0x403ec0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x410500
mov ebx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.pthreadVC3.dll_pthread_mutex_lock]
mov edi, dword [0x4104a0]
add esp, 4
xor esi, esi
xor eax, eax
test edi, edi
jle 0x403f37
mov edx, dword [0x41049c]
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x403f05
mov edi, dword [ebp - 4]
cmp dword [ecx + 4], edi
mov edi, dword [0x4104a0]
je 0x403f1a
inc eax
cmp eax, edi
jl 0x403ef0
push 0x410500
call dword [sym.imp.pthreadVC3.dll_pthread_mutex_unlock]
add esp, 4
jmp 0x403f49
mov edx, dword [ecx + 0x14]
xor eax, eax
test edx, edx
jle 0x403f37
mov edi, dword [ecx + 0x10]
mov ecx, dword [edi + eax*4]
test ecx, ecx
je 0x403f32
cmp dword [ecx + 4], ebx
je 0x403f63
inc eax
cmp eax, edx
jl 0x403f26
push 0x410500
call dword [sym.imp.pthreadVC3.dll_pthread_mutex_unlock]
add esp, 4
test esi, esi
jne 0x403f67
push ebx
push dword [ebp - 4]
push str.Could_not_find_connection_for_device__d_client__p
push 2
call fcn.004052a0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, ecx
jmp 0x403f37
mov ebx, dword [ebp + 8]
movsx eax, bx
push eax
push str.device_client_process___d_
push 6
call fcn.004052a0
add esp, 0xc
test bl, 0x10
je 0x403fe2
mov eax, dword [esi + 0x40]
test eax, eax
je 0x403fe2
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
push eax
call fcn.00401050
add esp, 4
test eax, eax
jg 0x403fba
push eax
push str.error_writing_to_client___d_
push 5
call fcn.004052a0
add esp, 0xc
mov ecx, esi
call fcn.00403930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x14], eax
mov edx, dword [esi + 0x40]
cmp eax, edx
jne 0x403fcd
mov dword [esi + 0x40], 0
jmp 0x403fe2
mov ecx, dword [esi + 0x3c]
sub edx, eax
push edx
add eax, ecx
mov dword [esi + 0x40], edx
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
test ebx, 0x300
je 0x40407a
mov edi, dword [esi + 0x34]
test edi, edi
je 0x40407a
mov ebx, dword [esi + 4]
mov eax, dword [esi + 0x48]
push edi
push eax
push dword [ebx]
mov dword [ebp - 4], eax
push str.client_read_fd__d_buf__p_len__d
push 6
call fcn.004052a0
add esp, 0x14
cmp dword [ebx + 0x28], 4
je 0x40403a
push dword [ebx]
push str.Attempted_to_read_from_client__d_not_in_CONNECTED_state
push 1
call fcn.004052a0
add esp, 0xc
or edi, 0xffffffff
push edi
push str.error_reading_from_client___d_
jmp 0x403fa2
push 0
push edi
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jg 0x40405f
jns 0x403fac
push edi
push str.error_reading_from_client___d_
jmp 0x403fa2
push edi
push dword [esi + 0x48]
mov dl, 0x10
mov ecx, esi
call fcn.00403800
add esp, 8
test eax, eax
js 0x403fac
add dword [esi + 0x10], edi
mov ecx, esi
call fcn.00403de0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret