joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b9ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x1000ba5b
cmp dword [esi + 4], 0xffffffff
jne 0x1000ba5b
push edi
lea edi, [esi + 0x140]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.10011b80
pop ecx
lea eax, [eax + esi + 0x13f]
mov cl, byte [eax]
pop edi
cmp cl, 0x5c
je 0x1000ba09
cmp cl, 0x2f
je 0x1000ba09
mov byte [eax + 1], 0x2f
mov byte [eax + 2], 0
cmp dword [ebp + 0x10], 1
jne 0x1000ba24
push dword [ebp + 8]
call fcn.1000c0e6
pop ecx
cmp eax, 0xffffffff
jne 0x1000ba24
mov eax, 0x2000000
jmp 0x1000ba60
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100093bf
add esp, 0x10
test eax, eax
jne 0x1000ba42
mov eax, dword [ebp + 0x10]
jmp 0x1000ba60
push eax
call fcn.1000b4a1
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x1000ba60
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x1000c0f7
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1000c11a
mov eax, 0x200
jmp 0x1000c298
mov ecx, dword [ebp - 0x4c]
xor eax, eax
push ebx
xor ebx, ebx
mov edx, ecx
inc eax
and edx, eax
push esi
mov dword [ebp - 8], ebx
je 0x1000c130
mov dword [ebp - 8], eax
test cl, 2
je 0x1000c139
or dword [ebp - 8], 2
test cl, 4
je 0x1000c142
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x1000c14d
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x1000c156
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x1000c163
or dword [ebp - 8], 0x40000000
jmp 0x1000c16a
or dword [ebp - 8], 0x80000000
or dword [ebp - 8], 0x1000000
cmp edx, ebx
jne 0x1000c17c
or dword [ebp - 8], 0x800000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x1000c21d
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x1000c21d
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x1000c21d
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x1000c216
cmp eax, 0x454e
je 0x1000c216
cmp eax, 0x454c
je 0x1000c216
cmp eax, 0x4550
jne 0x1000c21d
or dword [ebp - 8], 0x400000
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1000c229
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1000c235
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x1000c268
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.1000c080
push dword [ebp - 0x34]
mov dword [esi], eax
push dword [ebp - 0x38]
call fcn.1000c080
push dword [ebp - 0x44]
mov dword [esi + 4], eax
push dword [ebp - 0x48]
call fcn.1000c080
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x1000c294
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.1000c027
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret
Function at 0x1000d61e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x1000d629
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x1000d6e4
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100250c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100250c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100250c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100250c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100250c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100250c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100250c8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100250c8]
inc edx
sub edi, 8
dec esi
jne 0x1000d649
pop ebx
test edi, edi
je 0x1000d6fd
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x100250c8]
inc edx
dec edi
jne 0x1000d6e8
pop edi
not eax
pop esi
ret

Function at 0x1000d702
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
movsx edx, byte [esp + 8]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x100250c8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x100250c8]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x1000da3a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x1000daaf
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x1000da66
cmp dword [esi + 0x40], edi
jae 0x1000da66
push eax
call fcn.100136be
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x1000da7b
lea eax, [edi + edi]
push eax
call fcn.100139fe
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.1000fa40
add esp, 0xc
test edi, edi
jbe 0x1000daac
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.1000d74e
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x1000da8e
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1000dade
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x1000daca
mov dword [esi + 0x14], 0x30000
jmp 0x1000db00
push edi
push edx
add eax, ecx
push eax
call fcn.1000fa40
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x1000db02
mov eax, dword [esi + 4]
test eax, eax
je 0x1000daf9
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x1000db02
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1000dd0c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x78]
push edi
test ecx, ecx
je 0x1000dd5c
mov eax, dword [esi + 0x80]
mov edi, dword [esi + 0x7c]
cmp eax, edi
jae 0x1000dd98
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x1000dd31
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.1000fa40
add dword [esi + 0x80], edi
add dword [esi + 0x68], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x6c]
call fcn.1000d61e
add esp, 0x18
mov dword [esi + 0x6c], eax
mov eax, edi
jmp 0x1000dd9a
mov eax, dword [esi + 0x70]
test eax, eax
je 0x1000dd91
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000dd98
mov edi, dword [ebp + 0xc]
add dword [esi + 0x68], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x6c]
call fcn.1000d61e
add esp, 0xc
jmp 0x1000dd55
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x1000e4c7
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push 7
pop ecx
lea eax, [edi - 1]
cmp ecx, eax
sbb al, al
inc al
push str.bad_pack_level
push eax
push esi
call fcn.1000c29b
xor ebx, ebx
lea ecx, [esi + 0x6af70]
add esp, 0xc
lea eax, [esi + 0x6af78]
mov dword [eax], ebx
cmp dword [ecx], ebx
jne 0x1000e50d
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push ebx
push eax
mov dword [esi + 0x6af6c], ebx
call fcn.1000f9c0
mov eax, edi
shl eax, 3
movzx ecx, word [eax + 0x1002507a]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x10025078]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x1002507c]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x1002507e]
add esp, 0xc
cmp edi, 2
mov dword [esi + 0x6af94], eax
jg 0x1000e570
mov eax, dword [esp + 0x18]
or word [eax], 4
jmp 0x1000e57d
cmp edi, 8
jl 0x1000e57d
mov eax, dword [esp + 0x18]
or word [eax], 2
push 0x10000
lea edi, [esi + 0x1af70]
push edi
push esi
mov dword [esi + 0x6af84], ebx
mov dword [esi + 0x6af74], ebx
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, ebx
je 0x1000e5e7
cmp eax, 0xffffffff
je 0x1000e5e7
mov dword [esi + 0x6af8c], ebx
cmp eax, 0x106
jae 0x1000e5bf
push esi
call fcn.1000cd29
pop ecx
mov dword [esi + 0x6af7c], ebx
movzx eax, byte [edi + ebx]
mov ecx, dword [esi + 0x6af7c]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
inc ebx
mov dword [esi + 0x6af7c], eax
cmp ebx, 2
jb 0x1000e5c5
jmp 0x1000e5f7
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x1000ec1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x1000ee33
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x1000ec98
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x1000ecd9
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x1000ecd9
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x1000ecc0
mov dword [eax], ecx
push dword [ebp - 4]
push esi
call fcn.1000cb67
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x1000ecd9
mov ebx, eax
cmp ebx, 3
jb 0x1000edad
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.1000c67c
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x1000ed6b
cmp eax, 3
jb 0x1000ed6b
dec ebx
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [esi + ecx + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
dec ebx
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x1000ed19
jmp 0x1000edd0
add dword [esi + 0x6af84], ebx
mov eax, dword [esi + 0x6af84]
lea ecx, [eax + esi]
movzx eax, byte [ecx + 0x1af70]
lea edx, [esi + 0x6af7c]
mov dword [edx], eax
movzx ecx, byte [ecx + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, edi
push 1
push esi
xor ebx, ebx
mov dword [edx], ecx
call fcn.1000c29b
add esp, 0xc
jmp 0x1000edd6
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.1000c67c
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x1000ee12
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x1000edef
lea ecx, [eax + esi + 0x1af70]
jmp 0x1000edf1
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.1000ea72
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x1000ee25
push esi
call fcn.1000cd29
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x1000ec48
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x1000ee46
lea ecx, [eax + esi + 0x1af70]
jmp 0x1000ee48
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.1000ea72
add esp, 0x10
pop esi
pop ebx
leave
ret
Function at 0x10011586
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b0a0]
jne 0x10011590
repz ret
jmp fcn.100141ec

Function at 0x1001c831
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10014364
and dword [ebp - 4], 0
cmp dword [0x1002e3a4], 0
mov ebx, eax
jne 0x1001c8e2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001c993
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001c993
push eax
call fcn.100142f2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002e3a4], eax
call esi
push eax
call fcn.100142f2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002e3a8], eax
call esi
push eax
call fcn.100142f2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1002e3ac], eax
call esi
push eax
call fcn.100142f2
pop ecx
mov dword [0x1002e3b4], eax
test eax, eax
je 0x1001c8e2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100142f2
pop ecx
mov dword [0x1002e3b0], eax
mov eax, dword [0x1002e3b0]
cmp eax, ebx
je 0x1001c93a
cmp dword [0x1002e3b4], ebx
je 0x1001c93a
push eax
call fcn.1001436d
push dword [0x1002e3b4]
mov esi, eax
call fcn.1001436d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001c93a
test edi, edi
je 0x1001c93a
call esi
test eax, eax
je 0x1001c931
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001c931
test byte [ebp - 0xc], 1
jne 0x1001c93a
or dword [ebp + 0x10], 0x200000
jmp 0x1001c973
mov eax, dword [0x1002e3a8]
cmp eax, ebx
je 0x1001c973
push eax
call fcn.1001436d
pop ecx
test eax, eax
je 0x1001c973
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001c973
mov eax, dword [0x1002e3ac]
cmp eax, ebx
je 0x1001c973
push eax
call fcn.1001436d
pop ecx
test eax, eax
je 0x1001c973
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002e3a4]
call fcn.1001436d
pop ecx
test eax, eax
je 0x1001c993
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001c995
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407240
Capabilities:
Get number of processors

Disassembly:
cmp dword [ecx + 0x44], 8
lea eax, [ecx + 0x30]
mov dword [eax + 0x10], 0
jb 0x407252
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [ecx + 0x48]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edx
jb 0x407265
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [ecx + 0x64]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edx
jb 0x407278
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [ecx + 0x80]
mov dword [ecx + 0x7c], edx
mov byte [ecx + 0x1cd], dl
mov dword [ecx + 0x98], 1
mov dword [ecx + 0x9c], edx
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edx
jb 0x4072a7
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [ecx + 0xa0]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edx
jb 0x4072bd
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
mov byte [ecx + 0xd0], dl
mov byte [ecx + 0x1c4], dl
jmp fcn.004066a0
Function at 0x407390
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x240]
sub esp, 0x240
push 0xffffffffffffffff
push 0x514a89
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x55a144]
xor eax, ebp
mov dword [ebp + 0x23c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp + 0x18]
push 0xa
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
push str.config.ini
mov dword [ebp - 0x10], 1
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
call fcn.00402410
mov dword [ebp - 4], 1
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp]
push esi
push eax
call fcn.00419840
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x407476
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40746c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40756d
push edx
push ecx
call fcn.004f14e5
add esp, 8
xor eax, eax
mov dword [ebp + 0x28], 0
mov word [ebp + 0x18], ax
lea eax, [ebp]
push eax
mov dword [ebp + 0x2c], 7
call fcn.00418b90
add esp, 4
test al, al
je 0x4074fb
push 0x20a
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.004f44c0
add esp, 0xc
lea eax, [ebp]
cmp dword [ebp + 0x14], 8
cmovae eax, dword [ebp]
push eax
push 0x104
lea eax, [ebp + 0x30]
push eax
push 0x53c29c
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp + 0x30]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4074e0
sub ecx, edx
lea eax, [ebp + 0x30]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402410
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x407535
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40752b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407572
push edx
push ecx
call fcn.004f14e5
add esp, 8
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x23c]
xor ecx, ebp
call fcn.004f110c
lea esp, [ebp + 0x240]
pop ebp
ret
call fcn.004f74d9
call fcn.004f74d9
int3
Function at 0x418730
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], 0
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x418753
cmp dword [eax + 0x14], 8
jb 0x418755
mov eax, dword [eax]
jmp 0x418755
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x41877d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x41877f
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x4187e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516d78
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x55a144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x418823
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041ec90
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41884c
lea eax, [esi + 8]
jmp 0x41884e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x41885e
cmp dword [ebx + 0x14], 8
jb 0x418860
mov ebx, dword [ebx]
jmp 0x418860
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x418881
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x418881
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4188aa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4188bf
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004f14e5
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f110c
mov esp, ebp
pop ebp
ret 4
Function at 0x418900
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516da8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x55a144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x418943
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041edc0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41896d
lea ecx, [esi + 8]
jmp 0x41896f
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x418984
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x418986
mov eax, dword [ebx]
jmp 0x418986
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x4189d1
call ecx
cmp eax, 5
jne 0x4189cb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x4189bb
cmp dword [ebx + 0x14], 8
jb 0x4189bd
mov ebx, dword [ebx]
jmp 0x4189bd
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x4189ef
call ecx
cmp eax, 0xb7
jne 0x4189e4
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.0041d820
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x418a15
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x418a2a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004f14e5
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f110c
mov esp, ebp
pop ebp
ret 4