joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41140e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
lea esi, [ebp + 0x30]
cmp dword [esi], 0
je 0x411469
push ebx
push edi
lea ebx, [ebp + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov edi, 0x1f6
cmp eax, edi
je 0x411467
add ebp, 0x14
push ebp
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.004110d2
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push ebp
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop ebx
pop esi
pop ebp
ret 4

Function at 0x4115f3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.00454c70
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0x34]
push 0x1f5
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov edi, 0xffff
push edi
mov dword [esi + 0x10], edi
call fcn.0044f4b6
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
pop ecx
mov dword [esi + 8], eax
jmp 0x4116e1
cmp dword [ebp - 4], 0
jbe 0x4116fc
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x4116b8
push dword [esi + 0xc]
call fcn.0044f4b6
push dword [esi + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
call fcn.0044f8e0
push dword [esi + 8]
call fcn.0044f520
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
test eax, eax
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jge 0x411688
fadd qword [0x46eb90]
fmul qword [0x46eba8]
call fcn.004659c6
push eax
mov dword [esi + 0x10], eax
call fcn.0044f4b6
push dword [esi + 0xc]
mov dword [esi + 8], eax
push dword [ebp - 8]
push dword [esi + 8]
call fcn.0044f8e0
push dword [ebp - 8]
call fcn.0044f520
add esp, 0x28
push dword [ebp - 4]
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push eax
call fcn.0044f8e0
mov eax, dword [ebp - 4]
add dword [esi + 0xc], eax
add esp, 0xc
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10010]
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
jne 0x411634
mov esi, 0x1f6
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x413c26
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x47d510], eax
push edi
mov edx, esi
mov eax, 0x47d510
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x47decc
jl 0x413c37
pop edi
mov dword [0x474080], esi
mov dword [0x47dee0], esi
pop esi
ret
Function at 0x413c65
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x47dee0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x47d510
jne 0x413c85
push 0
call fcn.00453c4a
pop ecx
call fcn.00413c26
mov dword [0x474080], 0x270
mov dword [0x47d50c], esi
mov edx, 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x413ca4
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x413cda
mov edx, dword [0x47d510]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x413d34
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x474080]
jne 0x413d41
call fcn.00413c65
mov eax, dword [0x47d50c]
mov ecx, dword [eax]
add dword [0x47d50c], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x413d78
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x474080]
jne 0x413d86
call fcn.00413c65
mov eax, dword [0x47d50c]
mov eax, dword [eax]
add dword [0x47d50c], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x413dcc
fadd qword [0x46eb90]
fmul qword [0x46eb88]
pop ecx
ret

Function at 0x413f75
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x413f97
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044f8e0
add esp, 0xc
jmp 0x413faa
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00452bc9
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
add dword [esi + 0xc], 8
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.004514b0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x41daa7
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
push edi
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41db27
lea eax, [ebp - 0x11c]
push 0x46bb48
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41db15
lea eax, [ebp - 0x11c]
push 0x46d44c
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41db15
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push dword [ebp + 0xc]
push eax
call fcn.0040dd5e
add esp, 0xc
test al, al
je 0x41db3f
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41dace
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41db4a
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x41db38
lea eax, [ebp - 0x148]
push eax
push 0x46d448
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41dbd8
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test byte [ebp - 0x148], 0x10
je 0x41dbc4
lea eax, [ebp - 0x11c]
push 0x46bb48
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41dbc4
lea eax, [ebp - 0x11c]
push 0x46d44c
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41dbc4
lea eax, [ebp - 0x11c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041daa7
test al, al
je 0x41dbdc
push 0x46d44c
call esi
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41db66
mov bl, 1
jmp 0x41dbde
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41db38
Function at 0x41f04c
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push str.___s
push eax
call fcn.00451899
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.00451750
add esp, 0x10
xor ebx, ebx
cmp byte [eax + esi], 0x5c
jne 0x41f0b4
lea eax, [ebp - 0x104]
push eax
call fcn.00451750
pop ecx
lea ecx, [ebp - 0x104]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x41f0b4
lea eax, [ebp - 0x104]
push eax
call fcn.00451750
pop ecx
mov byte [eax + esi], bl
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x41f0cc
cmp byte [ebp + 8], bl
jne 0x41f0cc
xor eax, eax
jmp 0x41f19b
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f0f2
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
jmp 0x41f0c5
push 0x14
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004512d0
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x410], 0xa0000003
call fcn.00451750
add eax, eax
mov word [ebp - 0x406], ax
mov eax, dword [ebp - 0x406]
add esp, 0x10
add eax, 2
push 0x104
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x400]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 0x406]
push ebx
add eax, 0xc
mov word [ebp - 0x40c], ax
lea ecx, [ebp + 0xc]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x410]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
push esi
jne 0x41f192
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41f0e9
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x41fcf0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
mov dword [esp + 0x1c], ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41fd25
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
lea eax, [esp + 0x44]
push 0x46bb48
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41fd7a
lea eax, [esp + 0x44]
push 0x46d44c
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41fd7a
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
or eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
not ecx
and eax, ecx
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
je 0x41fd99
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41fd2b
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41fda5
mov al, 1
jmp 0x41fd1c
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x41fd1a
lea eax, [esp + 0x18]
push eax
push 0x46d448
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41fe27
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test byte [esp + 0x18], 0x10
je 0x41fe18
lea eax, [esp + 0x44]
push 0x46bb48
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41fe18
lea eax, [esp + 0x44]
push 0x46d44c
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41fe18
lea eax, [esp + 0x44]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041fcf0
test al, al
je 0x41fe2b
push 0x46d44c
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41fdc0
mov bl, 1
jmp 0x41fe2d
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41fd1c
Function at 0x42079d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040fd2f
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040fd6a
push 0x46d448
mov eax, edi
call fcn.0040ff67
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4208f0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x10]
call fcn.0041b055
cmp eax, 1
je 0x4208ec
cmp eax, 0xb
jne 0x420810
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4207f0
lea eax, [ebp - 0x134]
push 0x46bb48
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x4208d2
lea eax, [ebp - 0x134]
push 0x46d44c
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x4208d2
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040fe80
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0xc]
call fcn.0040ff67
test byte [ebp - 0x160], 0x10
je 0x4208aa
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x420879
add dword [edi], 1
adc dword [edi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x4208d2
push 0x46b458
lea eax, [ebp - 0xc]
call fcn.0040ff67
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.0042079d
cmp al, bl
mov byte [ebp + 0xb], al
je 0x4208f0
jmp 0x4208d2
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x144]
xor ecx, ecx
xor edi, edi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, edi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x4208d2
add dword [esi], 1
adc dword [esi + 4], edi
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4207f0
jmp 0x4208f0
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.0044f520
pop ecx
push dword [ebp - 0xc]
call fcn.0044f520
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x42881e
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
mov word [esi], 2
call fcn.0040f14a
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044f520
cmp edi, 0xffffffff
pop ecx
jne 0x42884b
push 0
push 1
jmp 0x42886f
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x42886b
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42887a
push 0
push 2
mov eax, dword [esp + 0x14]
call fcn.0041c3d2
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x4294fe
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040fcfb
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, SysReAllocString
push edi
call esi
test eax, eax
je 0x42955c
mov esi, 0x80004002
push dword [ebp - 0x24]
call fcn.0044f520
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x42963b
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x54], 0
push str.interface_
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0xff
call fcn.0040fea9
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
call fcn.0040ff67
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x24]
push edi
call esi
test eax, eax
jne 0x429626
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x160]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42961d
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov byte [ebp + eax - 0x160], 0
lea eax, [ebp - 0x160]
push eax
call fcn.0044f30b
test eax, eax
pop ecx
pop ecx
jne 0x42961d
lea eax, [ebp - 0x54]
push eax
or eax, 0xffffffff
call fcn.0040f92e
pop ecx
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.0044f520
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x42963b
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x42955c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x42954c
Function at 0x42964c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040fcfb
fld1
lea eax, [ebp - 0xc]
fstp qword [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x4297e1
push dword [ebp - 0xc]
or eax, 0xffffffff
call fcn.0040f99d
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040fea9
push esi
lea eax, [ebp - 0x20]
call fcn.0040ff67
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040ff67
push esi
call fcn.0044f520
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x20]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x4297e1
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x140]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], 0xff
call edi
mov esi, eax
cmp esi, ebx
jne 0x4297d8
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x140], bl
lea eax, [ebp - 0x140]
push eax
or eax, 0xffffffff
call fcn.0040f92e
pop ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x14]
mov esi, eax
call fcn.0044f520
cmp esi, ebx
pop ecx
jl 0x4297d8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x140]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0xff
call edi
test eax, eax
jne 0x429783
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x140], bl
lea eax, [ebp - 0x140]
push eax
call fcn.00452402
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push ebx
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.004542a0
add esp, 0x10
call fcn.004659c6
fld qword [ebp - 0x28]
push eax
call fcn.004659c6
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, ebx
jl 0x4297d8
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.0044f520
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4297f1
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x24]
mov esi, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0040fcfb
lea ecx, [ebp - 0x18]
call fcn.0040fcfb
lea ecx, [ebp - 0x30]
call fcn.0040fcfb
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040fea9
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040ff67
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040ff67
push 0x46ad3e
lea eax, [ebp - 0x18]
call fcn.0040fea9
cmp esi, ebx
je 0x429876
cmp byte [esi], 0x5c
je 0x429876
cmp byte [esi + 1], 0x5c
je 0x429876
push 0x46db24
lea eax, [ebp - 0x18]
call fcn.0040fea9
push esi
lea eax, [ebp - 0x18]
call fcn.0040ff67
cmp dword [ebp + 0x10], ebx
je 0x4298c8
push 0x20
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.004512d0
mov dword [ebp - 0x4c], ebx
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
call fcn.0040fe80
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040ff67
mov eax, dword [ebp - 0x30]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
test esi, esi
jne 0x42995f
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov esi, eax
cmp esi, ebx
jne 0x42995f
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x24]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp esi, ebx
jne 0x42995a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x429955
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x158], bl
lea eax, [ebp - 0x158]
push eax
or eax, 0xffffffff
call fcn.0040f92e
pop ecx
push dword [ebp + 0xc]
mov ebx, eax
push ebx
call dword [sym.imp.ole32.dll_CLSIDFromString]
push ebx
mov esi, eax
call fcn.0044f520
pop ecx
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 0x30]
call fcn.0044f520
push dword [ebp - 0x18]
call fcn.0044f520
push dword [ebp - 0x24]
call fcn.0044f520
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4323bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.0040fd2f
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 1
call fcn.004512d0
add esp, 0xc
cmp dword [ebp + 0x10], 2
jb 0x43241c
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411fc5
cmp byte [eax], bl
je 0x43241c
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411fc5
push eax
call fcn.0040f14a
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 3
jb 0x432437
mov eax, dword [edi + 4]
mov esi, dword [eax + 8]
call fcn.00411fc5
push eax
call fcn.0040f14a
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 4
jb 0x432463
mov eax, dword [edi + 4]
mov esi, dword [eax + 0xc]
call fcn.00411fc5
cmp byte [eax], bl
je 0x432463
mov eax, dword [edi + 4]
mov esi, dword [eax + 0xc]
call fcn.00411fe7
mov ebx, eax
lea eax, [ebp - 0x18]
call fcn.0040fe80
xor ebx, ebx
cmp dword [ebp + 0x10], 5
jb 0x43247a
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x10]
call fcn.004120ba
movzx eax, ax
mov dword [ebp - 0xc], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004512d0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x4c], ebx
mov esi, dword [eax]
add esp, 0xc
call fcn.00411fc5
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp esi, ebx
mov dword [ebp + 0x10], eax
je 0x4324d5
push esi
call fcn.0044f520
pop ecx
cmp edi, ebx
je 0x4324e0
push edi
call fcn.0044f520
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x4324fb
mov eax, dword [ebp + 8]
push ebx
push 1
call fcn.0041c3d2
mov esi, dword [ebp + 0x14]
push ebx
call fcn.00412565
jmp 0x432526
cmp byte [ebp + 0xc], bl
je 0x43250e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x454], eax
jmp 0x432526
mov esi, dword [ebp + 0x14]
push 1
call fcn.00412565
cmp dword [ebp - 0x1c], ebx
je 0x432526
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x18]
call fcn.0044f520
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10