joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e6d0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
mov dword [esp + 0x20], ebp
call fcn.00456e50
mov edx, dword [ebx + 0x54]
lea eax, [ebx + 0x4c]
lea ecx, [ebp + 0x4c]
xor edi, edi
push eax
mov dword [esp + 0x2c], edi
mov dword [ecx + 8], edx
call fcn.00452920
mov al, byte [esp + 0x30]
lea esi, [ebp + 0x58]
mov dword [esp + 0x28], 1
mov byte [esi], al
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [ebp], vtable.t_paletted_16_layer.0
mov eax, dword [ebx + 0x5c]
cmp eax, edi
mov byte [esp + 0x28], 2
jne 0x459ed9
xor edx, edx
mov dword [esp + 0x10], edx
jmp 0x459ef0
mov ecx, dword [ebx + 0x60]
sub ecx, eax
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x459efb
xor eax, eax
jmp 0x459f02
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp eax, edx
jae 0x459f8e
cmp edx, edi
mov eax, edx
jge 0x459f12
xor eax, eax
lea edx, [eax + eax]
push edx
call fcn.00652710
mov edi, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
add esp, 4
cmp edi, eax
mov dword [esp + 0x14], eax
je 0x459f55
mov ecx, dword [esp + 0x30]
mov edx, edi
call fcn.0045e740
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
add edi, 2
add edx, 2
cmp edi, eax
mov dword [esp + 0x30], edx
jne 0x459f34
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.004d1a20
mov edx, dword [esi + 4]
push edx
call fcn.00652870
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [edi + eax*2]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.0045db00
lea edx, [edi + eax*2]
mov dword [esi + 4], edi
mov dword [esi + 8], edx
mov edi, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x60]
cmp edi, eax
je 0x459ff5
movzx ax, byte [edi + 1]
mov ecx, dword [0x8348d4]
mov edx, dword [0x8348fc]
shl eax, cl
mov ecx, dword [0x834924]
and eax, edx
movzx dx, byte [edi + 2]
shl edx, cl
mov ecx, dword [0x8348f0]
and edx, ecx
mov cl, byte [0x83490c]
or eax, edx
mov dl, byte [edi]
shr dl, cl
xor cx, cx
mov cl, dl
lea edx, [esp + 0x30]
or eax, ecx
push edx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
push 1
push eax
mov ecx, esi
call fcn.0064a580
mov eax, dword [ebx + 0x60]
add edi, 3
cmp edi, eax
jne 0x459f98
mov ecx, dword [esp + 0x20]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x45ead0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e6ede
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi], vtable.t_counted_object.0
mov dword [esi + 4], edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call fcn.004d2320
mov dword [esi], vtable.t_abstract_cache_data_class_t_bitmap_layer_.0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov eax, dword [eax + 4]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x45eb24
inc dword [eax + 4]
mov dword [esi + 0xc], vtable.t_abstract_cache_class_t_bitmap_group_.0
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 2
mov dl, byte [eax]
mov dword [ecx + 4], edi
mov byte [ecx], dl
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov edx, dword [0x71eb00]
push edx
push edi
push eax
call fcn.00407c50
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi], vtable.t_bitmap_layer_cache_data.0
mov dword [esi + 0x2c], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x45f3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e7070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [esp + 0x48]
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi]
call fcn.0045f640
mov edx, dword [esp + 0x54]
mov ecx, dword [esi]
lea eax, [esp + 8]
xor ebx, ebx
push edx
push eax
mov dword [esp + 0x50], ebx
call fcn.0045f640
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
push ecx
lea ecx, [esp + 0xc]
call fcn.0045f4f0
mov esi, eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x4c], 2
call fcn.0045f4f0
mov edx, esi
mov ecx, eax
mov byte [esp + 0x48], 3
call fcn.00638930
test eax, eax
mov eax, dword [esp + 0x24]
setl byte [esp + 0x50]
cmp eax, ebx
je 0x45f446
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x45f43d
cmp al, 0xff
je 0x45f43d
dec al
mov byte [ecx], al
jmp 0x45f446
push ecx
call fcn.00652870
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
cmp ecx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x45f475
mov al, byte [ecx - 1]
dec ecx
cmp al, bl
je 0x45f46c
cmp al, 0xff
je 0x45f46c
dec al
mov byte [ecx], al
jmp 0x45f475
push ecx
call fcn.00652870
add esp, 4
mov eax, dword [esp + 0xc]
mov esi, vtable.t_abstract_cache_class_t_bitmap_layer_.0
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 8], esi
mov ecx, eax
je 0x45f4ab
mov edx, dword [eax + 4]
add eax, 4
dec edx
cmp edx, ebx
mov dword [eax], edx
jne 0x45f4ab
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], esi
pop esi
cmp ecx, ebx
mov dword [esp + 0x44], 0xffffffff
pop ebx
je 0x45f4d0
mov eax, dword [ecx + 4]
dec eax
mov dword [ecx + 4], eax
jne 0x45f4d0
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x38]
mov al, byte [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
Function at 0x45fbb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6e7110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
mov ecx, dword [ecx]
push ebx
push esi
lea edx, [esp + 8]
push eax
push edx
call fcn.0045f640
lea eax, [esp + 0x14]
xor esi, esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], esi
call fcn.0045f4f0
mov edx, dword [esp + 0x38]
mov ecx, eax
mov byte [esp + 0x2c], 1
call fcn.00638930
test eax, eax
mov eax, dword [esp + 0x18]
setl bl
cmp eax, esi
je 0x45fc29
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x45fc20
cmp al, 0xff
je 0x45fc20
dec al
mov byte [ecx], al
jmp 0x45fc29
push ecx
call fcn.00652870
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], esi
cmp ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 8], vtable.t_abstract_cache_class_t_bitmap_layer_.0
je 0x45fc5c
mov eax, dword [ecx + 4]
dec eax
mov dword [ecx + 4], eax
jne 0x45fc5c
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x24]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x4628f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e7470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00648e20
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.00405860
mov ecx, esi
mov dword [esp + 8], eax
call fcn.00405870
mov ecx, eax
mov dword [esp + 0x1c], ebx
cmp ecx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jle 0x4629dc
push ebp
push edi
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, ebx
mov dword [esp + 0x24], eax
jle 0x4629c9
push eax
mov ecx, esi
call fcn.004058c0
mov ebp, eax
mov ecx, esi
mov eax, dword [esp + 0x24]
push eax
call fcn.004058e0
mov edi, eax
mov dword [esp + 0x28], ebp
cmp ebp, edi
jge 0x4629b4
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], vtable.transition_calculator_details::t_terrain_map_adapter_class_t_editor_adventure_map_.0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.00648f90
mov byte [esp + 0x38], bl
mov dword [esp + 0x1c], vtable.transition_calculator_details::t_abstract_terrain_map.0
mov eax, dword [esp + 0x28]
inc eax
cmp eax, edi
mov dword [esp + 0x28], eax
jl 0x462977
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x462957
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x462949
pop edi
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00648f40
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x462909
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e7470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00648e20
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.00405860
mov ecx, esi
mov dword [esp + 8], eax
call fcn.00405870
mov ecx, eax
mov dword [esp + 0x1c], ebx
cmp ecx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jle 0x4629dc
push ebp
push edi
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, ebx
mov dword [esp + 0x24], eax
jle 0x4629c9
push eax
mov ecx, esi
call fcn.004058c0
mov ebp, eax
mov ecx, esi
mov eax, dword [esp + 0x24]
push eax
call fcn.004058e0
mov edi, eax
mov dword [esp + 0x28], ebp
cmp ebp, edi
jge 0x4629b4
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], vtable.transition_calculator_details::t_terrain_map_adapter_class_t_editor_adventure_map_.0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.00648f90
mov byte [esp + 0x38], bl
mov dword [esp + 0x1c], vtable.transition_calculator_details::t_abstract_terrain_map.0
mov eax, dword [esp + 0x28]
inc eax
cmp eax, edi
mov dword [esp + 0x28], eax
jl 0x462977
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x462957
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x462949
pop edi
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00648f40
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x466d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e7af0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x1c]
mov ebx, dword [esp + 0x30]
push ebx
mov dword [esp + 0x2c], 0
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ebp, eax
mov al, byte [esi + 0xc]
test al, al
jne 0x466d68
mov edx, dword [edi]
push ebp
push ebx
mov ecx, edi
call dword [edx + 0x78]
sub esp, 8
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.004f6600
mov edx, dword [esp + 0x44]
mov ecx, ebp
call fcn.00463a60
mov ecx, dword [esi + 4]
mov byte [esi + 0xd], 1
push 1
mov ebp, eax
mov edx, dword [ecx]
call dword [edx + 0x5c]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], 0
test eax, eax
jne 0x466da9
xor edi, edi
jmp 0x466db1
mov edi, dword [esi + 0x1c]
sub edi, eax
sar edi, 2
mov al, byte [esp + 0x30]
mov byte [esp + 0x10], al
mov eax, edi
test edi, edi
jge 0x466dc1
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.00652710
add esp, 4
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push edx
push edi
push eax
call fcn.00435f20
mov ecx, dword [esp + 0x14]
lea edx, [ecx + edi*4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
cmp eax, edi
mov byte [esp + 0x28], 1
je 0x466e19
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
add ecx, 4
cmp eax, edi
jne 0x466e03
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp ecx, edx
mov edi, edx
mov esi, ecx
je 0x466e35
mov ecx, dword [esi]
push ebp
push ebx
call fcn.00429b40
add esi, 4
cmp esi, edi
jne 0x466e21
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00652870
mov al, byte [esp + 0x38]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 0xffffffff
test al, al
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
je 0x466e76
mov eax, dword [esp + 0x38]
cmp eax, ecx
je 0x466e76
mov ecx, dword [eax + 4]
push 1
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [edx + eax + 4]
call dword [eax]
mov ecx, dword [esp + 0x20]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x468570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e7cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov cl, byte [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 8
xor ebx, ebx
mov eax, esp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], esp
mov byte [esp + 0x30], bl
mov byte [eax], cl
lea ecx, [esp + 0x14]
mov dword [eax + 4], edx
call fcn.00451220
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
lea edx, [esp + 0xc]
mov byte [esp + 0x20], 1
push edx
push 1
push eax
call fcn.004a2870
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x20], bl
cmp ecx, ebx
je 0x468617
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
cmp eax, edx
jne 0x468606
cmp ecx, ebx
mov dword [esp + 0x14], ebx
je 0x468617
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x4957f2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x74]
mov eax, dword [esi + 0x20]
lea ebp, [esi + 0x3c]
mov ecx, dword [esi + 0x78]
mov edx, edi
lea ebx, [edi + 0x2000]
mov dword [ebp], edi
mov eax, dword [eax]
sub eax, edi
push eax
mov dword [esi + 0x40], eax
call fcn.0064df90
xor edx, edx
mov ecx, ebp
mov dword [esi + 0x78], eax
call fcn.0064cf60
mov eax, dword [esi + 0x40]
test eax, eax
jbe 0x495869
mov ecx, dword [esi + 0x4c]
mov eax, 0x2000
sub eax, ecx
mov ecx, dword [esi + 0x38]
push eax
push ebx
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov edx, dword [esi + 0x4c]
mov ecx, 0x2000
sub ecx, edx
cmp eax, ecx
jb 0x4958a2
xor edx, edx
mov ecx, ebp
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x2000
call fcn.0064cf60
mov eax, dword [esi + 0x40]
test eax, eax
ja 0x49582d
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0x2000
mov ecx, dword [esp + 0x14]
mov byte [edi], cl
mov eax, dword [esi + 0x30]
pop edi
mov ebp, dword [eax]
dec ebp
mov dword [eax], ebp
mov esi, dword [esi + 0x20]
mov eax, ecx
mov ebx, dword [esi]
inc ebx
inc eax
neg eax
mov dword [esi], ebx
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x4990f0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x6ed0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.006c35fc
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x5c], eax
mov al, byte [esp + 0x44]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x48]
lea ebp, [esi + 0x70]
xor ebx, ebx
mov dword [esi + 0x64], edx
mov byte [esi + 0x68], al
mov dword [esi + 0x6c], ecx
mov dword [esp + 0x30], ebx
mov dword [ebp], ebx
lea edi, [esi + 0x74]
mov byte [esp + 0x30], 1
mov ecx, edi
call fcn.006bf10c
mov dword [edi], vtable.CStatic.0
lea edi, [esi + 0xb0]
mov byte [esp + 0x30], 2
mov ecx, edi
call fcn.006bf10c
mov dword [edi], vtable.CEdit.0
lea edi, [esi + 0xec]
mov byte [esp + 0x30], 3
mov ecx, edi
call fcn.006bf10c
mov dword [edi], vtable.CListBox.0
lea edi, [esi + 0x128]
mov byte [esp + 0x30], 4
mov ecx, edi
call fcn.006bf10c
mov dword [edi], vtable.CButton.0
push 0x105
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 5
mov dword [esi], vtable.t_artifact_dialog.0
call fcn.004d7180
mov edi, str.create_artifact
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x30], 6
push ecx
push str.create_artifact
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00415530
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 7
call fcn.004d8140
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x30], 6
cmp eax, ebx
je 0x49922f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x499226
cmp al, 0xff
je 0x499226
dec al
mov byte [ecx], al
jmp 0x49922f
push ecx
call fcn.00652870
add esp, 4
cmp byte [esp + 0x50], bl
je 0x499255
cmp byte [0x8342e8], bl
jne 0x499247
mov ecx, 0x8342d8
call fcn.005c0bd0
push 0x8342d8
lea ecx, [esp + 0x14]
call fcn.004d7e70
push ebp
lea ecx, [esp + 0x14]
call fcn.004d7880
mov eax, dword [esp + 0x38]
mov ebp, dword [ebp]
push ebx
push eax
push ebp
mov ecx, esi
call fcn.006c39d7
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
call fcn.004d7740
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x1c
Function at 0x49bfa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6ed920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x18]
mov eax, dword [esi + 0x68]
push eax
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0049af80
xor ebx, ebx
mov edx, eax
lea ecx, [esp + 8]
mov dword [esp + 0x30], ebx
call fcn.00496ca0
push ebx
mov edx, eax
lea ecx, [esi + 0x88]
mov byte [esp + 0x34], 1
call fcn.005fa1a0
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x49c019
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49c010
cmp al, 0xff
je 0x49c010
dec al
mov byte [ecx], al
jmp 0x49c019
push ecx
call fcn.00652870
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
je 0x49c04a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49c041
cmp al, 0xff
je 0x49c041
dec al
mov byte [ecx], al
jmp 0x49c04a
push ecx
call fcn.00652870
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x49c4b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6ed9a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x14]
call fcn.006c75cc
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0x24], 0
call fcn.006c6b4d
mov esi, dword [esp + 0x2c]
mov ecx, dword [0x834970]
mov ebp, dword [0x834974]
mov ebx, eax
mov edx, dword [esi]
mov eax, dword [esi + 8]
sub eax, edx
push 0xf00021
sub eax, ecx
mov ecx, dword [esi + 0xc]
sub ecx, ebp
mov ebp, dword [0x834970]
add edx, ebp
mov ebp, dword [0x834974]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_PatBlt]
push eax
push ecx
mov ecx, dword [edi + 4]
push edx
push ecx
call ebp
mov edx, dword [0x834974]
mov ecx, dword [esi + 4]
push 0xf00021
lea eax, [edx + edx]
mov edx, eax
mov eax, dword [esi + 0xc]
sub eax, edx
mov edx, dword [0x834974]
sub eax, ecx
add ecx, edx
mov edx, dword [0x834970]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x30]
sub ecx, edx
push edx
push eax
push ecx
mov ecx, dword [edi + 4]
push ecx
call ebp
mov edx, dword [0x834970]
mov ebp, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ebp, edx
mov dword [esi + 8], ebp
mov eax, dword [0x834974]
sub ecx, eax
push ebx
mov dword [esi + 0xc], ecx
mov ecx, edi
call fcn.006c6b4d
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.006c7566
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x49c710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6ed9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
lea eax, [esi + 0x88]
push eax
call fcn.006c7267
mov ecx, dword [esi + 0xa4]
push 0
push 0
push 0x31
push ecx
mov dword [esp + 0x6c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.006c74fa
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
call dword [edx + 0x28]
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x30]
push edi
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x20]
sub eax, edx
lea ecx, [esp + 0xc]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0xc]
sar eax, 2
mov dword [esi + 0x84], eax
call dword [edx + 0x28]
lea ecx, [esp + 8]
mov dword [esp + 0x5c], 0xffffffff
call fcn.006c72d9
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret

Function at 0x4a0790
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x6ee364
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.006c35fc
lea ebp, [esi + 0x5c]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [ebp], ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x44]
lea edi, [esi + 0x70]
mov dword [esi + 0x64], ecx
mov ecx, edi
mov byte [esp + 0x2c], 1
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], eax
call fcn.006bf10c
mov dword [edi], vtable.CEdit.0
lea edi, [esi + 0xac]
mov byte [esp + 0x2c], 2
mov ecx, edi
call fcn.006bf10c
mov dword [edi], vtable.CEdit.0
mov cl, byte [esp + 0x38]
mov edi, str.script_combat_subactions
mov byte [esp + 0x14], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [esi], vtable.t_combat_subaction_dialog.0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x2c], 3
push ecx
push str.script_combat_subactions
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00415530
push ebp
lea edx, [esp + 0x18]
mov ecx, 0x158
mov byte [esp + 0x30], 4
call fcn.004d8340
mov eax, dword [esp + 0x18]
mov byte [esp + 0x2c], 3
cmp eax, ebx
je 0x4a0887
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a087e
cmp al, 0xff
je 0x4a087e
dec al
mov byte [ecx], al
jmp 0x4a0887
push ecx
call fcn.00652870
add esp, 4
mov edx, dword [esp + 0x34]
mov ebp, dword [ebp]
push ebx
push edx
push ebp
mov ecx, esi
call fcn.006c36ea
test eax, eax
jne 0x4a08bc
lea ecx, [esp + 0x14]
call fcn.006609ef
lea eax, [esp + 0x14]
push 0x797368
push eax
mov dword [esp + 0x1c], vtable.t_action_dialog::t_create_failure.0
call fcn.006609b5
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14