joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40914b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405fba
xor ebx, ebx
cmp dword [0x415a50], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x409220
push 0x4019b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40918b
xor eax, eax
jmp 0x4092e4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019a8
push edi
call esi
cmp eax, ebx
je 0x409184
push eax
call fcn.00405f57
mov dword [esp], 0x401998
push edi
mov dword [0x415a50], eax
call esi
push eax
call fcn.00405f57
mov dword [esp], 0x401984
push edi
mov dword [0x415a54], eax
call esi
push eax
call fcn.00405f57
mov dword [0x415a58], eax
lea eax, [ebp - 8]
push eax
call fcn.00405269
test eax, eax
pop ecx
pop ecx
je 0x4091ee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407c10
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x409220
push 0x401968
push edi
call esi
push eax
call fcn.00405f57
cmp eax, ebx
pop ecx
mov dword [0x415a60], eax
je 0x409220
push 0x401950
push edi
call esi
push eax
call fcn.00405f57
pop ecx
mov dword [0x415a5c], eax
mov eax, dword [0x415a5c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x409299
cmp dword [0x415a60], esi
je 0x409299
push eax
call fcn.00405fc3
pop ecx
call eax
cmp eax, ebx
je 0x409266
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x415a60]
call fcn.00405fc3
pop ecx
call eax
test eax, eax
je 0x409266
test byte [ebp - 0x18], 1
jne 0x409299
lea eax, [ebp - 0xc]
push eax
call fcn.004052a0
test eax, eax
pop ecx
je 0x409281
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407c10
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x409290
or dword [ebp + 0x10], 0x200000
jmp 0x4092ca
or dword [ebp + 0x10], 0x40000
jmp 0x4092ca
mov eax, dword [0x415a54]
cmp eax, esi
je 0x4092ca
push eax
call fcn.00405fc3
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4092ca
mov eax, dword [0x415a58]
cmp eax, esi
je 0x4092ca
push dword [ebp - 4]
push eax
call fcn.00405fc3
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x415a50]
call fcn.00405fc3
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ec2f
Capabilities:
Access firewall settings via inetfwmgr
Check os version

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x4141d4]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 8
mov eax, 0x411a18
call fcn.00410601
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], edi
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
push eax
push 0x402be0
push 0x17
push edi
push 0x402c48
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x40ecb7
cmp eax, 0x80040154
jne 0x40ecb3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040eaee
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00404ce5
add ebp, 0x120
leave
ret
mov esi, eax
jmp 0x40ec82
push 0x118
lea eax, [ebp + 4]
push edi
push eax
mov dword [ebp], 0x11c
call fcn.00407db0
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call fcn.00403569
cmp eax, edi
jne 0x40ed29
cmp dword [ebp + 4], 5
jne 0x40ed29
cmp dword [ebp + 8], esi
jne 0x40ed29
cmp word [ebp + 0x114], 2
jne 0x40ed29
push 0x12
lea eax, [ebp + 0x14]
push 0x402c20
push eax
call fcn.0041067e
add esp, 0xc
test eax, eax
jne 0x40ed29
lea eax, [ebp + 0x38]
push eax
call fcn.00404def
cmp eax, edi
pop ecx
je 0x40ed29
cmp eax, 0x82e
jl 0x40ec82
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, edi
jne 0x40ed64
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebx + 4]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, edi
jne 0x40ed64
mov eax, dword [ebp - 0x10]
push eax
mov ecx, ebx
mov dword [ebp - 0x10], edi
call fcn.0040e941
cmp esi, 0x800706d9
jne 0x40ed6f
xor esi, esi
inc esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040eaee
jmp 0x40ec82
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x63860319
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7bd602a2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x426851
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call main
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x42688c
push dword [ebp + 8]
push str.Failed_to_calculate_resume_path_from_working_path:__ls
push eax
call main
add esp, 0xc
jmp 0x426940
mov eax, dword [ebp + 0xc]
push ebx
push 0x80
push 4
push ebx
push 4
push 0xc0000000
push dword [eax]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4268f2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x4268c3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x4268d1
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xd0
push str.downloadengine.cpp
call fcn.0043294e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_create_resume_file:__ls
push dword [ebp - 4]
jmp 0x42687f
push ebx
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, edi
push eax
lea eax, [edi + esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x426949
add edi, dword [ebp - 8]
cmp dword [ebp - 8], ebx
je 0x42691b
cmp edi, 8
jb 0x4268f2
cmp edi, 8
je 0x426925
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
or dword [ebp + 8], 0xffffffff
mov dword [eax], ecx
cmp dword [ebp + 8], 0xffffffff
je 0x426940
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x42695d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x42696b
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xd7
push str.downloadengine.cpp
call fcn.0043294e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_read_resume_file:__ls
push dword [ebp - 4]
call main
add esp, 0xc
jmp 0x426931

Function at 0x427eaa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4540d0]
jne 0x427eb4
repz ret
jmp fcn.00429e94
Function at 0x1014e4d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1014e6b4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa4000]
push edi
or ebp, 0xffffffff
jmp 0x1014e4fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1014e501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1014e4f0
mov eax, 1
add ebx, ebx
jne 0x1014e513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1014e524
jne 0x1014e543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1014e543
dec eax
add ebx, ebx
jne 0x1014e530
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1014e508
add ebx, ebx
jne 0x1014e53f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1014e595
xor ecx, ecx
sub eax, 3
jb 0x1014e55b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1014e5ca
sar eax, 1
mov ebp, eax
jmp 0x1014e566
add ebx, ebx
jne 0x1014e566
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1014e534
inc ecx
add ebx, ebx
jne 0x1014e574
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1014e534
add ebx, ebx
jne 0x1014e581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1014e576
jne 0x1014e592
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1014e576
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1014e5b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1014e5a6
jmp 0x1014e4f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1014e5b4
add edi, ecx
jmp 0x1014e4f6
pop esi
mov edi, esi
mov ecx, 0x3d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1014e5d2
cmp byte [edi], 5
jne 0x1014e5d2
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 0x1014e5d7
lea edi, [esi + 0x14a000]
mov eax, dword [edi]
or eax, eax
je 0x1014e646
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14e90c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14e9b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1014e604
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14e9b4]
or eax, eax
je 0x1014e640
mov dword [ebx], eax
add ebx, 4
jmp 0x1014e621
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1014e677
cmp al, 0xef
ja 0x1014e66a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1014e64c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1014e659
mov ebp, dword [esi + 0x14e9b8]
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 0x1014e6ab
sub esp, 0xffffff80
jmp 0x100020e0
Function at 0x41339a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x4133a9
pop dword [ebp - 0x1c]
mov eax, 0x4a64d458
add eax, 0xb5dc5f51
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x4dc1e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x6cd81f29
add ecx, 0x93281f05
mov esi, eax
mov edx, 0x10f79aa0
sub edx, 0x10af0ca0
add edx, dword [ebp - 0x1c]
mov ebx, 0x566b70a4
sub ebx, 0x7e234253
mov edi, dword [edx]
mov dword [ebp - 4], 0xe5006e7f
xor edi, ebx
sub dword [ebp - 0x18], 0xdc1193f4
mov dword [esi], edi
xor dword [ebp - 0x18], ecx
add esi, 4
add edx, 0x38379fda
sub edx, 0x38379fd6
loop 0x413403
add eax, 0xf8fd4846
sub eax, 0xf8fc5cbb
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10003e20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [esi + 0x89], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x10003e64
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.100048c0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10004f20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044011
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x1005d0b4]
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
cmp dword [edi + 0xa0], 8
lea eax, [edi + 0x8c]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x10004f6d
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, esi
jne 0x100050ab
xor eax, eax
mov dword [ebp - 0x814], 7
push eax
push 0x10047320
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
call fcn.100027f0
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1002e7f0
push esi
lea eax, [ebp - 0x810]
push 0x10047cbc
push eax
call fcn.10002d40
add esp, 0x18
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
call fcn.10004ef0
mov esi, eax
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x1000504e
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x10005025
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.10002940
xor eax, eax
mov dword [ebp - 0x814], 7
push esi
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
call fcn.100018a0
mov eax, dword [ebp - 0x82c]
cmp eax, 8
jb 0x1000506c
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.10002940
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.1003372a
mov ecx, dword [ebp - 0x814]
add esp, 4
mov esi, eax
cmp ecx, 8
jb 0x100050a9
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.10002940
mov eax, esi
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.100157fc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100050d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044068
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x1005d0b4]
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 dword [ebp - 0x830], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], 0
call fcn.1002e7f0
mov eax, dword [ebp - 0x830]
add esp, 0xc
add eax, 0x8c
cmp dword [eax + 0x14], 8
jb 0x10005156
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push edi
push dword [ebp - 0x82c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10005197
mov eax, dword [esi]
jmp 0x10005199
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x810], cx
je 0x100051bf
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100051b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.100027f0
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 1
jb 0x100051e9
mov eax, dword [esi]
jmp 0x100051eb
mov eax, esi
mov ecx, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10005216
test dx, dx
je 0x10005212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10005216
add eax, 4
add ecx, 4
test dx, dx
jne 0x100051f0
xor eax, eax
jmp 0x1000521b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10005297
mov ecx, dword [ebp - 0x830]
lea eax, [ebp - 0x828]
push edi
push dword [ebp - 0x82c]
push ebx
push eax
call fcn.10004ef0
mov edi, eax
cmp esi, edi
je 0x10005279
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x10005252
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10002940
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1000526a
mov eax, dword [esi]
jmp 0x1000526c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.100018a0
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x10005297
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.10002940
mov eax, esi
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.100157fc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10006500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x1005d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.1002e7f0
lea eax, [esi + 0x2c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10006537
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x100473f4
push eax
call fcn.10002d40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10006571
lea eax, [ebp - 0x20c]
push eax
call fcn.1000b280
add esp, 4
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1002e7f0
push str.UseVestige.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.10002d40
add esp, 0x1c
cmp word [ebp - 0x414], 0
jne 0x100065b2
xor ecx, ecx
jmp 0x100065cf
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100065c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x8c]
call fcn.100027f0
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.1002e7f0
push str.UseCache.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call fcn.10002d40
add esp, 0x1c
cmp word [ebp - 0x61c], 0
jne 0x10006623
xor ecx, ecx
jmp 0x1000663f
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006630
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x61c]
push eax
lea ecx, [esi + 0xa4]
call fcn.100027f0
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.1002e7f0
lea eax, [ebp - 0xa44]
push str.WSRT
push eax
call fcn.1000b780
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x10006681
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x824]
push 0x1004741c
push eax
call fcn.10002d40
mov eax, dword [ebp - 0xa30]
add esp, 0xc
cmp eax, 8
jb 0x100066b4
inc eax
lea ecx, [ebp - 0xa44]
push eax
push dword [ebp - 0xa44]
call fcn.10002940
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100066d4
lea eax, [ebp - 0x824]
push eax
call fcn.1000b280
add esp, 4
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.1002e7f0
push str.UseCache.ini
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push str._s_s
push eax
call fcn.10002d40
add esp, 0x1c
cmp word [ebp - 0xa2c], 0
jne 0x10006715
xor ecx, ecx
jmp 0x1000672f
lea ecx, [ebp - 0xa2c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006720
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [esi + 0xbc]
call fcn.100027f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100157fc
mov esp, ebp
pop ebp
ret