joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3e51464
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x3e51506
cmp dword [ebx + 0xac], 0
jne 0x3e51500
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x3e513a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x3e51500
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x3e514c6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x3e51500
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.03d4ac70
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x3e514d5
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x3e51744
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x3f369c8]
cmp dword [eax + 0x188], 0
je 0x3e518be
test bl, bl
jne 0x3e51809
cmp dword [esi + 0xb4], 0
jne 0x3e517fe
mov eax, esi
call fcn.03e5432c
push eax
push 0x3e51638
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x3e517cf
mov eax, dword [0x3f369c8]
cmp byte [eax + 0xeb], 0
je 0x3e517cf
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x3e517b0
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x3e517cf
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x3e517b8
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x3e517fe
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.03d4ac70
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x3e517de
inc dword [esi + 0xb4]
jmp 0x3e518be
cmp dword [esi + 0xb4], 0
jle 0x3e518be
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x3e518be
cmp dword [esi + 0x58], 0
je 0x3e51873
mov eax, dword [0x3f369c8]
cmp byte [eax + 0xeb], 0
je 0x3e51873
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x3e51854
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x3e51873
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x3e5185c
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x3e518a2
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.03d4ac70
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x3e51882
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x3e43458]
call fcn.03cba43c
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x3e524dc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x3e52539
cmp byte [ebx + 0xeb], 0
jne 0x3e52539
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.03cb7fd8
mov eax, dword [esi]
test eax, eax
je 0x3e52526
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x3e52546
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.03cb8230
jmp 0x3e52546
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.03cb8230
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x3e53a58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x3e53ac9
mov eax, esi
call fcn.03db5dc8
test al, al
je 0x3e53ac9
mov eax, dword [ebx + 0x98]
call fcn.03db59f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x3e53ac9
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x114]
test al, al
je 0x3e53aba
push 0
mov eax, dword [ebx + 0x98]
call fcn.03db59f8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.03dac9f4
jmp 0x3e53ac9
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.03e53890
pop esi
pop ebx
ret
Function at 0x3e6d6cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push eax
push 0
push 0
call sub.kernel32.dll_CreateThread_1
pop ecx
pop ebp
ret

Function at 0x3e6d6e4
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 1
push ebx
call sub.kernel32.dll_TerminateThread
push ebx
call sub.kernel32.dll_CloseHandle_1
pop ebx
pop ebp
ret
Function at 0x3e6d6fc
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9b8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x640], ecx
mov dword [ebp - 0x644], ecx
mov dword [ebp - 0x648], ecx
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x63c], ecx
mov dword [ebp - 0x634], ecx
mov dword [ebp - 0x62c], ecx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x3e6d947
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x3e6d964
call fcn.03cb8230
mov dl, 1
mov eax, dword [0x3d2a0b0]
call fcn.03d4ea44
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jns 0x3e6d786
add esi, 3
sar esi, 2
test esi, esi
jl 0x3e6d7d8
inc esi
lea ebx, [ebp - 0x218]
lea eax, [ebp - 0x62c]
movzx edx, word [ebx + 2]
call fcn.03cb8dc0
mov eax, dword [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
movzx edx, word [ebx]
call fcn.03cb8dc0
mov edx, dword [ebp - 0x630]
lea eax, [ebp - 4]
pop ecx
call fcn.03cb8fec
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
add ebx, 8
dec esi
jne 0x3e6d794
push edi
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
push 0x105
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.psapi.dll_GetProcessImageFileNameW
test eax, eax
je 0x3e6d910
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x3e6d910
inc esi
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x634]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x634]
call fcn.03cb8d98
push eax
call sub.kernel32.dll_QueryDosDeviceW
test eax, eax
je 0x3e6d908
lea eax, [ebp - 0x638]
lea edx, [ebp - 0x420]
mov ecx, 0x104
call fcn.03cb8e3c
mov eax, dword [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
lea edx, [ebp - 0x628]
mov ecx, 0x104
call fcn.03cb8e3c
mov eax, dword [ebp - 0x63c]
mov ecx, 1
pop edx
call fcn.03cb936c
test eax, eax
jle 0x3e6d908
lea ecx, [ebp - 0x640]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x640]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x628]
call fcn.03e6dd38
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp - 0x628]
call fcn.03e6dd38
inc eax
push eax
lea eax, [ebp - 0x648]
lea edx, [ebp - 0x420]
mov ecx, 0x104
call fcn.03cb8e3c
mov eax, dword [ebp - 0x648]
pop edx
pop ecx
call fcn.03cb915c
mov ecx, dword [ebp - 0x644]
mov eax, dword [ebp - 8]
pop edx
call fcn.03cb8fec
inc ebx
dec esi
jne 0x3e6d81b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
call fcn.03cb60f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6d94e
lea eax, [ebp - 0x648]
mov edx, 8
call fcn.03cb7eb0
lea eax, [ebp - 4]
call fcn.03cb7e50
ret
Function at 0x3e6db68
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.03cb7f34
mov eax, dword [ebp - 8]
call fcn.03cb7f34
xor eax, eax
push ebp
push 0x3e6dca9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 0x418]
mov eax, dword [ebp - 8]
call fcn.03e6e5c4
mov eax, dword [ebp - 0x418]
call fcn.03e6dfdc
test al, al
jne 0x3e6dbe0
lea edx, [ebp - 0x41c]
mov eax, dword [ebp - 8]
call fcn.03e6e5c4
mov eax, dword [ebp - 0x41c]
call fcn.03e6d968
push 0
push 0
push 0
push 0
push 0x3e6dcbc
call sub.wininet.dll_InternetOpenW
mov edi, eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.03cb8d98
push eax
push edi
call sub.wininet.dll_InternetOpenUrlW
mov ebx, eax
test ebx, ebx
je 0x3e6dc7e
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.03cb8d98
push eax
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
cmp esi, 0xffffffff
je 0x3e6dc7e
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x14], 0
jne 0x3e6dc35
push esi
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6dcb0
lea eax, [ebp - 0x41c]
mov edx, 2
call fcn.03cb7eb0
lea eax, [ebp - 8]
mov edx, 2
call fcn.03cb7eb0
ret

Function at 0x3e6dcd4
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.03cb7f34
xor eax, eax
push ebp
push 0x3e6dd2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.03cb8d98
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
or ebx, 1
or ebx, 2
or ebx, 4
push ebx
push esi
call sub.kernel32.dll_SetFileAttributesW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6dd32
lea eax, [ebp - 4]
call fcn.03cb7e50
ret

Function at 0x3e6dfdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.03cb8d98
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x3e6dff8
test al, 0x10
jne 0x3e6dffd
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret
Function at 0x3e6e3a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.03cb7f34
mov eax, dword [ebp - 8]
call fcn.03cb7f34
xor eax, eax
push ebp
push 0x3e6e494
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x3e6e46f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x45]
xor ecx, ecx
mov edx, 0x3c
call fcn.03cb5b68
mov dword [ebp - 0x45], 0x3c
xor eax, eax
mov dword [ebp - 0x3d], eax
mov dword [ebp - 0x41], 0x540
cmp byte [ebp + 8], 0
je 0x3e6e413
mov eax, 0x3e6e4a8
mov dword [ebp - 0x39], eax
jmp 0x3e6e41b
mov eax, 0x3e6e4b4
mov dword [ebp - 0x39], eax
mov eax, dword [ebp - 4]
call fcn.03cb8d98
mov esi, eax
mov dword [ebp - 0x35], esi
mov eax, dword [ebp - 8]
call fcn.03cb8d98
mov dword [ebp - 0x31], eax
xor eax, eax
mov dword [ebp - 0x2d], eax
mov dword [ebp - 0x29], ebx
lea eax, [ebp - 0x45]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x3e6e465
push ebx
push 0
push 0
push esi
push 0x3e6e4c0
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x3e6e479
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6e49b
lea eax, [ebp - 8]
mov edx, 2
call fcn.03cb7eb0
ret

Function at 0x3e6e67c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.03cb7f34
xor eax, eax
push ebp
push 0x3e6e722
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.03cb5b68
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 0x101
mov word [ebp - 0x18], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x3e6e730
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 4]
mov edx, 0x3e6e744
call fcn.03cb8fec
mov eax, dword [ebp - 0x5c]
call fcn.03cb8d98
push eax
push 0
call sub.kernel32.dll_CreateProcessW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6e729
lea eax, [ebp - 0x5c]
call fcn.03cb7e50
lea eax, [ebp - 4]
call fcn.03cb7e50
ret
Function at 0x3e6e95c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.03e6dae4
test al, al
je 0x3e6eaaa
mov eax, ebx
call fcn.03e6e75c
cmp edx, 0
jne 0x3e6e990
cmp eax, 0
je 0x3e6eaaa
cmp byte [ebp - 1], 0
je 0x3e6ea14
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.03cb8d98
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x3e6e9c5
mov eax, esi
call fcn.03cb7e50
jmp 0x3e6eaaa
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
test edi, edi
jne 0x3e6e9df
mov eax, esi
call fcn.03cb7e50
jmp 0x3e6eaaa
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, esi
mov edx, edi
call fcn.03cb8f14
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, esi
call fcn.03cb8408
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x3e6eaaa
mov eax, ebx
call fcn.03e6c840
mov edi, eax
push 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x3d2cf40]
call fcn.03d4f2b0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x3e6eaa3
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
push 0
push 0x1000
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x3d3ed14]
call fcn.03d5efb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x3e6ea86
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6ea8d
mov eax, dword [ebp - 0x10]
call fcn.03cb60f0
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x3e6eab4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor ecx, ecx
mov dword [ebp - 0x214], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x3e6eb2e
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
push edx
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x20e]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.03cb8e3c
mov eax, dword [ebp - 0x214]
mov edx, ebx
call fcn.03e6f0cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6eb35
lea eax, [ebp - 0x214]
call fcn.03cb7e50
ret

Function at 0x3e6ec68
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
mov edx, 0x3e6ecbc
call fcn.03cb8230
push 0x20a
lea eax, [ebp - 0x20a]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextW
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.03cb8e3c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3e6ece4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.03cb7f34
mov eax, dword [ebp - 8]
call fcn.03cb7f34
xor eax, eax
push ebp
push 0x3e6ed70
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.03cb8d98
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyW
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.03cb8d98
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6ed77
lea eax, [ebp - 8]
mov edx, 2
call fcn.03cb7eb0
ret

Function at 0x3e6ed80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.03cb7f34
mov eax, dword [ebp - 8]
call fcn.03cb7f34
mov eax, dword [ebp + 8]
call fcn.03cb7f34
xor eax, eax
push ebp
push 0x3e6ee20
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.03cb8d98
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyW
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x3e6edd4
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp + 8]
call fcn.03cb8d98
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.03cb8d98
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExW
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6ee27
lea eax, [ebp - 8]
mov edx, 2
call fcn.03cb7eb0
lea eax, [ebp + 8]
call fcn.03cb7e50
ret
Function at 0x3e6ee30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.03cb7f34
mov eax, dword [ebp - 8]
call fcn.03cb7f34
mov eax, dword [ebp + 0xc]
call fcn.03cb7f34
xor eax, eax
push ebp
push 0x3e6ef47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.03cb8230
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.03cb8d98
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x3e6ef24
xor edx, edx
push ebp
push 0x3e6ef1d
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.03cb8d98
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x3e6ef06
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x3e6eece
adc edx, 0
mov eax, ebx
call fcn.03cb8f14
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.03cb8d98
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebx]
test eax, eax
je 0x3e6eefc
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
mov eax, ebx
call fcn.03cb8f14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6ef24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6ef4e
lea eax, [ebp - 8]
mov edx, 2
call fcn.03cb7eb0
lea eax, [ebp + 0xc]
call fcn.03cb7e50
ret

Function at 0x3e6f804
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x3e6f7b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
Function at 0x3e6fa04
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.03cb7f34
xor eax, eax
push ebp
push 0x3e6fbe4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.03e6dae4
test al, al
je 0x3e6fa7f
mov eax, dword [ebp - 4]
call fcn.03cb8d98
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
movzx eax, bl
push eax
push esi
call sub.kernel32.dll_SetFileAttributesW
mov edx, esi
lea eax, [ebp - 0x10]
call fcn.03cb8e00
mov eax, dword [ebp - 0x10]
call fcn.03cd35e0
test al, al
je 0x3e6fa7f
mov byte [ebp - 5], 1
jmp 0x3e6fbc6
push 0
push 0
push 3
push 0
push 1
push 0x110000
mov eax, dword [ebp - 4]
call fcn.03cb8d98
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x3e6fbc6
mov eax, dword [0x3f22bdc]
test eax, eax
je 0x3e6fab7
sub eax, 4
mov eax, dword [eax]
shr eax, 1
inc eax
mov edi, eax
add edi, edi
add edi, 0x10
push edi
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov esi, eax
test esi, esi
jne 0x3e6fade
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x3e6fbc6
mov eax, dword [0x3f22bdc]
test eax, eax
je 0x3e6faee
sub eax, 4
mov eax, dword [eax]
shr eax, 1
add eax, eax
mov dword [esi + 8], eax
lea edx, [esi + 0xc]
xor ecx, ecx
mov eax, dword [0x3f22bdc]
call fcn.03e6f9b0
push edi
push esi
push 3
push ebx
call fcn.03e6f914
test al, al
jne 0x3e6fb29
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
jmp 0x3e6fbc6
push ebx
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 3
push 0
push 1
push 0x110000
mov eax, dword [ebp - 4]
call fcn.03cb8d98
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x3e6fb70
call sub.kernel32.dll_GetLastError_2
test eax, eax
jne 0x3e6fb70
push esi
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov byte [ebp - 5], 1
jmp 0x3e6fbc6
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 4
call fcn.03cb5b68
mov dword [ebp - 0xc], 0xffffffff
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
call fcn.03e6f914
test al, al
jne 0x3e6fbae
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
jmp 0x3e6fbc6
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e6fbeb
lea eax, [ebp - 0x10]
call fcn.03cb7e50
lea eax, [ebp - 4]
call fcn.03cb7e50
ret