joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433909
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042a860
mov eax, dword [0x44c750]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00431573
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x433a3c
push 2
push esi
push dword [ebp + 8]
call fcn.00431573
add esp, 0xc
cmp eax, ebx
je 0x433a3c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4339dc
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0042a000
push 0x8000
push dword [ebp + 8]
call fcn.004390b5
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x433992
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00436d66
add esp, 0xc
cmp eax, 0xffffffff
je 0x4339b2
sub edi, eax
test edi, edi
jg 0x43398a
jmp 0x4339ca
call fcn.0042b6d1
cmp dword [eax], 5
jne 0x4339c7
call fcn.0042b6c8
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004390b5
pop ecx
pop ecx
jmp 0x433a24
jge 0x433a24
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00431573
push dword [ebp + 8]
call fcn.0043368a
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x433a24
call fcn.0042b6c8
mov dword [eax], 0xd
call fcn.0042b6d1
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00431573
add esp, 0xc
mov eax, esi
pop edi
jmp 0x433a3e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042a8ce
leave
ret
Function at 0x4365fe
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44c750]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x44d1a0]
je 0x436633
inc eax
cmp eax, 0x13
jb 0x436624
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44d1a0]
jne 0x436759
mov eax, dword [0x548a64]
cmp eax, 1
je 0x436731
cmp eax, edx
jne 0x436663
cmp dword [0x44ca04], 1
je 0x436731
cmp ecx, 0xfc
je 0x436759
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x436699
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0042a980
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042a590
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4366cd
mov eax, edi
push eax
call fcn.0042a590
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x444e84
push edi
call fcn.00436320
add esp, 0x10
push edi
call fcn.0042a590
push dword [esi + 0x44d1a4]
mov ebx, eax
call fcn.0042a590
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042a860
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0042a980
push edi
push ebx
call fcn.0042a990
push 0x444e80
push ebx
call fcn.0042a990
push dword [esi + 0x44d1a4]
push ebx
call fcn.0042a990
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00438d88
add esp, 0x2c
jmp 0x436759
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44d1a4]
push dword [esi]
call fcn.0042a590
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0042a8ce
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x436d66
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x44c750]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x436d97
xor eax, eax
jmp 0x436f20
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x549160]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x436dd3
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00439dff
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x436eae
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x436eec
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x436e37
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x436e28
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x436e08
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436e77
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x436e80
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x436df9
jmp 0x436e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x436f1b
cmp dword [ebp - 0x6c], edi
je 0x436eec
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x436ee1
call fcn.0042b6c8
mov dword [eax], 9
call fcn.0042b6d1
mov dword [eax], esi
jmp 0x436f16
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436ed6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x436e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x436e82
push dword [ebp - 0x6c]
call fcn.0042b6da
pop ecx
jmp 0x436f16
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x436f04
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x436f04
xor eax, eax
jmp 0x436f1e
call fcn.0042b6c8
mov dword [eax], 0x1c
call fcn.0042b6d1
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x436f1e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042a8ce
add ebp, 0x3a0
leave
ret
Function at 0x438d88
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x548ec4], ebx
push esi
push edi
jne 0x438e08
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x438e43
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x446524
push edi
call esi
test eax, eax
mov dword [0x548ec4], eax
je 0x438e43
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x548ec8], eax
call esi
cmp dword [0x548a0c], 2
mov dword [0x548ecc], eax
jne 0x438e08
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x548ed4], eax
je 0x438e08
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x548ed0], eax
mov eax, dword [0x548ed0]
test eax, eax
je 0x438e4d
call eax
test eax, eax
je 0x438e34
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x548ed4]
test eax, eax
je 0x438e34
test byte [ebp - 8], 1
jne 0x438e4d
cmp dword [0x548a18], 4
jb 0x438e47
or byte [ebp + 0x12], 0x20
jmp 0x438e6c
xor eax, eax
jmp 0x438e7c
or byte [ebp + 0x12], 4
jmp 0x438e6c
mov eax, dword [0x548ec8]
test eax, eax
je 0x438e6c
call eax
mov ebx, eax
test ebx, ebx
je 0x438e6c
mov eax, dword [0x548ecc]
test eax, eax
je 0x438e6c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x548ec4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439f40
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x446550
call fcn.0042a700
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x548edc], edi
jne 0x439f84
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x439f6f
mov dword [0x548edc], ebx
jmp 0x439f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x439f84
mov dword [0x548edc], 2
mov eax, dword [0x548edc]
cmp eax, ebx
jne 0x439fa4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x43a067
cmp eax, 2
je 0x439fad
cmp eax, edi
jne 0x439fd5
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x439fc0
mov eax, dword [0x548e4c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x439fdc
xor eax, eax
jmp 0x43a067
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0042a860
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x43a00f
cmp esi, edi
jne 0x43a025
push dword [ebp - 0x20]
call fcn.00429dcf
pop ecx
mov esi, eax
cmp esi, edi
je 0x439fd5
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x43a058
cmp dword [ebp + 0x14], edi
jne 0x43a042
push edi
push edi
jmp 0x43a048
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x43a064
push esi
call fcn.00429de1
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0042a73b
ret
Function at 0x43a070
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x446560
call fcn.0042a700
xor esi, esi
cmp dword [0x548ee0], esi
jne 0x43a0b4
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a09f
mov dword [0x548ee0], edi
jmp 0x43a0b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43a0b4
mov dword [0x548ee0], 2
mov eax, dword [0x548ee0]
cmp eax, 2
je 0x43a195
cmp eax, esi
je 0x43a195
cmp eax, 1
jne 0x43a0f9
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x43a0e2
mov eax, dword [0x548e4c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x43a100
xor eax, eax
jmp 0x43a1a7
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0042a860
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x43a136
cmp edi, esi
jne 0x43a151
lea eax, [ebx + ebx]
push eax
call fcn.00429dcf
pop ecx
mov edi, eax
cmp edi, esi
je 0x43a0f9
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a184
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x43a16e
push esi
push esi
jmp 0x43a174
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x43a190
push edi
call fcn.00429de1
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x43a1a7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0042a73b
ret
Function at 0x43b797
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x43b7b0
or eax, 0xffffffff
jmp 0x43b811
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x43b80d
push 0x3d
push esi
call fcn.0043b96c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43b80d
cmp esi, eax
je 0x43b80d
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x548a2c]
sete cl
cmp eax, dword [0x548a30]
mov dword [ebp - 8], ecx
jne 0x43b7f3
mov edi, eax
call fcn.0043b736
mov dword [0x548a2c], eax
cmp eax, ebx
jne 0x43b84c
cmp dword [ebp + 0xc], ebx
je 0x43b815
cmp dword [0x548a34], ebx
je 0x43b815
call fcn.0043af98
test eax, eax
je 0x43b84c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x43b81e
xor eax, eax
jmp 0x43b810
push 4
call fcn.00429dcf
cmp eax, ebx
pop ecx
mov dword [0x548a2c], eax
je 0x43b80d
mov dword [eax], ebx
cmp dword [0x548a34], ebx
jne 0x43b84c
push 4
call fcn.00429dcf
cmp eax, ebx
pop ecx
mov dword [0x548a34], eax
je 0x43b80d
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x548a2c]
call fcn.0043b6e9
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43b8ad
cmp dword [esi], ebx
je 0x43b8ad
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00429de1
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43b890
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x43b8ee
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43b887
mov eax, edi
shl eax, 2
push eax
push dword [0x548a2c]
call fcn.00429e52
cmp eax, ebx
pop ecx
pop ecx
je 0x43b8ee
jmp 0x43b8e9
cmp dword [ebp - 8], ebx
jne 0x43b959
cmp edi, ebx
jge 0x43b8bc
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x548a2c]
call fcn.00429e52
cmp eax, ebx
pop ecx
pop ecx
je 0x43b80d
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x548a2c], eax
cmp dword [ebp + 0xc], ebx
je 0x43b943
push dword [ebp - 4]
call fcn.0042a590
inc eax
inc eax
push eax
call fcn.00429dcf
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x43b943
push dword [ebp - 4]
push esi
call fcn.0042a980
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x43b93c
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00429de1
pop ecx
cmp dword [ebp - 8], ebx
je 0x43b951
push dword [ebp - 4]
call fcn.00429de1
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x43b810
push dword [ebp - 4]
call fcn.00429de1
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x43b81a
Function at 0x1000ab90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001f528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x24]
push ebp
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], ebx
call fcn.1000f2f0
mov eax, dword [ebx + 8]
xor ebp, ebp
push eax
mov ecx, ebx
mov dword [esp + 0x18], ebp
mov dword [ebx + 0x24], eax
call fcn.1000f900
cmp eax, ebp
mov dword [ebx + 0x38], eax
je 0x1000ac1b
push esi
lea edx, [eax*4]
push edi
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x38]
mov esi, dword [ebx + 4]
shl ecx, 2
mov dword [ebx + 0x2c], eax
mov edi, eax
mov eax, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x1000ac1e
mov dword [ebx + 0x2c], ebp
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x34], ebp
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x1000e6a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1001f5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.ImageRestoreLib8.dll_public:_void___thiscall_ImageRestoreExt::constructor_void_
fild dword [esi + 0xc]
sub esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
fstp qword [esp]
fild dword [esi + 0x10]
sub esp, 8
fstp qword [esp]
call sub.ImageRestoreLib8.dll_public:_void___thiscall_ImageRestoreExt::GeneratePSF_double__double_
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.ImageRestoreLib8.dll_public:_void___thiscall_ImageRestoreExt::MapRestoreByteVar_unsigned_char___int__int__int__int_
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.ImageRestoreLib8.dll_public:_void___thiscall_ImageRestoreExt::destructor_void_
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x14
Function at 0x10010d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001f70f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [ecx + 8]
push esi
fld qword [0x10021718]
fld qword [0x10021718]
cmp eax, 8
mov dword [esp + 4], 0
jne 0x10010e29
mov eax, dword [ecx + 0x1c]
push edi
imul eax, dword [ecx + 0x18]
shl eax, 3
cdq
and edx, 7
add eax, edx
xor edx, edx
mov esi, eax
sar esi, 3
test esi, esi
jle 0x10010dae
mov edi, dword [ecx]
push ebp
mov ebp, dword [esp + 0x2c]
xor ecx, ecx
xor eax, eax
mov cl, byte [edi + edx]
mov al, byte [edx + ebp]
mov dword [esp + 0x2c], ecx
sub ecx, eax
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
inc edx
cmp edx, esi
fld st(0)
fmul st(1)
faddp st(3)
fstp st(0)
fild dword [esp + 0x2c]
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jl 0x10010d7c
pop ebp
fxch st(1)
fdiv st(1)
lea ecx, [esp + 0x28]
fldlg2
fxch st(1)
fyl2x
fmul qword [0x10021880]
fstp qword [esp + 0xc]
fstp st(0)
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x30]
mov edi, 1
push 0x1002617c
push eax
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov dword [esp + 8], edi
mov byte [esp + 0x1c], 0
call fcn.1001e36e
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov esi, dword [esp + 0x20]
push str.ERROR
fstp st(0)
mov ecx, esi
fstp st(0)
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x10010e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001f73f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [ecx + 8]
push esi
fld qword [0x10021718]
cmp eax, 8
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
jne 0x10010f85
mov eax, dword [ecx + 0x1c]
push edi
imul eax, dword [ecx + 0x18]
mov dword [esp + 8], eax
shl eax, 3
cdq
and edx, 7
add eax, edx
xor edx, edx
mov esi, eax
sar esi, 3
test esi, esi
jle 0x10010f02
mov edi, dword [ecx]
push ebp
mov ebp, dword [esp + 0x30]
fld qword [esp + 0x14]
xor ecx, ecx
xor eax, eax
mov cl, byte [edi + edx]
mov al, byte [edx + ebp]
mov dword [esp + 0x30], ecx
sub ecx, eax
fild dword [esp + 0x30]
mov dword [esp + 0x30], ecx
inc edx
cmp edx, esi
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
fild dword [esp + 0x30]
fld st(0)
fmul st(1)
faddp st(3)
fstp st(0)
jl 0x10010ece
fstp st(0)
pop ebp
fild dword [esp + 8]
lea ecx, [esp + 0x2c]
fdiv st(1)
fmul qword [0x10021888]
fldlg2
fxch st(1)
fyl2x
fmul qword [0x10021880]
fstp qword [esp + 0x10]
fstp st(0)
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x34]
mov edi, 1
push 0x1002617c
push eax
mov dword [esp + 0x30], edi
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x38]
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], edi
mov byte [esp + 0x20], 0
call fcn.1001e36e
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov esi, dword [esp + 0x24]
push str.ERROR
mov ecx, esi
fstp st(0)
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x10013f90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea eax, [esi + 3]
push edi
cdq
and edx, 3
xor edi, edi
add eax, edx
mov ecx, eax
lea eax, [ebp + 3]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 2
shl eax, 2
sar ecx, 2
mov dword [esp + 0x20], eax
sub edx, ebx
shl ecx, 2
xor eax, eax
cmp edx, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edx
jle 0x100140a3
sub esi, ebp
mov dword [esp + 0x24], esi
xor edx, edx
cmp esi, edi
mov dword [esp + 0x10], edx
jle 0x10014090
xor ebp, ebp
cmp ebx, edi
jle 0x10014059
mov esi, eax
mov edi, dword [esp + 0x40]
imul esi, ecx
mov ecx, dword [esp + 0x34]
add esi, edx
add esi, ecx
xor ecx, ecx
cmp dword [esp + 0x44], ecx
jle 0x1001403c
xor eax, eax
xor edx, edx
mov al, byte [esi + ecx]
mov dl, byte [edi + ecx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
mov eax, dword [esp + 0x44]
inc ecx
cmp ecx, eax
jl 0x10014018
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add esi, ecx
mov ecx, dword [esp + 0x20]
add edi, ecx
dec ebx
jne 0x10014010
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x48]
xor edi, edi
cmp eax, edi
jne 0x1001406f
cmp edx, edi
jne 0x1001406f
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
jmp 0x10014081
cmp dword [esp + 0x3c], ebp
jle 0x10014081
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
add edx, 3
cmp edx, esi
mov dword [esp + 0x10], edx
jl 0x10013ff9
mov edx, dword [esp + 0x28]
add eax, 3
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x10013feb
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
mov dword [eax + 4], edx
pop ebx
add esp, 0x1c
ret 0x1c
Function at 0x10019830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001f8e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0xc]
push edi
lea esi, [ebp + 4]
push eax
mov ecx, esi
mov dword [esp + 0x1c], esi
call fcn.1000fa50
mov edi, dword [eax]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.1000fa50
mov ebx, dword [eax + 4]
xor esi, esi
push 0xffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
call sub.MFC42.DLL_CBrush::CBrush
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, edx
lea edx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x50]
push edx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [ebp + 0x24]
cmp ebx, esi
mov dword [esp + 0x10], edx
jle 0x10019902
mov ebp, ebx
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x100198cc
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0xcc0020
push 0
push ecx
mov ecx, dword [edx]
push ecx
push 1
push edi
push ebp
push 0
push 1
push edi
push esi
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchDIBits]
push 3
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
dec ebp
cmp esi, ebx
jl 0x100198c1
xor esi, esi
mov dword [esp + 0x1c], 0x10022228
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4