joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067adf
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100801a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x168
call fcn.10042cf2
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 1
call fcn.100054e0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], eax
mov dword [edi + 0x118], eax
mov dword [edi + 0x11c], eax
mov dword [edi + 0x120], eax
mov dword [edi + 0x124], 0xf
mov byte [edi + 0x110], al
mov dword [edi + 0x128], eax
mov dword [edi + 0x12c], eax
mov dword [edi + 0x130], eax
push eax
mov dword [edi + 0x134], eax
push eax
mov dword [edi + 0x138], eax
mov dword [edi + 0x13c], 0xf
push eax
mov byte [edi + 0x128], al
call esi
push 0
push 0
push 0
mov dword [edi + 0x140], eax
call esi
push 0
push 0
push 0
mov dword [edi + 0x144], eax
call esi
push 0
push 0
push 0
mov dword [edi + 0x148], eax
call esi
push 0
push 0
push 0
mov dword [edi + 0x14c], eax
call esi
push 0
push 0
push 0
mov dword [edi + 0x150], eax
call esi
push 0
push 0
push 0
mov dword [edi + 0x154], eax
call esi
push 0
push 0
push 0
mov dword [edi + 0x158], eax
call esi
push 0
push 0
push 0
mov dword [edi + 0x15c], eax
call esi
mov dword [edi + 0x160], eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
fld1
fstp qword [edi + 0x58]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov word [edi + 0x51], 0
mov byte [edi + 0x53], 0
mov byte [edi + 0x50], 0
mov dword [edi + 0xc], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0x10
mov dword [ebx + 4], edi
call fcn.10042cf2
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [eax + 0xc], 0
mov dword [ebx], eax
mov eax, ebx
mov word [ebx + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002220
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067c5d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100801a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
push 0x3bec
mov dword [ebp - 0x30], 1
call fcn.10042d35
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov ecx, esi
mov word [eax + 4], 0x12b4
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x34], 6
mov dword [ebp - 0x38], 2
call fcn.10005410
cmp dword [eax + 0x14], 0x10
jb 0x10002294
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x38]
call fcn.100221d0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100022d1
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100022c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002348
push ecx
push edx
call fcn.10042d22
add esp, 8
cmp dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0x2c]
mov ax, word [ebp - 0x38]
jne 0x100022e4
mov word [ecx + 2], ax
jmp 0x100022e7
mov word [ecx], ax
push 0xffffffffffffffff
push dword [edi + 0x14c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [edi + 0x10]
lea ecx, [ebp - 0x38]
call fcn.1000c020
push dword [edi + 0x14c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [ebp - 0x2c]
push 0
movzx eax, word [esi]
add eax, 2
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
push esi
call fcn.10042d30
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10042ce4
mov esp, ebp
pop ebp
ret 8
call fcn.1004fd3c
int3
Function at 0x100078f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068150
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100801a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10042cf2
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100422ac
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000bbd0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.10043ee0
mov eax, dword [0x100801a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
jb 0x1000bbf3
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x10078e04
push eax
call fcn.10047a70
mov esi, eax
add esp, 8
mov dword [ebp - 0x2008], esi
test esi, esi
jne 0x1000bc16
xor ebx, ebx
jmp 0x1000bc94
push 0
push 0
push esi
call fcn.10047fd8
push esi
push 0x2000
lea eax, [ebp - 0x2004]
or ebx, 0xffffffff
push 1
push eax
call fcn.1004afab
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1000bc84
push edi
xor edx, edx
movzx ecx, byte [ebp + edx - 0x2004]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100785f8]
mov edi, ebx
cmp edx, esi
jb 0x1000bc43
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push 0x2000
push 1
push eax
call fcn.1004afab
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1000bc41
pop edi
push dword [ebp - 0x2008]
call fcn.10047c93
add esp, 4
not ebx
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1000bcc4
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000bcba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000bcd6
push ecx
push edx
call fcn.10042d22
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10042ce4
mov esp, ebp
pop ebp
ret
call fcn.1004fd3c
int3
Function at 0x1000c020
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100801a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edx]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 8]
mov ecx, dword [esi]
add ecx, 2
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0xc]
mov edx, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], ecx
push edi
and edx, 0x80000007
jns 0x1000c068
dec edx
or edx, 0xfffffff8
add edx, 1
je 0x1000c076
mov eax, 8
sub eax, edx
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [esi + 0xc]
mov eax, ecx
cdq
add edi, 2
and edx, 3
mov dword [ebp - 0x2c], edi
add eax, edx
xor ebx, ebx
sar eax, 2
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ebx
test eax, eax
jle 0x1000c12c
lea ebx, [ebx]
mov esi, dword [edi + ebx*4]
lea eax, [edi + ebx*4]
lea ebx, [ebx + 1]
mov dword [ebp - 0x20], eax
lea eax, [edi + ebx*4]
mov edi, dword [eax]
mov dword [ebp - 0x24], eax
xor eax, eax
lea ebx, [eax + 0x20]
lea esp, [esp]
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
xor edx, ecx
add edi, edx
sub ebx, 1
jne 0x1000c0c0
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
add ebx, 2
mov dword [ebp - 0x18], ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x24]
mov dword [eax], edi
mov edi, dword [ebp - 0x2c]
cmp ebx, dword [ebp - 0x28]
jl 0x1000c0a0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0xc]
pop edi
mov word [eax], cx
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10042ce4
mov esp, ebp
pop ebp
ret
Function at 0x1000c150
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100801a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebx]
lea eax, [esi - 2]
and eax, 0x80000007
jns 0x1000c17a
dec eax
or eax, 0xfffffff8
add eax, 1
jne 0x1000c277
mov eax, dword [edx]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
lea eax, [esi - 2]
cdq
and edx, 3
mov dword [ebp - 8], ecx
push edi
mov edi, dword [ebx + 4]
add edi, dword [ebx + 0xc]
lea ecx, [edx + eax]
mov dword [ebp - 0x28], edi
sar ecx, 2
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
test ecx, ecx
jle 0x1000c249
mov edi, edi
mov esi, dword [edi + eax*4]
lea ecx, [edi + eax*4]
lea eax, [eax + 1]
mov dword [ebp - 0x1c], ecx
lea eax, [edi + eax*4]
mov ebx, 0x20
mov edi, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, 0xc6ef3720
mov edi, edi
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
xor edx, ecx
sub esi, edx
sub ebx, 1
jne 0x1000c1e0
mov eax, dword [ebp - 0x1c]
mov dword [eax], esi
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x24]
jl 0x1000c1c0
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0xc]
pop edi
movzx edx, word [ecx + eax]
lea eax, [ecx + 2]
mov dword [ebx + 4], eax
mov eax, edx
cmp eax, dword [ebx]
jg 0x1000c277
add eax, 4
mov dword [ebx], eax
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10042ce4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.10042ce4
mov esp, ebp
pop ebp
ret
Function at 0x10012580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068e5d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100801a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
push 0
push ebx
push edi
call fcn.10016550
mov dword [ebp - 4], 0
mov dword [esi], vtable.Buttons.0
add esi, 0x28
push 0x18
mov dword [ebp + 0xc], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10042cf2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 1
mov dword [eax + 0x34], 0
mov byte [eax + 0x38], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10015960
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100690fd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100801a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.10016d00
mov dword [ebp - 4], 0
sub esp, 8
mov ebx, dword [ebp + 0x1c]
mov ecx, edi
fld1
mov dword [edi], vtable.Scroll.0
fstp qword [esp]
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x50], ebx
call fcn.10015ef0
mov eax, dword [edi + 0x44]
mov ecx, edi
push 0
push 0
push 4
mov dword [edi + 0x4c], eax
mov dword [edi + 0x6c], 0
mov byte [edi + 0x70], 0
mov dword [edi + 0x60], 1
call fcn.10017370
push 0
push 0
push 0
push 0
push edi
push fcn.10015860
sub esp, 0x18
xor eax, eax
mov esi, esp
mov dword [ebp + 0x1c], esp
push 2
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 0x1007964c
push esi
mov dword [esi + 0x10], 2
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 2], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x34]
mov dword [ebp + 8], 4
call fcn.1000d3d0
mov esi, edi
mov eax, dword [eax]
mov ecx, dword [esi + 0x28]
mov ecx, dword [ecx + eax*4]
mov byte [ebp - 4], 0
call fcn.10012630
mov dword [esi + 0x74], eax
push 0
push 0
mov dword [eax + 0x38], 0x9d
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
lea eax, [ebx - 0xc]
push eax
push 0
mov ebx, edi
push ebx
push fcn.100158e0
sub esp, 0x18
xor eax, eax
mov esi, esp
mov dword [ebp + 0x1c], esp
mov dword [esi], eax
mov dword [esi + 4], eax
push 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push str.down
push esi
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], 0xf
call fcn.10044580
add esp, 0xc
mov byte [esi + 4], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x34]
mov dword [ebp + 8], 4
call fcn.1000d3d0
mov ecx, dword [ebx + 0x28]
mov eax, dword [eax]
mov ecx, dword [ecx + eax*4]
mov byte [ebp - 4], 0
call fcn.10012630
mov dword [ebx + 0x78], eax
mov dword [eax + 0x38], 0x9f
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
mov eax, dword [ebx + 0x74]
mov byte [eax + 0x1b], 0
mov eax, dword [ebx + 0x78]
mov byte [eax + 0x1b], 0
mov esi, dword [ebx + 0x50]
lea eax, [esi - 0x18]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul qword [ebx + 0x58]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jp 0x10015b31
fstp st(0)
jmp 0x10015b33
fstp st(1)
call fcn.10043600
mov ecx, dword [ebx + 0x4c]
sub esi, eax
sub ecx, dword [ebx + 0x44]
sub esi, 0x18
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
mov ecx, dword [ebx + 0x48]
sub ecx, dword [ebx + 0x44]
mov dword [ebp + 8], ecx
mov dword [ebx + 0x64], eax
fidiv dword [ebp + 8]
mov dword [ebp + 8], esi
fimul dword [ebp + 8]
call fcn.10043600
mov dword [ebx + 0x68], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x10016d00
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100691d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100801a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10016550
mov dword [ebp - 4], 0
mov dword [edi], vtable.GUIParent.0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea esi, [edi + 0x34]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp + 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10042cf2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001f120
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 1
mov eax, dword [edi + 0xc]
movzx ecx, word [edi]
jne 0x1001f13c
mov word [eax + 2], cx
jmp 0x1001f13f
mov word [eax], cx
mov edx, 0x719d78
mov ecx, edi
call fcn.1000c020
mov eax, dword [edi + 0xc]
xor esi, esi
mov edi, eax
movzx ebx, word [edi]
add ebx, 2
push 0
mov eax, ebx
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [0x10086174]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1001f17a
add esi, eax
cmp esi, ebx
jne 0x1001f158
mov edi, dword [ebp + 8]
push dword [edi + 0xc]
call fcn.10042d30
push 0x10
push edi
call fcn.10042d22
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10021ff0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069d4e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x100801a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1002206a
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x10022064
push eax
mov ecx, esi
call fcn.10005940
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10022240
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069db4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100801a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 0
call esi
mov dword [edi], eax
push 0
push 0
push 0
mov dword [ebp - 4], 0
call esi
mov dword [edi + 4], eax
push 0
push 0
push 0
call esi
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], al
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], al
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], al
mov byte [ebp - 4], 5
push 0xc
mov dword [edi + 0x18], 1
mov dword [edi + 0x14], eax
mov byte [edi + 0x10], 1
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
call fcn.10042cf2
add esp, 4
mov esi, eax
mov dword [ebp - 0x10], esi
push 0
push 0
push edi
push 0x10022480
push 0
push 0
mov dword [esi], 0x10022480
mov dword [esi + 4], edi
mov byte [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
setne al
mov byte [esi + 8], al
mov eax, edi
mov dword [edi + 0xc], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10057073
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10043ee0
mov eax, dword [0x100801a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10054a9b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100570b5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10057211
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10067580
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10082020]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10056c08
mov ecx, dword [esi*4 + 0x10082020]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1005720a
cmp eax, dword [edi + ecx + 0x24]
jne 0x1005720a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005720a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10056c08
add esp, 0x14
test edx, edx
jl 0x1005720a
jg 0x10057180
test eax, eax
jb 0x1005720a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005720a
jl 0x1005719a
cmp dword [ebp - 0x1008], eax
ja 0x1005720a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100571b8
test ebx, ebx
je 0x100571f1
cmp ecx, edi
jae 0x100571f1
mov al, byte [ecx]
cmp al, 0xd
jne 0x100571d2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100571de
cmp byte [ecx + 1], 0xa
jne 0x100571de
inc ecx
jmp 0x100571de
movzx eax, al
movsx eax, byte [eax + 0x10080410]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100571b8
cmp edx, ebx
jne 0x100571b8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005720f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10042ce4
leave
ret
Function at 0x10058ef9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10082020]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10058f39
cmp byte [ebx], 0xa
jne 0x10058f39
or byte [eax + edi + 0x28], 4
jmp 0x10058f3e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1005903c
mov al, byte [edx]
cmp al, 0x1a
je 0x1005901e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10058f6d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10058f92
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10058f9c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10058f4f
jmp 0x1005903c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10059019
cmp dword [ebp - 0xc], 0
je 0x10059019
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10082020]
test byte [eax + edi + 0x28], 0x48
je 0x10058ff3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10058fde
mov byte [esi], dl
jmp 0x10058fef
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10082020]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005903c
cmp byte [ebp - 1], 0xa
jne 0x10059002
cmp esi, ebx
jne 0x10059002
mov byte [esi], 0xa
jmp 0x1005903b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10056c26
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005903c
mov byte [esi], 0xd
jmp 0x1005903b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10082020]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10059038
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005903c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret