joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18151b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x114b000]
push edi
or ebp, 0xffffffff
jmp 0x18151d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x18151d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x18151c8
mov eax, 1
add ebx, ebx
jne 0x18151eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x18151fc
jne 0x181521b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x181521b
dec eax
add ebx, ebx
jne 0x1815208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x18151e0
add ebx, ebx
jne 0x1815217
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x181526d
xor ecx, ecx
sub eax, 3
jb 0x1815233
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x18152a2
sar eax, 1
mov ebp, eax
jmp 0x181523e
add ebx, ebx
jne 0x181523e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x181520c
inc ecx
add ebx, ebx
jne 0x181524c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x181520c
add ebx, ebx
jne 0x1815259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x181524e
jne 0x181526a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x181524e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x181528c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x181527e
jmp 0x18151ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x181528c
add edi, ecx
jmp 0x18151ce
pop esi
mov edi, esi
mov ecx, 0xda80
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x18152aa
cmp byte [edi], 0x1e
jne 0x18152aa
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 0x18152af
lea edi, [esi + 0x1411000]
mov eax, dword [edi]
or eax, eax
je 0x181531e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14181d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1418318]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x18152dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1418320]
or eax, eax
je 0x1815318
mov dword [ebx], eax
add ebx, 4
jmp 0x18152f9
call dword [esi + 0x141831c]
mov ebp, dword [esi + 0x1418324]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1815352
sub esp, 0xffffff80
jmp 0x5a952c
Function at 0x57e400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbb000]
push edi
or ebp, 0xffffffff
jmp 0x57e422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57e429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57e418
mov eax, 1
add ebx, ebx
jne 0x57e43b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57e44c
jne 0x57e45c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57e45c
dec eax
add ebx, ebx
jne 0x57e458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57e430
xor ecx, ecx
sub eax, 3
jb 0x57e474
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57e4e6
sar eax, 1
mov ebp, eax
jmp 0x57e47f
add ebx, ebx
jne 0x57e47f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x57e48c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x57e4b0
inc ecx
add ebx, ebx
jne 0x57e49c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57e491
jne 0x57e4ad
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57e491
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57e4d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57e4c1
jmp 0x57e41e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57e4d0
add edi, ecx
jmp 0x57e41e
pop esi
mov edi, esi
mov ecx, 0x2248
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57e4ee
cmp byte [edi], 0x13
jne 0x57e4ee
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 0x57e4f3
lea edi, [esi + 0x17b000]
mov eax, dword [edi]
or eax, eax
je 0x57e56b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x181bb8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x181c94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57e520
mov ecx, edi
jns 0x57e54f
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 + 0x181c98]
or eax, eax
je 0x57e565
mov dword [ebx], eax
add ebx, 4
jmp 0x57e53d
call dword [esi + 0x181c9c]
popal
jmp 0x42073d
Function at 0x4022f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x423ebd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x40], edi
mov word [esi + 0x2c], di
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x54], edi
mov dword [esi], 0x427a14
mov word [esi + 0x14], 0x50
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402490
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
push esi
mov esi, ecx
mov dword [esp + 8], 0x7530
mov eax, dword [esi + 4]
test eax, eax
jne 0x40257f
mov eax, dword [esi + 0x30]
push 0
test eax, eax
je 0x4024ca
push str._local_
push str.proxy
push 3
jmp 0x4024d2
mov eax, dword [esi + 0x54]
push 0
push 0
push eax
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98__Rising_
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4024f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x114
ret
xor ecx, ecx
push edi
mov dword [esp + 0x10], ecx
xor eax, eax
mov dword [esp + 0x14], ecx
lea edi, [esp + 0x1d]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], cl
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x30]
pop edi
test eax, eax
je 0x402568
mov eax, dword [esi + 0x28]
xor edx, edx
mov dx, word [esi + 0x2c]
lea ecx, [esp + 0x18]
push edx
push eax
push str._s:_d
push ecx
mov dword [esp + 0x1c], 3
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 4]
add esp, 0x10
lea eax, [esp + 0xc]
lea edx, [esp + 0x18]
push 0xc
push eax
push 0x26
push ecx
mov dword [esp + 0x20], edx
call ebx
test eax, eax
je 0x402635
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push 4
push edx
push 2
push eax
call ebx
test eax, eax
je 0x402635
mov eax, dword [esi + 8]
test eax, eax
jne 0x402650
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4025aa
mov cx, word [esi + 0x14]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
push 0
push 0
push 3
push 0
push 0
push ecx
push eax
push edx
jmp 0x4025c5
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
push 0
push 0
push 3
push eax
mov ax, word [esi + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 8], eax
je 0x402635
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x402635
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push 4
push edx
push 5
push eax
call ebx
test eax, eax
je 0x402635
mov edx, dword [esi + 8]
lea ecx, [esp + 8]
push 4
push ecx
push 6
push edx
call ebx
test eax, eax
je 0x402635
mov eax, dword [esi + 0x34]
test eax, eax
je 0x402650
mov eax, dword [esi + 0x38]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esi + 8]
push 0x2b
push eax
call ebx
test eax, eax
je 0x402635
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esi + 8]
push eax
push 0x2c
push ecx
call ebx
test eax, eax
jne 0x402650
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00403c30
pop esi
xor eax, eax
pop ebx
add esp, 0x114
ret
pop esi
mov eax, 1
pop ebx
add esp, 0x114
ret
Function at 0x4032e0
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
mov ebx, 1
stosb byte es:[edi], al
je 0x40332d
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x40332d
push esi
call edi
cmp eax, 0x104
jbe 0x403339
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
push 0x103
lea eax, [esp + 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esp + 0x118]
test eax, eax
je 0x403360
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x403383
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
mov edi, dword [esp + 0x11c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
mov esi, eax
add esp, 8
test esi, esi
je 0x4033ca
lea eax, [esp + 0x10]
push edi
push eax
mov byte [esi], 0
call ebp
and ebx, eax
jne 0x4033c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4033c4
mov ebx, 1
mov byte [esi], 0x5c
inc esi
jmp 0x403391
lea ecx, [esp + 0x10]
push edi
push ecx
call ebp
and ebx, eax
pop ebp
jne 0x4033e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4033e9
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x405820
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x120]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
push ecx
push edx
or esi, 0xffffffff
call fcn.004058a0
add esp, 0x10
test eax, eax
je 0x405892
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x114]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x405910
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x110
test edx, edx
push esi
je 0x4059fe
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x4059fe
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push str.SOFTWARERising_s
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059e7
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x128]
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
push 0
push str.datapath
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4059db
push ebp
push 0x42d2d0
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0xc
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x110
ret
xor eax, eax
pop esi
add esp, 0x110
ret
Function at 0x4065e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
push edi
mov esi, ecx
jne 0x4065ef
or eax, 0xffffffff
lea ecx, [esi + 0x10]
mov edx, 0x11
mov edi, eax
add ecx, 4
shl edi, 0xd
xor eax, edi
mov edi, eax
shr edi, 0x11
xor eax, edi
mov edi, eax
shl edi, 5
xor eax, edi
dec edx
mov dword [ecx - 4], eax
jne 0x4065f7
mov dword [esi], 0
mov dword [esi + 4], 0xa
mov edi, 9
mov ecx, esi
call fcn.00406520
dec edi
fstp st(0)
jne 0x406627
pop edi
pop esi
ret 4
Function at 0x407c56
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4247f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x64]
mov byte [esp + 0x14], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x88]
mov byte [esp + 0x14], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x90]
mov byte [esp + 0x14], 0x11
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x14], 0x12
lea ecx, [esi + 0x94]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x98]
mov byte [esp + 0x14], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x9c]
mov byte [esp + 0x14], 0x14
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov byte [esp + 0x14], 0x15
mov dword [esi], 0x427e9c
mov dword [esi + 0x30], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], 0x50
mov dword [esi + 0x2c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x8c], edi
call fcn.00407e10
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407e10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 8]
push edi
xor esi, esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov edi, ecx
push 0x80000001
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 4
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407eb1
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.GlobalUserOffline
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407ea6
cmp dword [esp + 0x10], 4
jne 0x407ea6
cmp dword [esp + 8], 1
jne 0x407ea6
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push 4
push edx
push 4
push esi
push str.GlobalUserOffline
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [edi + 0xa0], 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret

Function at 0x408030
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0xa0]
mov dword [esp], 0
test eax, eax
mov dword [esp + 4], 1
je 0x408092
lea eax, [esp]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408092
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push str.GlobalUserOffline
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret

Function at 0x4080a0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x4080b3
pop esi
xor eax, eax
pop ebx
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jge 0x4080c6
pop esi
xor eax, eax
pop ebx
ret 4
push ebp
push edi
lea edi, [esi + 0x90]
push ebx
mov ecx, edi
call fcn.004235f0
mov eax, dword [edi]
push 0x42d29c
lea ebx, [esi + 0x94]
push eax
push str._s_s
push ebx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edi, [esi + 0x38]
mov ecx, edi
push 0x200
call sub.MFC42.DLL_CString::GetBufferSetLength
mov ecx, dword [ebx]
mov ebp, eax
push ecx
push 0x200
push ebp
push str.Rav.ini
push 0x42d798
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x2e
push ebp
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x408134
mov byte [eax], 0
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42.DLL_CString::ReleaseBuffer
add esi, 0x98
push 0x104
mov ecx, esi
call sub.MFC42.DLL_CString::GetBufferSetLength
mov edx, dword [edi]
push 0x104
push eax
push edx
call fcn.00405910
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.RsConfig.cfg
mov ecx, esi
call fcn.0042364a
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x408690
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.00408190
test eax, eax
jne 0x4086b1
push str.ReadAllParameter:Read_Neconfig.ini_Fail
push 4
call fcn.004090d0
add esp, 8
or edi, 0xffffffff
mov ecx, esi
call fcn.00408800
test eax, eax
jne 0x4086d0
push str.ReadAllParameter:Read_RsConfig.cfg_Fail
push 4
call fcn.004090d0
add esp, 8
mov edi, 0xfffffffe
mov eax, dword [esi + 0x94]
push eax
push 0
push str.BlockNC
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x40b640
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x120]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
push ecx
push edx
or esi, 0xffffffff
call fcn.0040b6c0
add esp, 0x10
test eax, eax
je 0x40b6b2
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x114]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x40bb90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x128]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
push ecx
push edx
or esi, 0xffffffff
call fcn.0040b6c0
add esp, 0x10
test eax, eax
je 0x40bc12
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x11c]
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x40bd90
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x424f98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0xc8]
push 0x42d29c
push eax
lea ecx, [esp + 0xc]
push str._s_s
push ecx
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x10
push edx
push 1
push str.NewVer
push str.DLGSHOW
call esi
test eax, eax
jne 0x40be60
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 4]
push ecx
push 0
push 0x42db80
push str.DLGSHOW
call esi
mov edx, dword [esp + 0xe]
and edx, 0xffff
cmp eax, edx
jne 0x40be46
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.004235ea
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esp + 4]
push eax
push 0x42d2b0
push str.NewVer
push str.DLGSHOW
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.004235ea
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret