joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4088f8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffec
push 0x40ffe4
push str.FlsGetValue
push 0x21
call fcn.004087b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40892f
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e11c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408937
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fff4
push 0x40ffec
push str.FlsSetValue
push 0x22
call fcn.004087b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408971
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e11c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401570
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x14], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x18], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jb 0x401590
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0x14]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x403af0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ecx, dword [esp + 0x1c]
cmp ecx, 0
je 0x403cd5
call fcn.00403b06
Function at 0x44d940
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x627294]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x42
lea eax, [ebp - 0x48]
mov dword [ebp - 0x5c], ecx
push 0
push eax
mov dword [ebp - 0x50], 0
call fcn.00579cd0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x44da61
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x5c]
push eax
push 1
push dword [ebp - 0x50]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x44da58
push esi
mov esi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x50]
call esi
cmp eax, 0xea
jne 0x44da57
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov edx, 0x29c
mul edx
push ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005787fb
mov ecx, dword [ebp - 0x58]
add esp, 4
mov ebx, eax
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x60], ebx
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x50]
call esi
test eax, eax
jne 0x44da4d
push edi
xor edi, edi
cmp dword [ebp - 0x4c], edi
jbe 0x44da4c
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp esi, eax
je 0x44da3d
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc edi
add ebx, 0x29c
cmp edi, dword [ebp - 0x4c]
jb 0x44da11
mov ebx, dword [ebp - 0x60]
pop edi
push ebx
call fcn.005784a2
add esp, 4
pop ebx
pop esi
push dword [ebp - 0x50]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00578494
mov esp, ebp
pop ebp
ret
Function at 0x44e2a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x627294]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov edi, ecx
push 0
push 0
mov edx, dword [edi + 0x40148]
mov eax, dword [edi + 0x4014c]
sub edx, 0x29
sbb eax, 0
push eax
push edx
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x44e387
mov al, byte [edi + 0x4018c]
xorps xmm0, xmm0
mov ecx, dword [edi + 0x4013c]
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
movlpd qword [esp + 0x11], xmm0
movlpd qword [esp + 0x19], xmm0
movlpd qword [esp + 0x21], xmm0
movlpd qword [esp + 0x29], xmm0
movups xmm0, xmmword [edi + 0x4001c]
mov byte [esp + 0x10], al
mov eax, dword [edi + 0x40138]
movups xmmword [esp + 0x11], xmm0
mov dword [esp + 0x35], ecx
xor ecx, ecx
movups xmm0, xmmword [edi + 0x4002c]
mov dword [esp + 0x31], eax
xor esi, esi
movups xmmword [esp + 0x21], xmm0
nop dword [eax]
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
mov eax, 0x29
sub eax, esi
push eax
lea eax, [esp + 0x1c]
add eax, ecx
push eax
push dword [edi + 0x18]
call ebx
test eax, eax
je 0x44e387
add esi, dword [esp + 0xc]
mov ecx, esi
cmp esi, 0x29
jne 0x44e340
lea eax, [esi - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00578494
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00578494
mov esp, ebp
pop ebp
ret
Function at 0x44f4a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1085
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x627294]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x28]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.00452b80
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
dec ecx
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, 0x628d60
cmp dword [0x628d74], 8
mov edx, dword [ebp - 0x14]
mov eax, edx
cmovae ecx, dword [0x628d60]
mov ebx, dword [ebp - 0x18]
sub eax, ebx
mov edi, dword [0x628d70]
cmp edi, eax
ja 0x44f573
cmp edx, 8
lea eax, [edi + ebx]
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
lea eax, [edi + edi]
push eax
push ecx
lea eax, [esi + ebx*2]
push eax
call fcn.00579e30
add esp, 0xc
lea eax, [ebx + edi]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x44f585
push edi
push ecx
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push edi
call fcn.00453820
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44f5e9
cmp dword [0x628d2c], 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
push dword [0x628d28]
mov ecx, 0x628d18
cmovae ecx, dword [0x628d18]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44f5e9
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, 1
jmp 0x44f5eb
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x44f621
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44f617
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44f689
push ecx
push edx
call fcn.005787ed
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x44f66b
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44f661
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44f689
push ecx
push edx
call fcn.005787ed
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00578494
mov esp, ebp
pop ebp
ret
call fcn.0057fc31
int3
Function at 0x450b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x627294]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
mov esi, ecx
cmp bx, di
jne 0x450b67
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00578494
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x450ba1
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x450ba1
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00578494
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x450c96
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x450bce
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x450c02
push dword [esi + 0x4c]
push edi
call fcn.0057db6f
add esp, 8
cmp ax, bx
movzx eax, di
jne 0x450c99
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00578494
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x450c63
sub eax, 1
je 0x450c63
sub eax, 2
jne 0x450c96
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0057db6f
add esp, 8
cmp ax, bx
movzx eax, di
jne 0x450c99
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00578494
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x450c86
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0057f355
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x450c96
lea ecx, [ebp - 0x28]
movzx eax, di
cmp dword [ebp - 0x30], ecx
mov byte [esi + 0x3e], 1
cmovne ebx, eax
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00578494
mov esp, ebp
pop ebp
ret 4
Function at 0x452970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x627294]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x452a32
cmp byte [esi + 0x3e], 0
je 0x452a32
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x452a20
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4529e8
sub eax, 1
je 0x4529ec
sub eax, 2
jne 0x452a20
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00578494
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x452a09
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0057f355
add esp, 0x10
cmp edi, eax
jne 0x452a20
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00578494
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00578494
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00578494
mov esp, ebp
pop ebp
ret

Function at 0x45e290
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.0048b100
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0057a3b0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x45e349
call fcn.00460fc0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.004610c0
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 2
call fcn.00461170
add esp, 0x14
call fcn.00580e91
cmp dword [eax], 2
je 0x45e319
call fcn.00580e91
cmp dword [eax], 6
je 0x45e319
mov esi, 0x80002
mov edi, 0x4d
jmp 0x45e321
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00460fc0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.004610c0
push 0
push esi
push 0x20
call fcn.00461170
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5a2cb0
call fcn.00459d50
mov esi, eax
add esp, 4
test esi, esi
jne 0x45e36b
push edi
call fcn.0057d992
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00459600
push edi
push ebx
push 0x6a
push esi
call fcn.00459630
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4607c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.00578a80
mov eax, dword [esp + 0x10]
push ebx
push esi
test byte [eax + 0x10], 4
mov esi, dword [eax + 4]
lea ebx, [esi - 1]
je 0x460867
mov ecx, dword [eax + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x460850
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
push edi
push dword [ecx]
mov eax, ebp
xor eax, ebx
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
mov esi, edi
or esi, dword [esp + 0x14]
call fcn.00460890
mov ecx, dword [esp + 0x18]
mov edx, esi
not edx
mov dword [esp + 0x14], esi
and edx, 0x20
and eax, edi
add edx, dword [esp + 0x24]
inc ebp
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x18]
jl 0x460803
pop edi
mov eax, ebx
shr ebx, 0x1f
not eax
dec eax
shr eax, 0x1f
and eax, ebx
pop ebp
dec eax
pop esi
and eax, edx
pop ebx
add esp, 0xc
ret
test esi, esi
jne 0x460873
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [eax]
push dword [eax + esi*4 - 4]
call fcn.00460890
add esp, 4
shl esi, 5
add esi, 0xffffffe0
add eax, esi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x481a90
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x6295a8], 0
jne 0x481b29
push 0x190
push 0
push 0x6295b0
mov dword [0x6295a8], 1
call fcn.00579cd0
add esp, 0xc
push 0x6295b0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x481b29
call fcn.00460fc0
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.004610c0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461170
call fcn.00460fc0
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.004610c0
push 0
push 0x7a
push 0x20
call fcn.00461170
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x481b30
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x481b85
call fcn.00460fc0
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.004610c0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461170
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x481b90
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.00578a80
mov eax, dword [0x627294]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0x3f
ja 0x481c7d
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x481bf1
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00578494
add esp, 0x110
ret
push 0
call fcn.0057fc82
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x481c24
jl 0x481c0a
cmp esi, eax
jae 0x481c24
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00578494
add esp, 0x110
ret
sub esi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x14], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
test ebp, ebp
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebp, ebp
push eax
lea eax, [esp + 0x20]
cmove eax, ecx
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00578494
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.00578494
add esp, 0x110
ret
Function at 0x4827f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.00578a80
mov eax, dword [0x627294]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x629748], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4821f0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4825a0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x4821a0
jne 0x48294b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x482941
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00581214
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0058126e
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test edi, edi
je 0x4828bf
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x482906
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00581214
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0058126e
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x48293d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x48293a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x48293a
inc esi
cmp esi, 3
jl 0x482908
mov eax, dword [esp + 0x14]
mov dword [0x626340], eax
mov eax, dword [esp + 0x1c]
mov dword [0x626348], eax
mov eax, dword [esp + 0x24]
mov dword [0x626350], eax
jmp 0x48293d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x629748], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x626340]
call fcn.00578494
add esp, 0x230
ret 4
Function at 0x482980
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.00578a80
mov eax, dword [0x627294]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.00579cd0
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.00579cd0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.0058138a
add esp, 0x28
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x482b4f
cmp word [ebx + 8], 2
jne 0x482a72
cmp word [ebx + 0xa], 4
jne 0x482a72
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x482a72
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.00482ba0
mov dword [edi], eax
test eax, eax
je 0x482b48
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x482a40
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.0058138a
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x482aff
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x482a96
sub ecx, edx
je case.0x482b5f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x482ad0
test dl, dl
je 0x482acc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x482ad0
add eax, 2
add ecx, 2
test dl, dl
jne 0x482ab0
xor eax, eax
jmp 0x482ad5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x482b5f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x482b5f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x482a02
mov esi, 0x2afb
jmp 0x482b72
cmp dword [esp + 0x844], esi
je 0x482b72
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x482b10
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.00581395
mov edi, eax
add esp, 8
test edi, edi
je 0x482b38
push ebp
push ebx
push edi
call fcn.00581214
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x482b72
mov esi, 8
jmp 0x482b72
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x482b5f.11001
jmp dword [eax*4 + 0x482b90]
mov esi, 0x2afa
jmp 0x482b72
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00578494
add esp, 0x820
ret 0x18