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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xc0], 0
je 0x46db8a
cmp byte [ebx + 0xd8], 0
jne 0x46db8a
push esi
lea esi, [ebx + 0x84]
cmp dword [esi], 3
push edi
je 0x46da66
mov edi, ebx
call fcn.0046eeee
mov esi, dword [esi]
cmp esi, 2
je 0x46da66
cmp esi, 1
je 0x46da66
mov eax, dword [ebx + 0x44]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x46da61
shr eax, 6
test al, 1
je 0x46da66
call fcn.0046e1b2
mov ecx, dword [ebx + 0xa8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jle 0x46dad7
lea eax, [ebx + 0xa4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00470521
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x46dacc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00470521
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.0045df80
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x46da99
mov esi, dword [ebx + 0xb4]
dec esi
mov dword [ebp - 4], esi
js 0x46db29
lea eax, [ebx + 0xb0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.00470521
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x46db23
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.00470521
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.0045df80
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x46daec
lea eax, [ebx + 0xa4]
lea edi, [ebp - 0x24]
call fcn.0047032c
lea esi, [ebx + 0xb0]
call fcn.004475bc
mov edi, dword [ebp - 0x14]
dec edi
js 0x46db5f
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.00470521
mov ebx, eax
call fcn.0045df80
dec edi
jns 0x46db48
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0xa8], eax
jne 0x46db72
cmp dword [ebx + 0xb4], eax
jne 0x46db72
inc eax
lea esi, [ebp - 0x18]
mov byte [ebx + 0xd8], al
call fcn.004475bc
lea esi, [ebp - 0x24]
call fcn.004475bc
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46e1b2
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [edi + 0x5c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041804a
mov eax, dword [edi + 0x44]
xor edx, edx
inc edx
test dl, al
jne 0x46e203
shr eax, 3
movzx ecx, al
and al, dl
and ecx, edx
movzx eax, al
add ecx, ecx
or ecx, edx
neg eax
sbb eax, eax
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.0046e940
lea ecx, [edi + 0x6c]
call fcn.00470430
mov esi, eax
lea eax, [ebp - 8]
add esi, 0x18
push eax
jmp 0x46e24b
shr eax, 6
test dl, al
je 0x46e267
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0046fcbd
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00446332
mov ecx, esi
call fcn.00402964
lea eax, [ebp - 4]
call fcn.0045eef0
push 6
mov eax, edi
call fcn.0046e984
lea ecx, [edi + 0x98]
call fcn.00402287
lea ecx, [ebp - 8]
push ecx
mov esi, eax
call fcn.0045f2f0
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00446332
lea ecx, [ebp - 8]
call fcn.00402964
lea eax, [ebp - 4]
push eax
call fcn.0045f700
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 4]
call fcn.00402964
xor eax, eax
pop esi
leave
ret
Function at 0x46eeee
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x44]
sub esp, 0x10
test al, 1
je 0x46ef06
shr eax, 6
test al, 1
je 0x46efe0
mov eax, dword [edi + 0x70]
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x46efe0
push ebx
push esi
mov eax, dword [ebp - 8]
lea ecx, [edi + 0x6c]
call fcn.00470430
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x46efcf
mov eax, dword [esi]
cmp eax, 1
je 0x46ef5e
cmp eax, 3
je 0x46ef5e
cmp eax, 7
je 0x46ef5e
cmp eax, 8
je 0x46ef5e
cmp eax, 0x64
jb 0x46ef79
mov eax, dword [edi + 0x84]
cmp eax, 2
je 0x46efcf
cmp eax, 5
jne 0x46ef79
jmp 0x46efcf
mov eax, dword [edi + 0x84]
cmp eax, 4
je 0x46ef79
cmp eax, 2
je 0x46efcf
cmp eax, 1
je 0x46efcf
test byte [esi + 8], 1
jne 0x46efcf
mov eax, dword [esi + 4]
mov ecx, edi
call fcn.0046fd35
mov ebx, eax
push ebx
lea eax, [ebp - 4]
push eax
call fcn.0041804a
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
lea eax, [ebp - 4]
push esi
call fcn.00446332
lea esi, [ebp - 4]
call fcn.00412cef
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0045f2f0
pop ecx
push eax
call fcn.0045fb60
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00402964
mov ecx, esi
call fcn.00402964
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x46ef1a
pop esi
pop ebx
leave
ret
Function at 0x46efe2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
mov esi, eax
call fcn.004afb50
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jne 0x46f010
push ecx
call fcn.004b39a5
pop ecx
push 3
jmp 0x46f184
xor eax, eax
and dword [ebp - 0x10], eax
and dword [ebp - 8], eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], ecx
sub dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
add dword [ebp - 0x10], 0xa
cmp dword [ebp - 0xc], 1
cdq
mov ecx, eax
mov dword [ebp - 0x2c], edx
jle 0x46f04a
mov eax, dword [ebp - 0x10]
cdq
add ecx, eax
adc dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push 2
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x78]
push ecx
push eax
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x46f073
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46f168
mov eax, dword [esi + 0x78]
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f162
cmp dword [ebp - 0x14], ebx
jne 0x46f162
mov eax, ebx
mov ebx, dword [ebp - 4]
call fcn.0045ee30
xor ebx, ebx
cmp eax, ebx
jge 0x46f0b2
mov ebx, 0x400
jmp 0x46f028
mov ecx, dword [ebp - 0x1c]
push ebx
lea eax, [eax + ecx - 0x40]
mov ecx, dword [esi + 0x78]
lea edx, [ebp - 0x24]
push edx
push eax
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
call edi
cmp eax, 0xffffffff
je 0x46f162
mov eax, dword [esi + 0x78]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push 0x4a
lea ecx, [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f13b
cmp dword [ebp - 0x14], ebx
je 0x46f13b
push 0xa
lea eax, [esi + 0x48]
push str.ADVINSTSFX
push eax
call fcn.004b1bad
add esp, 0xc
test eax, eax
je 0x46f10d
push 5
jmp 0x46f154
cmp dword [esi + 0x14], 0x64
jne 0x46f109
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x28]
push dword [ebp - 4]
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x24]
sbb eax, ecx
mov dword [esi + 0x90], edx
mov dword [esi + 0x94], eax
call fcn.004b39a5
pop ecx
xor eax, eax
jmp 0x46f185
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0046fcfc
push 2
pop esi
push dword [ebp - 4]
call fcn.004b39a5
pop ecx
mov eax, esi
jmp 0x46f185
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0046fcfc
push dword [ebp - 4]
call fcn.004b39a5
pop ecx
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f18a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x46f19f
xor eax, eax
pop edi
pop ebx
leave
ret
mov eax, dword [esi + 0x1c]
xor ecx, ecx
add eax, dword [esi + 0x90]
push ebx
adc ecx, dword [esi + 0x94]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x78]
push eax
push ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46f1e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0046fcfc
push 2
pop eax
jmp 0x46f19b
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.004029ba
mov byte [ebp - 0x1c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x10], ebx
jbe 0x46f2ba
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x78]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x38]
push ecx
push eax
call edi
test eax, eax
je 0x46f2c3
cmp dword [ebp - 0xc], ebx
je 0x46f2c3
cmp dword [ebp - 4], ebx
je 0x46f24d
push dword [ebp - 4]
call fcn.004b39a5
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.00470309
test al, al
je 0x46f2be
mov eax, dword [esi + 0x78]
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x46f2c3
cmp dword [ebp - 0xc], ebx
je 0x46f2c3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x38]
lea ebx, [esi + 0x6c]
push eax
call fcn.00470396
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.00470430
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.0040548c
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [esi + 0x10]
jb 0x46f21a
xor edi, edi
jmp 0x46f2dd
push 3
pop edi
jmp 0x46f2dd
push 2
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0046fcfc
push dword [ebp - 4]
call fcn.004b39a5
pop ecx
lea ecx, [ebp - 0x20]
call fcn.00402964
mov eax, edi
jmp 0x46f19b
Function at 0x46f2f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [edi + 0x9c], ebx
push esi
jle 0x46f30e
xor eax, eax
jmp 0x46f474
mov eax, dword [edi + 0xc]
xor ecx, ecx
add eax, dword [edi + 0x90]
push ebx
adc ecx, dword [edi + 0x94]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0x78]
push eax
push ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46f359
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0046fcfc
push 2
pop eax
jmp 0x46f474
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
cmp dword [edi + 8], ebx
jbe 0x46f469
mov eax, dword [edi + 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call esi
test eax, eax
je 0x46f44f
cmp dword [ebp - 8], ebx
je 0x46f44f
lea eax, [ebp - 0x1c]
push eax
call fcn.004029ba
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], ebx
je 0x46f3b6
push dword [ebp - 4]
call fcn.004b39a5
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.00470309
test al, al
je 0x46f422
mov eax, dword [edi + 0x78]
push ebx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call esi
test eax, eax
je 0x46f42e
cmp dword [ebp - 8], ebx
je 0x46f42e
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push eax
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1c]
push eax
call fcn.0040548c
lea esi, [edi + 0x98]
lea ebx, [ebp - 0x1c]
call fcn.00470451
mov ecx, ebx
call fcn.00402964
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, dword [edi + 8]
jb 0x46f36e
jmp 0x46f469
lea ecx, [ebp - 0x1c]
call fcn.00402964
push 3
jmp 0x46f468
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0046fcfc
lea ecx, [ebp - 0x1c]
call fcn.00402964
jmp 0x46f466
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0046fcfc
push 2
pop ebx
push dword [ebp - 4]
call fcn.004b39a5
pop ecx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x470be6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004029ba
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x4ed6cc
push 2
push ebx
call edi
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.0044b532
push esi
lea esi, [ebp - 4]
call fcn.00412cef
push eax
push 2
push ebx
call edi
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x4f87d8
push dword [ebp + 8]
call fcn.0044bda7
add esp, 0x10
mov ecx, esi
call fcn.00402964
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47103a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4710c1
push esi
call fcn.004afb50
mov edi, eax
pop ecx
test edi, edi
jne 0x471079
push 8
pop esi
push edi
call fcn.004b39a5
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4710c1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4f65ec
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4710ca
cmp dword [ebp - 0x10], 0
je 0x4710ca
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x4710b3
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4710ca
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x4710ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x47106c
Function at 0x4710cf
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0041804a
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.00412cef
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4711dc
push esi
call fcn.004afb50
mov edi, eax
pop ecx
test edi, edi
jne 0x47111a
lea ecx, [ebp - 4]
call fcn.00402964
push edi
jmp 0x4711e6
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.00412cef
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47110c
lea eax, [ebp - 8]
push eax
call fcn.004029ba
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47116a
cmp dword [ebp - 0x10], 0
je 0x47116a
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x4ef5c4
push ecx
push eax
jmp 0x471179
push 0x4ef5c4
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.0044bda7
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.00412cef
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4711cf
cmp dword [ebp - 0x18], 0
je 0x4711cf
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.0040548c
mov ecx, esi
call fcn.00402964
lea ecx, [ebp - 4]
call fcn.00402964
push edi
call fcn.004b39a5
mov al, 1
jmp 0x4711ed
lea ecx, [ebp - 8]
call fcn.00402964
jmp 0x47110c
lea ecx, [ebp - 4]
call fcn.00402964
push 0
call fcn.004b39a5
xor al, al
pop ecx
pop edi
pop esi
leave
ret

Function at 0x47137c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 4], 0xc8
xor ebx, ebx
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004afb50
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x4713ce
inc dword [ebp - 4]
jmp 0x47138f
cmp eax, ebx
jne 0x4713f0
cmp dword [ebp - 8], 1
je 0x4713fe
cmp dword [ebp - 8], 4
jne 0x47138f
push dword [esi]
push 0x4f88e8
push edi
call fcn.0044bda7
add esp, 0xc
mov bl, 1
push esi
call fcn.004b39a5
mov al, bl
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + ecx*2], ax
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.004054af
call fcn.0044607b
lea ecx, [ebp + 0xc]
call fcn.00402964
push esi
call fcn.004b39a5
mov al, 1
jmp 0x4713f8
Function at 0x47160e
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47163d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x471655
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x471653
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4717ba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.004b3b00
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
cmp byte [ebp + 0x18], bl
je 0x4717f9
lea esi, [ebp - 0xc]
call fcn.00482593
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x471840
lea esi, [ebp - 0xc]
call fcn.00482577
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x47185c
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x471831
Function at 0x471869
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push 0x38
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.004b3b00
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x400
cmp dword [ebp + 0xc], ebx
je 0x47189e
mov dword [ebp - 0x3c], 0x440
push edi
mov edi, dword [esi]
mov ecx, esi
call fcn.00460460
test al, al
je 0x4718af
add edi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x30], edi
sete al
mov dword [ebp - 0x34], 0x4f1424
pop edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x4718d2
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.0045f2f0
mov esi, dword [ebp - 4]
pop ecx
lea ecx, [ebp - 4]
call fcn.00460460
test al, al
je 0x4718ee
add esi, 8
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x47190d
lea ecx, [ebp - 4]
call fcn.00402964
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0xc], ebx
je 0x47192e
cmp dword [ebp - 8], ebx
je 0x47192e
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x4718ff
Function at 0x471b68
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
push eax
xor edi, edi
push 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x471ba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x471c74
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x471bf4
call ebx
cmp eax, 0x7a
jne 0x471c69
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0044445d
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push 1
push dword [ebp - 0x18]
call esi
cmp eax, edi
je 0x471c69
cmp dword [ebp - 0x1c], edi
je 0x471c69
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x471c6b
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x20]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
call fcn.004b39a5
pop ecx
cmp dword [ebp - 0x18], edi
je 0x471c65
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x471c84
call ebx
push dword [ebp - 0x10]
call fcn.004b39a5
pop ecx
cmp dword [ebp - 0x18], edi
je 0x471c82
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b196e
leave
ret

Function at 0x471c93
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x471cba
push eax
jmp 0x471cf4
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x471ceb
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp + 8]
je 0x471d09
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x471cd3
test esi, esi
je 0x471cfa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b196e
leave
ret
push edi
mov edi, dword [ebp - 0x228]
test esi, esi
je 0x471d1b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x471cfc