joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e8e0
Capabilities:
Get mac address on windows
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c768
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x57bbb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0x100
mov ecx, eax
call fcn.0044edb0
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x10]
push eax
push 0
mov dword [ebp - 0x10], 0
call esi
push dword [ebp - 0x10]
call fcn.004c943f
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push ebx
call esi
mov esi, ebx
test ebx, ebx
je 0x44e9c5
cmp dword [esi + 0x1a0], 6
jne 0x44e9bf
cmp dword [esi + 0x190], 6
jne 0x44e9bf
movzx eax, byte [esi + 0x199]
mov ecx, dword [ebp - 0x24]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
mov eax, dword [ebp - 0x20]
push str._02X__02X__02X__02X__02X__02X
sub eax, ecx
push eax
push ecx
call fcn.0043ca80
add esp, 0x24
mov esi, dword [esi]
test esi, esi
jne 0x44e966
mov edi, dword [ebp - 0x24]
or ebx, 0xffffffff
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44e9d2
sub ecx, esi
je 0x44ea0d
nop dword [eax]
movzx ecx, byte [edi + edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
mov eax, edi
xor ebx, dword [ecx*4 + 0x55bb10]
inc edx
lea esi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ea00
sub eax, esi
cmp edx, eax
jb 0x44e9e0
push dword [ebp - 0x14]
call fcn.004c93fc
mov ecx, dword [ebp - 0x24]
add esp, 4
test ecx, ecx
je 0x44ea48
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x44ea3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ea5c
push edx
push ecx
call fcn.004c9431
add esp, 8
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
call fcn.00510f49
int3
Function at 0x453230
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
xor edx, edx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
setne dl
mov edi, ecx
xor eax, eax
lea edx, [edx*2 - 1]
add edx, dword [0x5937d8]
mov dword [0x5937d8], edx
sete al
test esi, esi
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 0x2a38c], eax
je 0x45335e
cmp edx, 1
jne 0x45335e
cmp dword [edi + 0x2a390], 0
je 0x45335e
cmp dword [0x593808], 0
jne 0x4532c5
lea eax, [esp + 8]
mov dword [0x593808], edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, eax
mov dword [0x593818], edx
test edx, edx
je 0x45331a
mov ecx, dword [esp + 8]
mov dword [0x5937e0], ecx
mov ecx, dword [esp + 0xc]
mov dword [0x5937e4], ecx
jmp 0x4532cb
mov edx, dword [0x593818]
test edx, edx
je 0x45331a
mov ecx, dword [0x5937f8]
mov eax, ecx
mov esi, dword [0x5937fc]
or eax, esi
jne 0x4532fa
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [0x593818]
mov dword [0x5937fc], esi
mov dword [0x593814], esi
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x5937f8], ecx
mov dword [0x593810], ecx
jmp 0x453364
movsd xmm0, qword [0x593820]
ucomisd xmm0, qword [0x56a7f8]
lahf
test ah, 0x44
jp 0x453354
call esi
mov edx, dword [0x593818]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x56ad20]
mulsd xmm0, qword [0x56a8d0]
movsd qword [0x593820], xmm0
jmp 0x453364
mov edx, dword [0x593818]
cmp dword [0x5937d8], 0
jne 0x453458
cmp dword [edi + 0x2a390], 0
je 0x453458
cmp dword [0x593808], 0
jne 0x4533ba
lea eax, [esp + 8]
mov dword [0x593808], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, eax
mov dword [0x593818], edx
test edx, edx
je 0x45340c
mov eax, dword [esp + 8]
mov dword [0x5937e0], eax
mov eax, dword [esp + 0xc]
mov dword [0x5937e4], eax
test edx, edx
je 0x45340c
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 8]
xorps xmm0, xmm0
mov edx, dword [esp + 0xc]
mov ecx, esi
sub ecx, dword [0x5937f8]
mov eax, edx
mov dword [0x593810], esi
sbb eax, dword [0x5937fc]
add dword [0x5937f0], ecx
movlpd qword [0x5937f8], xmm0
adc dword [0x5937f4], eax
mov dword [0x593814], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call esi
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x56ad20]
mulsd xmm1, qword [0x56a8d0]
movaps xmm0, xmm1
movsd qword [0x5937e8], xmm1
subsd xmm0, qword [0x593820]
addsd xmm0, qword [0x593800]
movsd qword [0x593800], xmm0
xorps xmm0, xmm0
movsd qword [0x593820], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x496fa0
Capabilities:
Read file on windows

Disassembly:
cmp dword [0x592204], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x496fda
push 0x55bad8
push 0x55badc
call fcn.005112b9
mov edi, eax
add esp, 8
test edi, edi
je 0x496fda
push str.GroundObjectTiles::Generate
push edi
call fcn.004469d0
push edi
call fcn.00511399
add esp, 0xc
call fcn.00514d5a
push 0x1c0000
mov dword [esi + 0x108], 0x100
mov dword [esi + 0x10c], 0x100
call fcn.004c943f
mov ecx, dword [esi + 0x10c]
add esp, 4
xor ebx, ebx
mov dword [esi + 0x120], eax
test ecx, ecx
jle 0x4970e5
mov eax, dword [esi + 0x108]
xor edx, edx
test eax, eax
jle 0x4970d4
nop word [eax + eax]
xor edi, edi
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi], 0
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi + 1], 0
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi + 2], 0
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi + 3], 0
add edi, 4
cmp edi, 0x1c
jl 0x497032
mov eax, dword [esi + 0x108]
inc edx
cmp edx, eax
jl 0x497030
mov ecx, dword [esi + 0x10c]
inc ebx
cmp ebx, ecx
jl 0x497016
jmp 0x4970eb
mov eax, dword [esi + 0x108]
imul eax, ecx
push eax
call fcn.004c943f
mov dword [esi + 0x194], eax
add esp, 4
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x497113
push 0x561440
push str.dat_roads_256.raw
jmp 0x497122
cmp eax, 1
jne 0x49714e
push 0x561464
push str.dat_roads2_256.raw
call fcn.005112b9
mov ecx, dword [esi + 0x108]
mov edi, eax
imul ecx, dword [esi + 0x10c]
push edi
push ecx
push 1
push dword [esi + 0x194]
call fcn.00512702
push edi
call fcn.00511399
add esp, 0x1c
cmp dword [0x592204], 0
je 0x497183
push 0x55bad8
push 0x55badc
call fcn.005112b9
mov esi, eax
add esp, 8
test esi, esi
je 0x497183
push 0x56147c
push esi
call fcn.004469d0
push esi
call fcn.00511399
add esp, 0xc
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x4ab050
Capabilities:
Check http status code

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x593128]
push edi
call fcn.00468cb0
mov edi, dword [esp + 0x2c]
xor ebx, ebx
cmp edi, 0xc8
mov byte [esp + 0x1c], 0x13
setne bl
lea ebx, [ebx*2 + 1]
cmp edi, 0xc9
jne 0x4ab08e
mov ebx, 2
jmp 0x4ab09c
cmp edi, 0xcb
mov eax, 4
cmove ebx, eax
mov ecx, dword [esi + 0x2b8]
push 0x19
add ecx, 0x140
call fcn.0044f4f0
test eax, eax
jne 0x4ab180
cmp edi, 0xc8
jne 0x4ab110
mov ecx, dword [esi + 0x2c0]
push 0x87
add ecx, 0x140
call fcn.0044f4f0
test eax, eax
jne 0x4ab110
mov ecx, dword [0x59222c]
lea edx, [esp + 0x14]
push 0
push 0
push edx
mov eax, dword [ecx]
push 5
mov byte [esp + 0x24], 0x40
call dword [eax + 4]
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ebp, dword [esi + 0x2b8]
mov ecx, dword [esi + 0x2c0]
mov dword [esp + 0x2c], ecx
mov eax, dword [ebp]
mov eax, dword [eax + 0x14]
cmp eax, method.UIRectArtTextButton.virtual_20
jne 0x4ab2c5
cmp dword [ebp + 0x14c], 0
je 0x4ab14c
mov eax, dword [ebp + 0x144]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0
sete al
jmp 0x4ab14e
mov al, 1
mov byte [ecx + 0x139], al
push ecx
lea ecx, [ebp + 0x140]
call fcn.0044f2f0
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x13c], ebp
mov ecx, dword [esi + 0x2b8]
jmp 0x4ab21e
mov ecx, dword [esi + 0x2b8]
jmp 0x4ab21e
mov ecx, dword [esi + 0x2c0]
add ecx, 0x140
cmp edi, dword [esi + 0x23bc]
je 0x4ab257
push 0x87
call fcn.0044f4f0
cmp edi, 0xc8
je 0x4ab203
test eax, eax
je 0x4ab223
mov ecx, dword [esi + 0x2b8]
push 0x86
add ecx, 0x140
call fcn.0044f4f0
test eax, eax
je 0x4ab1ea
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c8]
add ecx, 0x140
call fcn.0044f5c0
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
add ecx, 0x140
call fcn.0044f5c0
jmp 0x4ab218
test eax, eax
jne 0x4ab223
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [0x59222c]
lea edx, [esp + 0x1c]
mov eax, dword [esi + 0x23a4]
push 0
push 0
mov byte [esp + 0x29], bl
mov dword [esp + 0x25], eax
mov eax, dword [ecx]
push edx
push 0xa
call dword [eax + 4]
mov dword [esi + 0x23bc], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
push dword [esi + 0x2fc]
call fcn.0044f5c0
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c0]
add ecx, 0x140
call fcn.0044f5c0
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c8]
add ecx, 0x140
call fcn.0044f5c0
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
pop edi
mov dword [esi + 0x23bc], 0
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
push ecx
mov ecx, ebp
call eax
jmp 0x4ab175
Function at 0x5261b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00525dbe

Function at 0x5261c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00525f3f

Function at 0x52d2a9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052ca83

Function at 0x52d2b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052ccbe

Function at 0x52d97e
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052d705
Function at 0x14d0fa28
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], ebx
call dword [0x14d12300]
test eax, eax
je 0x14d0fb16
cmp dword [ebp - 0xc], 0xc8
jne 0x14d0fb16
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [0x14d12158]
mov esi, eax
cmp esi, 0xffffffff
je 0x14d0fb16
mov byte [ebp - 1], bl
push ebx
push dword [ebp + 0x10]
call dword [0x14d12150]
test eax, eax
je 0x14d0fabc
lea eax, [ebp - 8]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [0x14d122ec]
test eax, eax
jne 0x14d0fac0
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x14d0faf0
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x14d12190]
test eax, eax
je 0x14d0fae7
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x14d0faeb
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
je 0x14d0fa91
push esi
call dword [0x14d121a0]
push esi
call dword [0x14d12140]
cmp byte [ebp - 1], bl
je 0x14d0fb0c
push dword [ebp + 0xc]
call fcn.14d0eab6
pop ecx
xor eax, eax
cmp byte [ebp - 1], bl
sete al
jmp 0x14d0fb18
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59a860
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4 + 0x158]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 0x180]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
sub edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x298]
mov edx, dword [ecx + 0x40]
and edx, 3
je 0x59a9d0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + eax*4 + 0x170], 0x519cb5
jne 0x59a9d0
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x59a8eb
cmp dword [ebp - 0xc], 0
je 0x59a9d0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call fcn.00514832
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x59a9d0
mov ecx, dword [ebp - 0x10]
and ecx, 1
je 0x59a9d0
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x59a97b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4d8]
shl ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + 4], ecx
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [0x79402c]
add esp, 4
cmp esi, esp
call fcn.00516fe7
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x59a95e
mov eax, 0x1b
jmp 0x59a9d2
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x59a9c6
xor eax, eax
jne 0x59a983
mov esi, esp
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 8]
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x59a9c4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + 8], ecx
jmp 0x59a9d0
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
xor eax, eax
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00516fe7
mov esp, ebp
pop ebp
ret
Function at 0x59ce70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea edi, [ebp - 0x34]
mov ecx, 0xd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x7a3104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x710]
test ecx, ecx
je 0x59cea8
mov dword [ebp - 0x34], 1
jmp 0x59ceaf
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
mov esi, esp
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.00516fe7
test eax, eax
jge 0x59cef3
mov edx, dword [ebp + 0xc]
push edx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov eax, dword [ebp + 8]
push eax
call fcn.00514800
add esp, 0xc
jmp 0x59cf97
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6a8]
push edx
call fcn.00513a1d
add esp, 4
mov dword [ebp - 0xc], eax
imul eax, dword [ebp - 0xc], 0x3e8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6ac]
push eax
call fcn.00513a1d
add esp, 4
mov dword [ebp - 0xc], eax
imul ecx, dword [ebp - 0xc], 0x3e8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0x98000004
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp esi, esp
call fcn.00516fe7
test eax, eax
je 0x59cf97
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov ecx, dword [ebp + 8]
push ecx
call fcn.00514800
add esp, 0x10
push edx
mov ecx, ebp
push eax
lea edx, [0x59cfc4]
call fcn.005163b2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005150f7
add esp, 0x34
cmp ebp, esp
call fcn.00516fe7
mov esp, ebp
pop ebp
ret
Function at 0x59e1d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
push edi
lea edi, [ebp - 0x11c]
mov ecx, 0x47
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x7a3104]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 6
mov esi, esp
push 4
lea eax, [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.00516fe7
test eax, eax
jge 0x59e25e
push 0x100
lea eax, [ebp - 0x118]
push eax
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00516fe7
push eax
call fcn.00514f4e
add esp, 0xc
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
mov ecx, dword [ebp + 8]
push ecx
call fcn.00514800
add esp, 0xc
push edx
mov ecx, ebp
push eax
lea edx, [0x59e28c]
call fcn.005163b2
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005150f7
add esp, 0x11c
cmp ebp, esp
call fcn.00516fe7
mov esp, ebp
pop ebp
ret

Function at 0x5aa1b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x4004747b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5aa227
mov esi, esp
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.00516fe7
push edx
mov ecx, ebp
push eax
lea edx, [0x5aa248]
call fcn.005163b2
pop eax
pop edx
pop esi
add esp, 0x1c
cmp ebp, esp
call fcn.00516fe7
mov esp, ebp
pop ebp
ret
Function at 0x5c6640
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.00515250
add esp, 0xc
mov esi, esp
push 0xf0000040
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.00516fe7
test eax, eax
jne 0x5c66b4
jmp 0x5c678c
mov esi, esp
lea edx, [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp esi, esp
call fcn.00516fe7
test eax, eax
jne 0x5c66d9
jmp 0x5c6758
mov esi, esp
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp esi, esp
call fcn.00516fe7
test eax, eax
jne 0x5c66fc
jmp 0x5c6758
mov esi, esp
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
push 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.00516fe7
test eax, eax
jne 0x5c6721
jmp 0x5c6758
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x20]
jae 0x5c672b
jmp 0x5c6758
mov esi, esp
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.00516fe7
test eax, eax
je 0x5c6750
jmp 0x5c6758
xor eax, eax
jne 0x5c66b4
cmp dword [ebp - 0x14], 0
je 0x5c6771
mov esi, esp
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00516fe7
cmp dword [ebp - 8], 0
je 0x5c678c
mov esi, esp
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00516fe7
push edx
mov ecx, ebp
push eax
lea edx, [0x5c67b0]
call fcn.005163b2
pop eax
pop edx
pop edi
pop esi
add esp, 0x3c
cmp ebp, esp
call fcn.00516fe7
mov esp, ebp
pop ebp
ret
Function at 0x5c7d70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0x8000
mov esi, esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [0x794034]
add esp, 8
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5c7ddd
mov esi, esp
mov edx, dword [ebp - 4]
push edx
call dword [0x794030]
add esp, 4
cmp esi, esp
call fcn.00516fe7
xor eax, eax
jmp 0x5c7e49
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp esi, esp
call fcn.00516fe7
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5c7e1d
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
je 0x5c7e1d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jbe 0x5c7e37
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [0x794030]
add esp, 4
cmp esi, esp
call fcn.00516fe7
xor eax, eax
jmp 0x5c7e49
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jae 0x5c7e44
mov eax, dword [ebp - 4]
jmp 0x5c7e49
jmp 0x5c7da0
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00516fe7
mov esp, ebp
pop ebp
ret