joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414cd7
Capabilities:
Check if file exists
Enumerate processes
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6a34f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414d82
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x414d82
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x414d82
push edi
xor edi, edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
push dword [ebp - 0x228]
call fcn.00414c26
add esp, 0x10
test al, al
je 0x414d4a
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414d2c
test edi, edi
jle 0x414d7d
push str.Shell_TrayWnd
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov eax, edi
pop edi
jmp 0x414d85
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004fbae6
leave
ret

Function at 0x414d93
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test esi, esi
je 0x414dc0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x415bb2
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x415bc4
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fc72d
lea ecx, [edi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.00515320
push dword [ebp + 8]
push esi
push ebx
call fcn.00528eae
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x415c49
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x415c3e
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415c37
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415c45
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x415c14
jmp 0x415c49
mov byte [ebp - 1], 0
push ebx
call fcn.004fc193
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415c58
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x61171a
call fcn.004fc652
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x415d3f
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.00415b8b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x415d3f
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fc72d
push esi
mov ebx, eax
push 0
push ebx
call fcn.00401486
add esp, 0x10
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x415d38
xor eax, eax
mov esi, ebx
mov word [ebp - 0x42], ax
movzx eax, word [ebx]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005276c3
add esp, 0xc
test eax, eax
je 0x415d2d
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x415d18
movzx eax, word [esi]
test ax, ax
je 0x415d38
jmp 0x415cf6
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00415b8b
push ebx
call fcn.004fc193
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402d0a
lea ecx, [ebp - 0x40]
call fcn.0040374c
lea ecx, [ebp - 0x28]
call fcn.0040374c
mov eax, edi
call fcn.004fc5fc
ret
Function at 0x415de4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a34f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.00515320
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x415e44
push edi
jmp 0x415e4b
lea eax, [ebp - 0x20c]
push eax
call fcn.004055ca
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004fbae6
leave
ret

Function at 0x415e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a34f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00515320
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004055ca
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004fbae6
leave
ret
Function at 0x416286
Capabilities:
Check if file exists

Disassembly:
push 0x70
mov eax, 0x6117b5
call fcn.004fc652
mov edi, ecx
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
call fcn.00416217
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov esi, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
push str.UnKonw
mov word [ebp - 0x40], ax
call fcn.00402c5c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
and dword [ebp - 0x48], 0
xor eax, eax
push str.UnKonw
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00402c5c
mov byte [ebp - 4], 1
test esi, esi
je 0x4163a9
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00416685
push 0x68ef50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004138dd
test al, al
je 0x416337
push esi
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.00416729
push eax
lea ecx, [ebp - 0x28]
call fcn.00402cd3
lea ecx, [ebp - 0x70]
call fcn.0040374c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41639d
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402c5c
lea eax, [ebp - 0x58]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.004038b1
mov ecx, edi
call fcn.0041610f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040374c
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x40]
push eax
mov dword [ebx], esi
call fcn.00402caa
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x58]
push eax
call fcn.00402caa
lea ecx, [ebp - 0x58]
call fcn.0040374c
lea ecx, [ebp - 0x40]
call fcn.0040374c
call fcn.004fc5fc
ret 0x10
Function at 0x4164a5
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x6a34f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x68ef50
mov dword [ebp - 0xa38], eax
call fcn.00402c5c
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00515320
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x416549
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x416549
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fc72d
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.00515320
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x41655c
push ebx
call fcn.004fc193
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fbae6
leave
ret 8
mov eax, dword [0x618200]
mov dword [ebp - 0xc], eax
mov ax, word [0x618204]
push 0x208
mov word [ebp - 8], ax
call fcn.004fc72d
mov edi, eax
mov dword [ebp - 0xa34], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4165d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x416670
push edi
call fcn.004fc193
push 2
call fcn.004fc72d
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x416670
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4165d8
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.005276c3
add esp, 0xc
test eax, eax
je 0x416620
mov esi, dword [ebp - 0xa34]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x416602
movzx eax, word [esi]
mov dword [ebp - 0xa34], esi
test ax, ax
je 0x416670
jmp 0x416584
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.00414dc6
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.004055ca
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.00402cd3
lea ecx, [ebp - 0xa30]
call fcn.0040374c
push ebx
call fcn.004fc193
push edi
call fcn.004fc193
pop ecx
pop ecx
mov al, 1
jmp 0x41654b
Function at 0x416685
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6a34f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.00515320
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x416709
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x416702
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004055ca
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004fbae6
leave
ret 8

Function at 0x416729
Capabilities:
Enumerate processes

Disassembly:
push 0x470
mov eax, 0x611825
call fcn.004fc652
mov dword [ebp - 0x478], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x47c], esi
mov edi, 0x68ef50
mov dword [ebp - 0x21c], 7
xor ebx, ebx
mov word [ebp - 0x230], ax
push edi
mov dword [ebp - 0x220], ebx
call fcn.00402c5c
push 0x22c
lea eax, [ebp - 0x474]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.00515320
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4167a7
push edi
mov ecx, esi
call fcn.004055ca
jmp 0x4168e8
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4168d3
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x450]
push eax
call fcn.00402c5c
mov byte [ebp - 4], 1
cmp dword [ebp - 0x46c], edi
je 0x416826
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.0040374c
lea eax, [ebp - 0x474]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4167c9
jmp 0x4168d3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00515320
add esp, 0xc
push dword [ebp - 0x46c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4168c8
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402c5c
push 0x68ef50
lea ecx, [ebp - 0x230]
call fcn.004138dd
test al, al
je 0x4168c8
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.004164a5
push 0x68ef50
lea ecx, [ebp - 0x230]
call fcn.004138dd
test al, al
je 0x4168c8
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402c5c
lea ecx, [ebp - 0x248]
call fcn.0040374c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00402d0a
lea ecx, [ebp - 0x230]
call fcn.0040374c
mov eax, esi
call fcn.004fc5fc
ret 8
Function at 0x4173ad
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x418013
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6a34f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x21c], esi
call fcn.00515320
add esp, 0xc
mov ebx, 0x20019
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4180de
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4180d2
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x418103
cmp edi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x418103
cmp ebx, 0x20019
jne 0x418103
mov esi, dword [ebp - 0x21c]
mov ebx, 0x20119
jmp 0x418068
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.004055ca
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004fbae6
leave
ret
Function at 0x41917a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x868
mov eax, 0x611dc6
call fcn.004fc652
mov esi, ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x828]
mov edx, dword [ebp + 0x18]
test edx, edx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x870], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x86c], eax
mov eax, 0x68ef50
cmovne eax, edx
push eax
call fcn.004055ca
xor ecx, ecx
add esi, 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0x85c], ecx
mov dword [ebp - 0x868], ecx
mov dword [ebp - 0x864], ecx
mov dword [ebp - 0x860], ecx
cmp dword [esi + 0x10], ecx
ja 0x419209
lea eax, [ebp - 0x858]
push eax
call fcn.0041460a
pop ecx
push eax
mov ecx, esi
call fcn.00402cd3
lea ecx, [ebp - 0x858]
call fcn.0040374c
xor ecx, ecx
cmp dword [esi + 0x14], 8
jb 0x419211
mov esi, dword [esi]
lea eax, [ebp - 0x85c]
push eax
push 0x20119
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x419251
cmp dword [ebp - 0x814], 8
lea ecx, [ebp - 0x828]
cmovae ecx, dword [ebp - 0x828]
push ecx
mov ecx, edi
call fcn.004055ca
jmp 0x4193d8
lea eax, [ebp - 0x868]
push eax
push 0x20119
push 0
push 0x61888c
push dword [ebp - 0x85c]
call esi
test eax, eax
je 0x419293
push dword [ebp - 0x85c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
jmp 0x419245
lea eax, [ebp - 0x864]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x868]
call esi
test eax, eax
je 0x4192c6
push dword [ebp - 0x868]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x85c]
call esi
jmp 0x41927c
lea eax, [ebp - 0x860]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x870]
push dword [ebp - 0x864]
call esi
test eax, eax
je 0x4192fd
push dword [ebp - 0x860]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x864]
jmp 0x4192ba
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00515320
add esp, 0xc
mov dword [ebp - 0x874], 0x400
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x86c]
push dword [ebp - 0x860]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x860]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x864]
call esi
push dword [ebp - 0x868]
call esi
push dword [ebp - 0x85c]
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41936d
sub ecx, edx
sar ecx, 1
je 0x41927c
xor eax, eax
mov dword [ebp - 0x830], ebx
mov word [ebp - 0x840], ax
lea ecx, [ebp - 0x840]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x82c], 7
push eax
call fcn.00402c5c
cmp dword [ebp - 0x82c], 8
lea eax, [ebp - 0x840]
mov ecx, edi
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x840]
push eax
call fcn.004055ca
lea ecx, [ebp - 0x840]
call fcn.0040374c
lea ecx, [ebp - 0x828]
call fcn.0040374c
mov eax, edi
call fcn.004fc5fc
ret 0x14
Function at 0x4193ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x6a34f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], ebx
ja 0x419445
lea eax, [ebp - 0x1c]
push eax
call fcn.0041460a
pop ecx
lea ecx, [esi + 4]
push eax
call fcn.00402cd3
lea ecx, [ebp - 0x1c]
call fcn.0040374c
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x419450
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x419473
xor al, al
jmp 0x41952c
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push 0x61888c
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x419496
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41946c
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x4194c8
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x41946c
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41951b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4194ed
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call esi
mov bl, 1
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fbae6
leave
ret 0x10
Function at 0x41b63d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp byte [edx + 4], 0
je 0x41b66d
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x41b66c
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x41b65c
pop edi
pop esi
pop ebp
ret 8

Function at 0x41b85b
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x611e3b
call fcn.004fc61e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x41b9e2
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x41b92b
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x6a3120], 0x10
mov ecx, 0x6a310c
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x6a310c]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0040f1dd
inc edi
cmp edi, 4
jl 0x41b8f3
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x41b895
mov dword [ebp + 0x10], edi
test edi, edi
je 0x41b9e2
mov eax, edi
cmp edi, esi
jge 0x41b961
cmp eax, esi
jae 0x41b9eb
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x41b949
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x41b9cd
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x6a3120], 0x10
mov ecx, 0x6a310c
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x6a310c]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0040f1dd
inc ebx
cmp ebx, edi
jl 0x41b99e
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x41b9e2
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.0040f1dd
sub esi, 1
jne 0x41b9d3
mov eax, dword [ebp + 8]
call fcn.004fc5e7
ret
call fcn.004fc2b9
int3