joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411277
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x488090], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4876c0
jne 0x411297
push 0
call fcn.00451931
pop ecx
call fcn.00411238
mov dword [0x475c94], 0x270
mov dword [0x4876bc], esi
mov edx, 0xe3
mov ecx, bind
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 0x4112b6
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 0x4112ec
mov edx, dword [0x4876c0]
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 0x411346
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x475c94]
jne 0x411353
call fcn.00411277
mov eax, dword [0x4876bc]
mov ecx, dword [eax]
add dword [0x4876bc], 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 0x41138a
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x475c94]
jne 0x411398
call fcn.00411277
mov eax, dword [0x4876bc]
mov eax, dword [eax]
add dword [0x4876bc], 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 0x4113de
fadd qword [0x470318]
fmul qword [0x470310]
pop ecx
ret

Function at 0x411589
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x4115ab
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044f750
add esp, 0xc
jmp 0x4115be
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.004509f1
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.004500f0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x412597
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.004121fe
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.0041233e
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x4125dc
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00412310
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x4125c2
pop edi
pop esi
leave
ret 0xc

Function at 0x4128cf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x478]
call fcn.0041143a
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.00450396
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.00412a3f
test eax, eax
je 0x41291a
push 6
pop eax
jmp 0x412a38
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.004509f1
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.004509f1
push dword [esi]
mov edi, dword [ebp - 8]
push 1
lea eax, [ebp - 8]
push 4
mov ebx, 0x87bc
push eax
xor edi, ebx
call fcn.004509f1
push dword [esi]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor eax, ebx
push 1
mov dword [ecx], eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.004509f1
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.00450396
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.0044f469
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.0044f469
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.004509f1
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.00412597
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.004113e6
cmp ebx, dword [ebp - 0xc]
je 0x4129e0
push dword [ebp + 0xc]
call fcn.0044f6b8
pop ecx
push esi
call fcn.0044f6b8
pop ecx
push 0xa
jmp 0x412914
cmp byte [ebp - 1], 1
jne 0x412a22
lea eax, [ebp - 0x478]
call fcn.0041143a
xor eax, eax
inc eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x474], esi
call fcn.00411468
push esi
call fcn.0044f6b8
jmp 0x412a2d
push dword [ebp + 0xc]
call fcn.0044f6b8
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41de67
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, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
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 0x41de9c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x44]
push 0x46af28
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41def1
lea eax, [esp + 0x44]
push 0x46dbc0
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41def1
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_SetFileAttributesW]
test eax, eax
je 0x41df10
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41dea2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41df1c
mov al, 1
jmp 0x41de93
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41de91
lea eax, [esp + 0x18]
push eax
push 0x46dbb8
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41df9e
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x18], 0x10
je 0x41df8f
lea eax, [esp + 0x44]
push 0x46af28
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41df8f
lea eax, [esp + 0x44]
push 0x46dbc0
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41df8f
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.0041de67
test al, al
je 0x41dfa2
push 0x46dbc0
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41df37
mov bl, 1
jmp 0x41dfa4
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41de93
Function at 0x41ea89
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040dcac
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040dd1f
push 0x46dbb8
mov eax, edi
call fcn.0040dea7
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41ebdc
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.00418c55
cmp eax, 1
je 0x41ebd8
cmp eax, 0xb
jne 0x41eafc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41eadc
lea eax, [ebp - 0x244]
push 0x46af28
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41ebbe
lea eax, [ebp - 0x244]
push 0x46dbc0
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x41ebbe
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040dde3
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.0040dea7
test byte [ebp - 0x270], 0x10
je 0x41eb96
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41eb65
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41ebbe
push 0x46a584
lea eax, [ebp - 0xc]
call fcn.0040dea7
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.0041ea89
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41ebdc
jmp 0x41ebbe
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x41ebbe
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41eadc
jmp 0x41ebdc
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.0044d460
pop ecx
push dword [ebp - 0xc]
call fcn.0044d460
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x427188
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040d90e
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044d460
cmp edi, 0xffffffff
pop ecx
jne 0x4271b9
xor ecx, ecx
push 0
inc ecx
jmp 0x4271de
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x4271d9
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x4271e9
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0041a160
xor al, al
pop edi
pop ebx
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040dc80
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, bind
push edi
call esi
test eax, eax
je 0x427e63
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044d460
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x427f31
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x1fe
call fcn.0040de0f
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.0040dea7
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x427f1c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x280]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427f13
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x280], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x280]
push eax
call fcn.0044d2c1
test eax, eax
pop ecx
pop ecx
jne 0x427f13
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x427f31
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x427e63
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x427e53
Function at 0x427f42
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040dc80
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 edi, edi
cmp esi, edi
jl 0x4280d9
push dword [ebp - 0xc]
call fcn.0040d0a5
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040de0f
push esi
lea eax, [ebp - 0x20]
call fcn.0040dea7
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040dea7
push esi
call fcn.0044d460
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x4280d9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
mov esi, eax
cmp esi, edi
jne 0x4280d0
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.0040d0a5
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.0044d460
cmp esi, edi
pop ecx
jl 0x4280d0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
test eax, eax
jne 0x42807b
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.00450051
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push edi
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.00451fb0
add esp, 0x10
call fcn.00464806
fld qword [ebp - 0x28]
push eax
call fcn.00464806
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x4280d0
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.0044d460
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4280e9
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040dc80
lea ecx, [ebp - 0x18]
call fcn.0040dc80
lea ecx, [ebp - 0x30]
call fcn.0040dc80
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0040de0f
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.0040dea7
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.0040dea7
push 0x46a170
lea eax, [ebp - 0x18]
call fcn.0040de0f
cmp edi, esi
je 0x428170
cmp word [edi], 0x5c
je 0x428170
cmp word [edi + 2], 0x5c
je 0x428170
push 0x46e668
lea eax, [ebp - 0x18]
call fcn.0040de0f
push edi
lea eax, [ebp - 0x18]
call fcn.0040dea7
cmp dword [ebp + 0x10], esi
je 0x4281bf
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.0044fbe0
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.0040dde3
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.0040dea7
mov eax, dword [ebp - 0x30]
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, esi
jne 0x42825b
lea eax, [ebp - 0xc]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp edi, esi
jne 0x42825b
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x428256
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x258]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x428251
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x258], si
lea eax, [ebp - 0x258]
push eax
call fcn.0040d0a5
pop ecx
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push esi
mov edi, eax
call fcn.0044d460
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.0044d460
push dword [ebp - 0x18]
call fcn.0044d460
push dword [ebp - 0x24]
call fcn.0044d460
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42dc3d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.004528c0
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040dc80
lea ecx, [ebp - 0x18]
call fcn.0040dc80
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.0040f5e3
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x42dd6b
inc edi
cmp ax, 0x25
jne 0x42dd2a
cmp word [esi + edi*2], ax
jne 0x42dc9a
push 0x25
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040deee
inc edi
jmp 0x42dd33
push 0x46a170
lea eax, [ebp - 0x18]
call fcn.0040de0f
jmp 0x42dcbb
test ax, ax
je 0x42dcc5
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
call fcn.0040deee
inc edi
movzx eax, word [esi + edi*2]
cmp ax, 0x25
jne 0x42dca9
cmp word [esi + edi*2], 0
je 0x42dd42
and word [ebp - 0x2018], 0
push 0xfff
lea eax, [ebp - 0x2018]
push eax
push dword [ebp - 0x18]
inc edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42dd01
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0xc]
call fcn.0040dea7
mov bl, 1
jmp 0x42dd33
push 0x46f444
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040dea7
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040de6b
push 0x46f444
lea eax, [ebp - 0xc]
call fcn.0040dea7
jmp 0x42dd33
push eax
lea eax, [ebp - 0xc]
call fcn.0040deee
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x42dc77
jmp 0x42dd5c
push 0x46f444
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040dea7
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040de6b
test bl, bl
je 0x42dd6b
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.0040fc96
push dword [ebp - 0x18]
call fcn.0044d460
push dword [ebp - 0xc]
call fcn.0044d460
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430a5c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x14]
call fcn.0040dcac
xor ebx, ebx
push 0x3c
xor esi, esi
lea eax, [ebp - 0x5c]
push ebx
inc esi
push eax
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call fcn.0044fbe0
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x430ac5
mov ecx, dword [ebp + 0x10]
mov eax, esi
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
cmp word [eax], bx
je 0x430ac5
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
push eax
call fcn.0040d0a5
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], 3
jb 0x430ae7
mov ecx, dword [ebp + 0x10]
push 2
pop eax
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
push eax
call fcn.0040d0a5
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x430b22
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
cmp word [eax], bx
je 0x430b22
mov ecx, dword [ebp + 0x10]
push 3
pop eax
call fcn.00405435
mov esi, eax
call fcn.0040f605
mov ebx, eax
lea eax, [ebp - 0x14]
call fcn.0040dde3
xor ebx, ebx
cmp dword [ebp + 0x14], 5
jb 0x430b3e
mov ecx, dword [ebp + 0x10]
push 4
pop eax
call fcn.00405435
call fcn.0040f6bb
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0044fbe0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x54], ebx
call fcn.00405435
mov esi, eax
call fcn.0040f5e3
mov esi, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp edi, ebx
mov dword [ebp + 0x10], eax
je 0x430b9d
push edi
call fcn.0044d460
pop ecx
cmp esi, ebx
je 0x430ba8
push esi
call fcn.0044d460
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x430c06
mov esi, dword [ebp + 8]
cmp byte [esi + 0x298], 1
jne 0x430bf0
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.00418b5c
push dword [eax]
mov ebx, esi
push 0x87
call fcn.00418996
push dword [ebp - 0x20]
call fcn.0044d460
xor ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x14]
call fcn.0044d460
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
xor ecx, ecx
push ebx
inc ecx
mov eax, esi
call fcn.0041a160
mov esi, dword [ebp + 0x18]
push ebx
call fcn.0040fb9e
jmp 0x430bde
cmp byte [ebp + 0xc], bl
je 0x430c19
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7d8], eax
jmp 0x430bde
mov esi, dword [ebp + 0x18]
push 1
call fcn.0040fb9e
cmp dword [ebp - 0x24], ebx
je 0x430bde
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x430bde
Function at 0x4346a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x434728
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x434728
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x4346fc
cmp dword [ebp + 0x10], ebx
jbe 0x4346fc
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4346f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x43472a
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x43471c
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x434732
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x439dbf
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48bda0
push edi
call fcn.0044fbe0
push 0x10
push ebx
mov esi, 0x48bd90
push esi
call fcn.0044fbe0
add esp, 0x18
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
xor eax, eax
inc eax
push ebx
mov dword [0x48bda0], 0x44
mov dword [0x48bdcc], eax
mov word [0x48bdd0], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x439e22
push dword [0x48bd90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4