joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x10], 0x82ede0
xor edi, edi
xor edx, edx
mov dword [esp + 0xc], edx
lea eax, [esi + 0x20]
movd xmm2, esi
movd xmm0, eax
lea ebx, [edi + 0x20]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x14], eax
mov eax, dword [0x58b0c4]
mov dword [esp + 0x20], 0x3dcccccd
mov dword [esp + 0x24], 0x41200000
movd xmm1, edi
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x58], xmm0
movd xmm0, ebx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], 0x3dcccccd
mov dword [esp + 0x44], 0x41200000
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x3f800000
mov dword [esp + 0x54], 0
mov dword [esp + 0x60], 0x3dcccccd
mov dword [esp + 0x64], 0x41200000
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x80], 0x3dcccccd
mov dword [esp + 0x84], 0x41200000
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0x3f800000
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0x78], xmm2
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x7c], xmm0
cmp eax, edx
je 0x44c206
movsx ecx, word [0xc27644]
cmp ecx, esi
jl 0x44c241
movsx edx, word [0xc27646]
cmp edx, edi
jl 0x44c241
cmp ecx, dword [esp + 0x14]
jge 0x44c241
cmp edx, ebx
jge 0x44c241
mov edx, dword [esp + 0xc]
cmp byte [0x5c3941], 0
mov dword [esp + 0x28], 0xffff0000
mov dword [esp + 0x48], 0xffff0000
mov dword [esp + 0x68], 0xffff0000
mov dword [esp + 0x88], 0xffff0000
je 0x44c241
cmp byte [0x5c3a41], 0
cmove eax, edx
mov dword [0x58b0c4], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x78]
push 0
push dword [esp + 0x14]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00454320
push dword [esp + 0xc]
lea eax, [esp + 0x9c]
push 0x55a748
push eax
call fcn.0043fb40
add esp, 4
mov ecx, esp
mov byte [ecx + 4], 0
movzx eax, byte [0xc76b98]
mov byte [ecx + 2], al
movzx eax, byte [0xc76b99]
mov byte [ecx + 1], al
movzx eax, byte [0xc76b9a]
mov byte [ecx], al
lea eax, [esp + 0xa0]
push eax
lea eax, [edi + 2]
mov byte [ecx + 3], 0xff
mov ecx, dword [ebp + 8]
sub esp, 8
movd xmm0, eax
lea eax, [esi + 2]
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.00454270
mov edx, dword [esp + 0xc]
xor esi, esi
movsx eax, word [0x5cf476]
inc edx
add dword [esp + 0x10], 0x70
cmp dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
cmovl esi, dword [esp + 0x14]
cmovl ebx, edi
cmp dword [esp + 0x10], 0x835de0
mov edi, ebx
jl 0x44c0b1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451e50
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x80
mov dword [0x8d0cdc], 0
push esi
push str.Destroying_DD_shell_n
mov esi, ecx
call fcn.00453cc0
add esp, 4
mov ecx, esi
call fcn.004520f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x451e9c
mov eax, dword [ecx]
push ecx
call dword [eax + 0x4c]
mov eax, dword [esi + 4]
push 8
push dword [0x6ccd58]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push str.DDraw_ref_count_before_release_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x451eef
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [esi + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push eax
lea eax, [esp + 8]
push str.rel_cnt:__d_n
push eax
call fcn.0043fb40
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x451eef
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x451f03
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], 0
cmp dword [esi + 0x63c], 0
je 0x451f1c
lea eax, [esi + 0x530]
push eax
push esi
call fcn.00452690
add esp, 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, esi
call fcn.004529b0
push str.Destroyed_DD_shell_n
call fcn.00453cc0
add esp, 4
pop esi
add esp, 0x80
ret

Function at 0x451f40
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x80
push esi
push str.Destroying_DD_shell_n
mov esi, ecx
call fcn.00453cc0
add esp, 4
mov ecx, esi
call fcn.004520f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x451f82
mov eax, dword [ecx]
push ecx
call dword [eax + 0x4c]
mov eax, dword [esi + 4]
push 8
push dword [0x6ccd58]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [esp + 0x88], 0
jne 0x451fb7
mov eax, dword [0x6ccd58]
test eax, eax
je 0x451f9c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [esi + 0xec], 0
je 0x451fb7
push dword [0x6cd480]
push dword [0x589b74]
call dword [sym.imp.USER32.dll_UnregisterClassA]
push str.DDraw_ref_count_before_release_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45200a
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [esi + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push eax
lea eax, [esp + 8]
push str.rel_cnt:__d_n
push eax
call fcn.0043fb40
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45200a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45201e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], 0
cmp dword [esi + 0x63c], 0
je 0x452037
lea eax, [esi + 0x530]
push eax
push esi
call fcn.00452690
add esp, 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, esi
call fcn.004529b0
push str.Destroyed_DD_shell_n
call fcn.00453cc0
add esp, 4
pop esi
add esp, 0x80
ret 4
Function at 0x453cd0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x200
lea eax, [esp + 0x208]
push eax
push 0
push dword [esp + 0x20c]
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push eax
call fcn.0043fb30
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00501b11
add esp, 0x1c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x55cba0
push 0x5899e0
call fcn.00510009
add esp, 8
mov dword [0x6cd898], eax
test eax, eax
je 0x453d49
push eax
lea eax, [esp + 4]
push eax
call fcn.00510185
mov eax, dword [0x6cd898]
add esp, 8
test eax, eax
je 0x453d49
push eax
call fcn.0050fcc7
add esp, 4
add esp, 0x200
ret
Function at 0x45acd0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push str.Enter_D3D_DeinitWorldViewStuff___n
call fcn.00453cc0
push str.Enter:DeinitWorldView___n
call fcn.00453cc0
add esp, 8
cmp dword [0x81942c], 0
je 0x45adc3
xor esi, esi
nop
mov eax, dword [esi + 0x818028]
test eax, eax
je 0x45ad1b
push 0x40
push eax
mov dword [eax], vtable.TC_PalettisedObject.0
call fcn.004e373b
add esp, 8
add esi, 4
cmp esi, 0x1000
jb 0x45ad00
mov eax, 0x1010101
mov ecx, 0x300
mov edi, 0x85bef8
rep stosd dword es:[edi], eax
mov eax, dword [0xaf41f4]
test eax, eax
je 0x45ad4e
push 0x408
push eax
call fcn.004e373b
add esp, 8
lea ecx, [ebp - 0x2c]
mov dword [0xaf41f4], 0
mov dword [0xaf41f0], 0
call fcn.00405940
mov eax, dword [ebp - 0x24]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x45ad90
xor eax, eax
xor edx, edx
rdtsc
mov dword [ebp - 4], edx
xor eax, eax
xor edx, edx
rdtsc
mov ebx, eax
mov dword [ebp - 4], edx
mov dword [ebp - 4], ebx
mov ecx, 0x8458c0
call fcn.00468830
cmp dword [ebp - 0xc], 0
je 0x45adab
xor eax, eax
xor edx, edx
rdtsc
sub eax, dword [ebp - 4]
mov ebx, eax
push ebx
push str.destroy_took__ld_cycles_n
call fcn.00453cc0
add esp, 8
mov dword [0x81942c], 0
push str.Exit:DeinitWorldView___n
call fcn.00453cc0
push str.Exit_D3D_DeinitWorldViewStuff___n
call fcn.00453cc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push str.Enter:D3D_InitSky___n
call fcn.00453cc0
add esp, 4
cmp dword [0x84596c], 0
jne 0x45c904
mov eax, dword [0xad0ce8]
push esi
push 0x58a850
push dword [eax + 0x1da4]
push 3
push 3
push 0x8194b8
call fcn.0045e090
add esp, 0x14
cmp dword [esp + 0x90], 0
je 0x45c7e4
mov ecx, dword [0xad0ce8]
cmp dword [ecx + 0xd18], 0
je 0x45c7e4
test eax, eax
je 0x45c7e4
mov esi, dword [ecx + 0x1da4]
push 0x58a770
push esi
push 2
push 2
push 0x819438
mov dword [0x58ac9c], 0
call fcn.0045e090
add esp, 0x14
test eax, eax
je 0x45c8f9
push 0x58a7e0
push esi
push 2
push 2
push 0x819478
call fcn.0045e090
add esp, 0x14
test eax, eax
jne 0x45c7d5
mov ecx, 0x58a770
call fcn.00469250
jmp 0x45c8f9
mov dword [0x58ac9c], 2
jmp 0x45c8f9
push ebx
mov bx, word [esp + 0x90]
lea ecx, [esp + 0x5c]
push ebp
mov bp, word [esp + 0x90]
push edi
push 0
push dword [esp + 0x94]
movzx esi, bx
push 0xc77240
push esi
movzx edi, bp
push edi
mov dword [0x58ac9c], 1
call fcn.00405520
push 0
push 0
push 0xc77210
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.00405520
lea ecx, [esp + 0x14]
call fcn.00405580
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x20]
push eax
push 0
push dword [esp + 0x1c]
call fcn.004e4d50
push dword [0x5c3b00]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00458910
push 2
lea eax, [esp + 0x30]
push 2
push eax
call fcn.00459730
mov ecx, dword [0xad0ce8]
lea eax, [esp + 0x34]
push eax
push 0x1800
mov dword [esp + 0x3c], 0
push dword [ecx + 0x1da4]
shr bx, 2
push 0
movzx eax, bx
push eax
shr bp, 2
movzx eax, bp
push eax
push dword [ecx + 4]
call fcn.00458af0
add esp, 0x40
lea ecx, [esp + 0x3c]
call fcn.00405500
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x14]
call fcn.00459c30
push 0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00458910
push dword [esp + 0x24]
call fcn.00459ce0
add esp, 0x18
mov ecx, 0x58a770
push 0
push 0
push dword [esp + 0x18]
call fcn.00468ef0
pop edi
pop ebp
pop ebx
mov dword [0x84596c], 1
pop esi
push str.Exit_OK:D3D_InitSky___n
call fcn.00453cc0
xor eax, eax
add esp, 0x80
ret
Function at 0x45fb00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0x14]
push esi
mov ecx, dword [esp + 0x14]
push eax
push ecx
xor eax, eax
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ax, word [esi + 6]
mov edx, dword [esp + 0x10]
push eax
xor eax, eax
mov ax, word [esi + 4]
push eax
push ecx
push edx
call fcn.00407e80
add esp, 0x18
push esi
push 0
push 0
call fcn.00551400
add esp, 0xc
pop esi
ret
sub esp, 8
cmp byte [0xc27697], 0
je 0x45fbe2
cmp dword [0x58ab00], 0
je 0x45fb21
add esp, 8
jmp 0x407e40
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push dword [esp + 0x1c]
call fcn.00460180
add esp, 0xc
cmp dword [esp], 0
je 0x45fbe2
mov edx, dword [0x8d03d0]
mov ecx, 0xffffff
test dl, 0x40
je 0x45fb58
mov ecx, 0xff0000
jmp 0x45fb62
test dl, 8
cmovne ecx, dword [0x58ab08]
mov eax, dword [0x58ab0c]
and eax, edx
push eax
mov eax, dword [esp + 0x20]
push ecx
push dword [esp + 0xc]
mov ecx, dword [0x7fcb70]
push dword [esp + 0xc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
sub esp, 0x10
addsd xmm0, qword [eax*8 + 0x55cad0]
mov eax, dword [esp + 0x38]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0xc], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x55cad0]
cvtpd2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movd xmm0, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, dword [esp + 0x2c]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.00453e90
add esp, 8
ret

Function at 0x461990
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xf0]
lea esi, [edi + 0xf0]
test ecx, ecx
je 0x4619b4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
mov ebx, dword [edi + 0x1218]
cmp dword [ebx + 0xa0], 0
je 0x461ab4
push 0x58
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004e4d50
mov eax, dword [edi + 0xb8]
add esp, 0xc
cmp dword [edi + 0x518], 0
mov ecx, 0x24000
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xbc]
mov dword [esp + 0x14], eax
mov eax, 0x20800
cmovne eax, ecx
mov dword [esp + 0xc], 0x6c
mov dword [esp + 0x10], 0x47
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0xa0]
test eax, 0x400
je 0x461a2b
mov dword [esp + 0x24], 0x10
jmp 0x461a5c
test eax, 0x200
je 0x461a3c
mov dword [esp + 0x24], 0x18
jmp 0x461a5c
test eax, 0x100
je 0x461a4d
mov dword [esp + 0x24], 0x20
jmp 0x461a5c
test eax, 0x800
je 0x461aa9
mov dword [esp + 0x24], 8
mov ecx, dword [edi + 4]
lea edx, [esp + 0xc]
push 0
push esi
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
mov edi, eax
test edi, edi
jne 0x461a8e
mov ecx, dword [0x6ccd60]
push dword [esi]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jne 0x461a8e
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esi]
test ecx, ecx
je 0x461aa0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
push str.Unsupported_Z_buffer_depth_requested_by_device._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x6c
ret
Function at 0x465650
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov edi, ecx
mov eax, dword [ebp + 0x10]
push eax
push str.Creating_sprite_bank__containing__d_sprites__n
mov dword [edi], eax
call fcn.00453cc0
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov dword [edi + 0xc], eax
mov edx, 0x24
mov eax, dword [esp + 0x38]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x14], eax
mov eax, dword [edi]
mul edx
mov dword [edi + 8], ebp
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e3749
mov ecx, dword [edi]
mov dword [edi + 4], eax
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push 0
push eax
call fcn.004e4d50
xor eax, eax
xor edx, edx
add esp, 0x18
mov dword [esp + 0x24], edx
xor ebx, ebx
mov dword [esp + 0x2c], eax
cmp dword [edi], eax
jbe 0x4657b2
push esi
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + 0xc]
cmp word [eax + ebx*8 + 4], 0
lea ecx, [eax + ebx*8]
je 0x465785
cmp word [ecx + 6], 0
je 0x465785
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00466580
mov ecx, dword [edi + 4]
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [esi + ecx + 0xc], eax
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + ecx + 0x10], eax
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov dword [esi + eax + 0x14], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov eax, dword [edi + 4]
mov dword [esi + eax + 0x18], ecx
mov ecx, dword [edi + 4]
add ecx, esi
cmp dword [ecx + 0x14], 0x40
ja 0x465740
cmp dword [ecx + 0x18], 0x40
jbe 0x465756
mov eax, dword [ecx + 0x18]
imul eax, dword [ecx + 0x14]
mov edx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x28], edx
add dword [esp + 0x30], eax
jmp 0x46575a
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], 0
mov eax, dword [edi + 4]
mov dword [esi + eax + 8], 0
mov eax, dword [edi + 4]
mov dword [esi + eax + 0x1c], 0
mov eax, dword [edi + 4]
mov dword [esi + eax + 0x20], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
movzx eax, word [eax + ebx*8 + 4]
mov word [esi + ecx], ax
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
movzx eax, word [eax + ebx*8 + 6]
inc ebx
mov word [esi + ecx + 2], ax
add esi, 0x24
cmp ebx, dword [edi]
jb 0x4656d0
mov eax, dword [esp + 0x30]
pop esi
push eax
push edx
push str.There_are__d_over_64x64__area_:__d__n
call fcn.00453cc0
add esp, 0xc
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
Function at 0x469320
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [0xaf46e8]
sub esp, 0x80
push edi
xor edi, edi
test ecx, ecx
je 0x469344
push esi
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
call dword [eax + 4]
inc edi
mov ecx, esi
test esi, esi
jne 0x469334
pop esi
push edi
lea eax, [esp + 8]
push str.CTextureBase::DestroyAllTextures_:__d_textures_destroyed_n
push eax
call fcn.0043fb40
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0xaf46e0], 0
mov dword [0xaf46e4], 0
pop edi
add esp, 0x80
ret

Function at 0x46a8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5404ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004c68ff
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x46a92d
push eax
push esi
call fcn.004c70d2
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.0046ac90
push 0x581248
lea eax, [ebp - 0x1c]
push eax
call fcn.004e4eaa
int3
Function at 0x46c3c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x264
push ebx
push 0x589794
xor bl, bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x46c3f9
push 0x589794
push 0x561c1c
lea eax, [esp + 0x16c]
push 0x104
push eax
call fcn.0044b880
add esp, 0x10
jmp 0x46c420
movzx eax, byte [0x5cf9bb]
push 0x5cf9bc
push eax
push str._c_s
lea eax, [esp + 0x170]
push 0x104
push eax
call fcn.0044b880
add esp, 0x14
push 0x104
lea eax, [esp + 0x64]
push 0
push eax
call fcn.004e4d50
push 0x58
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004e4d50
mov eax, dword [0x6ccd58]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x17c]
push 1
mov dword [esp + 0x24], 0x58
mov dword [esp + 0x54], str.Open_AI_Attributes
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], str.AI_Attributes__cpatr.dat_
mov dword [esp + 0x58], 0x1804
call fcn.004767f0
add esp, 0x1c
lea eax, [esp + 8]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x46c57d
push esi
push 0x90
push 0
push 0xaf4ce0
call fcn.004e4d50
push dword [0xaf4c18]
mov byte [0xaf4d70], 0
mov byte [0xaf4aad], 0
call fcn.0046d600
add esp, 0x10
lea eax, [esp + 0x64]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x46c550
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x90
push 0xaf4ce0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], 0x90
je 0x46c591
push 0x90
push 0
push 0xaf4ce0
call fcn.004e4d50
push dword [0xaf4c18]
mov byte [0xaf4d70], 0
mov byte [0xaf4aad], 0
call fcn.0046d600
add esp, 0x10
push 1
call fcn.004767f0
add esp, 4
push 0x30
push 0x55ab94
push str.Open_AI_Attributes_Failed
push dword [0x6ccd58]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004767f0
add esp, 4
pop esi
push 0
call fcn.004767f0
add esp, 4
mov al, bl
pop ebx
add esp, 0x264
ret
xor ecx, ecx
mov al, byte [esp + ecx + 0x64]
lea ecx, [ecx + 1]
mov byte [ecx + 0xaf4d6f], al
test al, al
jne 0x46c593
push dword [0xaf4c18]
call fcn.0046d600
mov bl, 1
jmp 0x46c579

Function at 0x46d580
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x46d5f9
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x90
push 0xaf4ce0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], 0x90
jne 0x46d5f9
mov ecx, 0xaf4d70
mov byte [0xaf4aad], 0
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x46d5e6
pop edi
mov al, 1
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x4708e0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x470a2c
push edi
push 0x3fa
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x470a2b
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x14b
push edi
call esi
push 1
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 2
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 3
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 4
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 5
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 6
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 7
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 8
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 0xd
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 0xf
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 0x12
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
push 0x13
push 2
call fcn.00479b90
add esp, 8
push eax
push 0
push 0x143
push edi
call esi
pop esi
pop edi
ret