joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446e36
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0044577c
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0044577c
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4bdfa0
call fcn.0040f209
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00437884
lea ecx, [ebp - 8]
call fcn.00437884
mov esi, str.0.0.0.0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.EnableDHCP
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
mov edi, 0x4a44be
push edi
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x446f11
cmp byte [eax], 0x2d
jne 0x446ef2
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x446f11
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x448a7f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
xor eax, eax
push edi
inc eax
xor ebx, ebx
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov word [ebp - 0x21c], bx
call fcn.0043d3c3
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x448ad6
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x21c]
je 0x448be6
cmp dword [ebp - 0xc], ebx
push esi
mov esi, 0xa0000000
mov dword [ebp - 8], ebx
je 0x448ae9
mov esi, 0xe0000000
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push esi
push dword [ebp + 0xc]
call dword [0x4be138]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x448b3c
cmp dword [ebp - 0xc], 1
jne 0x448b2e
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
call dword [0x4be138]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x448b02
cmp dword [ebp + 0x14], ebx
jne 0x448b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x448bd7
push edi
push dword [ebp + 0x14]
call dword [0x4be13c]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x448b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [0x4be140]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x448b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x448bc9
xor esi, esi
cmp dword [ebp - 0xc], ebx
mov edi, 0x200
jne 0x448b92
mov esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4be144]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x448bc9
cmp dword [ebp - 0xc], 2
jne 0x448bbe
or esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4be144]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x448bc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], ebx
je 0x448bd7
push dword [ebp - 8]
call dword [0x4be148]
cmp dword [ebp + 0x14], ebx
pop esi
je 0x448be6
push dword [ebp + 0x14]
call dword [0x4be148]
lea ecx, [ebp - 0x10]
call fcn.00437884
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x448fea
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x44901c
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.0043d3c3
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.00438aa1
add esp, 0xc
test al, al
jne 0x449075
push 0xc
push edi
push str.DosDevices_
call fcn.00438aa1
add esp, 0xc
test al, al
jne 0x449075
cmp word [edi], bx
je 0x449079
cmp word [edi + 2], bx
je 0x449079
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x449079
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x4abf50
call fcn.00438aa1
mov ebx, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x44909d
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x4490c4
cmp byte [ebp + 0x18], 0
je 0x4490af
xor eax, eax
mov ax, word [esi]
push eax
call fcn.0043ac23
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x4490d5
cmp byte [ebp + 0x18], al
jl 0x449121
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x4490fd
cmp byte [ebp + 0x18], 0
jle 0x449121
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x449121
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x449121
test esi, esi
jne 0x449121
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x44909d
lea ecx, [ebp - 4]
call fcn.00437884
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x449dd7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.0043d3ea
push 0xca
lea ecx, [ebp - 0x10]
call fcn.0043d3c3
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x449eac
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x449eac
and dword [ebp - 4], 0xfffffffc
jmp 0x449eac
test edx, edx
jl 0x449eb1
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x449ea9
cmp dword [ebp - 8], 0
je 0x449e7b
movsx ax, cl
push eax
call fcn.0048ee7d
test eax, eax
pop ecx
je 0x449ea9
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x449e8f
mov ax, word [ebp + 0xc]
test ax, ax
je 0x449e8f
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x449ea9
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x449e41
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00437884
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x44a0c6
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x44a109
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x44a102
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.004457ae
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x44b0f4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0xa0000
lea ecx, [ebp - 0xc]
call fcn.0043d29b
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
add edi, 0x20000
xor eax, eax
and edi, 0xfffe0000
cmp byte [ebp + 0x1c], al
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], eax
mov ebx, 0x200
jne 0x44b139
mov dword [ebp + 0x18], eax
jmp 0x44b14b
mov eax, dword [ebp + 0x18]
cdq
push 0
add eax, ecx
push ebx
adc edx, esi
push edx
push eax
call fcn.00491da0
test esi, esi
mov dword [ebp - 8], eax
jl 0x44b24a
jle 0x44b240
cmp dword [ebp + 0x18], 0
jne 0x44b176
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x44b176
jg 0x44b172
cmp dword [ebp + 0x10], eax
jbe 0x44b176
xor dl, dl
jmp 0x44b178
mov dl, 1
cmp dword [ebp + 0x14], 0
jl 0x44b190
jg 0x44b189
cmp dword [ebp + 0x10], 0x10000000
jbe 0x44b190
mov esi, 0x10000000
jmp 0x44b193
mov esi, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov eax, esi
je 0x44b203
mov esi, ebx
sub esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp + 0x14]
jl 0x44b1b2
jg 0x44b1af
cmp esi, dword [ebp + 0x10]
jbe 0x44b1b2
mov esi, dword [ebp + 0x10]
push 1
push eax
push eax
push dword [ebp + 8]
call fcn.004389fe
add esp, 0x10
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.0041255f
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004389fe
add esp, 0x1c
mov eax, ebx
mov ecx, edi
jmp 0x44b211
cmp byte [ebp + 0x1c], 0
je 0x44b211
and esi, 0xfffffe00
mov eax, esi
and dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp + 0x10], esi
push 0
pop eax
sbb dword [ebp + 0x14], eax
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
jg 0x44b15c
jl 0x44b24a
cmp dword [ebp + 0x10], 0
ja 0x44b15c
lea ecx, [ebp - 0xc]
call fcn.00437884
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c04c
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x44c064
test byte [ecx + 9], 0xf
jne 0x44c064
pop ebp
jmp fcn.0044bf54
pop ebp
jmp fcn.0044b25d

Function at 0x44c06a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x44c12d
cmp esi, edi
je 0x44c090
mov dword [ebp - 4], esi
jmp 0x44c096
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x44c126
push ebx
mov ebx, esi
jmp 0x44c0ac
cmp ax, 0x3d
je 0x44c0b6
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x44c0a6
cmp dword [ebp + 0xc], edi
je 0x44c0d3
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ebx
push 0xffffffffffffffff
sar eax, 1
push eax
lea eax, [esi + 2]
push eax
push ebx
call fcn.00412d3b
jmp 0x44c116
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.00445763
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.0040eec0
test eax, eax
jne 0x44c108
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.00412d3b
lea ecx, [ebp - 8]
call fcn.00437884
xor edi, edi
jmp 0x44c116
inc esi
inc esi
cmp word [esi], di
jne 0x44c114
inc esi
inc esi
cmp word [esi], di
jne 0x44c0a2
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret
Function at 0x44c445
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00444d7f
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x44c4bf
and word [ebp - 0xc], 0
and word [ebp - 2], 0
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x44c4af
cmp ebx, 2
je 0x44c4bf
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4bdfa0
call fcn.00449130
pop ebx
leave
ret
Function at 0x44d00e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x44d0b7
cmp dword [ebp + 0xc], edi
jne 0x44d038
mov eax, 0x80070057
jmp 0x44d1ab
cmp dword [0x4be33c], edi
jle 0x44d1a9
push edi
push 0x8000080
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44d079
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x44d1ab
jmp 0x44d1d3
push edi
lea eax, [ebp + 8]
push eax
push dword [0x4be33c]
push dword [0x4beb10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4beb10]
cmp eax, edi
mov dword [0x4be33c], edi
je 0x44d0ac
call fcn.0043786d
mov dword [0x4beb10], edi
jmp 0x44d1a9
cmp dword [ebp + 0x10], edi
je 0x44d1c4
push dword [ebp + 0x10]
call fcn.004135a0
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x44d1d3
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub esi, dword [ebx]
sub eax, dword [ebx + 4]
cmp esi, edi
mov dword [ebp - 0x10], eax
jle 0x44d1b0
cmp eax, edi
jle 0x44d1b0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [0x4bde30]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x4bde34]
cmp esi, dword [ebp - 8]
jne 0x44d123
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x44d1b0
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0043ccf1
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x44d1d3
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], edi
call dword [0x4bde0c]
push 2
push dword [ebp + 8]
call dword [0x4bde40]
push dword [ebp - 0x10]
push esi
push edi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x4bde10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.0044ccc7
add esp, 0xc
cmp ebx, edi
mov esi, eax
je 0x44d19b
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 4], edi
je 0x44d1a9
push dword [ebp - 4]
call dword [0x4bde08]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push 1
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0044ccc7
add esp, 0xc
mov esi, eax
jmp 0x44d19b
push edi
push ebx
call fcn.0043ccf1
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
jne 0x44d181
xor eax, eax
inc eax
jmp 0x44d1ab
Function at 0x45e1c9
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x20]
call fcn.0043f42c
lea eax, [ebp + 8]
push eax
call fcn.004378b6
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.0043d3c3
push 0x14
lea ecx, [ebp - 4]
call fcn.0043d3c3
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4ad2fc
mov dword [ebp - 8], edi
call fcn.0043f0e5
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
movzx eax, al
push 0x2c
pop esi
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044e4ae
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0043fd51
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x45e261
add dword [ebp + 8], 2
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044e4ae
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0043fd51
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x45e289
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 8]
push eax
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044e4ae
push eax
call fcn.0043ff9e
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x45e29b
mov ebx, 0x80070057
jmp 0x45e399
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x45e2ad
cmp dword [ebp - 0x10], edi
jne 0x45e2ad
cmp word [eax], di
je 0x45e291
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.0043d3ea
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.004110a0
push dword [ebp - 0xc]
mov edi, eax
call fcn.004110a0
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
jne 0x45e2fb
cmp dword [ebp - 8], ecx
jne 0x45e2fb
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x45e33d
cmp dword [ebp - 8], 2
je 0x45e345
cmp dword [ebp - 0x10], ecx
jne 0x45e345
push edi
call fcn.0048eec0
push 0
mov esi, eax
push 0x4be2e4
neg esi
sbb esi, esi
push str.KERNEL32.DLL
push str.CreateSymbolicLinkW
neg esi
call fcn.00438b10
mov eax, dword [0x4be2e4]
add esp, 0x14
test eax, eax
je 0x45e399
push esi
push edi
push dword [ebp + 8]
call eax
test eax, eax
je 0x45e391
xor ebx, ebx
jmp 0x45e399
cmp word [edi], cx
jne 0x45e353
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45e389
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.0043dae5
push esi
push dword [ebp + 8]
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.0043b4d6
add esp, 0x18
test eax, eax
je 0x45e391
xor eax, eax
jmp 0x45e397
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.00437884
lea ecx, [ebp - 0xc]
call fcn.00437884
lea ecx, [ebp - 0x20]
call fcn.00437884
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x45e3ba
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x45e4e3
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0043d3c3
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x45e4db
push edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
shl eax, 2
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov word [edi], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x45e4cb
cmp word [edi], si
je 0x45e4cb
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.00445746
push 0x4a4460
lea ecx, [ebp - 4]
call fcn.0043d411
push edi
lea ecx, [ebp - 4]
call fcn.0043d411
push esi
push dword [ebp + 0xc]
push esi
push esi
push 4
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 8]
push eax
movzx eax, word [0x4bdbc8]
or eax, 0xf003f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x45e4c3
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0045e3ba
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x45e4c3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.00437884
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x45e411
pop edi
lea ecx, [ebp - 0x18]
call fcn.00437884
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x46861e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, eax
and eax, 2
and ebx, 1
mov dword [ebp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x46864e
mov esi, eax
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x24], edx
mov ecx, 0xba
lea edi, [ebp - 0x2f8]
mov dword [ebp - 0x2fc], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 0x288], 0x40
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xcc], edx
je 0x4686a2
mov dword [ebp - 0xcc], 0x40000000
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2e4], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x25c]
push eax
call fcn.0041255f
and word [ebp + esi*2 - 0x25c], 0
add esp, 0xc
mov esi, 0x4be710
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4bdbcc
push 0x10000
lea eax, [ebp - 0x2fc]
push eax
push 0x467c51
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x468732
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x24], 0x270f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
jne 0x468732
push 0
call edi
dec dword [ebp + 0x24]
jns 0x46870d
jmp 0x468727
push 1
call edi
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
je 0x468723
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
je 0x468768
cmp esi, edi
je 0x468773
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x14]
mov ecx, 0x4bdfa0
call fcn.004137db
cmp esi, edi
je 0x468773
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0xcc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46c5b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4beb4c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.0044d569
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x46c5f9
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46c5f9
push 0
push edi
inc ebx
call ebp
push dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x46c60d
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x46c625
push 1
push edi
call fcn.0048e16a
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret