joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048ad
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x4048c6
xor esi, esi
jmp 0x4048f3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004190a0
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404911
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x4048b8
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405d30
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4218f4
call fcn.00418d7c
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, 0x1e240
mov dword [ebp - 0x10], esi
cmp dword [esi + 0x414], ecx
lea eax, [esi + 0x414]
je 0x405e34
mov dword [eax], ecx
push ebx
lea eax, [ebp - 0x30]
push edi
push eax
mov ecx, esi
call fcn.00405e41
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.004074f5
push str.update.ini
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004075a8
lea ecx, [ebp - 0x20]
call fcn.00403562
push dword [ebp - 0x1c]
mov ebx, 0x42dc34
mov edi, str.Main
push 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push str.ProxyServer
push edi
call esi
lea ecx, [ebp - 0x20]
call fcn.00403562
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add eax, 0x104
push 0x104
push eax
push ebx
push str.ProxyByPassServer
push edi
call esi
lea ecx, [ebp - 0x20]
call fcn.00403562
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add eax, 0x208
push 0x104
push eax
push ebx
push str.ProxyUserName
push edi
call esi
lea ecx, [ebp - 0x20]
call fcn.00403562
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
add eax, 0x30c
push 0x104
push eax
push ebx
push str.ProxyPassword
push edi
call esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401fe5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401fe5
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x405f99
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x421989
call fcn.00418d7c
sub esp, 0x130
and byte [ebp - 0x13c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x13b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 1
test eax, eax
pop ebx
jne 0x40601c
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x405ffc
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x13c]
push eax
je 0x406051
lea ecx, [ebp - 0x28]
call fcn.00406f75
mov esi, 0x4232e8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], esi
push 0x429934
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004060b9
jmp 0x40606d
lea ecx, [ebp - 0x38]
call fcn.00406f75
push 2
mov esi, 0x4232e8
pop ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 4], ecx
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.00406f9c
or dword [ebp - 0x10], 4
mov dword [edi], esi
test byte [ebp - 0x10], 2
mov dword [ebp - 4], ebx
je 0x406093
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x38]
call fcn.00401f41
and dword [ebp - 4], 0
test byte [ebp - 0x10], bl
je 0x4060a8
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x28]
call fcn.00401f41
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406265
Capabilities:
Copy file
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4219c0
call fcn.00418d7c
mov eax, 0xa218
call fcn.004190a0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x224]
xor esi, esi
push eax
push 0x104
mov dword [ebp - 4], esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x120]
push eax
push esi
lea eax, [ebp - 0x224]
push 0x429a98
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp + 8]
call fcn.00403562
lea eax, [ebp - 0x120]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or dword [ebp + 0x18], 0xffffffff
push esi
push 0x80
push 3
push esi
push esi
lea eax, [ebp - 0x120]
push 0x80000000
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4062fa
mov dword [ebp + 0x18], eax
sub esp, 0x10
lea eax, [ebp + 8]
mov ebx, esp
mov dword [ebp - 0x1c], esp
push eax
mov ecx, ebx
mov dword [edi], esi
call fcn.00406f9c
mov ecx, dword [ebp - 0x10]
mov dword [ebx], 0x4232e8
call fcn.004063af
cmp dword [ebp + 0x18], 0xffffffff
je 0x406373
mov ebx, 0xa000
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0xa224]
push ebx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406361
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push esi
push ecx
push dword [ebp - 0x14]
mov eax, dword [eax + 0x4c4]
lea ecx, [ebp - 0xa224]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x14]
add dword [edi], eax
cmp eax, ebx
je 0x406328
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 8]
cmp dword [eax + 0x4c4], 0xffffffff
setne al
or dword [ebp - 4], 0xffffffff
movzx esi, al
call fcn.00401f41
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x407bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0x10], esi
mov dword [ebp - 4], esi
jne 0x407bd8
mov dword [ebp + 0x10], 0x409
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
movzx eax, ax
push eax
push 6
push dword [0x42dc74]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, esi
je 0x407c2b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x407c2b
mov ebx, eax
xor ecx, ecx
mov ax, word [ebx]
test ax, ax
je 0x407c23
inc ebx
inc ebx
cmp ecx, edi
movzx esi, ax
je 0x407c40
lea ebx, [ebx + esi*2]
jmp 0x407c25
inc ebx
inc ebx
inc ecx
cmp ecx, 0x10
jl 0x407c0d
mov ecx, dword [ebp + 8]
push 0x42dc34
call fcn.00401f7f
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
lea edi, [esi + esi]
push edi
call fcn.00418e6d
push esi
push ebx
push eax
mov dword [ebp + 0x10], eax
call fcn.004198ba
mov eax, dword [ebp + 0x10]
add esp, 0x10
xor esi, esi
push eax
mov word [edi + eax], si
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov dword [ecx], 0x4232e4
mov eax, ecx
jmp 0x407c3b
Function at 0x409767
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
mov eax, 0x421e4b
call fcn.00418d7c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov edi, 0x4232e4
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 4], edi
mov dword [esi + 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x14], edi
lea ecx, [esi + 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 2
call fcn.00407baf
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x34]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 4
call fcn.00407baf
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x44]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 6
call fcn.00407baf
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
lea ecx, [esi + 0x8c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0xb
call fcn.00407baf
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
lea ecx, [esi + 0x9c]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0xd
call fcn.00407baf
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
mov edi, 0x42dc34
lea ecx, [esi + 4]
push edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x6c], 1
call fcn.004034fc
push edi
lea ecx, [esi + 0x14]
call fcn.004034fc
push edi
lea ecx, [esi + 0x24]
call fcn.004034fc
lea eax, [esi + 0x74]
mov dword [esi + 0x84], ebx
push eax
push 0x429640
push 0x17
push ebx
push 0x423d20
call dword [sym.imp.ole32.dll_CoCreateInstance]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x68], 5
mov dword [esi + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
lea ecx, [esi + 0x44]
mov dword [esi + 0x54], eax
call fcn.004034fc
push 0x27
push edi
mov dword [esi + 0x64], 3
call fcn.00401fa6
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xf
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x27
lea eax, [ebp - 0x24]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push dword [ebp - 0x10]
lea ecx, [esi + 0x30]
call fcn.00409937
lea eax, [esi + 0x70]
push ebx
push eax
mov dword [esi + 0x80], ebx
call fcn.00402cd6
push 0x42dc38
lea ecx, [esi + 0x98]
mov byte [esi + 0x88], bl
mov dword [esi], ebx
call fcn.00409937
push dword [esi + 0xa8]
lea edi, [esi + 0xa8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x42dc38
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp - 0x10]
mov dword [edi], eax
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40badd
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4220f6
call fcn.00418d7c
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, 0x4232e4
lea ebx, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [ebx + 0xc], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx], eax
mov dword [esi + 0x20], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x68], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x78], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x6c], eax
lea ecx, [esi + 0x7c]
mov dword [ecx + 0xc], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx], eax
mov dword [esi], 0x423c0c
push dword [esi + 0x58]
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x429b88
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 0x58], eax
push dword [esi + 0x68]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str.min
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 0x68], eax
push dword [esi + 0x78]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x429b74
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 0x78], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov eax, dword [edi + 0x64]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x80]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x74]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x78]
mov dword [esi + 0x34], eax
lea eax, [edi + 0x20]
push eax
call fcn.00407095
lea eax, [edi + 0x30]
mov ecx, ebx
push eax
call fcn.00407095
fld qword [edi + 0x98]
call fcn.0041979c
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x7c]
add edi, 0x10
lea ecx, [esi + 0x7c]
push edi
mov dword [esi + 0x3c], eax
call fcn.00407095
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40c089
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x422208
call fcn.00418d7c
sub esp, 0x40
push ebx
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov dword [ebp - 0x14], ebx
je 0x40c222
push str.InternetGetConnectedState
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40c1e2
lea ecx, [ebp - 0x14]
push ebx
push ecx
call eax
test eax, eax
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], bl
je 0x40c0e1
test byte [ebp - 0x14], 0x20
je 0x40c0e1
mov byte [ebp - 0xd], bl
test byte [ebp - 0x14], 4
push esi
push edi
seta al
mov byte [0x42dc58], al
mov eax, 0x4232e4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
call fcn.0040bf33
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00407095
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00401fe5
push str.update.ini
lea ecx, [ebp - 0x28]
call fcn.004075a8
lea ecx, [ebp - 0x28]
call fcn.00403562
mov edi, dword [ebp - 0x24]
mov esi, 0x104
lea eax, [ebp - 0x48]
push esi
push eax
lea ecx, [ebp - 0x38]
call fcn.0040752b
push edi
push esi
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00407666
push eax
push 0x42dc34
push str.ProxyServer
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040763f
cmp dword [ebp - 0x2c], ebx
pop edi
pop esi
je 0x40c1aa
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40c1aa
mov byte [0x42dc58], 1
cmp byte [ebp - 0xd], bl
je 0x40c1c1
mov eax, dword [ebp - 0x14]
and al, 2
neg al
sbb eax, eax
inc eax
inc eax
mov dword [0x42dc54], eax
jmp 0x40c1cb
mov dword [0x42dc54], 3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00401fe5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401fe5
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040252e
push dword [ebp - 0x14]
mov dword [ebp - 4], 4
push dword [0x42dc54]
push str.UseWininet
push str.API:__s__State___d__dwState___d
push 0x10
push eax
call fcn.004026d8
add esp, 0x18
push dword [ebp - 0x40]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c6a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x40c6c0
xor esi, esi
jmp 0x40c6ee
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004190a0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x40c72b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40c716
call esi
mov esi, eax
jmp 0x40c7c0
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40c7c0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40c75c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x40c76f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40c7b7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x40c773
jmp 0x40c73e
call esi
jmp 0x40c7b5
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x40c7a9
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.004190a0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.00419220
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.0040c827
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d1e3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x42228c
call fcn.00418d7c
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.0040269a
mov edi, eax
cmp edi, esi
je 0x40d22d
cmp dword [ebp - 0x10], esi
je 0x40d226
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40d2ca
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40d29e
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040d1e3
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x40d28b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x40d250
cmp dword [ebp - 0x10], esi
je 0x40d299
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x40d2ca
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d2b1
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x40d2c8
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d2db
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004190a0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.0040c980
xor edi, edi
cmp eax, edi
jl 0x40d493
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.0040d4a0
pop ecx
test eax, eax
pop ecx
jne 0x40d326
mov eax, 0x80020009
jmp 0x40d493
mov ecx, esi
call fcn.0040c958
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.0040c980
cmp eax, edi
jl 0x40d493
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x40d45b
sub eax, 9
je 0x40d3c0
dec eax
dec eax
jne 0x40d482
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x40d36b
xor ebx, ebx
jmp 0x40d3a0
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004190a0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x40d473
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x40d3fc
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004190a0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.00419190
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x40d406
mov eax, 0x80004005
jmp 0x40d493
cmp dword [ebp - 8], 0
jle 0x40d440
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.0040d527
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x40d40c
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x40d482
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0040c980
cmp eax, edi
jl 0x40d493
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40d798
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x40d7b7
xor al, al
jmp 0x40d7d1
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40d7d5
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret