joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487090
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x524e78
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004e3e60
mov cx, word [esp + 0x84]
add esp, 0xc
mov dword [esp + 0x1c], 0x44
mov word [esp + 0x4c], cx
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4870f7
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x70]
push ecx
lea edx, [esp + 0x7c]
push str.__s_
push edx
mov dword [esp + 0x74], 0
call fcn.00402fab
mov edx, dword [esp + 0x80]
add esp, 0xc
test edx, edx
je 0x48714f
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x487136
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x80]
call fcn.00402c69
mov esi, dword [esp + 0x78]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x487171
push 0
lea ecx, [esp + 0x7c]
call fcn.00401371
mov esi, dword [esp + 0x78]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x48720c
test esi, esi
je 0x4871ad
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4871a0
sub eax, edx
js 0x487202
cmp eax, dword [esi - 8]
jg 0x487202
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.004894e0
lea eax, [esi - 0x10]
mov dword [esp + 0x68], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4871ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x60
ret 0x10
push 0x80070057
call fcn.004010bd
test esi, esi
jne 0x487214
xor eax, eax
jmp 0x48722d
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x487220
sub eax, edx
js 0x487202
cmp eax, dword [esi - 8]
jg 0x487202
cmp dword [esp + 0x7c], 0
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
je 0x48724d
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
lea eax, [esi - 0x10]
mov dword [esp + 0x68], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487285
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x20
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x60
ret 0x10
Function at 0x4873a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x524f02
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x597f54]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x12c]
mov dword [esp + 0x124], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x487410
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x104
mov dword [esp + 0x12c], 0
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x487448
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00401452
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004e2867
add esp, 0x120
ret 4

Function at 0x487610
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x524f78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x597f54]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004b4151
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48765f
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [esp + 0x28]
mov cl, byte [esp + 0x2c]
push edx
lea eax, [esp + 0x10]
push eax
add cl, 0x30
push esi
mov dword [esp + 0x2c], 0
mov byte [esp + 0x18], 0x25
mov byte [esp + 0x19], 0x30
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x64
mov byte [esp + 0x1d], 0
call fcn.00402fab
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004e2867
add esp, 0x1c
ret 8
Function at 0x4877b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x597f54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x20]
call fcn.004b4034
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
call fcn.004b9ccd
mov eax, dword [eax + 4]
mov edi, dword [ebp + 8]
mov esi, dword [eax + 0x44]
push 0xa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x487854
push str.XERR_RESDATA
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x487832
push 0
push 0
push 0
push str.XERR_RESDATA
lea ecx, [ebx + 4]
call fcn.00489e50
mov dword [ebp - 4], 0xffffffff
call fcn.004b404a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x48786b
xor ecx, ecx
jmp 0x48787b
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x487870
sub ecx, esi
push ecx
push eax
mov ecx, ebx
call fcn.00401452
mov dword [ebp - 4], 0xffffffff
call fcn.004b404a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4893c0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4893f7
call fcn.00489140
call fcn.004e6d59
mov eax, dword [eax]
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp]
mov dword [ecx], edx
xor eax, eax
pop ecx
ret

Function at 0x489430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x489451
call fcn.00489140
call fcn.004e6d59
mov eax, dword [eax]
pop esi
ret
test al, 0x10
je 0x48945a
mov esi, 0x10
test al, 2
je 0x489461
or esi, 2
test al, 1
je 0x489468
or esi, 1
test al, 4
je 0x48946f
or esi, 4
test al, 0x20
je 0x489476
or esi, 0x20
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
xor eax, eax
pop esi
ret

Function at 0x489480
Capabilities:
Set file attributes

Disassembly:
mov cl, byte [esp + 8]
xor eax, eax
test cl, 0x10
je 0x489490
mov eax, 0x10
test cl, 2
je 0x489498
or eax, 2
test cl, 1
je 0x4894a0
or eax, 1
test cl, 4
je 0x4894a8
or eax, 4
test cl, 0x20
je 0x4894b0
or eax, 0x20
test eax, eax
jne 0x4894b9
mov eax, 0x80
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4894d6
call fcn.00489140
call fcn.004e6d59
mov eax, dword [eax]
ret
xor eax, eax
ret
Function at 0x489c20
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push 0
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x489c71
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
call fcn.00489140
mov edi, dword [esi + 4]
add esi, 4
call fcn.004e6d59
mov ecx, dword [eax]
push 0
push 0
push edi
push ecx
mov ecx, esi
call fcn.00489a20
pop edi
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4
Function at 0x493b10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x493b3f
push esi
call fcn.00497320
add esp, 4
cmp byte [esi + 0x40], 0
je 0x493b38
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x493bba
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x493baa
mov eax, dword [esi + 8]
test eax, eax
je 0x493b64
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x493ba6
cmp eax, 2
je 0x493baa
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x493b55
cmp eax, 3
je 0x493b8c
cmp eax, 1
jne 0x493b55
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x493b55
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x493b55
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00493a40
pop esi
ret
cmp eax, 0xcc
je 0x493bdc
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00493a40
pop esi
ret

Function at 0x49d450
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x49d477
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x49d483
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x49d58f
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x49d4cc
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x49d4ed
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.0049d2c0
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x49d522
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.0049d2c0
mov ecx, eax
cmp esi, ecx
jg 0x49d510
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x49d505
cmp dword [esp + 0x10], 0
je 0x49d570
mov eax, 1
lea ecx, [edi - 1]
jmp 0x49d550
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x49d550
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x49d4c0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x49f3f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x49f3fb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x49f4fe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x540418]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x540418]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x540418]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x540418]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x540418]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x540418]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x540418]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x540418]
xor eax, edx
inc ecx
dec edi
jne 0x49f416
pop edi
test esi, esi
je 0x49f520
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x540418]
xor eax, edx
inc ecx
dec esi
jne 0x49f502
pop esi
pop ebx
not eax
ret

Function at 0x49f900
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49f911
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x49f95e
call fcn.004e6d59
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.004e8163
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x49f959
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x49f970
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x49fc70
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x49fd1d
cmp byte [esi + 0x5c], 0x77
jne 0x49fd1d
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x49fcbe
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.004e3bd5
add esp, 0x10
cmp eax, edi
jne 0x49fd03
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x49fd0d
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004a0080
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x49fcdf
cmp eax, 0xfffffffb
jne 0x49fcdf
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x49fcf0
cmp dword [esi + 0x38], 1
je 0x49fcf0
xor ebx, ebx
jmp 0x49fcf5
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x49fc8e
cmp eax, 1
jne 0x49fd0d
jmp 0x49fc8e
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x4a579f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a57f7
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x59b2b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a57ea
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4a57f9
xor eax, eax
pop esi
leave
ret 4
Function at 0x4a69c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x526968
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x80], 0
call fcn.004ad4b0
push 1
push eax
lea ecx, [esp + 0x34]
call fcn.004d221d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 1
mov dword [esp + 0x1c], 1
call fcn.004ad4d0
cmp eax, 1
jl 0x4a6bf6
mov esi, dword [ebp + 0xc]
mov bl, 4
mov edi, 3
cmp word [esp + 0x3c], di
je 0x4a6a5d
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov word [esp + 0x3c], di
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], edi
call fcn.004ad4f0
push 1
push eax
lea ecx, [esp + 0x2c]
call fcn.004d221d
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 2
call fcn.004ad540
cmp eax, 0x10
lea ecx, [esp + 0x24]
jne 0x4a6b3b
call fcn.004ad560
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.004d221d
mov eax, dword [esi + 8]
push 1
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x88], 3
call fcn.00402d1c
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 4]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + ecx + 0x50]
mov byte [esp + 0x84], bl
call fcn.00485130
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 5
call fcn.004ad5f0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x80], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a6b1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x58]
call fcn.0040290f
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 2
call fcn.004d2308
jmp 0x4a6bcd
call fcn.004ad540
cmp eax, 0x11
jne 0x4a6bcd
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.004ad620
mov edx, dword [esp + 0x14]
push str.transcript_text
push edx
mov byte [esp + 0x88], 6
call fcn.004e316c
add esp, 8
test eax, eax
jne 0x4a6b80
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
jmp 0x4a6b9c
mov edx, dword [esp + 0x14]
push str.transcript_title
push edx
call fcn.004e316c
add esp, 8
test eax, eax
jne 0x4a6ba5
push esi
lea eax, [esp + 0x28]
push eax
mov ecx, dword [esp + 0x20]
call fcn.004a64e0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x80], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a6bcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 1
call fcn.004d2308
add edi, 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], edi
call fcn.004ad4d0
cmp edi, eax
jle 0x4a6a41
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 0
call fcn.004d2308
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a8cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x4a8d03
push 0x80004005
call fcn.004010bd
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x4a8d6a
mov ecx, dword [edi]
test ecx, ecx
jbe 0x4a8d67
mov edx, dword [esp + 0x14]
test edx, edx
jbe 0x4a8d62
cmp edx, 2
jbe 0x4a8d5b
cmp edx, 7
jne 0x4a8d62
cmp ecx, 1
jb 0x4a8d62
cmp byte [ecx + esi - 1], 0
jne 0x4a8d62
cmp ecx, 1
jbe 0x4a8d6a
cmp byte [ecx + esi - 2], 0
jmp 0x4a8d60
cmp byte [ecx + esi - 1], 0
je 0x4a8d6a
mov eax, 0xd
mov byte [esi], 0
pop esi
pop edi
ret 0xc

Function at 0x4aae70
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5271d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
call fcn.00413b37
push eax
lea ecx, [esp + 0x10]
call fcn.00401534
push 0xa
push str.Projects_
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00402c69
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x4aaecf
xor eax, eax
jmp 0x4aaedf
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aaed4
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00402c69
mov edx, dword [0x58ac78]
test edx, edx
jne 0x4aaef8
xor eax, eax
jmp 0x4aaf0b
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aaf00
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00402c69
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x4aaf22
xor eax, eax
jmp 0x4aaf32
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4aaf27
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00402c69
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push SysReAllocString
mov dword [esp + 0x48], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4aafab
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
test esi, esi
setne al
mov dword [esp + 0x10], edi
test eax, eax
jne 0x4aaf8f
push 0x80004005
call fcn.004010bd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [esp + 0x30]
push esi
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aafd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x4aafdb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x10