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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x24]
add edx, edx
mov eax, 0xaaaaaaab
mul edx
xor ecx, ecx
push esi
shr edx, 1
push edi
mov dword [esp + 8], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
jmp 0x443094
mov edx, dword [esp + 0x10]
movsx esi, byte [ebx + 0x44]
test esi, esi
mov eax, dword [ebx + esi*4 + 0x78]
mov dword [esp + 0x1c], eax
jne 0x4430d9
cmp byte [eax + 1], 0
je 0x443223
lea ecx, [ebx + 0x7c]
push ecx
call fcn.00441020
xor ecx, ecx
add esp, 4
cmp eax, ecx
mov dword [esp + 8], eax
jne 0x443223
mov byte [ebx + 0x44], 1
mov word [ebx + 0x50], cx
mov word [ebx + 0x52], cx
jmp 0x443218
cmp byte [eax + 1], 0
jne 0x4430eb
movzx eax, word [eax + 0x10]
cmp eax, edx
jle 0x443223
mov eax, dword [ebx + esi*4 + 0x74]
movzx ecx, word [ebx + esi*2 + 0x4e]
mov edi, dword [eax + 0x48]
test byte [edi + 0x18], 4
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], ecx
je 0x443130
mov edx, dword [eax + 0x18]
cmp edx, dword [edi + 0x14]
jb 0x443130
cmp dword [eax + 0x60], 0
je 0x443158
mov ecx, edi
call fcn.004092e0
test eax, eax
je 0x44312c
push edi
call fcn.00416b40
add esp, 4
jmp 0x443150
xor eax, eax
jmp 0x443150
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0x98]
jbe 0x443149
push edi
call fcn.00424f60
add esp, 4
jmp 0x443150
mov eax, edi
call fcn.00419a10
test eax, eax
mov dword [esp + 8], eax
jne 0x44319d
mov edx, dword [ebx + 4]
mov edi, dword [edx + 0x20]
call fcn.0040ef10
mov edx, dword [esp + 0x14]
mov edi, eax
movzx eax, byte [ebx + 0x43]
xor ecx, ecx
and eax, 1
cmp esi, 1
sete cl
push eax
push ecx
mov ecx, dword [esp + 0x20]
push edi
push edx
call fcn.00441140
mov esi, dword [esp + 0x1c]
add esp, 0x10
test esi, esi
mov dword [esp + 8], eax
je 0x443199
call fcn.0040c680
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x1c]
mov byte [eax + 1], 0
mov eax, dword [eax + 0x48]
test byte [eax + 0x18], 0x40
mov edi, dword [eax + 0x10]
je 0x4431f4
add dword [edi + 0x78], 0xffffffff
mov ecx, dword [edi + 0x88]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x88], eax
mov esi, dword [ecx]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x98]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.0046e8a0
push edx
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [edi + 0x3c]
push eax
call edx
add esp, 0x10
jmp 0x4431f9
call fcn.00409690
cmp dword [edi + 0x78], 0
jne 0x443214
mov eax, dword [edi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x443214
push edi
call fcn.004353d0
add esp, 4
add byte [ebx + 0x44], 0xff
cmp dword [esp + 8], 0
je 0x443090
mov esi, dword [esp + 0xc]
test esi, esi
je 0x443230
call fcn.0040c680
mov eax, dword [esp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x443240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
xor eax, eax
cmp ecx, ebx
push esi
push edi
mov dword [esp + 0x1c], eax
je 0x4432a0
mov ecx, dword [ecx + 4]
mov edi, dword [ecx + 8]
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x4432a0
cmp dword [ebp + 0x10], ebx
je 0x4432a7
test byte [edi + 0x40], 1
jne 0x4432a7
mov al, byte [edi + 0x42]
cmp al, 1
je 0x44327f
cmp al, 2
jne 0x4432c0
mov eax, edi
call fcn.00442dc0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x4432c0
mov edx, dword [ebp + 8]
push ebx
push esi
push edx
call fcn.00443240
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x30]
push edx
call fcn.0040a140
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [edi + 0x30], ebx
mov byte [edi + 0x42], 4
mov dword [edi + 0x3c], eax
cmp byte [edi + 0x44], 0
mov dword [esp + 0x10], ebx
jl 0x4433a3
lea ebx, [edi + 0x78]
mov dword [esp + 0x14], ebx
mov eax, dword [ebx]
test eax, eax
je 0x44337d
mov eax, dword [eax + 0x48]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x443333
add dword [esi + 0x78], 0xffffffff
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.0046e8a0
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
add esp, 0x10
jmp 0x443338
call fcn.00409690
cmp dword [esi + 0x78], 0
jne 0x44337d
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x44337d
mov al, byte [esi + 0x10]
cmp al, 6
je 0x443376
test al, al
je 0x443376
cmp al, 2
jb 0x443362
mov eax, esi
call fcn.00434b70
jmp 0x443376
cmp byte [esi + 4], 0
jne 0x443376
push 0
push 0
mov eax, esi
call fcn.0040eb10
add esp, 8
mov eax, esi
call fcn.004114d0
mov eax, dword [esp + 0x10]
mov dword [ebx], 0
movsx ecx, byte [edi + 0x44]
add eax, 1
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
jle 0x4432d5
xor ebx, ebx
mov edi, dword [edi + 8]
cmp edi, ebx
mov dword [esp + 0x18], edi
jne 0x443269
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4437d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, eax
mov al, byte [esi + 0x42]
xor ebx, ebx
cmp al, 1
push edi
je 0x443819
cmp al, 3
jb 0x4437f2
call fcn.004433c0
cmp eax, ebx
jne 0x443802
cmp byte [esi + 0x42], bl
jne 0x443809
mov eax, dword [ebp + 8]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x443819
mov byte [esi + 0x42], 1
mov dword [esi + 0x3c], ebx
jl 0x443800
movsx ecx, byte [esi + 0x44]
mov eax, dword [esi + ecx*4 + 0x78]
cmp byte [eax + 5], bl
jne 0x443862
mov edx, dword [eax + 0x40]
movzx ecx, word [esi + ecx*2 + 0x50]
mov cx, word [edx + ecx*2]
mov dh, cl
mov dl, ch
movzx ecx, dx
movzx edx, word [eax + 0x14]
mov eax, dword [eax + 0x38]
and ecx, edx
mov eax, dword [ecx + eax]
bswap eax
push eax
mov eax, esi
call fcn.0043be80
add esp, 4
cmp eax, ebx
jne 0x443802
call fcn.0043fbd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi + ecx*2 + 0x50], bx
jne 0x44390d
lea ecx, [ecx]
mov al, byte [esi + 0x44]
cmp al, bl
je 0x44394a
and byte [esi + 0x40], 0xf9
movsx ecx, al
mov word [esi + 0x24], bx
mov ecx, dword [esi + ecx*4 + 0x78]
sub al, 1
mov byte [esi + 0x44], al
mov eax, dword [ecx + 0x48]
test byte [eax + 0x18], 0x40
mov edi, dword [eax + 0x10]
je 0x4438e0
add dword [edi + 0x78], 0xffffffff
mov edx, dword [edi + 0x88]
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x88], eax
mov ebx, dword [ecx]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x98]
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.0046e8a0
push edx
mov edx, dword [ebx + 0x48]
push eax
mov eax, dword [edi + 0x3c]
push eax
call edx
add esp, 0x10
xor ebx, ebx
jmp 0x4438e5
call fcn.00409690
cmp dword [edi + 0x78], ebx
jne 0x4438fe
mov eax, dword [edi + 0xcc]
cmp dword [eax + 0xc], ebx
jne 0x4438fe
push edi
call fcn.004353d0
add esp, 4
movsx ecx, byte [esi + 0x44]
cmp word [esi + ecx*2 + 0x50], bx
je 0x443870
movsx eax, byte [esi + 0x44]
add word [esi + eax*2 + 0x50], 0xffff
movsx ecx, byte [esi + 0x44]
lea eax, [esi + eax*2 + 0x50]
mov eax, dword [esi + ecx*4 + 0x78]
cmp byte [eax + 2], bl
je 0x443800
cmp byte [eax + 5], bl
jne 0x443800
mov edx, dword [ebp + 8]
push edx
push esi
call fcn.00444dd0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [esi + 0x42], bl
pop edi
pop esi
mov dword [edx], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4451e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
movzx ebp, word [ecx + 0x20]
push esi
mov esi, edx
movsx edx, byte [ecx + 0x44]
mov edx, dword [ecx + edx*4 + 0x78]
mov edx, dword [edx + 0x3c]
push edi
mov edi, dword [ecx + 0x18]
sub edx, edi
cmp ebp, edx
jae 0x445205
mov edx, ebp
lea ebp, [eax + ebx]
cmp ebp, edx
ja 0x445222
add edi, eax
mov dword [esi + 0x10], edi
mov word [esi + 8], 0x1010
mov dword [esi + 0xc], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.00444c40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x445840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi]
mov eax, esi
call fcn.00408520
mov ebx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov eax, ebx
add eax, 0xffffffff
adc esi, 0xffffffff
test esi, esi
ja 0x445913
jb 0x445874
cmp eax, 0x7ffffffe
ja 0x445913
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov word [esp + 0x18], 0
mov dword [esp + 0x28], 0
movsx ecx, byte [eax + 0x44]
mov ecx, dword [eax + ecx*4 + 0x78]
mov edx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x3c]
movzx esi, word [eax + 0x20]
sub ecx, edx
cmp esi, ecx
jae 0x4458a7
mov ecx, esi
cmp ebx, ecx
ja 0x4458bc
mov dword [esp + 0x20], edx
mov word [esp + 0x18], 0x1010
mov dword [esp + 0x1c], ebx
jmp 0x4458d1
push 1
push 0
push eax
lea esi, [esp + 0x1c]
call fcn.00444c40
add esp, 0xc
test eax, eax
jne 0x44593e
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
call fcn.00421620
mov edx, dword [esp + 0x54]
add esp, 0x10
test dword [esp + 0x18], 0x2460
mov dword [edx], eax
jne 0x445901
cmp dword [esp + 0x28], 0
je 0x44590a
lea edi, [esp + 0x10]
call fcn.00413120
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x44]
push 0x47735c
push 0x111ea
push str.database_corruption_at_line__d_of___.10s_
mov ecx, 0xb
mov dword [eax], 0
call fcn.0041f550
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x445950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov esi, eax
call fcn.00408520
movsx edx, byte [esi + 0x44]
mov eax, dword [esp + 0x68]
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
xor edi, edi
mov dword [esp + 0x30], eax
mov word [esp + 0x18], di
mov dword [esp + 0x28], edi
mov eax, dword [esi + edx*4 + 0x78]
mov eax, dword [eax + 0x3c]
movzx edx, word [esi + 0x20]
sub eax, ecx
cmp edx, eax
jae 0x44598e
mov eax, edx
cmp ebx, eax
ja 0x4459a7
mov edi, ecx
mov ebp, ebx
mov dword [esp + 0x20], edi
mov word [esp + 0x18], 0x1010
mov dword [esp + 0x1c], ebp
jmp 0x4459c7
push 1
push edi
push esi
lea esi, [esp + 0x1c]
call fcn.00444c40
add esp, 0xc
cmp eax, edi
jne 0x445a91
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov al, byte [edi]
cmp al, 0x80
jae 0x4459d2
movzx ebx, al
jmp 0x4459e1
lea esi, [esp + 0x68]
mov ecx, edi
call fcn.00409cb0
mov ebx, dword [esp + 0x68]
cmp ebx, 3
jb 0x445a56
cmp ebx, ebp
jg 0x445a56
mov al, byte [ebx + edi - 1]
cmp al, 0x80
lea ecx, [ebx + edi - 1]
jae 0x4459fb
movzx edx, al
jmp 0x445a08
lea esi, [esp + 0x68]
call fcn.00409cb0
mov edx, dword [esp + 0x68]
lea ecx, [edx - 1]
cmp ecx, 8
ja 0x445a56
cmp edx, 7
je 0x445a56
movzx eax, byte [edx + 0x472c84]
lea ecx, [eax + ebx]
cmp ebp, ecx
jb 0x445a56
mov ecx, ebp
sub ecx, eax
add ecx, edi
lea eax, [esp + 0x38]
call fcn.004082a0
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [eax], edx
mov dword [eax + 4], ecx
lea eax, [esp + 0x10]
call fcn.00414da0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
test dword [esp + 0x18], 0x2460
jne 0x445a67
cmp dword [esp + 0x28], 0
je 0x445a70
lea edi, [esp + 0x10]
call fcn.00413120
push 0x47735c
push 0x111ca
push str.database_corruption_at_line__d_of___.10s_
mov ecx, 0xb
call fcn.0041f550
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x44f2b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, edi
mov ebx, edi
imul eax, edi
xor edx, edx
shr ebx, 2
je 0x44f2e6
push ebp
push esi
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + edx*4]
mov ecx, esi
imul ecx, edx
imul ecx, edi
mov ebp, ecx
shl ebp, 4
add esi, eax
add ecx, ebp
xor ecx, esi
add edx, 1
cmp edx, ebx
mov eax, ecx
jb 0x44f2c1
pop esi
pop ebp
pop ebx
ret

Function at 0x44f780
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esi]
push ebx
xor ebx, ebx
test eax, eax
push edi
je 0x44f795
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi], ebx
mov eax, dword [esp + 0xc]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44f7fd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 4]
add esp, 4
push 0
lea edx, [esp + 0x10]
push edx
push ecx
push eax
push edi
mov dword [esi], eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x44f7f6
mov eax, dword [esi]
cmp dword [eax], 0x66676572
je 0x44f7f6
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
ret 4

Function at 0x4500b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
push ebx
push esi
mov ebx, eax
mov esi, ecx
je 0x4500e8
mov eax, esi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4500c3
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
lea eax, [ecx + ecx]
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x450126
mov ecx, dword [esp + 0x14]
cmp ecx, 2
jb 0x45011d
shr ecx, 1
mov word [esi + ecx*2], ax
jmp 0x450122
mov word [esi], 0
test eax, eax
je 0x450141
mov eax, ebx
sub esi, ebx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x450130
xor eax, eax
pop esi
pop ebx
pop ecx
ret
Function at 0x450210
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20000
call fcn.0046e9b0
cmp dword [esp + 0x20004], 0
push ebp
mov ebp, dword [esp + 0x2000c]
je 0x450286
test esi, esi
je 0x450274
push 0x22
push esi
call sub.msvcrt.dll_wcschr
add esp, 8
test eax, eax
je 0x450274
push esi
push 0x4717f4
lea eax, [esp + 0xc]
push 0xfffe
push eax
mov word [esp + 0x14], 0
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push edi
lea ecx, [esp + 8]
push ecx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop ebp
add esp, 0x20000
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop ebp
add esp, 0x20000
ret
mov edx, dword [esp + 0x20014]
mov eax, dword [esp + 0x20010]
push edi
push edx
push esi
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebp
add esp, 0x20000
ret
Function at 0x452c00
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x640
push ebx
push esi
push edi
push 0x21a
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x660]
lea edx, [esp + 0x1c]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x452c31
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
jne 0x452c5d
xor ax, ax
mov word [esp + 0x10], ax
jmp 0x452c67
mov word [eax], 0
mov ax, word [esp + 0x10]
test ax, ax
lea ecx, [esp + 0x10]
mov ebx, ecx
je 0x452c90
movzx eax, ax
cmp ax, 0x5c
je 0x452c81
cmp ax, 0x2f
jne 0x452c84
lea ebx, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x452c75
mov edi, dword [esp + 0x650]
mov eax, ebx
add edi, 4
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452ca0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jl 0x452cbb
mov eax, 0x103
lea esi, [eax + eax]
push esi
push ebx
push edi
call sub.msvcrt.dll_memcpy
mov word [esi + edi], 0
mov esi, dword [esp + 0x660]
mov edi, dword [esp + 0x65c]
add esp, 0xc
push esi
push edi
call fcn.00452410
test eax, eax
jne 0x452d8c
push 0x208
push eax
lea edx, [esp + 0x23a]
push edx
mov word [esp + 0x23c], ax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x440]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x452d34
push 0x104
lea ecx, [esp + 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x230]
push edx
push 0
push 0x471300
lea eax, [esp + 0x44c]
push eax
mov word [esp + 0x240], 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea ecx, [esp + 0x234]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esp + 0x230]
push edx
push edi
call fcn.00452410
mov esi, eax
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x640
ret 8
Function at 0x452f50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xc48
push ebp
xor ebp, ebp
push 0x208
lea eax, [esp + 0x846]
push ebp
push eax
mov word [esp + 0x84c], bp
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0xc5c]
push 0x104
push 0x4712ac
lea eax, [esp + 0x854]
call fcn.00460d00
add esp, 0x14
lea ecx, [esp + 0x840]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453196
mov dword [esp + 4], ebp
mov dword [esp + 0x424], 0x471800
mov word [esp + 0x42c], bp
mov word [esp + 0x636], bp
mov dword [esp + 0x428], ebp
xor eax, eax
jmp 0x452fe0
movzx ecx, word [esp + eax + 0x840]
mov word [esp + eax + 0x42c], cx
add eax, 2
cmp cx, bp
jne 0x452fe0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + str.General]
mov word [esp + eax + 0x636], cx
add eax, 2
cmp cx, bp
jne 0x453000
push ebx
push esi
push edi
lea ebx, [ebx]
push 0x1fe
lea edx, [esp + 0xa5e]
push ebp
push edx
mov word [esp + 0xa64], bp
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2a]
push ebp
push eax
mov word [esp + 0x30], bp
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x28]
push ecx
push str.Profile_d
lea edx, [esp + 0xa78]
push 0xff
push edx
mov dword [esp + 0x3c], ebp
call sub.msvcrt.dll__snwprintf
add esp, 0x28
xor eax, eax
jmp 0x453080
movzx ecx, word [esp + eax + 0xa58]
mov word [esp + eax + 0x642], cx
add eax, 2
cmp cx, bp
jne 0x453080
mov ecx, dword [esp + 0x434]
push 0x104
push 0x46f57c
lea eax, [esp + 0x64a]
push eax
push ecx
lea edi, [esp + 0x448]
lea esi, [esp + 0x28]
mov ebx, str.Path
call fcn.00450210
mov eax, dword [esp + 0x440]
add esp, 0x10
push ebp
lea edx, [esp + 0x18]
push edx
mov edx, dword [eax + 8]
push str.IsRelative
lea ecx, [esp + 0x43c]
call edx
cmp word [esp + 0x18], bp
je 0x453193
mov eax, esi
cmp word [eax], 0x2f
jne 0x453100
mov word [eax], 0x5c
add eax, 2
cmp word [eax], bp
jne 0x4530f5
push 0x208
lea eax, [esp + 0x22a]
push ebp
push eax
mov word [esp + 0x230], bp
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [esp + 0x14], ebp
je 0x45314e
lea ecx, [esp + 0x18]
push 0x104
push ecx
mov ecx, dword [esp + 0xc64]
lea eax, [esp + 0x22c]
call fcn.00460d00
add esp, 8
jmp 0x453165
xor eax, eax
movzx ecx, word [esp + eax + 0x18]
mov word [esp + eax + 0x224], cx
add eax, 2
cmp cx, bp
jne 0x453150
mov edi, dword [esp + 0xc60]
push 1
lea ebx, [esp + 0x228]
call fcn.0045e3b0
cmp eax, 0xffffffff
jne 0x453189
mov edx, ebx
push edx
mov eax, edi
call fcn.0045e6c0
add dword [esp + 0x10], 1
jmp 0x453020
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc48
ret 8

Function at 0x453670
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x690]
mov ecx, dword [eax + 0xeab8]
mov edx, dword [ebx + 0x6d8]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00453440
mov eax, dword [ebx + 0x690]
cmp dword [eax + 0xeab8], 0
je 0x4536c1
mov ebx, dword [ebx + 0x6d8]
push 0x40b
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop ebx
ret
Function at 0x454480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe98
push ebx
push ebp
mov ebp, dword [esp + 0xea4]
push esi
push edi
mov ebx, 0x26d
call fcn.0045c120
mov ebx, 0x26e
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x471068
call fcn.0045c120
xor esi, esi
push 0x7fe
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x6ae]
push esi
push eax
mov dword [esp + 0x28], 0x46f668
mov word [esp + 0x6b4], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6ac]
push edx
lea eax, [esi + 2]
call fcn.0045f140
push 0x208
lea eax, [esp + 0x86]
push esi
push eax
mov word [esp + 0x8c], si
call sub.msvcrt.dll_memset
add esp, 0x14
lea ebx, [esi + 0xb]
call fcn.0045c120
mov ecx, dword [ebp + 0x208]
lea edx, [esp + 0x6a8]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x78]
push edx
mov dword [esp + 0x24], 0x58
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x80806
mov dword [esp + 0x60], 0x471074
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x4545e8
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x78]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x454586
mov word [esp + 0x290], si
mov word [esp + 0x49a], si
push 1
mov edi, str.General
lea ebx, [esp + 0x7c]
lea esi, [esp + 0x28c]
mov dword [esp + 0x28c], 0x471800
call fcn.0044fe70
test eax, eax
je 0x4545e8
mov eax, dword [ebp + 0x690]
call fcn.00466af0
mov eax, ebp
call fcn.0046be40
mov eax, dword [ebp + 0x694]
call fcn.00459a80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe98
ret 4