joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a210
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cafc
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
call fcn.00476750
push 0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [esi], vtable.Background_Moody.0
mov dword [esi + 0x34], 0
push str.game_moody_hills3.rttex
call fcn.00401a60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0045acd0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0045ae90
push eax
mov byte [ebp - 4], 2
call fcn.00406e90
mov ecx, eax
call fcn.00442b70
lea ecx, [ebp - 0x28]
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 0
call fcn.00401c10
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.game_moody_hills2.rttex
call fcn.00401a60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.0045acd0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0045ae90
push eax
mov byte [ebp - 4], 4
call fcn.00406e90
mov ecx, eax
call fcn.00442b70
lea ecx, [ebp - 0x28]
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 0
call fcn.00401c10
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.game_moody_hills1.rttex
call fcn.00401a60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.0045acd0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0045ae90
push eax
mov byte [ebp - 4], 6
call fcn.00406e90
mov ecx, eax
call fcn.00442b70
lea ecx, [ebp - 0x28]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 0
call fcn.00401c10
sub esp, 0x10
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0
lea ecx, [ebp - 0x20]
mov dword [esp], 0
call fcn.004132f0
push 0x2c
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
call fcn.004ee2bd
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 7
test edi, edi
je 0x47a3a7
push 4
push 0
sub esp, 0x18
mov ecx, esp
push str.game_moody_cloud.rttex
call fcn.00401a60
push esi
mov ecx, edi
call fcn.004784e0
mov dword [esi + 0x34], eax
jmp 0x47a3ae
mov dword [esi + 0x34], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
Function at 0x47d2f0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cc0c
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
call fcn.00476750
push 0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [esi], vtable.Background_SunnySky.0
mov dword [esi + 0x30], 0
push str.game_sun.rttex
call fcn.00401a60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0045acd0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0045ae90
push eax
mov byte [ebp - 4], 2
call fcn.00406e90
mov ecx, eax
call fcn.00442b70
lea ecx, [ebp - 0x28]
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 0
call fcn.00401c10
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.game_custom_sky_backgd.rttex
call fcn.00401a60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.0045acd0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0045ae90
push eax
mov byte [ebp - 4], 4
call fcn.00406e90
mov ecx, eax
call fcn.00442b70
lea ecx, [ebp - 0x28]
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 0
call fcn.00401c10
mov ecx, dword [esi + 0x28]
push 2
call fcn.0044b140
sub esp, 0x10
lea ecx, [ebp - 0x20]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004132f0
push 0x2c
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
call fcn.004ee2bd
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x47d445
push 2
push 2
sub esp, 0x18
mov ecx, esp
push str.game_cloud.rttex
call fcn.00401a60
push esi
mov ecx, edi
call fcn.004784e0
mov dword [esi + 0x30], eax
jmp 0x47d44c
mov dword [esi + 0x30], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
Function at 0x47d690
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cafc
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
call fcn.00476750
push 0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [esi], vtable.Background_Sunset.0
mov dword [esi + 0x34], 0
push str.game_sunset.rttex
call fcn.00401a60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0045acd0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0045ae90
push eax
mov byte [ebp - 4], 2
call fcn.00406e90
mov ecx, eax
call fcn.00442b70
lea ecx, [ebp - 0x28]
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 0
call fcn.00401c10
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.game_sunset_water.rttex
call fcn.00401a60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.0045acd0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0045ae90
push eax
mov byte [ebp - 4], 4
call fcn.00406e90
mov ecx, eax
call fcn.00442b70
lea ecx, [ebp - 0x28]
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 0
call fcn.00401c10
mov ecx, dword [esi + 0x2c]
push 0
call fcn.0044d040
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.game_sun.rttex
call fcn.00401a60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.0045acd0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.0045ae90
push eax
mov byte [ebp - 4], 6
call fcn.00406e90
mov ecx, eax
call fcn.00442b70
lea ecx, [ebp - 0x28]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 0
call fcn.00401c10
mov ecx, dword [esi + 0x30]
push 1
call fcn.0044b140
sub esp, 0x10
lea ecx, [ebp - 0x20]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004132f0
push 0x2c
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
call fcn.004ee2bd
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 7
test edi, edi
je 0x47d83b
push 1
push 0
sub esp, 0x18
mov ecx, esp
push str.game_cloud_red.rttex
call fcn.00401a60
push esi
mov ecx, edi
call fcn.004784e0
mov dword [esi + 0x34], eax
jmp 0x47d842
mov dword [esi + 0x34], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
Function at 0x494a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00498bc0
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.00403930
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, eax
test esi, esi
jle 0x494a72
mov dword [ebp - 0x20], 0x11
nop dword [eax]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x20]
mov al, byte [edx + ebx]
xor byte [edi + ecx], al
inc ecx
cmp ecx, esi
jl 0x494a60
lea ecx, [ebp - 0x1c]
call fcn.00401c10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret

Function at 0x494a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004976d0
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.00403930
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, eax
test esi, esi
jle 0x494ae2
mov dword [ebp - 0x20], 0x11
nop dword [eax]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x20]
mov al, byte [edx + ebx]
xor byte [edi + ecx], al
inc ecx
cmp ecx, esi
jl 0x494ad0
lea ecx, [ebp - 0x1c]
call fcn.00401c10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
Function at 0x494e30
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f76d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x55b598]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x400
mov dword [ebp - 0x60], edi
push 0x40
mov dword [ebp - 0x60], eax
call ebx
mov esi, eax
test esi, esi
je 0x494e92
push 0x400
push 0x40
call ebx
mov ebx, eax
test ebx, ebx
jne 0x494ea3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x5285e4
mov ecx, edi
call fcn.00401a60
jmp 0x494f6e
lea eax, [ebp - 0x70]
mov dword [ebp - 0x68], 0x400
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x400
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x60]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x494ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x52e9bc
call fcn.004580c0
add esp, 8
mov ecx, edi
push 0x5285e4
call fcn.00401a60
jmp 0x494f6e
lea eax, [ebp - 0x5c]
push eax
push esi
call sub.ADVAPI32.dll_ConvertSidToStringSidA
test eax, eax
je 0x494ece
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
call fcn.00401a60
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00401a60
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [ebp - 4], 1
call esi
push ebx
call esi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x52d7ec
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00418740
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
push eax
push edi
call fcn.004024c0
add esp, 0x18
lea ecx, [ebp - 0x58]
call fcn.00401c10
lea ecx, [ebp - 0x28]
call fcn.00401c10
lea ecx, [ebp - 0x40]
call fcn.00401c10
mov eax, edi
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.004ee2fb
mov esp, ebp
pop ebp
ret
Function at 0x495100
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f816
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x7e0]
mov dword [ebp - 0x82c], edi
push eax
mov dword [ebp - 0x82c], 0x7d0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4951cf
lea eax, [ebp - 0x828]
push eax
call fcn.00459ff0
add esp, 4
push 0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00403930
push eax
call fcn.004956a0
push edx
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004947f0
mov esi, eax
lea eax, [ebp - 0x7f8]
mov byte [ebp - 4], 1
push eax
call fcn.00499360
push esi
push eax
push edi
mov byte [ebp - 4], 2
call fcn.00442ee0
add esp, 0x24
lea ecx, [ebp - 0x7f8]
call fcn.00401c10
lea ecx, [ebp - 0x810]
call fcn.00401c10
lea ecx, [ebp - 0x828]
call fcn.00401c10
jmp 0x4951dd
lea eax, [ebp - 0x7e0]
mov ecx, edi
push eax
call fcn.00401a60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret

Function at 0x495340
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f8c5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x55b598]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
push 0
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], 0x280
call esi
push dword [ebp - 0x48]
call fcn.004fd222
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4953a5
push edi
call fcn.00497370
add esp, 4
jmp 0x49544e
lea eax, [ebp - 0x48]
push eax
push ebx
call esi
test eax, eax
jne 0x49543f
mov eax, dword [ebx + 0x190]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call fcn.00401aa0
xor esi, esi
mov dword [ebp - 4], 0
cmp dword [ebp - 0x44], esi
jle 0x495418
test esi, esi
je 0x4953e4
push 0x52a4d0
lea ecx, [ebp - 0x28]
call fcn.00440850
movzx eax, byte [ebx + esi + 0x194]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004949e0
add esp, 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00423fe0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401c10
inc esi
cmp esi, dword [ebp - 0x44]
jl 0x4953d3
push ebx
call fcn.004f6b7b
sub esp, 0x14
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00401a10
push edi
call fcn.004957a0
add esp, 0x1c
lea ecx, [ebp - 0x28]
call fcn.00401c10
jmp 0x49544e
push ebx
call fcn.004f6b7b
push edi
call fcn.00497370
add esp, 8
mov eax, edi
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.004ee2fb
mov esp, ebp
pop ebp
ret
Function at 0x495470
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f816
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x7e0]
mov dword [ebp - 0x82c], edi
push eax
mov dword [ebp - 0x82c], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x49553f
lea eax, [ebp - 0x828]
push eax
call fcn.00459ff0
add esp, 4
push 0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00403930
push eax
call fcn.004956a0
push edx
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004947f0
mov esi, eax
lea eax, [ebp - 0x7f8]
mov byte [ebp - 4], 1
push eax
call fcn.00499360
push esi
push eax
push edi
mov byte [ebp - 4], 2
call fcn.00442ee0
add esp, 0x24
lea ecx, [ebp - 0x7f8]
call fcn.00401c10
lea ecx, [ebp - 0x810]
call fcn.00401c10
lea ecx, [ebp - 0x828]
call fcn.00401c10
jmp 0x49554d
lea eax, [ebp - 0x7e0]
mov ecx, edi
push eax
call fcn.00401a60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret

Function at 0x4956a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x5555aaaa
mov dword [ebp - 4], 0x5555aaaa
push edi
test esi, esi
jne 0x4956d2
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4956c6
sub esi, ecx
mov dword [ebp + 0xc], esi
lea eax, [esi - 7]
xor edi, edi
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x495705
mov esi, 0x5555aaaa
push dword [edi + ebx + 4]
push dword [edi + ebx]
call fcn.00494990
xor dword [ebp - 4], edx
add edi, 8
add esp, 8
xor esi, eax
cmp edi, dword [ebp - 0x14]
jl 0x4956e3
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 0xc]
mov eax, esi
xorps xmm0, xmm0
cdq
and edx, 7
movlpd qword [ebp - 0xc], xmm0
mov ecx, dword [ebp - 8]
add eax, edx
and eax, 0xfffffff8
mov dword [ebp - 0x14], eax
cmp eax, esi
jge 0x49577c
xor edi, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], ecx
jmp 0x495735
mov edi, dword [ebp + 0xc]
movsx eax, byte [eax + ebx]
xor ecx, ecx
xor ebx, ebx
cdq
bts ebx, edi
cmp edi, 0x20
cmovae ecx, ebx
xor ebx, ecx
cmp edi, 0x40
cmovae ecx, ebx
push ecx
push ebx
push edx
push eax
call fcn.004eef80
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
or edi, eax
mov eax, dword [ebp - 0x14]
or ecx, edx
add dword [ebp + 0xc], 8
inc eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp eax, esi
jl 0x495732
jmp 0x49577f
mov edi, dword [ebp - 0xc]
push ecx
push edi
call fcn.00494990
xor eax, dword [ebp - 0x18]
add esp, 8
xor edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4992d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
lea edx, [ebp + 0x18]
sub esp, 8
cmp dword [ebp + 0xc], ecx
jle 0x499348
push ebx
push esi
mov ebx, 0xa
push edi
mov dword [ebp - 4], ebx
nop dword [eax + eax]
lea esi, [edx + 8]
lea eax, [esi + 4]
mov dword [ebp - 8], eax
lea edi, [edx]
mov eax, dword [esi]
mov eax, dword [eax]
xor eax, dword [ebp + 0x10]
cdq
idiv ebx
mov eax, dword [esi - 4]
mov esi, 0xa
mov ebx, edx
shl bl, 3
mov eax, dword [eax]
xor eax, dword [ebp + 0x10]
cdq
idiv dword [ebp - 4]
mov eax, dword [edi]
or bl, dl
shl bl, 3
mov eax, dword [eax]
xor eax, dword [ebp + 0x10]
cdq
idiv esi
mov eax, dword [ebp + 8]
or bl, dl
mov edx, dword [ebp - 8]
mov byte [ecx + eax], bl
inc ecx
mov ebx, esi
cmp ecx, dword [ebp + 0xc]
jl 0x4992f0
pop edi
pop esi
pop ebx
mov byte [ecx + eax], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov byte [ecx + eax], cl
mov esp, ebp
pop ebp
ret
Function at 0x49c4c0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
mov ecx, dword [0x5614dc]
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov esi, dword [eax + ecx*4]
xor edi, edi
lea ebx, [esi + 0x10]
nop word [eax + eax]
push 8
push edi
call fcn.0049c5a0
shl eax, 0x18
push 0x20
lea ecx, [eax + eax]
mov edx, ecx
xor edx, 0x4c11db7
test eax, eax
cmovns edx, ecx
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
push ecx
call fcn.0049c5a0
inc edi
mov dword [ebx], eax
add esp, 0x10
lea ebx, [ebx + 4]
cmp edi, 0x100
jl 0x49c4e0
pop edi
mov dword [esi + 8], 1
pop esi
pop ebx
ret

Function at 0x49fd90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x49fdb7
cmp word [eax + 8], 2
jne 0x49fdb7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0049fdc0

Function at 0x49ff40
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], 2
push 0
sete al
inc eax
push eax
push 2
call dword [sym.imp.WSOCK32.dll_socket]
pop ebp
ret

Function at 0x49ff80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
push eax
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x49ffc2
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x12]
mov dword [esi], eax
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp - 4]
mov word [esi + 4], ax
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
Function at 0x49fff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
push 0
push 0
test esi, esi
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x18], 0
cmove eax, edx
mov dword [ebp - 0x1c], 0
push eax
test esi, esi
lea eax, [ebp - 0x14]
cmove eax, edx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x14]
push ecx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x4a0071
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x4a0060
sub eax, 0x13
jne 0x4a007a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x18], 0x8000
je 0x4a008c
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4a00a2
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x12]
mov dword [esi], eax
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esi + 4], ax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop esi
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x4a0108
mov eax, 2
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
movzx eax, word [esi + 4]
push eax
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
push 0
push 0
mov eax, esi
neg eax
sbb eax, eax
xor ecx, ecx
and eax, 0x10
test esi, esi
push eax
lea eax, [ebp - 0x14]
cmove eax, ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASendTo]
pop edi
pop esi
cmp eax, 0xffffffff
jne 0x4a0157
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
Function at 0x4a0260
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x55b598]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, 0x10624dd3
mul ecx
push esi
mov esi, dword [ebp + 0xc]
shr edx, 6
imul eax, edx, 0x3e8
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x20c], 0
sub ecx, eax
mov dword [ebp - 0x108], 0
imul eax, ecx, 0x3e8
mov dword [ebp - 0x210], eax
mov eax, dword [esi]
test al, 1
je 0x4a02cc
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], 1
test al, 2
je 0x4a02e0
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], 1
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jns 0x4a0318
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret
mov dword [esi], 0
test eax, eax
je 0x4a034a
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4a0336
or dword [esi], 1
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4a034a
or dword [esi], 2
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004ee2fb
mov esp, ebp
pop ebp
ret