joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be7a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8f8e
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x62700c]
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 esi, dword [ebp + 8]
call fcn.00488470
push ecx
lea ecx, [ebp - 0xf0]
mov edi, eax
call fcn.0041c300
push esi
mov edx, 0x5d917c
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe0]
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov edx, 0x5d9170
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [edi]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test esi, esi
sete bl
cmp ecx, 0x10
jb 0x4be86c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4be862
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4be862
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test bl, bl
jne 0x4be936
mov eax, dword [0x5d9158]
mov ecx, dword [0x5d915c]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x20], bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
push eax
call fcn.0043dd50
mov ecx, eax
call fcn.004ac430
mov byte [ebp - 4], bl
mov edi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4be908
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4be8fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4be8fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call dword [eax + 0x10]
test edi, edi
je 0x4be936
mov eax, dword [edi + 0x50]
and eax, 0x40000
or eax, 0
je 0x4be936
mov bl, 1
jmp 0x4be938
xor bl, bl
lea ecx, [ebp - 0xf0]
call fcn.0041c440
mov al, bl
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.0045ad9e
mov esp, ebp
pop ebp
ret 8
Function at 0x4be970
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x62700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
cmp eax, 2
jae 0x4be9d9
mov edx, 0x5ba9b2
test eax, eax
mov ecx, 0x5d8f94
cmove ecx, edx
mov edx, ecx
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4be9c0
sub edx, esi
push edx
push ecx
mov ecx, edi
call fcn.00405890
mov al, 1
jmp 0x4beb0d
call fcn.00488470
push ecx
lea ecx, [ebp - 0x110]
mov esi, eax
call fcn.0041c300
push dword [ebp - 0x60]
mov edx, str.SELECT__name__FROM__accounts__WHERE__id__
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov edx, 0x5d914c
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x110]
call fcn.00404ef0
push eax
mov byte [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
call eax
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00405b30
test esi, esi
jne 0x4bea55
mov byte [ebp - 0x59], 0
jmp 0x4beaff
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x28], 0x656d616e
mov byte [ebp - 0x24], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x58]
push ecx
mov eax, dword [eax + 8]
mov ecx, esi
call eax
mov esi, eax
cmp edi, esi
je 0x4beab1
mov ecx, edi
call fcn.00405b30
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x58]
call fcn.00405b30
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4beaf3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4beae9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4beae9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov byte [ebp - 0x59], 1
lea ecx, [ebp - 0x110]
call fcn.0041c440
mov al, byte [ebp - 0x59]
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.0045ad9e
mov esp, ebp
pop ebp
ret 8
Function at 0x4beb30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9032
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x62700c]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
jne 0x4beb71
xor al, al
jmp 0x4becc3
call fcn.00488470
mov edi, eax
push ecx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x44], edi
call fcn.0041c300
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
mov edx, dword [edi]
mov ecx, edi
push esi
push eax
call dword [edx + 0x20]
mov esi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
mov edx, dword [edi]
mov ecx, edi
push eax
call dword [edx + 0x2c]
mov edi, eax
mov edx, str.SELECT__id__FROM__accounts__WHERE__name_
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
call fcn.004064c0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x4bebcb
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov edx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4bebe2
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov edx, 0x5d8f98
mov ecx, eax
call fcn.004064c0
lea ecx, [ebp - 0x28]
call fcn.00405b30
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00405b30
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00404ef0
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00405b30
test esi, esi
jne 0x4bec41
xor bl, bl
jmp 0x4becb6
mov dword [ebp - 0x28], 0
mov eax, 0x6469
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 2
mov word [ebp - 0x28], ax
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebx], eax
cmp ecx, 0x10
jb 0x4becad
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4beca3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4beca3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov bl, 1
lea ecx, [ebp - 0xf8]
call fcn.0041c440
mov al, bl
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.0045ad9e
mov esp, ebp
pop ebp
ret 8
Function at 0x4bed00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a908f
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x62700c]
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
call fcn.00488470
push ecx
lea ecx, [ebp - 0x108]
mov ebx, eax
call fcn.0041c300
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], vtable.DBTransaction.0
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 1
mov esi, 1
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x48], esi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x4bee94
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
lea ecx, [ebp - 0xf8]
sub eax, 0x15180
sbb edx, 0
push edx
push eax
mov edx, str.SELECT__id__FROM__accounts__WHERE__lastday___
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64__]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x108]
call fcn.00404ef0
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebx]
push eax
call dword [edx + 0x1c]
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.00405b30
test edi, edi
je 0x4bee94
mov eax, 0x6469
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 2
mov word [ebp - 0x28], ax
mov byte [ebp - 0x26], 0
sub esp, 0x64
mov byte [ebp - 4], 5
mov esi, esp
lea eax, [ebp - 0x28]
mov ecx, edi
push 1
push eax
mov eax, dword [edi]
call dword [eax]
push eax
push esi
call fcn.004c1ee0
call fcn.004bd440
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4bee40
mov eax, dword [ebp - 0x28]
inc edx
mov ecx, eax
cmp edx, 0x1000
jb 0x4bee36
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x4bee8e
push edx
push eax
call fcn.0045b34b
add esp, 8
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x4bedc9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
lea ecx, [ebp - 0xf0]
call fcn.00405f10
and dword [ebp - 0xb4], 0xffffffdf
mov esi, 2
mov byte [ebp - 4], 1
mov ecx, ebx
mov dword [ebp - 0xb8], 0
mov eax, dword [ebx]
mov dword [ebp - 0x48], esi
mov eax, dword [eax + 0x14]
call eax
mov byte [ebp - 0x41], al
jmp 0x4bee98
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [ebp - 0x41], 0
mov byte [ebp - 4], 7
cmp esi, 1
jne 0x4beea8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
lea ecx, [ebp - 0x108]
call fcn.0041c440
mov al, byte [ebp - 0x41]
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.0045ad9e
mov esp, ebp
pop ebp
ret
Function at 0x4c29c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a963e
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x62700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.00488470
push ecx
lea ecx, [ebp - 0xf4]
mov edi, eax
call fcn.0041c300
push esi
push ecx
mov edx, str.SELECT__level__FROM__players__WHERE__id__
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov edx, 0x5dafcc
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [edi]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
test esi, esi
sete bl
cmp ecx, 0x10
jb 0x4c2a90
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c2a86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c2a86
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
test bl, bl
je 0x4c2aaa
xor edi, edi
jmp 0x4c2b28
mov eax, dword [0x5dafa8]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x2c], eax
mov al, byte [0x5dafac]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 5
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0
mov edi, eax
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4c2b21
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c2b17
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c2b17
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [ebp - 0xf4]
call fcn.0041c440
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 - 0x14]
xor ecx, ebp
call fcn.0045ad9e
mov esp, ebp
pop ebp
ret 4
Function at 0x523440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
push ebx
push esi
push edi
mov edi, ecx
mov word [edi + 0x16], ax
mov byte [edi + 0x18], al
mov dword [edi + 0x74], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0xd8]
mov dword [edi + 0x12], 0
mov dword [edi + 0xd], 0
mov dword [edi + 9], 0x1010000
mov byte [edi + 8], 0
mov byte [edi + 0x11], 1
mov dword [edi + 0x19], 0
mov dword [edi + 0x54], 0xffffffff
mov dword [edi + 0x58], 1
mov dword [edi + 0x80], 0x5f
mov dword [edi + 0x40], 0x64
mov dword [edi + 0x3c], 0x64
mov dword [edi + 0x44], 0xc8
mov dword [edi + 0x20], 2
mov dword [edi + 0x30], 0xffffffff
mov esi, dword [eax]
cmp esi, eax
je 0x523524
nop
cmp byte [esi + 8], 0
je 0x52351a
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x523513
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x20], 0
mov esi, dword [esi]
cmp esi, dword [edi + 0xd8]
jne 0x523500
lea ecx, [edi + 0xd8]
call fcn.00445a60
mov eax, dword [edi + 0xe0]
mov esi, dword [eax]
cmp esi, eax
je 0x523564
nop dword [eax + eax]
cmp byte [esi + 8], 0
je 0x52355a
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x523553
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x20], 0
mov esi, dword [esi]
cmp esi, dword [edi + 0xe0]
jne 0x523540
lea ecx, [edi + 0xe0]
call fcn.00445a60
mov edx, dword [edi + 0xc0]
call fcn.00445e00
mov eax, dword [edi + 0xc0]
mov dword [eax], eax
mov eax, dword [edi + 0xc0]
mov dword [eax + 4], eax
mov dword [edi + 0xc4], 0
mov esi, dword [edi + 0xf4]
mov ebx, dword [edi + 0xf8]
cmp esi, ebx
je 0x5235c0
push ecx
mov ecx, esi
call fcn.00408090
add esi, 0x18
cmp esi, ebx
jne 0x5235a5
mov eax, dword [edi + 0xf4]
mov dword [edi + 0xf8], eax
mov ecx, dword [edi + 0xe8]
mov edx, dword [edi + 0xec]
cmp ecx, edx
je 0x5235e5
push ecx
call fcn.00445d90
mov eax, dword [edi + 0xe8]
add esp, 4
mov dword [edi + 0xec], eax
mov ecx, dword [edi + 0xc8]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov ebx, dword [ecx]
test ebx, ebx
je 0x52361b
nop word [eax + eax]
mov esi, dword [ebx]
lea ecx, [ebx + 8]
call fcn.004458c0
push 0x48
push ebx
call fcn.0045b34b
add esp, 8
mov ebx, esi
test esi, esi
jne 0x523600
mov eax, dword [edi + 0xc8]
mov dword [eax], eax
mov eax, dword [edi + 0xc8]
mov dword [eax + 4], eax
mov dword [edi + 0xcc], 0
add edi, 0xd0
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.00406810
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
Function at 0x570150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x10]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.004120f0
mov ebx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [0x627094], 2
cmp ebx, ecx
je 0x57023e
mov eax, ecx
sub eax, ebx
and eax, 0xfffffffc
cmp eax, 8
jl 0x57022a
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebx]
xor edx, edx
mov dword [ecx], eax
sub ecx, ebx
sar ecx, 2
mov dword [ebp - 0xc], ecx
lea esi, [ecx - 1]
mov eax, esi
mov dword [ebp - 0x10], esi
sar eax, 1
mov dword [ebp - 8], eax
test eax, eax
jle 0x5701ee
nop dword [eax]
lea esi, [edx + edx]
push dword [ebx + esi*4 + 4]
mov ecx, dword [ebx + esi*4 + 8]
call fcn.00455630
movzx edx, al
xor edx, 1
inc edx
add edx, esi
mov eax, dword [ebx + edx*4]
mov dword [ebx + edi*4], eax
mov edi, edx
mov eax, dword [ebp - 8]
cmp edx, eax
jl 0x5701c0
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
cmp edi, eax
jne 0x570200
test cl, 1
jne 0x570200
mov eax, dword [ebx + ecx*4 - 4]
mov dword [ebx + edi*4], eax
mov edi, esi
test edi, edi
jle 0x570221
push dword [ebp - 4]
lea esi, [edi - 1]
sar esi, 1
mov ecx, dword [ebx + esi*4]
call fcn.00455630
test al, al
je 0x570221
mov dword [ebx + edi*4], ecx
mov edi, esi
test esi, esi
jg 0x570204
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov dword [ebx + edi*4], eax
mov ecx, dword [esi + 0x3c]
add ecx, 0xfffffffc
mov dword [esi + 0x3c], ecx
mov ebx, dword [esi + 0x38]
cmp ebx, ecx
jne 0x570183
lea edi, [esi + 8]
mov esi, dword [edi]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.0040a510
mov ecx, dword [ebp - 0x18]
mov eax, bind
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x57028a
cmp eax, 0x80000000
jle 0x57028a
lock bts dword [ecx], 0x1e
jb 0x57028a
call fcn.00404110
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x576ea0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b54ef
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x62700c]
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, ecx
mov ebx, dword [ebp + 8]
lea ecx, [edi + 0x30]
push ebx
call fcn.0057a850
test al, al
je 0x577035
push ebx
mov ecx, edi
call fcn.0045c8f0
test al, al
je 0x577035
push 0x5f6730
push ebx
call dword [sym.imp.libxml2.dll_xmlGetProp]
add esp, 8
mov dword [ebp - 0x44], eax
test eax, eax
je 0x577018
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, dword [sym.imp.libxml2.dll_xmlFree]
mov esi, eax
push dword [ebp - 0x44]
mov ecx, dword [ecx]
call ecx
mov dword [ebp - 0x28], 0
mov dword [edi + 0x8c], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov edx, 0x5f6770
mov ecx, ebx
call fcn.00593b40
add esp, 0xc
test al, al
je 0x576f7a
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00405c30
call fcn.00593780
add esp, 0x18
mov byte [edi + 0x88], al
push dword [edi + 0x8c]
call fcn.004ddb60
mov esi, eax
mov eax, dword [edi + 0x34]
test eax, eax
je 0x576f9c
cmp eax, dword [esi + 0x8c]
je 0x576f9c
mov dword [esi + 0x8c], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x576fb1
cmp eax, dword [esi + 0x90]
je 0x576fb1
mov dword [esi + 0x90], eax
sub esp, 0xc
lea eax, [edi + 0x64]
mov ecx, esp
push eax
call fcn.00446d60
lea ecx, [ebp - 0x40]
call fcn.0058ddd0
add esp, 0xc
lea ecx, [esi + 0x144]
push eax
call fcn.004086d0
lea ecx, [ebp - 0x40]
call fcn.00405b30
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x577014
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x57700a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x57700a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov al, 1
jmp 0x577037
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
mov edx, str.Error:__RuneSpell::configureSpell__Rune_spell_without_id.
push 0x406700
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor al, al
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.0045ad9e
mov esp, ebp
pop ebp
ret 4
Function at 0x599c30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b738e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0xf
mov byte [ebx + 0x10], 0
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x4c]
mov dword [ebx], vtable.Weapon.0
call fcn.0040e2e0
lea esi, [ebx + 0x88]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0045afb5
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov word [ebx + 0x28], ax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x48], eax
mov eax, ebx
mov dword [ebx + 0x30], 0x1000001
mov word [ebx + 0x4c], 0x101
mov dword [ebx + 0x58], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4012ef
Capabilities:
Create thread

Disassembly:
push 8
push 0x448c18
call fcn.0041f560
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x401356
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x401356
push ebx
push ebx
push dword [ebp + 8]
push 0x401410
push ebx
push ebx
call fcn.004229bc
add esp, 0x18
mov dword [esi + 0x34], eax
test eax, eax
je 0x401356
mov al, 1
jmp 0x401390
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x40138e
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4