joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025a49
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10039140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1001d03c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1001d03c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10025ac0
cmp word [ecx], dx
je 0x10025ac0
mov eax, dword [0x100324e4]
push edi
dec eax
push eax
push 0x100323d0
call fcn.100259e8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10025b33
cmp word [eax], dx
je 0x10025b33
mov eax, dword [edi]
test eax, eax
je 0x10025ae4
cmp word [eax], dx
je 0x10025ae4
lea eax, [ebp - 0x10]
push eax
call fcn.100253cb
jmp 0x10025aed
lea eax, [ebp - 0x10]
push eax
call fcn.10025466
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10025b5d
mov eax, dword [0x100323cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100320c0
call fcn.100259e8
add esp, 0xc
test al, al
je 0x10025b5d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10025b28
cmp word [eax], di
je 0x10025b28
lea eax, [ebp - 0x10]
push eax
call fcn.100253cb
pop ecx
jmp 0x10025b5f
lea eax, [ebp - 0x10]
push eax
call fcn.10025466
jmp 0x10025b25
mov eax, dword [edi]
test eax, eax
je 0x10025b4a
cmp word [eax], dx
je 0x10025b4a
lea eax, [ebp - 0x10]
push eax
call fcn.10025380
pop ecx
jmp 0x10025b5d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10025c28
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002586d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10025c28
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10025c28
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10025c28
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10025bb5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10020e96
test ebx, ebx
je 0x10025c23
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10020e96
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10025c28
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10025c28
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10029672
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10025c2a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013092
leave
ret
Function at 0x1002b8c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002b8ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002b8ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42fb50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x42fb72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42fb79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42fb68
mov eax, 1
add ebx, ebx
jne 0x42fb8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42fb80
jne 0x42fb9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42fb80
xor ecx, ecx
sub eax, 3
jb 0x42fbb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42fc22
mov ebp, eax
add ebx, ebx
jne 0x42fbbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42fbc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42fbec
inc ecx
add ebx, ebx
jne 0x42fbd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42fbcd
jne 0x42fbe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42fbcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42fc0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42fbfd
jmp 0x42fb6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42fc0c
add edi, ecx
jmp 0x42fb6e
pop esi
mov edi, esi
mov ecx, 0xc14
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42fc2a
cmp byte [edi], 9
jne 0x42fc2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42fc2f
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42fc9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d668]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d6e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42fc5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3d6e4]
or eax, eax
je 0x42fc98
mov dword [ebx], eax
add ebx, 4
jmp 0x42fc79
call dword [esi + 0x3d6e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42fccf
cmp al, 0xef
ja 0x42fcc2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42fca4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42fcb1
popal
jmp 0x4163f4
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0xa594b9e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x403165e6
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40681e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0x480213
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
sete al
test al, al
je 0x40684f
mov eax, 0xffffffff
jmp 0x4069fb
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
test eax, eax
setne al
test al, al
je 0x406888
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x4069fb
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym._fread
cmp eax, 1
setne al
test al, al
je 0x4068c9
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x4069fb
mov eax, dword [ebp - 0x10]
add eax, 0x5e
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
test eax, eax
setne al
test al, al
je 0x406904
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x4069fb
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 2
lea eax, [ebp - 0x12]
mov dword [esp], eax
call sym._fread
cmp eax, 1
setne al
test al, al
je 0x406945
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x4069fb
cmp dword [ebp + 0x10], 1
jne 0x406958
mov ax, word [ebp - 0x12]
or eax, 0x40
mov word [ebp - 0x12], ax
jmp 0x406975
cmp dword [ebp + 0x10], 2
jne 0x40696b
mov ax, word [ebp - 0x12]
and eax, 0xffffffbf
mov word [ebp - 0x12], ax
jmp 0x406975
mov eax, 0xffffffff
jmp 0x4069fb
mov eax, dword [ebp - 0x10]
add eax, 0x5e
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
test eax, eax
setne al
test al, al
je 0x4069ad
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x4069fb
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 2
lea eax, [ebp - 0x12]
mov dword [esp], eax
call sym._fwrite
cmp eax, 1
setne al
test al, al
je 0x4069eb
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x4069fb
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0
leave
ret
Function at 0x4069fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0x480213
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
sete al
test al, al
je 0x406a2f
mov eax, 0xffffffff
jmp 0x406b51
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
test eax, eax
setne al
test al, al
je 0x406a68
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x406b51
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym._fread
cmp eax, 1
setne al
test al, al
je 0x406aa9
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x406b51
mov eax, dword [ebp - 0x10]
add eax, 0x5e
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
test eax, eax
setne al
test al, al
je 0x406ae1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x406b51
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 2
lea eax, [ebp - 0x12]
mov dword [esp], eax
call sym._fread
cmp eax, 1
setne al
test al, al
je 0x406b1f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, 0xffffffff
jmp 0x406b51
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov ax, word [ebp - 0x12]
cmp ax, 0x8140
jne 0x406b3b
mov eax, 1
jmp 0x406b51
mov ax, word [ebp - 0x12]
cmp ax, 0x8100
jne 0x406b4c
mov eax, 2
jmp 0x406b51
mov eax, 3
leave
ret

Function at 0x40710e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.TData.getGameHandle__
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetWindowThreadProcessId_8
sub esp, 8
call sym._GetCurrentProcess_0
lea edx, [ebp - 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x28
mov dword [esp], eax
call sym._OpenProcessToken_12
sub esp, 0xc
test eax, eax
sete al
test al, al
je 0x407169
mov eax, 0
jmp 0x40720b
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], 0
call sym._LookupPrivilegeValueA_12
sub esp, 0xc
test eax, eax
setne al
test al, al
je 0x4071df
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
lea edx, [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._AdjustTokenPrivileges_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x418
call sym._OpenProcess_12
sub esp, 0xc
leave
ret
Function at 0x40720e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.TData.getGameHandle__
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetWindowThreadProcessId_8
sub esp, 8
call sym._GetCurrentProcess_0
lea edx, [ebp - 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x28
mov dword [esp], eax
call sym._OpenProcessToken_12
sub esp, 0xc
test eax, eax
sete al
test al, al
je 0x407269
mov eax, 0
jmp 0x40730b
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], 0
call sym._LookupPrivilegeValueA_12
sub esp, 0xc
test eax, eax
setne al
test al, al
je 0x4072df
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
lea edx, [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._AdjustTokenPrivileges_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x418
call sym._OpenProcess_12
sub esp, 0xc
leave
ret
Function at 0x407892
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18c
mov dword [ebp - 0x154], sym.___gxx_personality_sj0
mov dword [ebp - 0x150], 0x47cb98
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x407a90
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x16c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0x168], 0xffffffff
call fcn.00475534
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], sym.__Z15EnumWindowsProcP6HWND__l_8
mov dword [ebp - 0x168], 1
call sym._EnumWindows_8
sub esp, 8
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
mov dword [ebp - 0x1c], 0
jmp 0x4079ef
mov dword [esp + 8], 0xff
mov dword [esp + 4], 0
lea eax, [ebp - 0x12b]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call method.std::vector_HWND____std::allocator_HWND_____.operator___unsigned_int_
mov eax, dword [eax]
mov dword [esp + 8], 0xff
lea edx, [ebp - 0x12b]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x168], 2
call sym._GetWindowTextA_12
sub esp, 0xc
lea eax, [ebp - 0x12b]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.004560d4
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call method.std::string.length___const
test eax, eax
setne al
test al, al
je 0x4079ec
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.std::string.c_str___const
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call method.std::string.find_char_const__unsigned_int__const
cmp eax, 0xffffffff
setne al
test al, al
je 0x4079ec
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call method.std::vector_HWND____std::allocator_HWND_____.operator___unsigned_int_
mov eax, dword [eax]
mov dword [ebp - 0x170], eax
jmp 0x407a12
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
mov dword [esp], eax
call method.std::vector_HWND____std::allocator_HWND_____.size___const
cmp eax, dword [ebp - 0x1c]
seta al
test al, al
jne 0x407922
mov dword [ebp - 0x170], 0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
mov dword [ebp - 0x168], 1
call fcn.00456010
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0x168], 0xffffffff
call method.std::vector_HWND____std::allocator_HWND_____.vector__
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x16c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x174]
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4083ee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ac
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0
lea eax, [ebp - 0x90]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp + 8]
add eax, 0x50
mov dword [esp + 4], eax
lea eax, [ebp - 0x90]
mov dword [esp], eax
call sym._strcat
mov dword [ebp - 0x1c], 0x50
lea edx, [ebp - 0x18f]
mov ebx, str.SOFTWAREMicrosoftWindows
mov eax, 0x1b
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x174]
mov al, 0
mov edx, 0xe4
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
lea edx, [ebp - 0x40]
mov ebx, str.CurrentVersionRun
mov eax, 5
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
lea eax, [ebp - 0x18f]
mov dword [esp], eax
call sym._strcat
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
lea eax, [ebp - 0x18f]
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x408538
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x18f]
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sym._RegCreateKeyA_12
sub esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x408538
lea eax, [ebp - 0x90]
mov dword [esp], eax
call sym._strlen
lea ebx, [ebp - 0x90]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xac]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym._RegSetValueExA_24
sub esp, 0x18
mov dword [ebp - 0x28], eax
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
leave
ret

Function at 0x408544
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x50
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym.unk_2700
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0x50
mov dword [esp + 4], 0x50
mov dword [esp], eax
call sym.unk_2708
sub esp, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xa4]
mov edx, dword [ebp + 8]
add edx, 0x50
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcat
mov eax, dword [ebp + 8]
lea edx, [eax + 0x50]
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._CopyFileA_12
sub esp, 0xc
leave
ret
Function at 0x40dbe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sym._read
mov ebx, eax
cmp eax, 0xffffffff
je 0x40dc18
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
call sym.__errno
cmp dword [eax], 4
je 0x40dbef
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x417c7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x34], sym.___gxx_personality_sj0
mov dword [ebp - 0x30], 0x47e618
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x417de5
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
cmp byte [0x48edc0], 0
jne 0x417d9c
mov byte [0x48edc0], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x417e10
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], eax
cmp byte [eax], 0x2a
je 0x417dcc
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
mov dword [ebp - 0x48], 0xffffffff
call sym.___cxa_demangle
mov dword [ebp - 0x58], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [ebp - 0x50], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x417d88
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._fputs
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4824b5
call sym._fwrite
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x417dd8
mov dword [ebp - 0x48], 1
call sym.___cxa_rethrow
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._fputs
jmp 0x417d52
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
lea esi, [esi]
inc eax
mov dword [ebp - 0x54], eax
jmp 0x417cdb
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._free
jmp 0x417d7c
call sym._abort
lea esi, [esi]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x417e08