joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100313e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10187270]
sub esp, 0x24
cmp eax, 0xffffffff
jne 0x10031402
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x10187270], eax
leave
ret

Function at 0x10031404
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x34
mov eax, 0x100ea2e5
call fcn.100e3589
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov eax, dword fs:[0x2c]
xor edi, edi
mov esi, dword [0x1018ee7c]
mov esi, dword [eax + esi*4]
mov eax, dword [0x101f2980]
cmp eax, dword [esi + 4]
jle 0x10031460
mov esi, 0x101f2980
push esi
call fcn.100e1563
cmp dword [0x101f2980], 0xffffffff
pop ecx
jne 0x10031460
mov dword [ebp - 4], edi
call fcn.100313e0
mov dword [0x101f2984], eax
or dword [ebp - 4], 0xffffffff
push esi
call fcn.100e1512
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
xor edi, edi
inc edi
test ecx, ecx
jmp 0x10031532
mov esi, dword [0x101f2984]
xor edx, edx
mov eax, ebx
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test ebx, ebx
je 0x100314ce
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100314cb
cmp dword [ebp - 0x30], 0x1000
jne 0x100314cb
test byte [ebp - 0x2c], 0xcc
je 0x100314cb
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x10]
cmp esi, ecx
ja 0x100314ce
mov eax, ebx
sub ecx, esi
sub eax, dword [ebp - 0x40]
cmp eax, ecx
jbe 0x100314eb
jmp 0x100314ce
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100314e4
xor edi, edi
jmp 0x100314eb
mov dword [ebp - 0x18], 1
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10031508
and dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 0
je 0x1003151d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp - 0x20], esi
cmovne edi, eax
add dword [ebp - 0x14], esi
add ebx, esi
sub ecx, esi
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], edi
jne 0x10031473
mov eax, edi
call fcn.100e3557
ret
Function at 0x10031543
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x34
mov eax, 0x100ea313
call fcn.100e3589
mov ebx, edx
mov dword [ebp - 0x14], ecx
mov eax, dword fs:[0x2c]
xor edi, edi
mov esi, dword [0x1018ee7c]
mov esi, dword [eax + esi*4]
mov eax, dword [0x101f2988]
cmp eax, dword [esi + 4]
jle 0x1003159f
mov esi, 0x101f2988
push esi
call fcn.100e1563
cmp dword [0x101f2988], 0xffffffff
pop ecx
jne 0x1003159f
mov dword [ebp - 4], edi
call fcn.100313e0
mov dword [0x101f298c], eax
or dword [ebp - 4], 0xffffffff
push esi
call fcn.100e1512
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
xor edi, edi
inc edi
mov dword [ebp - 0x10], edi
test ecx, ecx
je 0x1003169e
mov esi, dword [0x101f298c]
xor edx, edx
mov eax, ebx
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test ebx, ebx
je 0x10031611
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1003160e
cmp dword [ebp - 0x30], 0x1000
jne 0x1003160e
test byte [ebp - 0x2c], 0xee
je 0x1003160e
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x10]
cmp esi, ecx
ja 0x10031611
mov eax, ebx
sub ecx, esi
sub eax, dword [ebp - 0x40]
cmp eax, ecx
jbe 0x10031631
jmp 0x10031611
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003162a
xor edi, edi
mov dword [ebp - 0x10], edi
jmp 0x10031631
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x10031652
xor ecx, ecx
mov dword [ebp - 0x18], ecx
jmp 0x10031655
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
je 0x1003166d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x1003168b
mov eax, esi
sub eax, ecx
push eax
mov eax, dword [ebp - 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
add ebx, esi
add dword [ebp - 0x14], esi
sub ecx, esi
mov dword [ebp + 8], ecx
jne 0x100315b6
mov eax, edi
call fcn.100e3557
ret
Function at 0x1003473b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edx, str.xxxx____xxx
mov ecx, 0x1010731c
call fcn.10034660
add eax, 0xa
mov ebx, str.xxxxxxx
mov edx, ebx
mov dword [esp + 0x14], eax
mov ecx, 0x10107330
call fcn.10034660
mov edx, str.xxxxxx
mov ecx, 0x10107340
mov edi, eax
call fcn.10034660
mov esi, eax
mov edx, ebx
mov ecx, 0x10107348
lea ebp, [esi + 5]
call fcn.10034660
mov dword [0x10157104], esi
lea ebx, [eax - 7]
lea eax, [ebp - 9]
mov dword [0x10157100], eax
add edi, 5
je 0x10034816
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push 7
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x14]
mov edx, 0x1003471b
push 7
call fcn.1008bbe4
pop ecx
lea eax, [esp + 0x10]
push eax
push 0x40
push 7
push edi
call esi
cmp byte [edi + 2], 0
je 0x100347dc
mov byte [edi + 2], 0
cmp byte [edi + 4], 0x90
je 0x100347e6
mov byte [edi + 4], 0x90
lea eax, [esp + 0x10]
push eax
push 0x40
push 5
push ebp
call esi
mov eax, dword [0x10107350]
mov dword [ebp], eax
mov al, byte [0x10107354]
mov byte [ebp + 4], al
lea eax, [esp + 0x10]
push eax
push 0x40
push 1
push ebx
call esi
cmp byte [ebx], 0
je 0x10034816
mov byte [ebx], 0
mov edx, str.x____x____xxx_xx
mov ecx, 0x1010736c
call fcn.10034660
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x1003483e
mov ecx, dword [0x10107350]
mov dword [eax], ecx
mov cl, byte [0x10107354]
mov byte [eax + 4], cl
pop ecx
pop ecx
ret

Function at 0x1003d49e
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x74], 0
je 0x1003d50d
mov edi, dword [esi + 0x20]
add edi, dword [esi + 0x74]
cmp dword [edi + 8], 6
je 0x1003d4bc
push 5
pop edx
call fcn.1003d67f
mov edx, dword [esi + 8]
mov eax, dword [edx - 0x10]
mov ecx, dword [edx - 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [edx - 8]
mov dword [edx + 8], eax
mov edx, dword [esi + 8]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [edx - 0x10], eax
mov dword [edx - 0xc], ecx
mov eax, dword [edi + 8]
mov dword [edx - 8], eax
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 8]
cmp eax, 0x10
jg 0x1003d4f9
xor edx, edx
mov ecx, esi
inc edx
call fcn.1003d83f
add dword [esi + 8], 0x10
mov ecx, esi
mov edx, dword [esi + 8]
push 1
add edx, 0xffffffe0
call fcn.1003dded
pop ecx
push 2
pop edx
mov ecx, esi
pop edi
pop esi
jmp fcn.1003d67f

Function at 0x1003d67f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x1003d6a2
mov dword [eax + 0x44], edx
mov eax, dword [esi + 0x70]
push 1
add eax, 4
push eax
call dword [sym.imp.VCRUNTIME140.dll_longjmp]
mov eax, dword [esi + 0x10]
mov byte [esi + 6], dl
cmp dword [eax + 0x58], 0
je 0x1003d6bb
call fcn.1003d63c
mov eax, dword [esi + 0x10]
push esi
call dword [eax + 0x58]
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1003fec1
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x10157040]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
xor esi, esi
lea eax, [esp + 0x1c]
mov ebp, ecx
mov dword [esp + 0x14], esi
push edi
mov edi, dword [esp + 0x228]
mov ebx, 0x200
mov dword [esp + 0x1c], ebp
mov esi, edx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
call fcn.10039076
cmp ebx, edi
mov ecx, edi
push esi
cmovbe ecx, ebx
mov ebx, ecx
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [esp + 0x24], eax
add esp, 0x10
sub edi, eax
je 0x1003ff27
cmp eax, ebx
je 0x1003fefb
lea ecx, [esp + 0x14]
call fcn.100390de
push 0
pop esi
test edi, edi
je 0x1003ff45
or edx, 0xffffffff
mov ecx, ebp
call fcn.10037ccf
test eax, eax
je 0x1003ff48
xor esi, esi
inc esi
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100e1471
add esp, 0x214
ret

Function at 0x100401d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [esp + 8], edx
push esi
push edi
xor edi, edi
mov esi, dword [ebx + 8]
inc edi
sub esi, dword [ebx + 0xc]
sar esi, 4
sub esi, edi
je 0x10040243
mov eax, dword [ebp + 8]
mov edx, eax
mov ecx, ebx
dec esi
call fcn.10037b10
cmp eax, 3
jne 0x10040256
test edi, edi
je 0x10040236
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.10037bf1
push ecx
push ecx
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x1c]
call fcn.100387db
add esp, 0x10
test eax, eax
jg 0x10040284
xor edi, edi
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
test esi, esi
jne 0x100401fd
push 0
mov edx, edi
mov ecx, ebx
call fcn.1003f81e
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.10038b78
pop ecx
test edi, edi
je 0x10040236
push dword [esp + 0x10]
push dword [esp + 0x18]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x10040236
xor edi, edi
inc edi
jmp 0x10040238

Function at 0x1004289a
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
push dword [esp + 0x10]
mov edi, edx
mov esi, ecx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
mov ecx, esi
test eax, eax
jne 0x100428bd
mov edx, dword [esp + 0x14]
call fcn.10037e18
jmp 0x100428ed
push 0x101087ac
push 0x101087b0
mov edx, eax
call fcn.10038e45
push dword [esp + 0x1c]
mov edx, eax
mov ecx, esi
push 0x10105c98
call fcn.10038e45
add esp, 0x10
mov ecx, esi
push 0xfffffffffffffffe
pop edx
call fcn.100379ce
mov ecx, esi
call fcn.10041d8e
push edi
push 0xfffffffffffffffe
pop edx
mov ecx, esi
call fcn.10038130
pop ecx
pop edi
pop esi
pop ecx
ret
Function at 0x10045fb7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov esi, edi
mov dword [esp + 0x10], edx
shr esi, 5
mov ebx, edi
inc esi
mov dword [esp + 0x14], eax
mov edx, edi
cmp edi, esi
jb 0x10046004
mov edi, dword [esp + 0x10]
movzx ecx, byte [edi + edx - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x10045fe2
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, ebx
mov esi, dword [eax + ecx*4]
jmp 0x10046030
cmp dword [esi + 0xc], edi
jne 0x1004602e
push edi
lea eax, [esi + 0x10]
push eax
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x1004604c
mov esi, dword [esi]
test esi, esi
jne 0x10046014
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push edi
call fcn.10045f1d
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
mov al, byte [esi + 5]
mov ecx, dword [edi + 0x10]
movzx edx, byte [ecx + 0x14]
not edx
movzx ecx, al
and edx, ecx
test dl, 3
je 0x1004606b
xor al, 3
mov byte [esi + 5], al
mov eax, esi
jmp 0x10046045

Function at 0x1004c568
Capabilities:
Enumerate files on windows

Disassembly:
push 0x14c
mov eax, 0x100eb563
call fcn.100e35bc
push str.Loading_scripts...
push dword [0x101d3874]
call fcn.100cf94d
push str.Loading_lua_scripts...
call fcn.100170fd
add esp, 0xc
lea eax, [ebp - 0x154]
xor edi, edi
push edi
push edi
push edi
push eax
push edi
push str.te_mod_scriptslua.lua
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov esi, eax
cmp esi, 0xffffffff
jb 0x1004c5b7
xor al, al
jmp 0x1004c614
cmp byte [ebp - 0x128], 0x5f
lea eax, [ebp - 0x128]
jne 0x1004c5dc
push eax
push str.Ignored_lua_script__s
push dword [0x101d3874]
call fcn.100cf94d
add esp, 0xc
jmp 0x1004c5fc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x158], esp
push eax
call fcn.100054df
mov dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.1004bf59
add esp, 0x18
test esi, esi
je 0x1004c612
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1004c5b7
mov al, 1
call fcn.100e356b
ret
Function at 0x1004f2da
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
mov eax, 0x58bf
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1a], ebp
mov dword [esp + 0x14], 0xce6dd971
mov word [esp + 0x18], ax
push edi
mov edi, dword [esp + 0x30]
test esi, esi
je 0x1004f311
test ebx, ebx
jne 0x1004f326
push 0x44
push str.C:Usersmegaw_source_reposTEProjectd3d9FullRakNetDataBlockEncryptor.cpp
push str.input__inputLength
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
call fcn.1005c6bf
lea ecx, [ebx + 5]
mov byte [esp + 0x30], al
and cl, 0xf
mov bl, 0xf
sub bl, cl
call fcn.1005c6bf
mov edx, dword [esp + 0x34]
shl al, 4
or al, bl
mov dword [esp + 0x14], eax
movzx eax, bl
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
push ebx
push esi
lea ecx, [ebx + 6]
add ecx, eax
add eax, 6
add eax, edi
mov dword [edx], ecx
push eax
cmp esi, edi
jne 0x1004f370
call sub.VCRUNTIME140.dll_memmove
jmp 0x1004f375
call sub.VCRUNTIME140.dll_memcpy
mov al, byte [esp + 0x3c]
add esp, 0xc
mov byte [edi + 4], al
mov esi, ebp
mov eax, dword [esp + 0x14]
mov byte [edi + 5], al
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004f3a8
mov ebx, eax
call fcn.1005c6bf
mov byte [edi + esi + 6], al
inc esi
cmp esi, ebx
jb 0x1004f392
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add ebx, 2
mov esi, ebp
add ebx, eax
je 0x1004f3c5
movzx eax, byte [edi + esi + 4]
lea ecx, [esp + 0x18]
push eax
call fcn.1004f1e7
inc esi
cmp esi, ebx
jb 0x1004f3b1
mov eax, dword [esp + 0x1e]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov edx, eax
push edi
push ecx
push edi
lea ebx, [eax + 0x234]
mov ecx, ebx
call fcn.100624c0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov esi, dword [eax]
sub esi, 0x10
cmp esi, 0x10
jb 0x1004f424
add edi, esi
push 0x10
mov ecx, edi
sub ebp, esi
pop edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x1004f3fb
mov edx, dword [esp + 0x10]
push edi
push ecx
push edi
mov ecx, ebx
call fcn.100624c0
mov ebp, esi
add esp, 0xc
sub esi, 0x10
sub edi, 0x10
cmp esi, 0x10
jae 0x1004f3f4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
Function at 0x1005c6bf
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x10186a7c], 0xffffffff
push ebx
push esi
mov ebx, 0x101eacd0
mov esi, 0x101eacd8
push edi
mov edi, ebx
jge 0x1005c5d3
mov ecx, 0x1105
call fcn.1005c586
mov eax, dword [0x101eacd0]
mov edx, dword [0x101eacd4]
push ebp
mov dword [0x10186a7c], 0x26f
mov ebp, 0xe3
mov dword [0x101eb694], 0x101eacd4
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [esi + 0x62c]
mov dword [edi], ecx
add edi, 4
mov edx, dword [esi]
add esi, 4
sub ebp, 1
jne 0x1005c5f8
mov ebp, 0x18c
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
lea ebx, [ebx + 4]
mov dword [edi], ecx
lea edi, [edi + 4]
mov edx, dword [esi]
lea esi, [esi + 4]
sub ebp, 1
jne 0x1005c634
mov edx, dword [0x101eacd0]
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
shr eax, 0xb
xor edx, eax
mov dword [edi], ecx
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
pop edi
mov eax, edx
shr eax, 0x12
pop esi
xor eax, edx
pop ebx
ret
sub dword [0x10186a7c], 1
js 0x1005c5b1
mov eax, dword [0x101eb694]
mov ecx, dword [eax]
add eax, 4
mov dword [0x101eb694], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x10061abb
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push 4
lea esi, [ecx + 2]
pop edi
movzx eax, byte [esi + 1]
movzx ecx, byte [esi - 1]
mov edx, dword [eax*4 + 0x10157170]
movzx eax, byte [esi]
lea esi, [esi + 4]
xor edx, dword [ecx*4 + 0x10157970]
xor edx, dword [eax*4 + 0x10157570]
movzx eax, byte [esi - 6]
xor edx, dword [eax*4 + 0x10157d70]
mov dword [esi - 6], edx
sub edi, 1
jne 0x10061ac3
pop edi
pop esi
ret
Function at 0x10061afc
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x28
mov eax, dword [0x10157040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
push 3
pop edx
mov eax, dword [ecx + edx*4]
mov dword [esp + edx*4 + 0x14], eax
sub edx, 1
jns 0x10061b15
xor esi, esi
xor edx, edx
xor edi, edi
mov ebx, esi
cmp esi, 0xb
jge 0x10061c02
jmp 0x10061b46
cmp edx, 4
jge 0x10061b4b
mov eax, dword [esp + edi*4 + 0x14]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, 4
jl 0x10061b34
mov eax, edx
lea esi, [ebx + 1]
xor edx, edx
cmp eax, 4
cmovne edx, eax
cmovne esi, ebx
cmp edi, 4
jl 0x10061b27
cmp esi, 0xb
jge 0x10061c02
mov ebx, 0x100fdd08
movzx eax, byte [esp + 0x22]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
mov al, byte [eax + 0x100fde80]
xor byte [esp + 0x15], al
movzx eax, byte [esp + 0x23]
mov al, byte [eax + 0x100fde80]
xor byte [esp + 0x16], al
movzx eax, byte [esp + 0x20]
mov al, byte [eax + 0x100fde80]
xor byte [esp + 0x17], al
movzx eax, byte [esp + 0x21]
mov al, byte [eax + 0x100fde80]
xor al, cl
xor ecx, ecx
xor byte [esp + 0x14], al
inc ecx
mov eax, dword [esp + ecx*4 + 0x10]
xor dword [esp + ecx*4 + 0x14], eax
inc ecx
cmp ecx, 4
jl 0x10061bb4
xor edi, edi
cmp esi, 0xb
jge 0x10061c02
jmp 0x10061bdd
cmp edx, 4
jge 0x10061be2
mov eax, dword [esp + edi*4 + 0x14]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, 4
jl 0x10061bcb
mov eax, edx
lea ecx, [esi + 1]
xor edx, edx
cmp eax, 4
cmovne ecx, esi
cmovne edx, eax
mov esi, ecx
cmp edi, 4
jl 0x10061bc4
cmp ecx, 0xb
jl 0x10061b6e
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100e1471
add esp, 0x28
ret
Function at 0x10062e53
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 0xc], ecx
push esi
mov ebp, edx
mov ah, bl
mov byte [esp + 0xc], ah
mov esi, ebx
push edi
test ebp, ebp
jle 0x10062e7d
mov al, byte [ecx + esi]
and al, 0xaa
xor ah, al
inc esi
cmp esi, ebp
jl 0x10062e6d
mov byte [esp + 0x10], ah
mov esi, dword [esp + 0x20]
mov eax, esi
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 0xf
jbe 0x10062e8e
mov eax, dword [esi]
push dword [esp + 0x10]
mov ecx, esi
mov byte [eax], bl
call fcn.1000bb0a
mov edi, ebx
test ebp, ebp
jle 0x10062eb8
mov ebx, dword [esp + 0x14]
movzx eax, byte [ebx + edi]
mov ecx, esi
push eax
call fcn.1000bb0a
inc edi
cmp edi, ebp
jl 0x10062ea5
xor ebx, ebx
xor byte [esp + 0x1c], 0xcc
xor ecx, ecx
inc ecx
cmp ebp, ecx
jl 0x10062f08
push 0xf
pop edi
mov eax, esi
cmp dword [esi + 0x14], edi
jbe 0x10062ed0
mov eax, dword [esi]
movzx eax, byte [eax + ecx]
mov edx, esi
mov al, byte [eax + 0x100fdf80]
jbe 0x10062ee0
mov edx, dword [esi]
mov byte [edx + ecx], al
mov edx, esi
test bl, bl
je 0x10062ef6
cmp dword [esi + 0x14], edi
jbe 0x10062ef0
mov edx, dword [esi]
xor al, byte [esp + 0x1c]
jmp 0x10062efd
cmp dword [esi + 0x14], edi
jbe 0x10062efd
mov edx, dword [esi]
xor bl, 1
mov byte [edx + ecx], al
inc ecx
cmp ecx, ebp
jle 0x10062ec7
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10062fb5
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
ret
Function at 0x10064888
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10157040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x100649a2
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0xc]
push ebp
push 4
push eax
push 4
xor ebp, ebp
push 0xffff
inc ebp
push esi
mov dword [esp + 0x24], ebp
call ebx
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x40000
push eax
push 0x1002
push 0xffff
push esi
call ebx
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x4000
push eax
push 0x1001
push 0xffff
push esi
call ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ebp
test eax, eax
je 0x10064947
push 0xe5
push str.C:Usersmegaw_source_reposTEProjectd3d9FullRakNetSocketLayer.cpp
push 0x1010b600
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
or ecx, 0xffffffff
mov eax, ecx
jmp 0x100649a2
push 4
lea eax, [esp + 0x10]
push eax
push 0x20
push 0xffff
push esi
call ebx
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
push 2
pop eax
mov word [esp + 0x14], ax
test edi, edi
je 0x10064985
cmp byte [edi], 0
je 0x10064985
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
jmp 0x1006498a
and dword [esp + 0x18], 0
push 0x10
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
or ecx, 0xffffffff
cmp eax, ecx
cmove esi, ecx
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100e1471
add esp, 0x1c
ret 0xc

Function at 0x100649b6
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100649d7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x100649d7
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x100649d9
xor eax, eax
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10157040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 2
pop eax
mov dword [ebp - 0x258], 0x10
mov word [ebp - 0x254], ax
je 0x10064a74
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x254]
push eax
push 0
push 0x240
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 1
jge 0x10064a4f
cmp edi, 0xffffffff
je 0x10064a48
xor eax, eax
inc eax
jmp 0x10064a7a
and dword [esi], 0
xor eax, eax
jmp 0x10064a7a
push dword [ebp - 0x252]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x250]
push ebx
movzx edx, ax
lea eax, [ebp - 0x244]
push edi
push eax
call fcn.1005665f
jmp 0x10064a43
or dword [esi], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e1471
leave
ret 0xc