joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429f80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x43a170]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0040b1b0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42a011
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x42a011
push 0xa
mov eax, dword [ebp + 8]
push eax
call fcn.00422500
add esp, 8
push 0x10
push 0x435618
push 0x435640
mov ecx, dword [ebp + 8]
push ecx
call fcn.004224a0
add esp, 0x10
xor eax, eax
jmp 0x42a12d
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x130], edx
cmp dword [ebp - 0x130], 2
je 0x42a02b
jmp 0x42a0fe
cmp dword [ebp - 0x124], 4
ja 0x42a061
push 0xa
mov eax, dword [ebp + 8]
push eax
call fcn.00422500
add esp, 8
push 0x10
push 0x435668
push 0x435690
mov ecx, dword [ebp + 8]
push ecx
call fcn.004224a0
add esp, 0x10
xor eax, eax
jmp 0x42a12d
cmp dword [ebp - 0x124], 5
jne 0x42a0a9
cmp dword [ebp - 0x120], 0
jne 0x42a0a9
movzx edx, word [ebp - 0x14]
cmp edx, 2
jge 0x42a0a9
push 0xa
mov eax, dword [ebp + 8]
push eax
call fcn.00422500
add esp, 8
push 0x10
push 0x435724
push 0x435750
mov ecx, dword [ebp + 8]
push ecx
call fcn.004224a0
add esp, 0x10
xor eax, eax
jmp 0x42a12d
cmp dword [ebp - 0x124], 5
jbe 0x42a0b7
call fcn.0041cd60
call fcn.00429770
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x42a0f5
push 0xa
mov edx, dword [ebp + 8]
push edx
call fcn.00422500
add esp, 8
push 0x10
push 0x4357e4
push 0x43580c
mov eax, dword [ebp + 8]
push eax
call fcn.004224a0
add esp, 0x10
xor eax, eax
jmp 0x42a12d
mov eax, 1
jmp 0x42a12d
push 0xa
mov ecx, dword [ebp + 8]
push ecx
call fcn.00422500
add esp, 8
push 0x10
push 0x43584c
push 0x435878
mov edx, dword [ebp + 8]
push edx
call fcn.004224a0
add esp, 0x10
xor eax, eax
jmp 0x42a12d
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a4cd
mov esp, ebp
pop ebp
ret

Function at 0x42b2e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x43c578]
mov dword [ebp - 4], eax
push 0x500000
push 0
push 0x401
push 0x414
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x404
push 0x414
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x402
push 0x414
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x43d1ec], 0
push 0x42ad30
push 0x32
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
push 0x42b1c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x42ba70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0x42b730
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x42c5a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042a150
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [0x43c550], ecx
call fcn.0041e6f0
mov edx, dword [0x43c550]
push edx
call fcn.0041ea50
add esp, 4
call fcn.0041e140
push 0
call fcn.00429f80
add esp, 4
test eax, eax
jne 0x42c5e9
xor eax, eax
jmp 0x42c6cd
mov dword [ebp - 4], 0
push str._TXTenpay0824
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42c62c
push 0x30
push 0x435c1c
push 0x435c44
push 0
call fcn.004222e0
add esp, 0x10
xor eax, eax
jmp 0x42c6cd
call fcn.00429c00
test eax, eax
jne 0x42c654
push 0x44
push 0x435c70
push 0x435c98
push 0
call fcn.004222e0
add esp, 0x10
cmp eax, 7
jne 0x42c654
xor eax, eax
jmp 0x42c6cd
call fcn.00422a20
call fcn.00422950
push 0x6d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebp - 8], eax
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x42c6ad
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x42c6ab
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x42c66d
call fcn.00422940
call fcn.0041d340
call fcn.0041ea30
call fcn.0041cbb0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a65d4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ee2
mov eax, dword [0x4e0034]
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.004065af
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a6616
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a6772
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040672b
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 + 0x4e3e78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403580
mov ecx, dword [esi*4 + 0x4e3e78]
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 0x4a676b
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a676b
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 0x4a676b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403580
add esp, 0x14
test edx, edx
jl 0x4a676b
jg 0x4a66e1
test eax, eax
jb 0x4a676b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a676b
jl 0x4a66fb
cmp dword [ebp - 0x1008], eax
ja 0x4a676b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a6719
test ebx, ebx
je 0x4a6752
cmp ecx, edi
jae 0x4a6752
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a6733
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a673f
cmp byte [ecx + 1], 0xa
jne 0x4a673f
inc ecx
jmp 0x4a673f
movzx eax, al
movsx eax, byte [eax + 0x4e0358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a6719
cmp edx, ebx
jne 0x4a6719
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a6770
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040333c
leave
ret
Function at 0x4a6eb1
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 + 0x4e3e78]
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 0x4a6ef1
cmp byte [ebx], 0xa
jne 0x4a6ef1
or byte [eax + edi + 0x28], 4
jmp 0x4a6ef6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6ff4
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6fd6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6f25
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a6f4a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a6f54
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 0x4a6f07
jmp 0x4a6ff4
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 0x4a6fd1
cmp dword [ebp - 0xc], 0
je 0x4a6fd1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e3e78]
test byte [eax + edi + 0x28], 0x48
je 0x4a6fab
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6f96
mov byte [esi], dl
jmp 0x4a6fa7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e3e78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6ff4
cmp byte [ebp - 1], 0xa
jne 0x4a6fba
cmp esi, ebx
jne 0x4a6fba
mov byte [esi], 0xa
jmp 0x4a6ff3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6ff4
mov byte [esi], 0xd
jmp 0x4a6ff3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e3e78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6ff0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6ff4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a7050
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e3e78]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a7093
cmp word [esi], dx
jne 0x4a7093
or byte [edi + eax + 0x28], 4
jmp 0x4a7098
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a71eb
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a71cb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a70da
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a7110
cmp eax, edx
jae 0x4a711c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a70b2
jmp 0x4a71eb
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a71c7
cmp dword [ebp - 0x14], 0
je 0x4a71c7
mov eax, dword [ebx*4 + 0x4e3e78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a719f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a7168
mov word [esi], cx
jmp 0x4a719b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e3e78]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e3e78]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e3e78]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a71eb
pop ebx
cmp word [ebp - 4], bx
jne 0x4a71b0
cmp esi, dword [ebp + 0xc]
jne 0x4a71b0
mov word [esi], bx
jmp 0x4a71e8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a71eb
push 0xd
jmp 0x4a71e4
mov ecx, dword [ebx*4 + 0x4e3e78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a71e2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a71eb
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4abfa1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e0034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4abfec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ac463
test al, al
jne 0x4abfe6
sub edx, 2
cmp edx, edi
jne 0x4abfcc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ac00e
lea eax, [edi + 2]
cmp edx, eax
je 0x4ac00e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004abb9a
add esp, 0x10
jmp 0x4ac108
push esi
lea ecx, [ebp - 0x255]
call fcn.004ac463
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ac051
push dword [ebp - 0x25c]
jmp 0x4abffe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4ac08e
cmp word [ebp - 0x226], 0
je 0x4ac0af
cmp word [ebp - 0x226], ax
jne 0x4ac08e
cmp word [ebp - 0x224], 0
je 0x4ac0af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004abb9a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ac0fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ac068
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ac0e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ac108
push 0x4ab582
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405b91
add esp, 0x10
jmp 0x4ac0d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040333c
leave
ret
Function at 0x4faafc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4fab34
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4fab22
mov al, 1
jmp 0x4fab7e
cmp dword [ebx + 0x54], ecx
jne 0x4fab2b
mov al, 2
jmp 0x4fab7e
cmp dword [ebx + 0x7c], ecx
jne 0x4fab7e
mov al, 3
jmp 0x4fab7e
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4fab49
mov al, 4
jmp 0x4fab7e
cmp ecx, 5
jne 0x4fab69
cmp ebx, 0
jne 0x4fab57
mov al, 5
jmp 0x4fab7e
cmp ebx, 1
jne 0x4fab60
mov al, 6
jmp 0x4fab7e
cmp ebx, 2
jne 0x4fab69
mov al, 7
jmp 0x4fab7e
cmp ecx, 6
jne 0x4fab75
cmp ebx, 0
jne 0x4fab77
mov al, 8
jmp 0x4fab7e
cmp ebx, 1
jne 0x4fab7e
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000dd20
Capabilities:
Encrypt data using blowfish

Disassembly:
sub esp, 8
mov ecx, 0x412
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov esi, 0x10088870
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x48
jle 0x1000dd46
mov ecx, 0x48
mov edi, dword [esp + 0x20]
push ebp
mov eax, edi
mov ebp, ebx
lea esi, [ecx + edi]
mov dword [esp + 0x1c], 0x12
xor ecx, ecx
mov cl, byte [eax]
inc eax
cmp eax, esi
jb 0x1000dd65
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1000dd75
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1000dd85
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1000dd95
mov eax, edi
mov edx, dword [ebp]
add ebp, 4
xor edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp - 4], edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x1000dd5a
xor eax, eax
mov esi, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, 9
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.1000cd90
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x1000ddbd
lea esi, [ebx + 0x48]
mov edi, 0x200
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.1000cd90
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x1000dde6
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x1000f210
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x100c9438]
test eax, eax
jne 0x1000f27d
push edi
mov ecx, 0x64
xor eax, eax
mov edi, 0x100c92a8
push 0x100c92a8
push 0x202
rep stosd dword es:[edi], eax
mov dword [0x100c9438], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x1000f27d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x1ed
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_b_sock.c
push eax
push 9
push 2
call fcn.10026360
push 0x1ee
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_b_sock.c
push 0x7a
push 0x70
push 0x20
call fcn.10026360
add esp, 0x28
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x1000f290
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jge 0x1000f2c9
push 0x230
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.10026360
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x10012b80
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 6
je 0x10012b9b
push eax
push esi
call fcn.100126f0
add esp, 8
test eax, eax
jle 0x10012be6
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.10010fa0
add esp, 8
test edi, edi
jg 0x10012be3
push edi
call fcn.10014a20
add esp, 4
test eax, eax
je 0x10012be3
push 0xa
push esi
call fcn.10010fc0
add esp, 8
mov eax, edi
pop edi
pop esi
ret

Function at 0x10013140
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 8], 4
mov esi, dword [edi + 0x20]
mov eax, dword [esi + 0x28]
test eax, eax
jg 0x10013166
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x10013263
mov edx, dword [edi + 0x1c]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x1006
push 0xffff
push edx
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jge 0x10013197
push str.getsockopt
call fcn.1007b9a3
add esp, 4
jmp 0x100131c8
mov ecx, dword [esp + 0x18]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esi + 0x30], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esi + 0x34], edx
lea eax, [esp + 0xc]
push eax
call fcn.10013810
mov ecx, dword [esi + 0x28]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x2c]
sub ecx, eax
mov eax, dword [esp + 0x14]
add esp, 4
sub edx, eax
jns 0x100131f0
dec ecx
add edx, 0xf4240
test ecx, ecx
jge 0x100131fb
xor ecx, ecx
mov edx, 1
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x1001320b
push ebx
mov ebx, dword [esi + 0x34]
test ebx, ebx
pop ebx
je 0x10013216
cmp eax, ecx
jg 0x10013216
jne 0x10013263
cmp dword [esi + 0x34], edx
jl 0x10013263
mov eax, 0x10624dd3
push 4
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [esp + 0x1c]
push eax
push 0x1006
lea edx, [edx + ecx*8]
mov ecx, dword [edi + 0x1c]
push 0xffff
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10013263
push str.setsockopt
call fcn.1007b9a3
add esp, 4
pop edi
pop esi
add esp, 0xc
ret
Function at 0x10013270
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0x28]
test eax, eax
jg 0x10013286
mov eax, dword [ecx + 0x2c]
test eax, eax
jle 0x100132d9
mov edx, dword [ecx + 0x34]
mov eax, 0x10624dd3
imul edx
mov ecx, dword [ecx + 0x30]
push 4
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [esp + 0xc]
push eax
push 0x1006
lea edx, [edx + ecx*8]
mov ecx, dword [esi + 0x1c]
push 0xffff
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x100132d9
push str.setsockopt
call fcn.1007b9a3
add esp, 4
pop esi
ret

Function at 0x100132e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
mov ebx, dword [edi + 0x20]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x10013311
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x10013349
mov cx, word [ebx]
mov eax, 0x1c
cmp cx, 2
jne 0x10013326
mov eax, 0x10
jmp 0x10013331
cmp cx, 0x17
jne 0x10013331
mov eax, 0x1c
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ebx
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
push 0xf
push edi
mov esi, eax
call fcn.10010fa0
add esp, 8
test esi, esi
jg 0x1001337b
push esi
call fcn.100137d0
add esp, 4
test eax, eax
je 0x1001337b
push 0xa
push edi
call fcn.10010fc0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 0x20], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x100138b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
push edi
test esi, esi
je 0x10013901
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push eax
push esi
mov ecx, dword [edi + 0x1c]
push ecx
call fcn.1007bbf3
push 0xf
push edi
mov esi, eax
call fcn.10010fa0
add esp, 0x14
test esi, esi
jg 0x100138ff
push esi
call fcn.10013b70
add esp, 4
test eax, eax
je 0x100138ff
push 9
push edi
call fcn.10010fc0
add esp, 8
mov eax, esi
pop edi
pop esi
ret