joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4189b3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
lea eax, [ebp + 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4189ef
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14

Function at 0x418a54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x418acc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [edi]
inc eax
push eax
call fcn.0043b018
pop ecx
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
je 0x418ad0
cmp dword [ebp + 8], ebx
je 0x418acc
push dword [ebp + 8]
call fcn.0043b4d0
pop ecx
xor eax, eax
jmp 0x418ad3
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x418adc
mov ecx, dword [edi]
mov byte [eax + ecx], bl
pop ebx
leave
ret 0xc
Function at 0x418ce9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, ebx
call fcn.00418c9d
push 0x103
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004451c0
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x418d55
dec eax
je 0x418d41
dec eax
je 0x418d2c
push 2
pop eax
jmp 0x418dfb
push 6
pop ecx
mov esi, str.MGSPOKERV2CREATEMUTEXPIGGY
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x418d65
push 5
pop ecx
mov esi, str.MGSPOKERV2CREATEMUTEX
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x418d65
push 6
pop ecx
mov esi, str.MGSPOKERV2CREATEMUTEXSB
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
mov dword [ebx + 0xfc], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418d8c
xor eax, eax
jmp 0x418dfb
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x418d93
mov esi, str._SEM
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
push 1
movsb byte es:[edi], byte [esi]
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push eax
mov dword [ebx + 0x100], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418df8
push dword [ebx + 0xfc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx + 0xfc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0x100]
mov dword [ebx + 0xfc], edi
call esi
mov dword [ebx + 0x100], edi
jmp 0x418d88
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x418e01
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_5.0_
mov dword [ebp - 8], 0x80004005
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x418f1a
push esi
push edi
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x34]
lea eax, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x418e44
push ebx
sub eax, edx
push 0x4000000
sar eax, 1
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x418f0a
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x418ef8
push 0xff
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.004451c0
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, 0x100
jmp 0x418ede
cmp dword [ebp + 8], ebx
je 0x418ef5
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x418ebe
jmp 0x418ef8
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
jge 0x418f23
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.004451c0
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x10
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x418fb5
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, si
jne 0x418f84
mov esi, str..url
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
je 0x418fb5
shr eax, 4
not eax
and eax, 1
jmp 0x418fb7
xor eax, eax
pop esi
leave
ret 4
Function at 0x418fbc
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push ebx
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 4], 0x80004005
call fcn.004451c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4190ac
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x419020
push esi
mov esi, str..url
movsd dword es:[edi], dword [esi]
push 0x3ff
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60b]
push ebx
push eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x60c], bl
call fcn.004451c0
push dword [ebp + 0x10]
lea eax, [ebp - 0x60c]
push dword [ebp + 0xc]
push str._InternetShortcut__r_nURL_S_r_nIconFile_S_r_nIconIndex0_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, eax
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4190aa
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x60c]
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
pop esi
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc

Function at 0x41b46a
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push str.VIP_TRACKING
mov dword [esi + 8], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
push edi
push edi
push edi
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
lea eax, [esi + 4]
push eax
push edi
push ebx
push 0x41b50b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop ebx
ret
Function at 0x41b97c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
test eax, eax
je 0x41b9cd
test edi, edi
je 0x41b9d1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b98f
sub eax, edx
je 0x41b9cd
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b99f
sub eax, edx
je 0x41b9cd
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Attempting_to_send
call esi
push dword [ebp + 8]
call esi
push str._to_URL:
call esi
push edi
call esi
push 0x456a04
call esi
test edi, edi
jne 0x41ba0e
mov eax, dword [0x46dd68]
test eax, eax
je 0x41ba3f
push 0
push 0
push 0x12
push dword [eax + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call fcn.0043b4d0
and dword [0x46dd68], 0
pop ecx
jmp 0x41ba3f
cmp dword [0x46dd68], 0
jne 0x41ba33
push 0x10
call fcn.0043b528
pop ecx
test eax, eax
je 0x41ba2c
mov esi, eax
call fcn.0041b46a
jmp 0x41ba2e
xor eax, eax
mov dword [0x46dd68], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.0041b4b2
pop esi
leave
ret

Function at 0x41ba42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov byte [ebp - 0x14], 0
push esi
push edi
lea edi, [ebp - 0x13]
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
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41ba60
sub eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041be39
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x41ba84
add ecx, 4
dec edi
jne 0x41ba7f
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 0xc]
call fcn.0041bab8
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x41baf1
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
ret
Function at 0x41bda7
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax + 0x1c]
mov byte [ecx + eax + 0x20], 0x80
inc dword [eax + 0x1c]
cmp ecx, 0x37
mov ecx, dword [eax + 0x1c]
jle 0x41bdf1
jmp 0x41bdc7
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x40
jl 0x41bdbc
call fcn.0041bbed
jmp 0x41bdde
mov ecx, dword [eax + 0x1c]
mov byte [eax + ecx + 0x20], 0
inc dword [eax + 0x1c]
cmp dword [eax + 0x1c], 0x38
jl 0x41bdd3
jmp 0x41bdf6
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x38
jl 0x41bde6
mov ecx, dword [eax + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x58], dl
mov edx, ecx
shr ecx, 8
mov byte [eax + 0x5a], cl
mov cl, byte [eax + 0x18]
shr edx, 0x10
mov byte [eax + 0x5b], cl
mov ecx, dword [eax + 0x14]
mov byte [eax + 0x59], dl
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x5c], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 8
mov byte [eax + 0x5e], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5d], dl
mov byte [eax + 0x5f], cl
jmp fcn.0041bbed

Function at 0x41be68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
push edi
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
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 ecx, 0x4572d8
stosb byte es:[edi], al
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41be8a
sub eax, esi
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.0041be39
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x41beac
add ecx, 4
dec edi
jne 0x41bea7
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 8]
call fcn.0041bab8
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x41bee0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x84]
call fcn.0041baf1
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x84]
call fcn.0041bb82
lea eax, [ebp - 0x184]
push eax
call edi
push eax
lea eax, [ebp - 0x184]
call fcn.0041bb82
lea eax, [ebp - 0x1c]
push eax
call fcn.0041bb25
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push 0x14
push eax
mov eax, dword [ebp + 0xc]
call fcn.0041bab8
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x41bf5e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, eax
xor eax, eax
inc esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
je 0x41bfd2
lea esi, [ebx + 1]
lea ebx, [esi + esi]
mov eax, ebx
call fcn.00444010
mov edi, esp
push ebx
push 0
push edi
call fcn.004451c0
add esp, 0xc
push esi
push dword [ebp + 0x10]
push edi
call fcn.00442a00
add esp, 0xc
push esi
push edi
call fcn.0041be68
pop ecx
pop ecx
test esi, esi
je 0x41bfcd
push esi
push dword [ebp + 0x10]
lea eax, [esi + edi]
push eax
mov dword [ebp - 8], eax
call fcn.00442a00
add esp, 0xc
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
call fcn.0041bee0
add esp, 0xc
push 3
pop esi
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0x20006
push eax
push eax
push eax
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41c00e
push ebx
push edi
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c019
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x41c02f
mov ecx, dword [eax]
jmp 0x41c031
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, esi
jne 0x41c03b
mov dword [ebp + 0x14], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x41c04f
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41c052
mov dword [ebp - 8], ebx
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], esi
je 0x41c0c8
cmp dword [ebp + 0x14], esi
je 0x41c0c8
mov dword [ebp - 0x10], ebx
cmp eax, esi
je 0x41c07c
lea eax, [ecx + ecx + 2]
mov dword [ebp - 4], eax
call fcn.00444010
mov edi, esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x41c156
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41c0cd
mov eax, esi
jmp 0x41c156
mov dword [ebp - 0x10], esi
jmp 0x41c07c
cmp dword [ebp - 0x10], 0
je 0x41c13c
push dword [ebp - 4]
push edi
call fcn.0041be68
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
je 0x41c13c
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [ebp - 4]
mov esi, eax
inc esi
cmp esi, ebx
jae 0x41c11d
push ebx
push edi
call fcn.0041be68
sub dword [ebp - 4], esi
push dword [ebp - 4]
lea eax, [esi + edi]
push eax
push dword [ebp + 0x1c]
call fcn.0041bee0
mov ebx, dword [ebp - 4]
add esp, 0x14
dec ebx
mov dword [ebp - 4], ebx
jmp 0x41c11f
xor esi, esi
push ebx
add esi, edi
push esi
mov esi, dword [ebp + 0x14]
push esi
call fcn.00442a00
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, dword [eax]
jae 0x41c13f
mov byte [ebx + esi], 0
jmp 0x41c13f
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x41c148
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41c154
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c1de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x64
mov esi, eax
pop ebx
call fcn.0041c189
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x41c203
mov ebx, dword [esi + 8]
add ebx, 0x64
call fcn.0041c189
mov eax, dword [esi + 8]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 0xea
je 0x41c1f8
test ebx, ebx
jne 0x41c24b
cmp dword [ebp - 8], eax
jbe 0x41c246
cmp dword [ebp - 8], 2
jbe 0x41c23d
cmp dword [ebp - 8], 7
jne 0x41c246
cmp dword [ebp - 4], 0
je 0x41c246
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
jmp 0x41c24d
xor eax, eax
mov ecx, esi
call fcn.0041c1c7
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x41f12b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
push dword [ebp - 4]
mov esi, 0x46dd70
push 0x4580d8
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push esi
push esi
push SysReAllocString
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
mov eax, esi
je 0x41f185
mov eax, 0x46dd84
pop esi
leave
ret

Function at 0x420a1a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push 0
mov ebx, eax
push 0x23
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x420a44
xor al, al
jmp 0x420ac5
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420a4d
sub eax, edx
cmp eax, 0xf8
jae 0x420a3d
lea eax, [ebp - 0x104]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x420a69
push esi
push edi
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x420a78
mov eax, 0x45569c
mov esi, eax
movsw word es:[edi], word [esi]
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x420a8c
mov esi, 0x454ce0
movsd dword es:[edi], dword [esi]
cmp byte [ebp + 8], cl
je 0x420ac1
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x420aa2
mov esi, eax
dec ebx
movsw word es:[edi], word [esi]
mov edi, ebx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x420ab1
mov esi, str.cache
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x4214fa
Capabilities:
Print debug messages

Disassembly:
push dword [esi + 0x568]
call fcn.00433545
mov eax, dword [esi + 0x560]
pop ecx
mov ecx, dword [esi + 0x564]
mov edx, eax
or edx, ecx
je 0x42152c
add eax, 0xffffffff
adc ecx, 0xffffffff
mov dword [esi + 0x560], eax
mov dword [esi + 0x564], ecx
jmp 0x421537
push str.Attempt_to_reduce_CMuppet_ref_count___0_IGNORED
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push edi
push dword [esi + 0x568]
call fcn.00433559
lea edi, [esi + 0x4e4]
push dword [edi]
call fcn.00433545
cmp byte [esi + 0x44e], 0
push dword [edi]
sete bl
call fcn.00433559
add esp, 0xc
pop edi
mov al, bl
pop ebx
ret

Function at 0x421aa0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
push dword [ebx + 0x4d4]
mov esi, eax
call fcn.00433545
mov eax, dword [ebx + 0x558]
pop ecx
test eax, eax
je 0x421aca
push eax
call fcn.0043c0d7
pop ecx
push dword [ebx + 0x4d4]
and dword [ebx + 0x558], 0
call fcn.00433559
mov dword [esp], 0x104
lea eax, [ebp - 0x110]
push eax
push str.MUP_CACHEDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x421b05
lea eax, [ebp - 0x110]
jmp 0x421b27
mov dword [ebp - 4], esi
test esi, esi
jne 0x421b2a
push esi
lea eax, [ebp - 0x218]
call fcn.00420a1a
pop ecx
test al, al
je 0x421c21
lea eax, [ebp - 0x218]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421b30
sub eax, esi
add eax, 0x11
push eax
call fcn.0043b7b3
mov edx, dword [ebp - 4]
pop ecx
mov dword [ebx + 0x558], eax
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x421b4c
mov esi, dword [ebx + 0x558]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421b61
sub eax, edi
je 0x421b85
cmp byte [esi + eax - 1], 0x5c
je 0x421b85
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x421b74
mov edi, esi
mov esi, 0x45569c
movsw word es:[edi], word [esi]
mov edi, dword [ebx + 0x558]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x421b8c
mov esi, str.cache
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebx + 0x558]
push 0
call fcn.00428bcb
pop ecx
test al, al
jne 0x421bdc
push dword [ebx + 0x558]
call fcn.0043c0d7
and dword [ebx + 0x558], 0
pop ecx
push dword [ebp - 4]
push str.Unable_to_use_global_cache_at__s:_dir_doesnt_exist_and_cant_be_created_n
call fcn.0043ca84
add eax, 0x40
push eax
call fcn.0043cfd1
add esp, 0xc
jmp 0x421c21
push dword [ebx + 0x4d4]
call fcn.00433545
mov esi, dword [ebx + 0x558]
mov eax, esi
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421bf3
sub eax, edi
cmp byte [esi + eax - 1], 0x5c
je 0x421c15
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x421c04
mov edi, esi
mov esi, 0x45569c
movsw word es:[edi], word [esi]
push dword [ebx + 0x4d4]
call fcn.00433559
pop ecx
pop edi
pop esi
leave
ret