joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48af68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
test eax, eax
je 0x465eca
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 4]
test eax, eax
je 0x465f5e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push dword [ebp + 8]
push eax
call fcn.00465a00
mov esi, dword [ebp - 0x10]
add esp, 0xc
test al, al
je 0x465f34
test esi, esi
je 0x465f1f
mov ecx, esi
call fcn.004062d0
mov ecx, esi
mov edi, eax
call fcn.0046b760
push edi
push eax
push dword [ebp + 0xc]
call fcn.00471f50
add esp, 0xc
mov bl, 1
jmp 0x465f36
xor edi, edi
xor eax, eax
push edi
push eax
push dword [ebp + 0xc]
call fcn.00471f50
add esp, 0xc
mov bl, 1
jmp 0x465f36
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x465f48
mov ecx, esi
call fcn.0046b840
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x466900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x46694e
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
test ecx, ecx
je 0x46691f
call fcn.004062d0
mov ebx, eax
jmp 0x466921
xor ebx, ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x46692e
call fcn.0046b760
jmp 0x466930
xor eax, eax
push ebx
push eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 0xc
cmp dword [esi + 4], 0
je 0x46698e
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
test ecx, ecx
je 0x466966
call fcn.004062d0
mov ebx, eax
jmp 0x466968
xor ebx, ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x466975
call fcn.0046b760
jmp 0x466977
xor eax, eax
push ebx
push eax
push dword [ebp + 8]
push dword [esi + 4]
call fcn.00465ae0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
Function at 0x4669a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, edx
push esi
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4669b0
mov eax, dword [ebp + 8]
sub ecx, esi
sar ecx, 1
add ecx, ecx
mov esi, dword [eax]
test esi, esi
je 0x4669e2
push ecx
push edx
push 1
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
sete al
pop ebp
ret
mov eax, dword [eax + 4]
test eax, eax
je 0x4669fa
push ecx
push edx
push dword [ebp + 0xc]
push eax
call fcn.00465ae0
add esp, 0x10
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret

Function at 0x466b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
cwde
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x466b8e
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
pop ebp
ret
mov eax, dword [eax + 4]
test eax, eax
je 0x466ba9
push 4
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.00465ae0
add esp, 0x10
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x466bb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x466bd7
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
pop ebp
ret
mov eax, dword [eax + 4]
test eax, eax
je 0x466bf2
push 4
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.00465ae0
add esp, 0x10
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x466c00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x466c27
push 8
lea eax, [ebp + 0x10]
push eax
push 3
push 0
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
pop ebp
ret
mov eax, dword [eax + 4]
test eax, eax
je 0x466c42
push 8
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.00465ae0
add esp, 0x10
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x466c50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x58
push 0
push eax
mov dword [ebp - 0x60], 0
call fcn.00471730
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [0x4bd898]
push 0x48
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [ebp - 0x60], eax
mov eax, dword [edi]
test eax, eax
je 0x466cd4
push 0x5c
lea ecx, [ebp - 0x60]
push ecx
push 3
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
je 0x466cfc
push 0x5c
lea ecx, [ebp - 0x60]
push ecx
push ebx
push eax
call fcn.00465ae0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x466d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
movzx eax, al
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x466d40
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
pop ebp
ret
mov eax, dword [eax + 4]
test eax, eax
je 0x466d5b
push 4
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.00465ae0
add esp, 0x10
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x466d60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x466d84
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push 0
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
pop ebp
ret
mov eax, dword [eax + 4]
test eax, eax
je 0x466d9d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00465ae0
add esp, 0x10
mov al, 1
pop ebp
ret
Function at 0x466db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea ebx, [edi + edi]
mov eax, ebx
mov dword [ebp - 0xc], ebx
call fcn.00475290
mov eax, esp
mov dword [ebp - 8], eax
test edi, edi
je 0x466e05
mov ebx, dword [ebp + 0x10]
mov esi, eax
sub ebx, eax
push dword [0x4bd894]
movzx eax, word [ebx + esi]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov word [esi], ax
lea esi, [esi + 2]
dec edi
jne 0x466de3
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
test edx, edx
je 0x466e20
push ebx
push eax
push 3
push 0
push dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x466e35
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x466e35
push ebx
push eax
push dword [ebp + 0xc]
push ecx
call fcn.00465ae0
add esp, 0x10
mov al, 1
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x467510
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e30c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 5
push eax
call fcn.004688b0
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.0046a100
cmp byte [ebx + 0x590], 0
je 0x46757c
lea ecx, [ebp - 0x10]
call fcn.0046b860
test eax, eax
je 0x46757c
lea ecx, [ebp - 0x10]
call fcn.0046b310
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx + 0x594]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx + 0x594]
mov dword [eax + 4], eax
mov dword [ebx + 0x598], 0
cmp ecx, dword [ebx + 0x594]
je 0x4675b6
mov esi, dword [ecx]
push ecx
call fcn.004705af
add esp, 4
mov ecx, esi
cmp esi, dword [ebx + 0x594]
jne 0x4675a1
push ebx
call fcn.00447ed0
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x4675cc
call fcn.0046b840
mov eax, dword [ebx + 0x594]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx + 0x594]
mov dword [eax + 4], eax
mov dword [ebx + 0x598], 0
cmp ecx, dword [ebx + 0x594]
je 0x467606
mov esi, dword [ecx]
push ecx
call fcn.004705af
add esp, 4
mov ecx, esi
cmp esi, dword [ebx + 0x594]
jne 0x4675f1
push dword [ebx + 0x594]
call fcn.004705af
mov eax, dword [ebx + 0x584]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x467637
push 0x4000
lea eax, [eax + eax*4]
push eax
push dword [ebx + 0x578]
call esi
jmp 0x46764f
push dword [ebx + 0x578]
call fcn.00471b0c
add esp, 4
mov dword [ebx + 0x578], 0
cmp dword [ebx + 0x584], 0
mov dword [ebx + 0x57c], 0
mov dword [ebx + 0x580], 0
je 0x46767b
push 0x8000
push 0
push dword [ebx + 0x578]
call esi
lea ecx, [ebx + 0x52c]
mov byte [ebp - 4], 2
call fcn.00415a90
mov eax, dword [ebx + 0x514]
lea edi, [ebx + 0x4fc]
push eax
lea ecx, [edi + 0x18]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.0045e160
push dword [edi + 0x18]
call fcn.004705af
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebx + 0x4c8]
mov byte [ebp - 4], 0
call fcn.0040d8e0
lea ecx, [ebx + 0x3c0]
mov dword [ebp - 4], 0xffffffff
call fcn.00415b30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469440
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov esi, dword [edi + 0x3d8]
neg eax
mov ecx, dword [edi + 0x3dc]
cdq
and edx, dword [edi + 0x26c]
mov ebx, eax
and ebx, dword [edi + 0x268]
sub esi, ebx
mov dword [ebp - 4], ecx
push esi
push ebx
push edx
push 4
push dword [edi + 0x3d0]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [edi + 0x560], ecx
test ecx, ecx
jne 0x4694a6
mov dword [edi + 0x564], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x268]
sub ecx, ebx
add eax, ecx
lea ecx, [edi + 0x4fc]
push eax
mov dword [edi + 0x564], eax
call fcn.00443430
mov eax, dword [edi + 0x270]
lea ecx, [edi + 0x4c8]
sub eax, dword [edi + 0x268]
add eax, dword [edi + 0x564]
push eax
call fcn.0040dcc0
mov eax, dword [edi + 0x278]
lea ecx, [edi + 0x52c]
sub eax, dword [edi + 0x268]
add eax, dword [edi + 0x564]
push eax
call fcn.0042e060
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d400
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x4c36e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4c3678], esi
je 0x46d479
cmp dword [0x4c3684], esi
je 0x46d479
push 0x12237
call dword [0x4c368c]
push esi
push esi
push edi
call dword [0x4c3678]
cmp dword [0x4c36d0], 0
mov esi, eax
je 0x46d479
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x4aa26c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x804]
push eax
push edi
call dword [0x4c36d0]
push 0x4c36e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x46d4a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
xor bl, bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.00471b44
add esp, 4
mov dword [ebp - 4], eax
push eax
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
mov eax, dword [ebp - 4]
je 0x46d4f0
cmp dword [eax + 0x30], 0x60000
mov ecx, 1
movzx ebx, bl
cmovae ebx, ecx
push eax
call fcn.00471b0c
add esp, 4
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f510
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x46f597
push esi
push edi
call fcn.00471b44
add esp, 4
mov esi, eax
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46f58d
push 0x4aa720
push esi
call fcn.0046f670
mov ecx, dword [ebp + 0x14]
add esp, 8
push eax
call fcn.0046b290
push 0x498c1c
push esi
call fcn.0046f670
mov ecx, dword [ebp + 0x10]
add esp, 8
push eax
call fcn.0046b290
push 0x49719c
push esi
call fcn.0046f670
mov ecx, dword [ebp + 0xc]
add esp, 8
push eax
call fcn.0046b290
mov bl, 1
push esi
call fcn.00471b0c
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481f06
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bc1dc]
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.00479aab
mov dword [ebp - 0x14], eax
cmp dword [0x4c4690], esi
jne 0x481ff9
push 0x800
push esi
push 0x4b01dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x481f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4820d9
push esi
push esi
push 0x4b01dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4820d9
push 0x4b01f4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4820d9
push eax
call ebx
push 0x4b0200
push edi
mov dword [0x4c4690], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4b0210
push edi
mov dword [0x4c4694], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4b0224
push edi
mov dword [0x4c4698], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c46a0], eax
test eax, eax
je 0x481ff6
push 0x4b0240
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c469c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x48201e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x482011
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x482033
push 4
pop eax
jmp 0x4820db
cmp dword [ebp - 0x14], esi
je 0x482033
push dword [0x4c4690]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x482018
mov eax, dword [0x4c469c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x482091
cmp dword [0x4c46a0], edi
je 0x482091
push eax
call ebx
push dword [0x4c46a0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x482091
test eax, eax
je 0x482091
call ecx
test eax, eax
je 0x482086
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 0x482086
test byte [ebp - 8], 1
jne 0x482091
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4820c1
mov eax, dword [0x4c4694]
cmp eax, edi
je 0x4820be
push eax
call ebx
test eax, eax
je 0x4820be
call eax
mov esi, eax
test esi, esi
je 0x4820be
mov eax, dword [0x4c4698]
cmp eax, edi
je 0x4820be
push eax
call ebx
test eax, eax
je 0x4820be
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4c4690]
call ebx
test eax, eax
je 0x4820d9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4820db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x4011e0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4012e7
push 0x80000000
push str.MsmSvc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x4012e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x4012e4
push esi
mov esi, edi
call esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40131c
lea eax, [ebp - 0x20c]
push eax
push str.__s_
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00401170
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40131c
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.Maintenance_Service_Manager
push str.MsmSvc
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
je 0x4012cc
push eax
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e4c
mov esp, ebp
pop ebp
ret
push eax
call edi
push esi
call edi
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], str.MsmSvc
push eax
mov dword [ebp - 0x420], 0x401330
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00402e4c
mov esp, ebp
pop ebp
ret
Function at 0x4037c1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403800
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403800
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403800
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403800
cmp dword [ecx + 0x74], 0xe
jbe 0x403800
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40bdf3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040ba70

Function at 0x4135d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4135fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4135fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xb11370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xb1138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xb3a074
push ecx
mov edi, eax
call fcn.00b25198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb113cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00b2502e
push esi
call fcn.00b24fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xb14850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xb148ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xb3f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb148ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00b251e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xb148ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb3f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb1492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00b26082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xb14957
mov word [eax], si
add eax, 2
push eax
call fcn.00b26030
add esp, 4
jmp 0xb14959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xb148ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xb148b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xb14ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret