joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x742040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movsx edx, byte [eax + 0xb]
test edx, edx
jns 0x47a1a4
mov edx, dword [eax + 4]
mov eax, dword [eax]
test edx, edx
js 0x47a2a4
sete cl
test eax, eax
setne ch
or ch, cl
je 0x47a29d
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x2c]
mov ecx, edi
push 0x52
push 0x6c51b8
push edx
push eax
call fcn.005b7940
add esi, dword [edi + 0x18]
mov ecx, edi
call fcn.005b8d00
mov ecx, dword [0x746d94]
mov eax, esi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
mov dword [ebp - 0x30], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47a262
mov ebx, eax
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47a262
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x47a262
mov edi, eax
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setg cl
and esi, 0xf
je 0x47a24d
test eax, eax
jle 0x47a24d
mov edx, edi
add edx, eax
dec esi
movzx eax, word [edi]
lea edi, [edi + eax*2]
add edi, 2
cmp edi, edx
setb cl
add esi, 0xffffffff
jae 0x47a24d
cmp edi, edx
jb 0x47a236
test cl, cl
je 0x47a262
movzx eax, word [edi]
test eax, eax
sete cl
test edi, edi
sete dl
or dl, cl
je 0x47a28c
call fcn.005bf980
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
movsd qword [esi], xmm0
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
add edi, 2
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
push edi
call fcn.0047a2c0
jmp 0x47a278
push 0x6bd0c2
jmp 0x47a2a9
push 0x6bcfdb
push 0x6bd0bf
call fcn.0057cbd0
int3
Function at 0x47a700
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x742040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [esi + 4], eax
lea ecx, [esi + 8]
mov dword [ebp - 0x1c], ecx
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov eax, dword [esi]
mov dword [esi], ebx
test eax, eax
je 0x47a73d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esi]
test ebx, ebx
je 0x47a7c8
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 2
jl 0x47a790
xor edi, edi
inc edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x47a767
mov byte [esi + 0x10], 1
inc edi
mov eax, dword [ebp - 0x1c]
cmp edi, dword [eax]
jge 0x47a790
mov eax, dword [esi]
push str.__system_level
push dword [eax + edi*4]
call ebx
test eax, eax
je 0x47a75b
mov eax, dword [esi]
push str.__cleanup
push dword [eax + edi*4]
call ebx
test eax, eax
jne 0x47a75f
mov dword [esi + 0xc], 1
jmp 0x47a75f
cmp byte [esi + 0x10], 0
mov ebx, dword [ebp - 0x20]
jne 0x47a7c8
lea edi, [ebp - 0x16]
mov word [edi + 4], 0
mov dword [edi], 0xffff0000
push 2
push edi
push 0x6c3206
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 1
sete al
cmp word [edi], 0x31
sete cl
and cl, al
mov byte [esi + 0x10], cl
test ebx, ebx
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x47a7f0
Capabilities:
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x742040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x54]
movups xmmword [ecx + 0x34], xmm0
movups xmmword [ecx + 0x24], xmm0
movups xmmword [ecx + 0x14], xmm0
movups xmmword [ecx + 4], xmm0
mov dword [ecx], 0x44
lea edx, [ebp - 0x64]
movups xmmword [edx], xmm0
sub esp, 0x28
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x6c58f0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x47a8c5
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], 0
push 0xffffffffffffffff
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x47a8a4
mov edi, 0x6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], edi
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x47a880
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov edi, dword [ebp - 0x68]
jmp 0x47a88b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp edi, 3
je 0x47a8e6
cmp edi, 2
jne 0x47a8ee
mov dword [esi], 0x7a
jmp 0x47a88d
mov dword [esi], 0x7b
jmp 0x47a88d
mov dword [esi], 0x7c
mov dword [esi + 4], edi
jmp 0x47a890
Function at 0x47c1d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, ecx
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47c29b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x47c29b
mov esi, dword [ebp + 8]
push dword [edi]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
sub esp, 0x1c
movaps xmm0, xmmword [0x6c5a80]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x47c29b
test ebx, ebx
je 0x47c282
xor esi, esi
mov edi, ebx
sub edi, esi
mov eax, 0x800000
cmp edi, eax
cmovae edi, eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x1c]
add eax, esi
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47c292
add esi, edi
cmp esi, ebx
jb 0x47c250
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne bl
jmp 0x47c29d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4855d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
mov edi, ecx
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
push ecx
push 0x6d13d4
push 1
push eax
push 0x6af0f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x48574a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0
movsx edx, byte [eax + 0xb]
test edx, edx
jns 0x485621
mov edx, dword [eax + 4]
mov eax, dword [eax]
test edx, edx
js 0x48571f
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
sete cl
test eax, eax
setne ch
or ch, cl
je 0x485726
mov ebx, dword [ebp - 0x14]
lea edi, [ebp - 0x1c]
mov ecx, edi
push edx
push eax
call fcn.00486ae0
mov esi, dword [edi]
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
call dword [0x73c768]
sub esp, 0x24
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], ebx
call ecx
mov ebx, eax
mov ecx, edi
call fcn.00486b20
test ebx, ebx
js 0x485735
cmp byte [ebp - 0x24], 0
mov edi, dword [ebp - 0x20]
je 0x4856cb
mov eax, dword [ebp - 0x18]
sub esp, 0x20
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x6d1370]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 3
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x485740
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
mov dword [eax], ecx
test esi, esi
jne 0x485756
mov byte [edi], 0
xor eax, eax
mov byte [edi + 4], al
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x485769
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x48570b
mov dword [ebp - 0x14], 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [0x73c768]
push esi
call ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6bcfdb
jmp 0x48572b
push 0x6bd0c2
push 0x6bd0bf
call fcn.0057cbd0
mov edi, dword [ebp - 0x20]
mov dword [edi], 1
jmp 0x485746
mov dword [edi], 2
mov al, 1
jmp 0x4856e5
mov dword [edi], 0
mov byte [edi + 4], 1
jmp 0x4856ef
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [0x73c768]
push esi
call ecx
jmp 0x4856e0
mov dword [ebp - 0x18], 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [0x73c768]
push esi
call ecx
jmp 0x4856ef
Function at 0x485aa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x748a34]
mov ecx, dword [0x746d68]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x485aed
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, 0x748a30
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x748a34
call fcn.005403cd
add esp, 4
cmp dword [0x748a34], 0xffffffff
jne 0x485ad3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00544260
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x58
call fcn.00540349
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x748a64]
mov ecx, dword [0x746d68]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x485b96
mov ecx, esi
push ebx
push 0x748a40
push edi
call fcn.00485c90
mov dword [0x748a30], esi
push 0x748a34
call fcn.00540447
add esp, 4
jmp 0x485ad3
push 0x748a64
call fcn.005403cd
add esp, 4
cmp dword [0x748a64], 0xffffffff
jne 0x485b70
xorps xmm0, xmm0
movups xmmword [0x748a50], xmm0
movups xmmword [0x748a40], xmm0
mov dword [0x748a60], 0
push 0x748a40
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x748a64
call fcn.00540447
add esp, 4
jmp 0x485b70

Function at 0x485bf0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x748a64]
mov ecx, dword [0x746d68]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x485c21
movzx eax, word [0x748a40]
cmp eax, 9
jne 0x485c6c
xor eax, eax
inc eax
pop ebp
ret
push 0x748a64
call fcn.005403cd
add esp, 4
cmp dword [0x748a64], 0xffffffff
jne 0x485c10
xorps xmm0, xmm0
movups xmmword [0x748a50], xmm0
movups xmmword [0x748a40], xmm0
mov dword [0x748a60], 0
push 0x748a40
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x748a64
call fcn.00540447
add esp, 4
jmp 0x485c10
test eax, eax
je 0x485c1f
cmp eax, 6
jne 0x485c7c
mov eax, 2
jmp 0x485c1f
cmp eax, 0xc
jne 0x485c88
mov eax, 3
jmp 0x485c1f
mov eax, 4
jmp 0x485c1f

Function at 0x486d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x18
pop ebp
ret 4
Function at 0x486da0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
test eax, eax
je 0x486e2c
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, dword [esi + 4]
lea edx, [ebp - 0x24]
mov dword [edx], ecx
mov ecx, ebx
or ecx, 0x10001
push edx
push ecx
push 8
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x486e14
lea eax, [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
and ebx, 0x300
mov dword [ebp - 0x18], ebx
cmp byte [eax], 1
jne 0x486e33
test ecx, ecx
je 0x486e04
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 4]
push dword [ebp + 8]
push dword [esi]
call fcn.00486e90
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov edi, 6
jmp 0x486e16
mov ebx, ecx
xor eax, eax
dec eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call fcn.00487000
cmp byte [ebp - 0x20], 0
jne 0x486e65
push 0
push dword [esi + 4]
push 0x6c1934
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
jmp 0x486e68
mov edi, dword [ebp - 0x24]
test ebx, ebx
je 0x486e16
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x486e16
push 1
call fcn.00487810
jmp 0x486e16
Function at 0x486e90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x742040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov ecx, ebx
or ecx, 0x10009
lea edi, [ebp - 0x24]
mov dword [edi], esi
mov edx, dword [ebp + 0xc]
push edi
push ecx
push 8
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x486f3b
mov edx, edi
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov dword [ecx], edi
mov eax, ebx
and eax, 0x300
mov dword [ecx + 4], eax
xor eax, eax
dec eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
push edx
call fcn.00487000
cmp byte [ebp - 0x20], 0
jne 0x486fe6
push 0
push ebx
push 0x6c1934
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor esi, esi
test eax, eax
jne 0x486f43
test edi, edi
je 0x486f1c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x486fee
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 2
cmovne esi, eax
jmp 0x486f1c
mov esi, 0x200
push esi
call fcn.005403b3
add esp, 4
push esi
push 0
mov ebx, eax
push eax
call fcn.00544260
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x24], 0x100
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], 0
call esi
test eax, eax
jne 0x486fba
mov eax, dword [ebp - 0x24]
cmp eax, 0x100
jae 0x486ffa
cmp word [ebx + eax*2], 0
jne 0x486ffd
mov edi, dword [ebp - 0x1c]
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00486e90
add esp, 0xc
test eax, eax
je 0x486f65
jmp 0x486fbd
mov edi, dword [ebp - 0x1c]
push 0
push dword [ebp + 0x10]
push 0x6c1934
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
test ebx, ebx
je 0x486f11
push ebx
call fcn.005403bc
add esp, 4
jmp 0x486f11
mov esi, dword [ebp - 0x24]
jmp 0x486f11
push 1
call fcn.00487810
jmp 0x486f27
int3
int3
Function at 0x487000
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [ecx], eax
push eax
push eax
push ecx
push eax
push 0x6d1688
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x487051
mov byte [esi], 0
xor eax, eax
mov byte [esi + 4], al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005412b6
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebp
ret 4
test eax, eax
jne 0x487098
cmp dword [ebp - 0x10], 6
jne 0x487034
push dword [edi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x48709e
mov edi, eax
mov eax, dword [0x748a90]
mov ecx, dword [0x746d68]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4870ad
mov ecx, dword [0x748a8c]
test ecx, ecx
je 0x4870a6
call dword [0x73c768]
push edi
call ecx
mov dword [esi], eax
mov al, 1
jmp 0x487039
mov dword [esi], 0
jmp 0x48709a
mov eax, 5
jmp 0x487098
push 0x748a90
call fcn.005403cd
add esp, 4
cmp dword [0x748a90], 0xffffffff
jne 0x487085
push 0x6c8846
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6d16ac
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x748a8c], eax
push 0x748a90
call fcn.00540447
add esp, 4
jmp 0x487085

Function at 0x487110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x487183
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x48716d
cmp dword [ebp - 0x18], 4
jne 0x48716d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x48716d
Function at 0x487190
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.005416e0
mov esi, ecx
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.00544260
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48721f
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x487223
mov ecx, esi
push edi
call fcn.00484ea0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x487206
cmp eax, 2
jne 0x487265
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.00544260
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x48726c
mov ecx, esi
push ebx
jmp 0x4871ff
mov esi, 0x3f4
jmp 0x487206
mov esi, 0xea
jmp 0x487206

Function at 0x487280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.0055b404
add esp, 4
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x487360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx], 0
je 0x487420
cmp dword [esi + 4], 0xffffffff
je 0x487420
lea ecx, [esi + 8]
cmp byte [esi + 0x13], 0
jns 0x487448
mov edx, SysReAllocString
and edx, dword [esi + 0x10]
dec edx
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x14]
mov dword [eax], edx
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
sub eax, ebx
add eax, 0xfffffffe
lea edi, [esi + 0x20]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [ebp - 0x1c], eax
push edx
push ecx
mov dword [ebp - 0x24], ecx
call fcn.00488600
add esp, 8
mov dword [ebp - 0x28], edi
push edi
push ebx
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x487461
test eax, eax
jne 0x487420
mov eax, dword [esi + 0x20]
inc eax
shr eax, 1
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub edx, ecx
sar edx, 1
cmp edx, eax
jbe 0x487452
mov word [ecx + eax*2], 0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
lea eax, [esi + 8]
cmp byte [esi + 0x13], 0
jns 0x48742b
mov eax, dword [eax]
mov word [eax], 0
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x18], eax
je 0x487452
mov word [eax], 0
mov dword [esi + 0x20], 0
xor ebx, ebx
jmp 0x48740c
mov edx, 4
jmp 0x48739e
push 0x6bd9fd
push 0x6bd0bf
call fcn.0057cbd0
mov eax, dword [esi + 0x20]
inc eax
shr eax, 1
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edx, ecx
mov ebx, edi
sub edx, edi
sar edx, 1
cmp eax, edx
jb 0x487492
lea ecx, [esi + 0x14]
inc eax
lea edx, [ebp - 0x16]
mov word [edx], 0
push edx
push eax
call fcn.00487520
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edi, ebx
sub ecx, ebx
add ecx, 0xfffffffe
mov dword [esi + 0x20], ecx
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x14], ebx
mov eax, 0x4000
cmovne eax, ebx
mov dword [ebp - 0x14], eax
push eax
push dword [ebp - 0x24]
call fcn.00488600
add esp, 8
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x4873ec

Function at 0x487500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x48750f
dec eax
mov dword [ecx + 4], eax
pop ebp
jmp fcn.00487360