joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002ce0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x10]
push eax
push 9
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10002d1a
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10002e21
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10002d7c
cmp dword [ebp - 0xc], 0xea
je 0x10002d7c
cmp dword [ebp - 0xc], 0x7a
je 0x10002d7c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
jmp 0x10002e21
mov edx, dword [ebp - 0x24]
lea eax, [edx + edx + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x38], 0
jne 0x10002da4
mov dword [ebp - 0x20], 8
jmp 0x10002d6a
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
add edx, 1
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10002de5
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10002ce0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10002de5
jmp 0x10002dee
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0x3c], 0x103
je 0x10002dff
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jb 0x10002dab
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esp, ebp
pop ebp
ret 8

Function at 0x10005d06
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000ba80]
jne 0x10005d10
repz ret
jmp fcn.10006e8d
Function at 0x10006b22
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000ba80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100030a4
and dword [ebp - 0x14], 0
cmp dword [0x100106bc], 0
mov dword [ebp - 0x18], eax
jne 0x10006bd5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10006c7d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10006c7d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100106bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100106c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100106c4], eax
call edi
push eax
call esi
mov dword [0x100106cc], eax
test eax, eax
je 0x10006bd5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100106c8], eax
mov eax, dword [0x100106c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10006c2e
cmp dword [0x100106cc], ecx
je 0x10006c2e
push eax
call esi
push dword [0x100106cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10006c2e
test ebx, ebx
je 0x10006c2e
call edi
test eax, eax
je 0x10006c25
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10006c25
test byte [ebp - 8], 1
jne 0x10006c2e
or dword [ebp + 0x10], 0x200000
jmp 0x10006c61
mov eax, dword [0x100106c0]
cmp eax, dword [ebp - 0x18]
je 0x10006c61
push eax
call esi
test eax, eax
je 0x10006c61
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10006c61
mov eax, dword [0x100106c4]
cmp eax, dword [ebp - 0x18]
je 0x10006c61
push eax
call esi
test eax, eax
je 0x10006c61
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100106bc]
call esi
test eax, eax
je 0x10006c7d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10006c7f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005d06
leave
ret
Function at 0x6d4655dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x6d4655ec
pop dword [ebp - 0x10]
mov eax, 0x6d4655ec
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x6a2c24c5
sub dword [ebp - 0x20], 0x1bd9df7a
mov dword [ebp - 0x1c], 0x439b257e
add dword [ebp - 0x1c], 0xee9826c7
mov dword [ebp - 0x18], 0x79d53896
sub dword [ebp - 0x18], 0x2d88f468
mov dword [ebp - 0x14], 0xe767bab6
add dword [ebp - 0x14], 0x1898454a
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x1cf09f39
sub dword [ebp - 0x20], 0xa87e35e3
mov dword [ebp - 0x1c], 0x21d9bab6
sub dword [ebp - 0x1c], 0xe06d5941
mov dword [ebp - 0x18], 0xa3fbcf46
sub dword [ebp - 0x18], 0x408c62da
mov dword [ebp - 0x14], 0xe4e5626f
sub dword [ebp - 0x14], 0xe4e5626f
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x26809eb
sub eax, 0x95217993
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x33f68
push 0
call eax
mov ecx, 0x3b75
mov ebx, eax
mov esi, 0x3369133e
sub esi, 0xc6222b3e
add esi, dword [ebp - 0x10]
mov edx, 0x2ef3622b
add dword [ebp - 8], 0x1fe36922
mov edi, dword [esi]
add dword [ebp - 4], eax
add edi, edx
add dword [ebp - 4], ebx
mov dword [ebx], edi
xor dword [ebp - 4], ecx
add ebx, 0x6c1d694f
sub ebx, 0x6c1d694b
add esi, 4
loop 0x6d4656f8
add eax, 0x86d432c5
sub eax, 0x86d3521e
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7d725175
add ecx, 0xefd3ae8b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x6d4678c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x6d4678ce
repz ret
jmp fcn.6d467caf
Function at 0x532ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc5000]
push edi
jmp 0x532aca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x532ad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532ac0
mov eax, 1
add ebx, ebx
jne 0x532ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x532af4
jne 0x532b13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532b13
dec eax
add ebx, ebx
jne 0x532b00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x532ad8
add ebx, ebx
jne 0x532b0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x532b65
xor ecx, ecx
sub eax, 3
jb 0x532b2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x532b9a
sar eax, 1
mov ebp, eax
jmp 0x532b36
add ebx, ebx
jne 0x532b36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532b04
inc ecx
add ebx, ebx
jne 0x532b44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532b04
add ebx, ebx
jne 0x532b51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x532b46
jne 0x532b62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x532b46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x532b84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x532b76
jmp 0x532ac6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x532b84
add edi, ecx
jmp 0x532ac6
pop esi
mov edi, esi
mov ecx, 0x6842
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x532ba2
cmp byte [edi], 0x22
jne 0x532ba2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x532ba7
lea edi, [esi + 0x12e000]
mov eax, dword [edi]
or eax, eax
je 0x532c1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1503b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x150504]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x532bd4
mov ecx, edi
jns 0x532c03
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x150508]
or eax, eax
je 0x532c19
mov dword [ebx], eax
add ebx, 4
jmp 0x532bf1
call dword [esi + 0x150518]
mov ebp, dword [esi + 0x15050c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x532c53
sub esp, 0xffffff80
jmp 0x4a1319
Function at 0x1404c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1404cc7
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1404df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x40
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1404e31
push esi
push dword [ebp + 0xc]
push edi
call fcn.01425740
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1405550
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.014038c0
add esp, 4
test eax, eax
je 0x1405579
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.01403bc0
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push ebx
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x14055f1
movzx esi, word [eax + 0x14]
xor ecx, ecx
movzx edi, word [eax + 6]
add esi, 0x18
add esi, eax
xor eax, eax
mov dword [ebp - 4], esi
cmp ax, di
jae 0x14055f1
mov ebx, dword [ebp + 0xc]
movzx edx, cx
lea eax, [edx + edx*4]
lea esi, [esi + eax*8]
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x14055b9
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 4]
je 0x14055c4
inc ecx
cmp cx, di
jae 0x14055f1
mov esi, dword [ebp - 4]
jmp 0x14055a2
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 4]
test esi, esi
je 0x14055e0
lea eax, [edx + edx*4]
mov ecx, dword [edi + eax*8 + 0x10]
mov eax, dword [edi + eax*8 + 8]
cmp ecx, eax
cmovbe ecx, eax
mov dword [esi], ecx
lea eax, [edx + edx*4]
mov eax, dword [edi + eax*8 + 0xc]
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1405cd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.014235b0
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0xfff
push eax
call fcn.01401c00
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0142c5fa
mov eax, dword [0x45b9a5c]
add esp, 0x1c
mov byte [ebp - 1], 0
test eax, eax
je 0x1405d26
mov eax, dword [eax + 0x50]
test eax, eax
je 0x1405d26
push str.escape_n
call eax
add esp, 4
push 0x10
push str.Fatal_Error
lea eax, [ebp - 0x1000]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esp, ebp
pop ebp
ret

Function at 0x14078f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1444f4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.014247a6
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x140797b
push eax
push esi
call fcn.01424ab3
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.01424258
int3

Function at 0x1408bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov cl, byte [esi]
cmp cl, 0xe8
je 0x1408c03
cmp cl, 0xe9
jne 0x1408c55
mov eax, dword [ebp + 0x10]
push edi
add eax, esi
lea edi, [esi + 1]
add eax, dword [edi]
cmp eax, dword [0x45b89d0]
jne 0x1408c54
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1408c4c
mov eax, 0x14094c0
sub eax, esi
sub eax, 5
mov dword [edi], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0x1c]
mov byte [eax], 1
mov cl, byte [esi]
pop edi
pop esi
cmp cl, 0xcc
je 0x1408c66
cmp cl, 0x90
je 0x1408c66
xor eax, eax
pop ebp
ret 0x18
mov eax, 1
pop ebp
ret 0x18
Function at 0x14093f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 3
call fcn.0140c4c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x140940a
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x20]
push 0x40
push dword [ebp + 0x10]
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x24]
push eax
mov dword [esi + 0x20], ecx
call fcn.014309c0
push 0x100
push dword [ebp + 0x14]
lea eax, [esi + 0x64]
mov byte [esi + 0x63], 0
push eax
call fcn.014309c0
mov eax, dword [ebp + 0x1c]
add esp, 0x18
mov byte [esi + 0x163], 0
mov dword [esi + 0x10], eax
cmp byte [0x45b8a19], 0
je 0x140946f
xor al, al
mov byte [esi + 4], al
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [esi + 0x20]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14094a2
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
pop edi
test eax, eax
je 0x14094af
mov ecx, dword [esi + 8]
mov dword [eax], ecx
mov al, 1
mov byte [esi + 4], al
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1409500
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x45b9a40]
push edi
test esi, esi
je 0x1409537
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
sub eax, 2
je 0x1409527
sub eax, 1
je 0x1409527
sub eax, 1
jne 0x1409530
mov ecx, dword [esi + 0x38]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x1409515
mov esi, dword [0x45b8a04]
test esi, esi
je 0x1409629
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
nop dword [eax]
cmp byte [esi + 4], 0
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0xc], ebx
je 0x140960a
mov eax, dword [esi]
cmp eax, 1
jne 0x1409582
call fcn.014104d0
push dword [esi + 0xc]
lea eax, [esi + 0x18]
push eax
call fcn.01410390
call fcn.01410550
jmp 0x1409606
cmp eax, 2
jne 0x140958c
mov eax, dword [esi + 0x28]
jmp 0x1409594
cmp eax, 3
jne 0x14095c3
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push 4
push eax
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x1409606
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 8]
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ecx
call edi
jmp 0x1409606
cmp eax, 4
jne 0x1409606
mov ebx, dword [esi + 0x1c]
lea ecx, [ebp - 4]
mov eax, dword [esi + 0x18]
push ecx
push 0x40
push ebx
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x1409603
push ebx
lea eax, [esi + 0x20]
push eax
push dword [ebp - 8]
call fcn.01425740
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
call edi
mov ebx, dword [ebp - 0xc]
mov byte [esi + 4], 0
push 0x164
push esi
call fcn.01423338
add esp, 8
mov esi, ebx
test ebx, ebx
jne 0x1409550
pop ebx
mov dword [0x45b8a04], esi
mov eax, dword [0x45b89b0]
pop edi
pop esi
test eax, eax
je 0x140963a
mov dword [eax], 0
mov esp, ebp
pop ebp
ret
Function at 0x140c990
Capabilities:
Set environment variable

Disassembly:
push 0x45b8144
call fcn.01424278
mov eax, dword [0x45b8148]
push 0x45b8144
mov dword [0x45b814c], eax
call fcn.01424294
add esp, 8
ret
push esi
push edi
call fcn.01402540
mov edi, dword [0x45b9a40]
test edi, edi
je 0x140ca76
mov esi, edi
mov edi, dword [edi + 0x40]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x140c9c8
mov eax, dword [esi + 0x3c]
sub eax, 2
je 0x140c9c3
sub eax, 1
je 0x140c9c3
sub eax, 1
jne 0x140c9c8
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esi + 0x30]
call fcn.014010d0
mov ecx, dword [esi + 0x2c]
add esp, 4
cmp ecx, 0x10
jb 0x140ca07
mov eax, dword [esi + 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x140c9fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140cb0d
mov eax, edx
push ecx
push eax
call fcn.01423338
add esp, 8
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x140ca4c
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x140ca42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140cb0d
mov eax, edx
push ecx
push eax
call fcn.01423338
add esp, 8
push 0x44
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.01423338
add esp, 8
test edi, edi
jne 0x140c9a5
mov dword [0x45b9a40], edi
mov eax, dword [0x45b9a58]
test eax, eax
je 0x140ca97
push 0xac
push eax
call fcn.01423338
add esp, 8
mov dword [0x45b9a58], 0
mov eax, dword [0x45b9a5c]
test eax, eax
je 0x140cab8
push 0x218
push eax
call fcn.01423338
add esp, 8
mov dword [0x45b9a5c], 0
mov edi, dword [0x45b9a68]
mov esi, dword [0x45b9a64]
mov dword [0x45b89b4], 0
cmp esi, edi
je 0x140caeb
push 0xc
push dword [esi]
call fcn.01423338
add esi, 4
add esp, 8
cmp esi, edi
jne 0x140cad2
mov esi, dword [0x45b9a64]
mov dword [0x45b9a68], esi
call fcn.0140c870
push 0x45b8a20
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
pop esi
jmp 0x1402050
call fcn.01430967
int3
Function at 0x140cb30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x45b8a04]
test esi, esi
je 0x140cc74
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [eax]
cmp byte [esi + 4], 0
jne 0x140cc67
mov eax, dword [esi]
cmp eax, 1
jne 0x140cb89
call fcn.014104d0
push dword [esi + 0xc]
lea ebx, [esi + 0x18]
push ebx
call fcn.0140fe50
call fcn.01410550
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140cc63
mov eax, dword [ebx]
jmp 0x140cc61
cmp eax, 2
jne 0x140cbc4
mov ebx, dword [esi + 0x28]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
call edi
test eax, eax
je 0x140cc57
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
jmp 0x140cc55
cmp eax, 3
jne 0x140cbf8
mov ebx, dword [esi + 0x20]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
call edi
test eax, eax
je 0x140cc57
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
jmp 0x140cc55
cmp eax, 4
jne 0x140cc63
push 1
push dword [esi + 0x18]
call fcn.01404680
push dword [esi + 0x1c]
mov dword [esi + 8], eax
lea eax, [esi + 0x20]
push dword [esi + 0x18]
push eax
call fcn.01425740
mov ebx, dword [esi + 0x1c]
lea ecx, [ebp - 4]
mov eax, dword [esi + 0x18]
add esp, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
push ecx
push 0x40
push ebx
push eax
call edi
test eax, eax
je 0x140cc57
push ebx
lea eax, [esi + 0x28]
push eax
push dword [ebp - 8]
call fcn.01425740
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
call edi
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140cc63
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov byte [esi + 4], 1
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x140cb50
pop edi
pop ebx
mov byte [0x45b8a19], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x140f710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
je 0x140f74a
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140f74a
cmp dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
je 0x140f74d
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x140f760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x45b9cc0], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x140f7a4
lea eax, [ebp - 4]
push eax
push 0x45b9cc0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140f7a4
cmp dword [ebp - 8], 1
mov eax, 0x45b9cc0
je 0x140f7a7
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8