joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410d3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
cmp dword [ebp + 8], 0
je 0x410dde
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0041bfa0
add esp, 8
push 0x51ec44
lea edx, [ebp - 0x204]
push edx
call fcn.0041bfb0
add esp, 8
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x410dde
push 0
push 0x5a2d40
lea edx, [ebp - 0x204]
push edx
call fcn.00406177
add esp, 0xc
test eax, eax
jne 0x410dcd
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4000c
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x410ed6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x410ed6
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x5a2644], eax
cmp dword [0x5a2644], 0xffffffff
jne 0x410e1d
push 0x40003
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x410ed6
cmp dword [ebp + 0x10], 3
jne 0x410e4c
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.004060be
push eax
push 0x42f4a8
mov ecx, dword [0x5a2644]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x34c], eax
jmp 0x410e72
push 0
lea edx, [ebp - 0x208]
push edx
call fcn.004060a9
push eax
push 0x42ebf8
mov eax, dword [0x5a2644]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x410e9a
mov ecx, dword [0x5a2644]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40004
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x410ed6
mov edx, dword [0x5a2644]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x410ed4
mov eax, dword [0x5a2644]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40005
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x410ed6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x410eda
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
cmp dword [ebp + 8], 0
je 0x410f7b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0041bfa0
add esp, 8
push 0x51ec50
lea edx, [ebp - 0x204]
push edx
call fcn.0041bfb0
add esp, 8
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x410f7b
push 0
push 0x5a2660
lea edx, [ebp - 0x204]
push edx
call fcn.00406177
add esp, 0xc
test eax, eax
jne 0x410f6a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4000c
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411045
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x411045
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x5a2644], eax
cmp dword [0x5a2644], 0xffffffff
jne 0x410fba
push 0x40003
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411045
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.0040607f
push eax
push 0x42a1f8
mov ecx, dword [0x5a2644]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x411009
mov edx, dword [0x5a2644]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40004
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411045
mov eax, dword [0x5a2644]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x411043
mov ecx, dword [0x5a2644]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40005
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411045
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x411049
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
cmp dword [ebp + 8], 0
je 0x4110ea
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0041bfa0
add esp, 8
push 0x51ec5c
lea edx, [ebp - 0x204]
push edx
call fcn.0041bfb0
add esp, 8
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4110ea
push 0
push 0x5a2d40
lea edx, [ebp - 0x204]
push edx
call fcn.00406177
add esp, 0xc
test eax, eax
jne 0x4110d9
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4000c
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x4111b4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4111b4
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x5a2644], eax
cmp dword [0x5a2644], 0xffffffff
jne 0x411129
push 0x40003
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x4111b4
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.00406094
push eax
push 0x430140
mov ecx, dword [0x5a2644]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x411178
mov edx, dword [0x5a2644]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40004
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x4111b4
mov eax, dword [0x5a2644]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x4111b2
mov ecx, dword [0x5a2644]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40005
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x4111b4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4111b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 0xc]
and edx, 1
test edx, edx
je 0x41131b
push 0x200
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x51ec68
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0041bfb0
add esp, 8
push 0x51ec6c
lea edx, [ebp - 0x21c]
push edx
call fcn.0041bfb0
add esp, 8
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4112ab
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x51ec78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4112ab
push 0x51ec84
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4112a1
call dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x51ec94
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x411312
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea ecx, [ebp - 8]
push ecx
push 8
lea edx, [ebp - 8]
push edx
push 0x9c402800
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x411306
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41131b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
and ecx, 2
test ecx, ecx
je 0x411354
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.0041a5e2
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x220]
and eax, 0xffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
push 0x200
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x51eca0
lea eax, [ebp - 0x21c]
push eax
call fcn.0041bfb0
add esp, 8
push 0x51ecac
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0041bfb0
add esp, 8
lea edx, [ebp - 0x21c]
push edx
call fcn.00418410
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0xffffffff
jne 0x4113b6
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4113bc
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dword [ebp - 0x208], 0x200
push 0x5a1a38
mov eax, dword [ebp + 8]
push eax
call fcn.0041bfa0
add esp, 8
push 0x51ecb8
push 0x5a2aa0
call fcn.0041bfa0
add esp, 8
cmp dword [ebp + 0xc], 2
jne 0x41140c
push 0x51ecdc
push 0x5a2aa0
call fcn.0041bfb0
add esp, 8
jmp 0x41141e
push 0x51ece4
push 0x5a2aa0
call fcn.0041bfb0
add esp, 8
push 0x5a2860
push 0xf003f
push 0
push 0x5a2aa0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x5a2a84], eax
cmp dword [0x5a2a84], 0
je 0x41146c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 2
je 0x411465
or eax, 0xffffffff
jmp 0x4115fa
xor eax, eax
jmp 0x4115fa
push 0x51ecf0
push 0x5a2d00
call fcn.0041bfa0
add esp, 8
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x200]
push edx
push 0
push 0
push 0x5a2d00
mov eax, dword [0x5a2860]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [0x5a2a84], eax
cmp dword [0x5a2a84], 0
je 0x4114c4
mov ecx, dword [0x5a2860]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x4115fa
mov edx, dword [0x5a2860]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5a2a84], eax
cmp dword [0x5a2a84], 0
je 0x4114e7
or eax, 0xffffffff
jmp 0x4115fa
push 0x51ecfc
lea eax, [ebp - 0x200]
push eax
call fcn.0041c320
add esp, 8
test eax, eax
je 0x41156d
push 0x51ed0c
call fcn.0041bdf0
add esp, 4
lea ecx, [ebp + eax - 0x200]
push ecx
lea edx, [ebp - 0x200]
push edx
call fcn.0041bfa0
add esp, 8
push 0x200
push 0x5a2660
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x51ed1c
push 0x5a2660
call fcn.0041bfb0
add esp, 8
lea eax, [ebp - 0x200]
push eax
push 0x5a2660
call fcn.0041bfb0
add esp, 8
push 0x5a2660
lea ecx, [ebp - 0x200]
push ecx
call fcn.0041bfa0
add esp, 8
push 0x51ed20
lea edx, [ebp - 0x200]
push edx
call fcn.0041c320
add esp, 8
test eax, eax
je 0x4115a9
push 0x51ed28
call fcn.0041bdf0
add esp, 4
lea eax, [ebp + eax - 0x200]
push eax
lea ecx, [ebp - 0x200]
push ecx
call fcn.0041bfa0
add esp, 8
push 0x51ed30
lea edx, [ebp - 0x200]
push edx
call fcn.0041c320
add esp, 8
test eax, eax
je 0x4115e5
push 0x51ed40
call fcn.0041bdf0
add esp, 4
lea eax, [ebp + eax - 0x200]
push eax
lea ecx, [ebp - 0x200]
push ecx
call fcn.0041bfa0
add esp, 8
lea edx, [ebp - 0x200]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041bfa0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4115fe
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x51ed50
push 0x5a2aa0
call fcn.0041bfa0
add esp, 8
cmp dword [ebp + 8], 2
jne 0x41162e
push 0x51ed74
push 0x5a2aa0
call fcn.0041bfb0
add esp, 8
jmp 0x411640
push 0x51ed7c
push 0x5a2aa0
call fcn.0041bfb0
add esp, 8
push 0x5a2860
push 0x5a2aa0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411673
push 0x10007
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411706
push 0x51ed88
push 0x5a2aa0
call fcn.0041bfa0
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041bdf0
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 2
push 0
push 0x5a2aa0
mov edx, dword [0x5a2860]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4116dc
mov eax, dword [0x5a2860]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10003
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411706
mov ecx, dword [0x5a2860]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411704
push 0x10002
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411706
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x411925
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
push 0x200
lea eax, [ebp - 0x54c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x51edf8
lea ecx, [ebp - 0x54c]
push ecx
call fcn.0041bfb0
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x54c]
push eax
call fcn.0041bfb0
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x411a00
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x208]
push edx
call fcn.0041bfa0
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0041bfb0
add esp, 8
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x411a00
push 0
lea ecx, [ebp - 0x54c]
push ecx
lea edx, [ebp - 0x208]
push edx
call fcn.00406177
add esp, 0xc
test eax, eax
jne 0x4119ef
push 0x4000c
call fcn.0040435c
add esp, 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
jmp 0x411aaa
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x411aaa
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x54c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x5a2644], eax
cmp dword [0x5a2644], 0xffffffff
jne 0x411a3f
push 0x40003
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411aaa
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x5a2644]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x411a7a
push 0x40004
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411aaa
mov ecx, dword [0x5a2644]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x411aa8
push 0x40005
call fcn.0040435c
add esp, 4
or eax, 0xffffffff
jmp 0x411aaa
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x42a164], 0
je 0x411b33
push 0x200
push 0x5a2d40
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x51ee00
push 0x5a2d40
call fcn.0041bfb0
add esp, 8
mov eax, dword [ebp + 8]
push eax
push 0x5a2d40
call fcn.0041bfb0
add esp, 8
push 0x5a2d40
call fcn.00406151
add esp, 4
test eax, eax
jne 0x411b33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x411b33
cmp dword [ebp - 4], 5
jne 0x411b21
push 0x4000b
call fcn.0040435c
add esp, 4
push 0x200401d
call fcn.004042f8
add esp, 4
or eax, 0xffffffff
jmp 0x411b35
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4128a8
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
push ebx
push esi
push edi
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x2ac], 0
test byte [ebp + 8], 2
je 0x412966
push 0x200
push 0x5a2220
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5a2220
lea eax, [ebp - 0x2a8]
push eax
call fcn.0041bfa0
add esp, 8
push 0x53b158
lea eax, [ebp - 0x2a8]
push eax
call fcn.0041bfb0
add esp, 8
push 0x4000
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x412936
mov dword [ebp - 0x2ac], 1
test byte [ebp + 8], 1
jne 0x412966
cmp dword [ebp - 0x2ac], 1
jne 0x41295c
mov dword [ebp - 0x98], 2
jmp 0x412966
mov dword [ebp - 0x98], 0
test byte [ebp + 8], 1
je 0x412ba7
push 0x5a2424
push 0xf003f
push 0
push 0x53b168
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x4129ed
cmp dword [0x5a2000], 2
je 0x4129d4
push 0x2002000
call fcn.004042f8
add esp, 4
push 0x10001
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x412bb2
cmp dword [ebp - 0x2ac], 1
jne 0x4129e8
or dword [ebp - 0x98], 2
jmp 0x412ba7
or dword [ebp - 0x98], 1
test byte [ebp + 8], 2
je 0x412b65
mov dword [ebp - 0xa8], 0xc
push 0x53b198
push 0x5a1fc0
call fcn.0041bfa0
add esp, 8
mov dword [ebp - 0x94], 1
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x5a1fc0
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x412a72
push 0x53b1a0
lea eax, [ebp - 0xa4]
push eax
call fcn.0041bfa0
add esp, 8
lea eax, [ebp - 0xa4]
push eax
push 0x5a98d0
call fcn.0041bfa0
add esp, 8
push 0x53b1a8
lea eax, [ebp - 0xa4]
push eax
call fcn.0041c3a0
add esp, 8
test eax, eax
jge 0x412abb
cmp dword [ebp - 0x2ac], 1
jne 0x412ab6
or dword [ebp - 0x98], 2
jmp 0x412b65
push 0x53b1b0
lea eax, [ebp - 0xa4]
push eax
call fcn.0041c3a0
add esp, 8
test eax, eax
jg 0x412ae3
or dword [ebp - 0x98], 2
jmp 0x412b65
or dword [ebp - 0x98], 1
push 0x53b1b8
push 0x5a1fc0
call fcn.0041bfa0
add esp, 8
mov dword [ebp - 0x94], 4
mov dword [ebp - 0x90], 4
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x5a1fc0
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x412b51
or dword [ebp - 0x98], 2
test byte [ebp - 0x8c], 2
je 0x412b65
or dword [ebp - 0x98], 2
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x412ba7
push 0x2002000
call fcn.004042f8
add esp, 4
push 0x10002
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x412bb2
mov eax, dword [ebp - 0x98]
jmp 0x412bb2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4131d2
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
call fcn.004128a8
add esp, 4
cmp eax, 1
jne 0x4132ea
push 0x53b1d0
push 0x5a98d0
call fcn.0041c3a0
add esp, 8
test eax, eax
jl 0x4132ea
push 0x5a2424
push 0xf003f
push 0
push 0x53b1d8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x413257
push 0x2002007
call fcn.004042f8
add esp, 4
push 0x10001
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x4132f1
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x53b208
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x4132a8
push 0x2002007
call fcn.004042f8
add esp, 4
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x4132f1
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x4132ea
push 0x2002007
call fcn.004042f8
add esp, 4
push 0x10002
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x4132f1
xor eax, eax
jmp 0x4132f1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4132f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x53b210
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413355
push 0x2002007
call fcn.004042f8
add esp, 4
push 0x10007
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x4133f8
mov dword [ebp - 0x54], 0xffff
push 0x53b224
lea eax, [ebp - 0x4c]
push eax
call fcn.0041bfa0
add esp, 8
push 4
lea eax, [ebp - 0x54]
push eax
push 4
push 0
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4133b6
push 0x2002007
call fcn.004042f8
add esp, 4
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x4133f8
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4133f1
push 0x2002007
call fcn.004042f8
add esp, 4
push 0x10002
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x4133f8
xor eax, eax
jmp 0x4133f8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41348d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov byte [ebp - 4], 0
push 0x5a2424
push 0xf003f
push 0
push 0x53b230
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x4134df
push 0x10001
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x41356b
push 1
lea eax, [ebp - 4]
push eax
push 3
push 0
push 0x53b25c
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x41352f
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x41356b
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x413564
push 0x10002
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x41356b
xor eax, eax
jmp 0x41356b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413926
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x5a2424
push 0
push 0xf003f
push 0
push 0
push 0
push 0x53b320
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x41397e
push 0x10007
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413b02
mov eax, dword [0x5a2424]
push eax
call fcn.0040546f
add esp, 4
cmp eax, 0xffffffff
jne 0x41399f
mov eax, 0xffffffff
jmp 0x413b02
push 0x53b358
push 0x5a1fc0
call fcn.0041bfa0
add esp, 8
push 4
push 0x53b368
push 1
push 0
push 0x5a1fc0
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x4139f6
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413b02
mov dword [ebp - 0xc], 0xffff
push 0x53b36c
push 0x5a1fc0
call fcn.0041bfa0
add esp, 8
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x5a1fc0
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x413a53
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413b02
mov eax, dword [0x5a2424]
push eax
call fcn.00404f0b
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x413a78
mov eax, 0xffffffff
jmp 0x413b02
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x413aad
push 0x10002
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413b02
call fcn.004185ab
cmp dword [0x42a168], 0
je 0x413ad3
push 0x53b378
push 0x30
call fcn.004037fc
mov dword [ebp - 8], eax
jmp 0x413ae2
push 0x53b388
push 0x30
call fcn.004037fc
mov dword [ebp - 8], eax
call fcn.004185c0
cmp dword [ebp - 8], 0xffffffff
jne 0x413afb
mov eax, 0xffffffff
jmp 0x413b02
xor eax, eax
jmp 0x413b02
pop edi
pop esi
pop ebx
leave
ret