joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49edc0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x49ef92
xor ecx, ecx
xor edx, edx
mov ch, byte [eax]
mov dl, byte [eax + 2]
mov cl, byte [eax + 1]
push ebx
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 3]
push ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 6]
mov dword [eax], ecx
xor ecx, ecx
push esi
mov ch, byte [eax + 4]
push edi
mov cl, byte [eax + 5]
xor ebp, ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
xor ecx, ecx
mov ch, byte [eax + 8]
lea edi, [edx + 0xc]
mov cl, byte [eax + 9]
mov word [eax + 8], cx
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov cx, word [eax + 8]
mov word [edx + 8], cx
xor ecx, ecx
movzx si, byte [eax + 0xb]
mov ch, byte [eax + 0xa]
or ecx, esi
mov word [eax + 0xa], cx
mov word [edx + 0xa], cx
movzx si, byte [eax + 0xb]
xor ecx, ecx
mov ch, byte [eax + 0xa]
or ecx, esi
mov esi, dword [eax + 0xc]
mov word [eax + 0xa], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x11]
mov bp, word [eax + 0xa]
xor ecx, ecx
mov ch, byte [eax + 0x10]
add ebp, 0xc
or ecx, esi
mov word [eax + 0x10], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x11]
xor ecx, ecx
lea edi, [edx + ebp + 2]
mov ch, byte [eax + 0x10]
or ecx, esi
mov esi, dword [eax + 0x14]
mov word [eax + 0x10], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x19]
xor ecx, ecx
mov cx, word [eax + 0x10]
lea ebp, [ecx + ebp + 2]
xor ecx, ecx
mov ch, byte [eax + 0x18]
or ecx, esi
lea edi, [edx + ebp + 2]
mov word [eax + 0x18], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x19]
xor ecx, ecx
mov ch, byte [eax + 0x18]
or ecx, esi
mov esi, dword [eax + 0x1c]
mov word [eax + 0x18], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x21]
xor ecx, ecx
mov cx, word [eax + 0x18]
lea ebp, [ecx + ebp + 2]
xor ecx, ecx
mov ch, byte [eax + 0x20]
or ecx, esi
lea edi, [edx + ebp + 2]
mov word [eax + 0x20], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x21]
xor ecx, ecx
mov ch, byte [eax + 0x20]
or ecx, esi
mov esi, dword [eax + 0x24]
mov word [eax + 0x20], cx
and ecx, 0xffff
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dl, byte [eax + 6]
xor ecx, ecx
mov ch, byte [eax + 4]
pop edi
mov cl, byte [eax + 5]
pop esi
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
pop ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dh, byte [eax]
mov dword [eax + 4], ecx
mov dl, byte [eax + 1]
xor ecx, ecx
mov ch, byte [eax + 8]
pop ebx
mov cl, byte [eax + 9]
mov word [eax + 8], cx
xor ecx, ecx
mov cl, byte [eax + 2]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 3]
shl edx, 8
or edx, ecx
mov dword [eax], edx
ret
Function at 0x4a1bb0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x9c]
push esi
push 0x40
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004a19c0
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004a1af0
mov esi, dword [esp + 0xb0]
add esp, 0x14
xor edx, edx
mov cl, byte [esp + edx + 4]
mov al, cl
and cl, 0xf
sar al, 4
and al, 0xf
cmp al, 0xa
movsx eax, al
jge 0x4a1c2a
add eax, 0x30
jmp 0x4a1c2d
add eax, 0x57
mov byte [esi], al
cmp cl, 0xa
movsx eax, cl
jge 0x4a1c3c
add eax, 0x30
jmp 0x4a1c3f
add eax, 0x57
mov byte [esi + 1], al
inc edx
add esi, 2
cmp edx, 0x10
jl 0x4a1c10
pop esi
add esp, 0x94
ret

Function at 0x4a1c60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov ecx, 0x10
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0xa0]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x14], 0x9d14e9a1
mov dword [esp + 0x18], 0x593b6b0e
je 0x4a1ceb
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x28
jne 0x4a1ccf
mov byte [esi + 0x20], al
mov ecx, 0x20
jmp 0x4a1cd9
cmp ecx, 0x38
jle 0x4a1cd9
mov ecx, 0x38
mov eax, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xecab3c
test ecx, ecx
je 0x4a1d1f
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x38
jle 0x4a1d0a
mov ecx, 0x38
xor eax, eax
test ecx, ecx
jle 0x4a1d1f
mov dl, byte [eax + 0xecab3c]
xor byte [esp + eax + 0x1c], dl
inc eax
cmp eax, ecx
jl 0x4a1d10
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.004a1bb0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.01d0a8e3
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + ebp]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
cdq
and edx, 3
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x4a1d84
mov esi, ebp
mov dl, byte [esi]
add esi, 4
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, eax
jl 0x4a1d77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x4a2950
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x4a2972
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x4a2986
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x4a299a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x4a2b2d
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x4a2afe
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x4a29fc
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x4a2a66
mov eax, dword [esp + 0x14]
push eax
call fcn.004b0c57
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.004b0b6e
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x4a2b13
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x4a2b13
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x4a2b34
jmp 0x4a29ec
push ecx
push str.Illegal_character__c_in_input._n
call fcn.004b2be3
add esp, 8
push 1
call fcn.004b25b8
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x4c9f60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e9a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004bf059
mov eax, dword [0xecedd8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004bef8b
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004caa30
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4ca007
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4c9ffe
cmp al, 0xff
je 0x4c9ffe
dec al
mov byte [ecx], al
jmp 0x4ca007
push ecx
call fcn.004d44eb
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4ca038
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4ca02f
cmp al, 0xff
je 0x4ca02f
dec al
mov byte [ecx], al
jmp 0x4ca038
push ecx
call fcn.004d44eb
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4d6b83
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d6bbb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d4c28
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d4c00
jmp 0x4d6bc7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d837d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d83bf
call fcn.004deb9c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d83bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d83b6
xor eax, eax
jmp 0x4d83c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d83cd
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d9eec
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x4e8c64
call fcn.004b3338
push ecx
push ecx
push esi
push 0x14
call fcn.004d44c2
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4d9f3f
mov ecx, esi
call fcn.004d4cf4
mov eax, dword [0xef58c0]
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CFileException.0
mov dword [esi + 0xc], eax
call fcn.004d490a
jmp 0x4d9f41
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0xeda3a8
push eax
mov dword [ebp - 0x10], esi
call fcn.004b22b4
pop esi

Function at 0x4df0cc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4df0fa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4df118
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004df032
jmp 0x4df118
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4df118
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004df032
test edi, edi
mov eax, edi
jne 0x4df102
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10003250
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x200
xor ebx, ebx
lea eax, [esi + 0x148]
push ebx
push eax
call fcn.1000d490
push 0x104
lea ebp, [esi + 0x44]
push ebx
push ebp
call fcn.1000d490
add esp, 0x18
lea ecx, [esi + 0x14]
call fcn.10001e00
push ebp
push 0x104
mov dword [esi + 0x30], ebx
mov dword [esi + 0x348], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x100032a1
mov cx, word [0x100254d8]
add ebp, 0xffffffff
mov word [edi], cx
mov eax, ebp
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x100032c0
mov edx, dword [str.dbhome.dat]
mov dword [eax], edx
mov ecx, dword [0x100254d0]
mov dword [eax + 4], ecx
mov dx, word [0x100254d4]
mov word [eax + 8], dx
mov cl, byte [0x100254d6]
mov byte [eax + 0xa], cl
lea ecx, [esi + 0x34c]
call fcn.10001e00
lea ecx, [esi + 0x368]
call fcn.10001e00
lea ecx, [esi + 0x3a8]
mov dword [esi + 0x3a4], ebx
call fcn.10001e00
lea ecx, [esi + 0x384]
call fcn.10001e00
lea ecx, [esi + 0x400]
mov dword [esi + 0x3fc], ebx
call fcn.10001e00
lea ecx, [esi + 0x41c]
call fcn.10001e00
lea ecx, [esi + 0x438]
call fcn.10001e00
lea ecx, [esi + 0x454]
call fcn.10001e00
lea ecx, [esi + 0x470]
call fcn.10001e00
lea ecx, [esi + 0x48c]
call fcn.10001e00
mov ebx, dword [esi + 0x3c]
cmp dword [esi + 0x38], ebx
lea edi, [esi + 0x34]
jbe 0x10003379
call fcn.1000cd28
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x10003386
call fcn.1000cd28
push ebx
push edi
push ebp
push edi
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.10002e10
mov eax, 1
pop edi
mov dword [esi + 0x4ac], eax
mov dword [esi + 0x4b0], eax
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x10003ec0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10003ee0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x10003ef6
push 0x80004005
call fcn.10003bd0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x10003f20
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x10003f38
push 0x80004005
call fcn.10003bd0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10003f45
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x10004710
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1002c5e8]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x1000477e
test ecx, ecx
je 0x10004770
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x1000478c
test ecx, ecx
je 0x10004831
push ecx
jmp 0x1000482b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x100047fe
jmp 0x100047c0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.10004710
mov edi, eax
test edi, edi
jne 0x1000484d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x100047c0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10004815
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10004831
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1000cff2
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000485c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10004833
Function at 0x100095d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x30
push esi
push edi
push 0x2c
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.1000d490
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.1000e59f
push 0x10025c64
push edi
mov dword [esi + 8], 0
call fcn.1000e9b1
add esp, 0x1c
test eax, eax
mov dword [esi + 0xc], eax
jne 0x10009623
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret 4
mov eax, dword [esp + 0x1c]
cmp eax, 0x800
jge 0x10009647
push 0x1000
call fcn.1000c9cb
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], 0x1000
jmp 0x1000965c
lea edx, [eax + eax]
push edx
call fcn.1000c9cb
mov dword [esi], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax]
mov dword [esi + 8], ecx
mov ecx, dword [esi]
add esp, 4
test ecx, ecx
mov dword [esi + 4], eax
jne 0x10009675
pop edi
mov eax, 0xfffffffd
pop esi
add esp, 0x30
ret 4
mov edx, dword [esi + 0xc]
push edx
push 1
push eax
push ecx
call fcn.1000ed10
add esp, 0x10
cmp eax, 1
je 0x100096bf
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000969a
push eax
call fcn.1000ea37
add esp, 4
mov eax, dword [esi]
push eax
mov dword [esi + 0xc], 0
call fcn.1000d3c8
add esp, 4
pop edi
mov dword [esi], 0
mov eax, 0xfffffffe
pop esi
add esp, 0x30
ret 4
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
mov ecx, esi
call fcn.10009530
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 4

Function at 0x100096e0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x10009732
cmp dword [esi + 0x10], edi
je 0x1000971c
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, esi
call fcn.10009530
mov edx, dword [esi + 0xc]
push edx
call fcn.1000eed2
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push 1
push ecx
push edx
call fcn.1000ee45
add esp, 0x14
mov eax, dword [esi + 0xc]
push eax
call fcn.1000ea37
add esp, 4
test eax, eax
je 0x10009732
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi]
cmp eax, edi
je 0x10009741
push eax
call fcn.1000d3c8
add esp, 4
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi], edi
pop edi
xor eax, eax
pop esi
ret
Function at 0x10009be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push pe_nt_image_headers32
push 0
push 0x1002ef08
call fcn.1000d490
add esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftInternet_ExplorerVersion_Vector_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10009c15
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x1002ef08
lea edx, [esp + 0x10]
push edx
push 0
push 0x10025c68
push eax
mov dword [esp + 0x1c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10009c0f
push ebx
mov bl, byte [0x1002ef08]
push pe_nt_image_headers32
push eax
push 0x1002ef08
call fcn.1000d490
add esp, 0xc
mov eax, 0x1002ef08
mov byte [0x1002ef08], bl
lea edx, [eax + 1]
pop ebx
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10009c70
sub eax, edx
cmp eax, 3
jae 0x10009c89
mov byte [0x1002ef09], 0x30
jmp 0x10009c95
mov cl, byte [0x1002ef0a]
mov byte [0x1002ef09], cl
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
push 0x1002ef08
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10009c0f
push 0x1002ef08
mov byte [0x1002ef09], al
call fcn.1000f193
add esp, 4
add esp, 0xc
ret

Function at 0x10009f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push 0x800
push 0
push 0x1002f008
call fcn.1000d490
add esp, 0xc
lea eax, [esp + 4]
push eax
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10009f91
mov edx, dword [esp + 4]
lea ecx, [esp]
push ecx
push 0x1002f008
push 0x1002545e
push edx
mov dword [esp + 0x10], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, 0x1002f008
add esp, 8
ret

Function at 0x10009fa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push 0x800
push 0
push 0x1002f808
call fcn.1000d490
add esp, 0xc
lea eax, [esp + 4]
push eax
push str.SOFTWAREClassesCLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10009ff1
mov edx, dword [esp + 4]
lea ecx, [esp]
push ecx
push 0x1002f808
push 0x1002545e
push edx
mov dword [esp + 0x10], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, 0x1002f808
add esp, 8
ret