joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push 0x44
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00537c80
add esp, 0xc
mov dword [ebp - 0x70], 0x44
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x10], 0xc
push eax
push 0
push 0
push 0x200
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40ac04
cmp dword [ebp + 0xc], 0
je 0x40abe6
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40abf2
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c3a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041363d

Function at 0x410010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push 0x44
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00537c80
add esp, 0xc
mov dword [ebp - 0x70], 0x44
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x10], 0xc
push eax
push 0
push 0
push 0x200
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4100cd
cmp dword [ebp + 0xc], 0
je 0x4100a6
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4100c4
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4100e0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x250
lea eax, [ebp - 0x86c]
push 0
push eax
call fcn.00537c80
add esp, 0xc
mov dword [ebp - 0x870], 0
lea eax, [ebp - 0x870]
mov dword [ebp - 0x874], 0x104
push eax
push 1
push 0
push 0x563188
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41027b
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00537c80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00537c80
add esp, 0x18
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.AppPath
push dword [ebp - 0x870]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41026f
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x41026f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0053725b
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00537c80
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0053725b
add esp, 0xc
lea eax, [ebp - 0x414]
push 4
push eax
push str._update
lea eax, [ebp - 0x61c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x870]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053787e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x870]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0053787e
mov esp, ebp
pop ebp
ret
Function at 0x413699
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041334f
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4136d0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004136f1
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x419c8f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004206bc
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x419ccb
call fcn.00419eae
mov dword [esi + 0xc], 1
jmp 0x419cd0
call fcn.00419eae
cmp dword [esi], 0
je 0x419d19
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x419cf3
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00411f93
jmp 0x419d04
push 0xff
mov ecx, esi
call fcn.00404350
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004043f0
jmp 0x419d3d
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x419d3d
push dword [esi]
push dword [ebp - 4]
call fcn.00425bd9
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x419e03
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00419eae
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x419e4b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411f93
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004043f0
jmp 0x419e56
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00425bd9
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41bf39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41bf7e
call fcn.0041334f
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41bf7e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41bf9a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041a093
mov ebx, eax
test edi, edi
je 0x41bf98
test esi, esi
je 0x41bf98
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x473e90
Capabilities:
Inspect section memory permissions

Disassembly:
and dword [eax], edx
jae 0x473ea5
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x473ef7
add eax, esi
cmp dword [eax], ebx
je 0x473ef7
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
push eax
add al, 0x8d
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
jae 0x473ef2
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x473edc
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x473ee4
cmp edx, ebx
jne 0x474032
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x473eb3
add eax, dword [eax + 4]
jmp 0x473ea0
mov dword [ebp + 0xc], ebx
jmp 0x473f02
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x473f1a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x473f38
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x473f96
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x473f7d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x473f86
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x473f90
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x473f72
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x473efc
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x474094
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00473853
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00473808
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax

Function at 0x474127
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
dec ecx
cld
invalid
jmp dword [eax]
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00473853
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00473808
add esp, 0xc
Function at 0x4dc682
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x55c163
call fcn.00539cb5
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402320
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5626c8
call fcn.00416a67
cmp eax, 0xffffffff
jne 0x4dc736
push 0
push 0x56c440
lea ecx, [ebp - 0x4d0]
call fcn.00416a67
cmp eax, 0xffffffff
jne 0x4dc736
push 0
push 0x565304
lea ecx, [ebp - 0x4d0]
call fcn.00416a67
cmp eax, 0xffffffff
jne 0x4dc736
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402320
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4dc712
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.004043d0
jmp 0x4dc765
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004046b0
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.004043d0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4dc75c
mov ebx, dword [ebp - 0x4cc]
jmp 0x4dc765
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.004043d0
mov eax, ebx
call fcn.00539c64
ret
Function at 0x54a9a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bb270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0053f383
mov dword [ebp - 0x14], eax
cmp dword [0x5c7128], esi
jne 0x54aa9b
push 0x800
push esi
push 0x590bb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x54aa28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x54ab7b
push esi
push esi
push 0x590bb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x54ab7b
push 0x590bc8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x54ab7b
push eax
call ebx
push 0x590bd4
push edi
mov dword [0x5c7128], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x590be4
push edi
mov dword [0x5c712c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5c7130], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c7138], eax
test eax, eax
je 0x54aa98
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c7134], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x54aac0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x54aab3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x54aad5
push 4
pop eax
jmp 0x54ab7d
cmp dword [ebp - 0x14], esi
je 0x54aad5
push dword [0x5c7128]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x54aaba
mov eax, dword [0x5c7134]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x54ab33
cmp dword [0x5c7138], edi
je 0x54ab33
push eax
call ebx
push dword [0x5c7138]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x54ab33
test eax, eax
je 0x54ab33
call ecx
test eax, eax
je 0x54ab28
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x54ab28
test byte [ebp - 8], 1
jne 0x54ab33
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x54ab63
mov eax, dword [0x5c712c]
cmp eax, edi
je 0x54ab60
push eax
call ebx
test eax, eax
je 0x54ab60
call eax
mov esi, eax
test esi, esi
je 0x54ab60
mov eax, dword [0x5c7130]
cmp eax, edi
je 0x54ab60
push eax
call ebx
test eax, eax
je 0x54ab60
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5c7128]
call ebx
test eax, eax
je 0x54ab7b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x54ab7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053787e
mov esp, ebp
pop ebp
ret
Function at 0x407769
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x4a9068]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.0040770d
jmp 0x4077c1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00407769
mov esi, eax
test esi, esi
jne 0x407815
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4077b3
cmp dword [esp + 0xc], esi
je 0x407804
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0040761a
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x407826
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004489ea
mov esp, ebp
pop ebp
ret 4
Function at 0x40be84
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
xor edi, edi
lea eax, [ebp - 0x40]
push 0x3c
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0044be20
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [0x4ad0f0], 2
mov ecx, str.open
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, str.runas
push 6
cmovl eax, ecx
mov dword [ebp - 0x40], 0x3c
push edi
mov dword [ebp - 0x3c], 0x140
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
test eax, eax
je 0x40bf2e
cmp dword [ebp + 0x10], 0
je 0x40bf20
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, 0x669
cmove eax, ecx
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x40bf34
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 0xc
Function at 0x40c3ce
Capabilities:
Create thread

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4a9068]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [esp + 0x134]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebp, ebp
push edi
xor edi, edi
mov dword [ebx + 0xc], 0xbc2
mov eax, dword [0x4ac368]
inc ebp
push edi
push edi
push ebp
push edi
mov dword [ebx + 0x18], eax
call esi
push edi
push edi
push ebp
push edi
mov dword [ebx + 0x20], eax
call esi
push edi
push edi
push ebp
push edi
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x38], eax
call fcn.004106b0
mov dword [ebx + 0x3c], eax
lea edi, [esp + 0x20]
xor eax, eax
stosd dword es:[edi], eax
push ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
lea eax, [esp + 0x20]
push edi
push edi
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.SunJavaUpdateRecheckUpdateEvent
lea eax, [esp + 0x24]
mov dword [esp + 0x14], 0xc
push edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push edi
push eax
call esi
push dword [ebx + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebx + 0x40], eax
call esi
push dword [ebx + 0x24]
call esi
push dword [ebx + 0x38]
call esi
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push 0x40ca1a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c4af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 0x20]
call esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebx + 0x54]
mov edi, 0x104
push edi
push eax
push 0x7b
push dword [ebx + 0x18]
call esi
push edi
lea eax, [esp + 0x38]
push eax
push 0x7c
push dword [ebx + 0x18]
call esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40c504
lea eax, [esp + 0x34]
push eax
lea eax, [ebx + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x138]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004489ea
add esp, 0x12c
ret 4
Function at 0x40e895
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40e8bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404415
jmp 0x40e971
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40e8de
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40e8e0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40e965
jg 0x40e8f5
test esi, esi
je 0x40e965
test ecx, ecx
jl 0x40e93e
jg 0x40e8ff
test eax, eax
je 0x40e93e
cmp edi, ecx
jg 0x40e913
jl 0x40e909
cmp esi, eax
jae 0x40e913
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0044a8d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40e941
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40e965
jg 0x40e94b
test esi, esi
je 0x40e965
cmp dword [ebx + 0x4c], 0
je 0x40e965
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.00457d73
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc