joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4103af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.0041f050
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x1028], 0
push ebx
mov dword [ebp - 0x1020], eax
push esi
push edi
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, ecx
lea esi, [ebp - 0x108c]
mov dword [ebp - 0x1024], ebx
stosb byte es:[edi], al
call fcn.0041ca2b
push 0x42a1f4
push ebx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x41044b
mov esi, dword [sym.imp.MSVCR80.dll_fread]
mov edi, 0x1000
jmp 0x41042d
lea ecx, [ebp - 0x101c]
lea edx, [ebp - 0x108c]
call fcn.0041d175
push ebx
push edi
lea eax, [ebp - 0x101c]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x41041c
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
jmp 0x41046a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1024]
push str.GetModuleHashStr_open_file___s__fail_errno__lu_
push 0x426430
call fcn.00414b27
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea esi, [ebp - 0x108c]
call fcn.0041d380
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1020]
call fcn.004104a0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1020]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4d6
leave
ret

Function at 0x410ee2
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 5
push 0xffffffffffffffff
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x410f48
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x410f22
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x410f3b
push 0x103
push dword [ebp - 4]
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
and word [esi + 0x206], 0
push dword [ebp - 4]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x411638
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
call fcn.00411bbb
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
mov edi, 0xf003f
push edi
xor ebx, ebx
push ebx
push eax
mov esi, SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call main
cmp dword [ebp - 0xc], ebx
je 0x4116be
cmp dword [ebp + 8], ebx
je 0x411716
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.00411bbb
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call main
cmp esi, ebx
je 0x4116be
xor eax, eax
jmp 0x411719
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push str.FullDump
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], ebx
je 0x4116ff
cmp dword [ebp + 8], 2
je 0x4116ff
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push str.HASH
push dword [ebp - 4]
call esi
jmp 0x41170d
push str.HASH
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41171e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
and word [ebp - 0x20c], 0
push esi
push edi
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x427324
je 0x4117a6
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.TencentQQMiscQQTroubleShoot
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4117e5
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4117e5
push dword [ebp - 0x210]
call fcn.004102be
pop ecx
jmp 0x411800
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.004047a6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e4d6
leave
ret
Function at 0x4118a2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x644
mov eax, 0x41fbd3
call fcn.0041eefb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x644], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
jne 0x4118ca
xor eax, eax
jmp 0x4119e4
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.00411bbb
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x640]
add eax, 0xfffffff0
call main
cmp edi, esi
jne 0x4118c3
push 0x618
lea eax, [ebp - 0x62e]
push esi
push eax
mov word [ebp - 0x630], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x648]
push eax
push esi
push str.ExtRptFile
push dword [ebp - 0x634]
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x64c], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x411974
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4118c3
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x630]
call fcn.004047a6
lea eax, [ebp - 0x638]
push eax
mov ecx, 0x4274b4
mov dword [ebp - 4], esi
call fcn.004047a6
mov ecx, dword [ebp - 0x644]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00414844
pop ecx
pop ecx
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call main
xor eax, eax
inc eax
call fcn.0041ef7e
ret
Function at 0x4119ea
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x650
mov eax, 0x41fb95
call fcn.0041eefb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x654], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x650], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
jne 0x411a1b
xor eax, eax
jmp 0x411bb5
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.00411bbb
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x640]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x658]
add eax, 0xfffffff0
call main
cmp edi, esi
jne 0x411a14
push 0x410
lea eax, [ebp - 0x636]
push esi
push eax
mov word [ebp - 0x638], si
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.InstallDir
push dword [ebp - 0x640]
mov ebx, 0x208
mov dword [ebp - 0x64c], 1
mov dword [ebp - 0x648], ebx
call edi
cmp eax, esi
je 0x411ac8
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411a14
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x638]
call fcn.004047a6
lea eax, [ebp - 0x644]
push eax
mov ecx, 0x4274b4
mov dword [ebp - 4], esi
call fcn.004047a6
mov ecx, dword [ebp - 0x654]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00414844
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call sub.MSVCR80.dll_memset
add esp, 0x14
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
push str.ExcDir
push dword [ebp - 0x640]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x648], 0x104
call edi
test eax, eax
jne 0x411b8b
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00401445
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00414844
pop ecx
pop ecx
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x644]
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call main
mov eax, ebx
call fcn.0041ef7e
ret
Function at 0x411c01
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4204a3
call fcn.0041ee92
xor edi, edi
cmp dword [ebp + 8], edi
je 0x411ca1
xor eax, eax
mov esi, str.CrashCount
cmp eax, esi
je 0x411ca1
lea eax, [ebp - 0x14]
push eax
call fcn.004102be
mov dword [ebp - 4], edi
lea eax, [ebp - 0x10]
mov dword [esp], str.BREvent.ini
push eax
lea ecx, [ebp - 0x14]
call fcn.00404989
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411cb0
push edi
push edi
push 2
push edi
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x411ca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__create_file___s__failed___ld_
push 0x426430
call fcn.00414b27
mov eax, dword [ebp - 0x10]
add esp, 0x10
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call main
xor eax, eax
call fcn.0041ef6a
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
inc ebx
push ebx
push esi
push dword [ebp + 8]
mov edi, 0x426430
push str._s:_s_lu
push edi
call fcn.00414b27
push ebx
lea eax, [ebp - 0x18]
push 0x4276c8
push eax
call fcn.00410f85
mov eax, dword [eax]
add esp, 0x20
push dword [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call main
test bl, bl
je 0x411d24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str._AddEventLog__write_file___s__failed___ld_
push edi
jmp 0x411c83
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call main
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call main
xor eax, eax
inc eax
jmp 0x411ca3
Function at 0x411d42
Capabilities:
Check if file exists

Disassembly:
push 0x214
mov eax, 0x41f6ac
call fcn.0041eefb
xor edi, edi
push 0x206
lea eax, [ebp - 0x216]
mov esi, ecx
push edi
mov dword [ebp - 0x21c], edi
push eax
mov dword [ebp - 0x220], esi
mov word [ebp - 0x218], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.MSVCR80.dll_wcsrchr]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call ebx
cmp eax, edi
pop ecx
pop ecx
je 0x411daa
mov word [eax], di
call fcn.004045ad
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x21c], 1
call fcn.00401445
push str._txupd.exe
push esi
call fcn.0040485b
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411e4c
push dword [esi]
mov edi, 0x426430
push str.txupd___s__not_exist_so_uplevel_dir
push edi
call fcn.00414b27
lea eax, [ebp - 0x218]
push 0x5c
push eax
call ebx
add esp, 0x14
test eax, eax
je 0x411e08
and word [eax], 0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00401445
push str._txupd.exe
push esi
call fcn.0040485b
push dword [esi]
push str.txupd___s_
push edi
call fcn.00414b27
add esp, 0xc
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411e4c
push dword [esi]
push str.txupd___s__not_exist_error
push edi
call fcn.00414b27
add esp, 0xc
mov eax, esi
call fcn.0041ef7e
ret

Function at 0x411f6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411fcd
cmp dword [ebp + 0xc], 1
je 0x411fa6
cmp dword [ebp + 0xc], 2
je 0x411fa6
push 0xd
pop eax
jmp 0x411fcd
test edi, edi
mov eax, dword [ebp - 4]
je 0x411fc7
test eax, eax
je 0x411fc3
test al, 1
jne 0x411fa1
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x411fc7
jmp 0x411fa1
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x415289
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
push str.OpenUrlWithDefBrowserInternal__url_s
push 0x42641c
call fcn.00414b27
call fcn.004152f2
push 0x38
mov edi, eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call sub.MSVCR80.dll_memset
add esp, 0x18
mov dword [ebp - 0x38], 0x500
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4152ea
mov al, 1
jmp 0x4152ef
test edi, edi
setne al
pop edi
leave
ret
Function at 0x4155c4
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.OpenUrlWithIEInternal__url_s
push 0x42641c
call fcn.00414b27
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call sub.MSVCR80.dll_memset
add esp, 0x18
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x210], bx
je 0x41563e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41563e
mov al, 1
jmp 0x415640
xor al, al
xor ecx, ecx
cmp al, bl
sete cl
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
lea ecx, [ecx*2 + str.Internet_ExplorerIEXPLORE.EXE]
call fcn.00414a12
pop ecx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41568b
push esi
mov ecx, str.iexplore.exe
lea eax, [ebp - 0x210]
mov word [ebp - 0x210], bx
call fcn.00414a12
pop ecx
push 5
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4d6
leave
ret
Function at 0x41702e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
push 3
mov esi, ecx
xor edx, edx
lea eax, [edi + 2]
pop ecx
div ecx
cmp eax, 0x40000000
jae 0x41712f
mov ecx, dword [ebp + 0xc]
shl eax, 2
cmp dword [ecx], eax
jb 0x41712f
cmp edi, 2
mov ecx, dword [ebp + 8]
jbe 0x4170c9
push ebx
push 3
xor edx, edx
lea eax, [edi - 3]
pop ebx
div ebx
inc eax
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add esi, 3
sub edi, 3
dec eax
jne 0x41706e
pop ebx
test edi, edi
je 0x41711e
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
inc ecx
shl eax, 4
cmp edi, 1
jbe 0x41710d
movzx edx, byte [esi + 1]
shr edx, 4
mov al, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x417119
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
mov byte [ecx], 0
mov dword [edx], eax
xor eax, eax
jmp 0x417132
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x417f68
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.M_GetAdaptersAddresses_begin.
mov edi, str.bugreport
push edi
call fcn.00414b27
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push 2
call sub.iphlpapi.dll_GetAdaptersAddresses
cmp eax, 0x6f
mov dword [ebp - 0xc], eax
jne 0x418000
cmp esi, ebx
je 0x417fae
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 8]
call fcn.0041e4c4
mov esi, eax
cmp esi, ebx
pop ecx
je 0x417feb
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x417f8d
cmp esi, ebx
je 0x417fd1
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0xc]
push str.GetAdaptersAddresses_failed___ld_.
push edi
call fcn.00414b27
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Allocate_memory_failed___ld__in_M_GetAdaptersAddresses.
push edi
call fcn.00414b27
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x417fc6
cmp esi, ebx
je 0x417fd1
push dword [ebp + 8]
mov ecx, esi
call fcn.0041802e
mov edi, eax
cmp edi, ebx
je 0x418023
push dword [ebp + 8]
call fcn.004189aa
mov edi, eax
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, edi
jmp 0x417fe4

Function at 0x418f6e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test edx, edx
push edi
mov edi, dword [ebp + 8]
jle 0x418fd8
sub ecx, edi
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push esi
inc byte [eax + 0x100]
movzx ecx, byte [eax + 0x100]
lea esi, [ecx + eax]
mov cl, byte [esi]
add byte [eax + 0x101], cl
movzx ecx, byte [eax + 0x101]
mov dl, byte [esi]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx ecx, byte [eax + 0x101]
movzx edx, byte [eax + 0x100]
mov cl, byte [ecx + eax]
add cl, byte [edx + eax]
mov edx, dword [ebp - 8]
movzx ecx, cl
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 4]
jne 0x418f85
pop esi
pop ebx
pop edi
leave
ret
Function at 0x418fe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x419012
lea esp, [esp]
test cl, 3
je 0x419012
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4238c8]
add ecx, 1
sub esi, 1
jne 0x418ff0
cmp esi, 0x20
push ebx
push edi
jb 0x4191fc
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x423cc8]
xor edx, dword [ebx*4 + 0x4240c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4238c8]
add ecx, 4
xor edx, dword [eax*4 + 0x4244c8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x423cc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4240c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4238c8]
add ecx, 4
xor eax, dword [edx*4 + 0x4244c8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x423cc8]
xor edx, dword [ebx*4 + 0x4240c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4238c8]
xor edx, dword [eax*4 + 0x4244c8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x423cc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4240c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4238c8]
xor eax, dword [edx*4 + 0x4244c8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x423cc8]
xor edx, dword [ebx*4 + 0x4240c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4238c8]
xor edx, dword [eax*4 + 0x4244c8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x423cc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4240c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4238c8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4244c8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x423cc8]
xor edx, dword [ebx*4 + 0x4240c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4238c8]
add ecx, 4
xor edx, dword [eax*4 + 0x4244c8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x423cc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4240c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4238c8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4244c8]
sub edi, 1
jne 0x419022
cmp esi, 4
jb 0x419249
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x423cc8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4240c8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4238c8]
and eax, 0xff
xor edi, dword [eax*4 + 0x4244c8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x419206
test esi, esi
pop edi
pop ebx
je 0x41926d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4238c8]
add ecx, 1
sub esi, 1
jne 0x419250
not eax
pop esi
ret