joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db51
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40db7f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40db86
cmp ebx, dword [eax + 4]
jae 0x40db86
xor eax, eax
jmp 0x40dd76
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40db97
xor eax, eax
inc eax
jmp 0x40dd75
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40dbad
cmp ecx, edx
jae 0x40dcf2
cmp dword [eax + 4], 0
je 0x40dbb6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40db9e
cmp dword [ebp + 8], 0
je 0x40dbd8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40dcf2
cmp eax, esi
jae 0x40dcf2
mov eax, dword [0x416908]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40dbfd
cmp dword [esi*4 + 0x416910], edi
je 0x40dcf6
inc esi
cmp esi, eax
jl 0x40dbeb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40dd72
cmp dword [ebp - 8], 0x1000000
jne 0x40dd72
test byte [ebp - 0xc], 0xcc
je 0x40dc7b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40dd72
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40dd72
cmp word [eax + 0x18], 0x10b
jne 0x40dd72
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40dd72
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40dc7b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40dc7b
test byte [ecx + 0x27], 0x80
jne 0x40dcf2
push 1
push 0x416950
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40db8f
mov ecx, dword [0x416908]
test ecx, ecx
mov edx, ecx
jle 0x40dcaf
lea eax, [ecx*4 + 0x41690c]
cmp dword [eax], edi
je 0x40dcaf
dec edx
sub eax, 4
test edx, edx
jg 0x40dca3
test edx, edx
jne 0x40dce0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40dcbc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40dcd4
lea eax, [edx*4 + 0x416910]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40dcc2
cmp ecx, 0x10
jge 0x40dce0
inc ecx
mov dword [0x416908], ecx
push 0
push 0x416950
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40db8f
xor eax, eax
jmp 0x40dd75
test esi, esi
jle 0x40db8f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x416950
call ebx
test eax, eax
jne 0x40db8f
cmp dword [esi*4 + 0x416910], edi
je 0x40dd4c
mov eax, dword [0x416908]
lea esi, [eax - 1]
test esi, esi
jl 0x40dd3a
cmp dword [esi*4 + 0x416910], edi
je 0x40dd36
dec esi
jns 0x40dd2a
test esi, esi
jge 0x40dd4a
cmp eax, 0x10
jge 0x40dd45
inc eax
mov dword [0x416908], eax
lea esi, [eax - 1]
jmp 0x40dd4c
je 0x40dd64
xor ecx, ecx
test esi, esi
jl 0x40dd64
lea eax, [ecx*4 + 0x416910]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40dd52
push 0
push 0x416950
call ebx
jmp 0x40db8f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40efcd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41696c], ebx
push esi
push edi
jne 0x40f04d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f088
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41696c], eax
je 0x40f088
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x416970], eax
call esi
cmp dword [0x416724], 2
mov dword [0x416974], eax
jne 0x40f04d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41697c], eax
je 0x40f04d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x416978], eax
mov eax, dword [0x416978]
test eax, eax
je 0x40f092
call eax
test eax, eax
je 0x40f079
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41697c]
test eax, eax
je 0x40f079
test byte [ebp - 8], 1
jne 0x40f092
cmp dword [0x416730], 4
jb 0x40f08c
or byte [ebp + 0x12], 0x20
jmp 0x40f0b1
xor eax, eax
jmp 0x40f0c1
or byte [ebp + 0x12], 4
jmp 0x40f0b1
mov eax, dword [0x416970]
test eax, eax
je 0x40f0b1
call eax
mov ebx, eax
test ebx, ebx
je 0x40f0b1
mov eax, dword [0x416974]
test eax, eax
je 0x40f0b1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41696c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f3cd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40f5a1
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x416ca0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40f5a1
test cl, 0x48
je 0x40f438
cmp byte [eax + 5], 0xa
je 0x40f438
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f48a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40f472
call fcn.0040b6d0
mov dword [eax], 9
call fcn.0040b6d9
mov dword [eax], esi
jmp 0x40f482
cmp eax, 0x6d
je 0x40f5a1
push eax
call fcn.0040b6e2
pop ecx
or eax, 0xffffffff
jmp 0x40f5a3
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40f59c
test eax, eax
je 0x40f4b1
cmp byte [ebx], 0xa
jne 0x40f4b1
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40f4ba
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40f596
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40f586
cmp al, 0xd
je 0x40f4ec
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40f578
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40f506
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40f501
add dword [ebp + 0x10], 2
jmp 0x40f55a
mov dword [ebp + 0x10], eax
jmp 0x40f574
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f52e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40f574
cmp dword [ebp - 0xc], 0
je 0x40f574
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40f54f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40f55a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40f577
cmp ebx, dword [ebp + 0xc]
jne 0x40f55f
cmp byte [ebp - 1], 0xa
jne 0x40f55f
mov byte [ebx], 0xa
jmp 0x40f577
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040b755
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40f578
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40f4d0
jmp 0x40f596
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40f596
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40f5a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f81e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x413570
call fcn.00408928
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x416a38], edi
jne 0x40f862
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f84d
mov dword [0x416a38], ebx
jmp 0x40f862
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40f862
mov dword [0x416a38], 2
mov eax, dword [0x416a38]
cmp eax, ebx
jne 0x40f882
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40f945
cmp eax, 2
je 0x40f88b
cmp eax, edi
jne 0x40f8b3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x40f89e
mov eax, dword [0x4168c8]
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 0x40f8ba
xor eax, eax
jmp 0x40f945
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040ab90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x40f8ed
cmp esi, edi
jne 0x40f903
push dword [ebp - 0x20]
call fcn.00405529
pop ecx
mov esi, eax
cmp esi, edi
je 0x40f8b3
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 0x40f936
cmp dword [ebp + 0x14], edi
jne 0x40f920
push edi
push edi
jmp 0x40f926
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 0x40f942
push esi
call fcn.00406b25
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00408963
ret
Function at 0x40f94e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x413580
call fcn.00408928
xor esi, esi
cmp dword [0x416a3c], esi
jne 0x40f992
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f97d
mov dword [0x416a3c], edi
jmp 0x40f992
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40f992
mov dword [0x416a3c], 2
mov eax, dword [0x416a3c]
cmp eax, 2
je 0x40fa73
cmp eax, esi
je 0x40fa73
cmp eax, 1
jne 0x40f9d7
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x40f9c0
mov eax, dword [0x4168c8]
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 0x40f9de
xor eax, eax
jmp 0x40fa85
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ab90
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x40fa14
cmp edi, esi
jne 0x40fa2f
lea eax, [ebx + ebx]
push eax
call fcn.00405529
pop ecx
mov edi, eax
cmp edi, esi
je 0x40f9d7
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 0x40fa62
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x40fa4c
push esi
push esi
jmp 0x40fa52
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 0x40fa6e
push edi
call fcn.00406b25
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x40fa85
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.00408963
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x401440
cmp eax, 2
je 0x401440
cmp eax, 1
jl 0x40146c
cmp dword [ebp + 0xc], 0x52f4
je 0x401452
jmp 0x40146c
push 0
push 0
push 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40146c
push 1
push 0
push 0
push str.License.txt
push 0x426024
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret 0x10
Function at 0x4028b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp esi, 0xfc0
jne 0x4028ea
lea ecx, [ebp - 0x440]
mov edx, 0x426224
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x4028d8
pop eax
jmp 0x402908
lea ecx, [ebp - 0x440]
mov edx, 0x42620a
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x4028f8
pop eax
push 0x43f3b0
push 0x200
lea eax, [ebp - 0x840]
push eax
push 0
push 0
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edi, [ebp - 0x840]
cmp word [edi], 0
je 0x402995
jmp 0x402988
mov ax, word [edi]
test ax, ax
je 0x40297d
cmp ax, 0x7c90
je 0x40297d
push 0x43f3b0
push 0x200
lea eax, [ebp - 0x400]
push eax
push 0
push edi
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x400]
push eax
push 0xffffffffffffffff
push 0x14a
push esi
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov eax, edi
add edi, 2
cmp word [eax], 0
jne 0x40297d
cmp word [edi], 0
jne 0x402938
cmp word [edi - 2], 0
jne 0x402938
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402c40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov edi, 1
push 0xfc0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x200
push 0x43c488
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, 0x43c488
push eax
push 0xffffffffffffffff
push 0x158
push 0xfc0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x402cbb
mov eax, 0x43c488
push eax
push 0
push 0x14a
push 0xfc0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0xfc0
mov eax, dword [ebp + 8]
push eax
call fcn.004027d0
push 0xfc2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x200
push 0x43c89c
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, 0x43c89c
push eax
push 0xffffffffffffffff
push 0x158
push 0xfc2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x402d26
mov eax, 0x43c89c
push eax
push 0
push 0x14a
push 0xfc2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0xfc2
mov eax, dword [ebp + 8]
push eax
call fcn.004027d0
push 0xfc3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x402d49
or edi, 4
mov dword [0x43c890], 4
jmp 0x402d53
mov dword [0x43c890], 0
push 0xfc4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x402d76
or edi, 2
mov dword [0x43c890], 2
jmp 0x402d80
mov dword [0x43c894], 0
push 0x1001
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x402da0
mov dword [0x43c898], 1
jmp 0x402daa
mov dword [0x43c898], 0
push 0
push 0
push 0x749
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x402e44
push 0
mov eax, dword [ebp - 8]
push eax
push 0x74b
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0x437
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x745
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402e1e
inc esi
push edi
mov eax, dword [ebx]
push eax
call fcn.00402e80
cmp eax, 0xffffffff
jne 0x402e1d
push 0
push 0
push 0x745
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jl 0x402dcb
push esi
push 0x43c488
call fcn.00403030
push 0
push 0
push 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4035a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x210]
mov edx, 0x43f0a8
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x4035bd
pop eax
push 0x43f2b0
lea eax, [ebp - 0x210]
push eax
call fcn.0041e5f0
add esp, 8
lea eax, [ebp - 0x210]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x314]
push eax
push 0x42627c
push str.1005
push 0x426292
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x314]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x210]
push eax
push 0x426264
push 0xfcb
push ebx
call fcn.004168a0
lea eax, [ebp - 0x210]
push eax
push 0x42625e
push 1
push ebx
call fcn.004168a0
lea eax, [ebp - 0x210]
push eax
push 0x426250
push 2
push ebx
call fcn.004168a0
push 0
push 0
push 0x740
mov eax, dword [0x43f09c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 8]
push eax
push 0
push 0x434
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x43f9d0], 0
jne 0x4036bf
mov eax, dword [ebp - 8]
push eax
push 0
push 0x436
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
inc eax
push eax
push 0xfcc
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
jmp 0x403757
mov esi, 1
mov dword [ebp - 0x320], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 8]
inc eax
add eax, eax
push eax
push 8
mov eax, dword [0x44019c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x320]
push eax
push 0
push 0x44b
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
jmp 0x40372e
mov eax, dword [ebp - 0x318]
lea edx, [eax + 2]
mov dword [ebp - 0x318], edx
cmp word [eax], 0xd
jne 0x40372d
inc esi
inc edi
cmp edi, dword [ebp - 8]
jl 0x403717
mov eax, dword [ebp - 0x324]
push eax
push 0
mov eax, dword [0x44019c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push esi
push 0xfcc
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov dword [ebp - 0x10], 1
push 0
push pe_nt_image_headers32
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407557
mov eax, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0x411030
mov dword [ebp - 8], 0
cmp dword [0x43bef8], 1
jne 0x4074ee
push 0
lea eax, [ebp - 0x14]
push eax
push 2
push 0x42c008
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 0x10], 0x10
jmp 0x407535
cmp dword [0x43bef8], 2
jne 0x407511
push 0
lea eax, [ebp - 0x14]
push eax
push 2
push 0x42c00a
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 0x10], 0x10
jmp 0x407535
cmp dword [0x43bef8], 3
jne 0x407535
push 0
lea eax, [ebp - 0x14]
push eax
push 3
push 0x42c00c
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], 0xfde90021
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x44a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40755b
xor eax, eax
jmp 0x407560
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4078f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 5
jbe 0x407920
mov eax, 6
jmp 0x40794e
cmp dword [ebp - 0x110], 5
jne 0x407939
cmp dword [ebp - 0x10c], 1
jb 0x407939
mov eax, 6
jmp 0x40794e
cmp dword [ebp - 0x110], 5
jne 0x407949
mov eax, 5
jmp 0x40794e
mov eax, 4
mov esp, ebp
pop ebp
ret