joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482b70
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
push edi
mov dword [0x55abd8], ecx
call fcn.00465500
mov ecx, dword [0x55abd4]
xor edi, edi
cmp ecx, edi
jne 0x482c43
push 0x1fa8
call fcn.00531ba5
mov esi, eax
add esp, 4
cmp esi, edi
je 0x482c3b
mov ecx, esi
call fcn.0040f8f0
mov dword [esi + 0x1c], 0x5409b0
mov eax, dword [0x546560]
mov dword [esi + 0x20], eax
mov ecx, dword [0x546560]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x48], edi
lea ebx, [esi + 0x54]
mov ebp, 0x40
mov ecx, ebx
call fcn.0044d860
add ebx, 0x7c
dec ebp
jne 0x482bd0
lea ecx, [esi + 0x1f54]
call fcn.00446970
mov edx, dword [0x546560]
lea ecx, [esi + 0x1f9c]
lea ebx, [esi + 0x38]
xor eax, eax
mov dword [ecx], edx
xor edx, edx
mov dword [ebx], eax
push 0x553dd8
mov dword [esi], 0x54126c
mov dword [esi + 0x1c], 0x541268
mov dword [ebx + 4], edx
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [ebx + 8], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1fa4], edi
mov dword [ebx + 0xc], eax
call fcn.00433000
mov dword [esi + 0x1fa0], edi
mov ecx, esi
jmp 0x482c3d
xor ecx, ecx
mov dword [0x55abd4], ecx
call fcn.00452ce0
mov eax, dword [0x55abd4]
mov ebp, dword [esp + 0x14]
cmp ebp, edi
mov dword [eax + 0x28], 0x482d20
je 0x482c67
mov ecx, dword [0x55abd4]
call fcn.00452cf0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x54bcb8
call ebx
mov ecx, dword [0x55abd4]
push 0x54bcb0
mov dword [ecx + 0x1fa4], 1
call ebx
mov edx, dword [0x55abd4]
cmp dword [edx + 4], edi
jne 0x482cee
push str.Create_1_n
call ebx
mov eax, dword [0x55abd4]
mov dword [eax + 8], eax
lea esi, [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x55e32c
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x55e360]
push 0x55e32c
mov dword [esi + 8], eax
mov dword [0x55e360], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x55e300]
push edi
push 0x414350
push edi
push 0x85
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp ebp, edi
jne 0x482d04
mov edx, dword [0x55abd4]
push 5
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x54bc94
call ebx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x483b40
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, ecx
xor edx, edx
push edi
lea ebp, [esi + 0x1c]
mov dword [esi + 4], edx
mov ecx, 0x16
xor eax, eax
mov edi, ebp
mov dword [esi + 0x18], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x128]
mov ecx, 0x44
mov dword [esi + 0x74], eax
xor eax, eax
lea edi, [esp + 0x14]
lea ebx, [esi + 0x278]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov word [ebx], dx
push ecx
mov word [esi + 0x78], dx
mov dword [ebp], 0x58
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x483bb9
mov eax, dword [esp + 0x14]
cmp eax, 5
jae 0x483bc0
cmp eax, 4
jne 0x483bb9
cmp dword [esp + 0x18], 0x5a
jae 0x483bc0
mov dword [ebp], 0x4c
mov edx, dword [esp + 0x12c]
mov ecx, dword [esp + 0x138]
lea eax, [esi + 0x78]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x134]
or eax, 0x880020
mov dword [esi + 0x3c], 0x104
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x13c]
mov dword [esi + 0x58], edx
mov dword [esi + 0x44], 0x100
mov dword [esi + 0x28], ecx
mov edx, dword [0x55e300]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x130]
test eax, eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x60], 0x414350
je 0x483c2c
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x18
Function at 0x48b720
Capabilities:
Print debug messages

Disassembly:
push ecx
mov eax, dword [0x546560]
mov ecx, 0x5466c0
test ecx, ecx
push esi
mov dword [esp + 4], eax
je 0x48b787
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x48b787
lea edx, [esi + esi + 0xe]
push edx
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x48b787
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
inc esi
push esi
push 0x5466c0
push eax
mov dword [esp + 0x10], eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 4]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405a90
mov eax, dword [esp + 4]
mov edx, dword [0x546564]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48b7ca
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x48b7ca
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0xc]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48b800
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x48b800
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop esi
pop ecx
ret 4
Function at 0x48b970
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push edi
push 0x2c
call fcn.00531ba5
xor edi, edi
add esp, 4
cmp eax, edi
je 0x48b98e
mov ecx, eax
call fcn.0048b130
mov ebx, eax
jmp 0x48b990
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], eax
mov edx, dword [ecx]
cmp ebp, edi
mov dword [ebx + 0x18], edx
jne 0x48b9cc
lea ecx, [esp + 0x24]
call fcn.0050fe40
pop edi
pop ebp
xor eax, eax
pop ebx
ret
push esi
lea esi, [esp + 0x28]
neg esi
sbb esi, esi
lea eax, [esp + 0x2c]
and esi, eax
mov eax, dword [0x553dd0]
cmp eax, edi
jne 0x48b9f1
push 0x553dd0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
jmp 0x48b9f7
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x20], edi
mov eax, dword [0x553dd0]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [0x553dd0]
cmp eax, edi
je 0x48ba22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test eax, eax
jne 0x48ba22
mov dword [0x553dd0], edi
mov dword [ebx + 0x20], edi
mov eax, dword [esi]
cmp eax, edi
je 0x48ba9a
mov eax, dword [0x553dd0]
cmp eax, edi
jne 0x48ba41
push 0x553dd0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
jmp 0x48ba47
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [0x553dd0]
mov edx, dword [esi]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x48ba80
mov eax, dword [0x553dd0]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, edi
mov dword [ebx + 0x20], eax
mov esi, dword [esi]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x553dd0]
test eax, eax
je 0x48ba98
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test eax, eax
jne 0x48ba98
mov dword [0x553dd0], eax
xor edi, edi
mov edx, dword [ebp]
lea eax, [ebx + 4]
push eax
push 0x5423a4
push ebp
call dword [edx]
mov ecx, dword [ebp]
push ebp
call dword [ecx + 4]
lea eax, [ebx + 0x28]
mov dword [ebx + 0x24], edi
push eax
push edi
push ebx
push 0x48b950
push edi
push edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x28]
call fcn.0050fe40
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x48dbb0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x55ced8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x546560]
push esi
lea edx, [esp + 0x1c]
push 0x547b34
push edx
mov dword [esp + 0x24], ecx
call fcn.00405cb0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push edi
push ebx
push ecx
call fcn.0048def0
mov edx, dword [esp + 0x30]
push edx
call fcn.0053183e
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0x20
cmp eax, 0xffffffff
je 0x48dc26
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x48dc26
cmp esi, eax
jle 0x48dc20
mov esi, eax
cmp esi, ecx
jge 0x48dc26
mov esi, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48dc57
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48dc57
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48dc82
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48dc82
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x48dcd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x204
mov eax, dword [0x546560]
push esi
push edi
mov edi, dword [esp + 0x218]
test edi, edi
mov dword [esp + 8], eax
je 0x48dda7
mov ecx, edi
shr ecx, 0x10
jne 0x48dd75
lea edx, [esp + 0xc]
and edi, 0xffff
push 0x100
push edx
push edi
call fcn.00412530
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x48dd29
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.00405920
jmp 0x48dda7
push 0x1ff
lea ecx, [esp + 0xc]
mov esi, 0x200
call fcn.00413620
test eax, eax
je 0x48dd68
push esi
push eax
push edi
call fcn.00412530
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x48dd68
add esi, 0x100
lea ecx, [esp + 8]
lea edx, [esi - 1]
push edx
call fcn.00413620
test eax, eax
jne 0x48dd40
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00405bb0
jmp 0x48dda7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x48dda7
push esi
lea ecx, [esp + 0xc]
call fcn.00405530
test eax, eax
je 0x48dda7
lea ecx, [esi + esi]
mov esi, edi
mov edi, dword [esp + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 8]
push ebx
push ebp
mov esi, 0xfb8
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x48ddc2
cmp dword [eax - 4], esi
jge 0x48de1b
mov ebx, dword [eax - 8]
cmp ebx, esi
jle 0x48de88
test ebx, ebx
mov esi, ebx
jne 0x48de88
mov eax, dword [0x546560]
lea ecx, [ebx + ebx + 2]
lea esi, [ebp + 0xc]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebx
mov eax, dword [0x546564]
cmp ebp, eax
je 0x48de1b
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48de1b
push ebp
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [0x55ced8]
mov edx, dword [esp + 0x220]
push ecx
mov ecx, dword [esp + 0x21c]
push 0xfb8
push edx
push eax
mov eax, dword [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x546564]
mov esi, eax
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x48de7d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48de7d
mov eax, dword [esp + 8]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x204
ret
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.00531ba5
add esp, 4
test eax, eax
je 0x48deb4
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
jmp 0x48dddc
xor eax, eax
jmp 0x48de1f
Function at 0x48e340
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x55cee8]
sub esp, 0xc
test eax, eax
push esi
push edi
je 0x48e3a6
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48e378
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x48e378
push esi
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x48e39c
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x48e39c
push esi
call fcn.00531732
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 8
lea eax, [esp + 0xc]
xor esi, esi
push eax
call fcn.0048ee00
mov eax, dword [eax]
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SHChangeNotifyDeregister
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48e3df
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [0x546564]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48e411
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x48e411
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov edi, dword [esp + 0x20]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [esp + 0x20]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
mov dword [esp + 0x24], eax
je 0x48e442
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x546564]
lea ecx, [ebx - 0xc]
cmp ecx, eax
je 0x48e461
lea esi, [ebx - 0xc]
push esi
call ebp
test eax, eax
jg 0x48e461
push esi
call fcn.00531732
add esp, 4
mov eax, dword [0x546564]
lea edx, [edi - 0xc]
cmp edx, eax
pop ebx
je 0x48e481
lea esi, [edi - 0xc]
push esi
call ebp
test eax, eax
jg 0x48e481
push esi
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x20]
pop ebp
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x48fe00
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x48fe34
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], 0
test eax, eax
je 0x48fe2d
cmp eax, 0xffffffff
je 0x48fe2d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
pop esi
ret

Function at 0x48fe90
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ecx
mov eax, dword [0x55ceec]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], edi
jne 0x48fed2
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48feca
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48feca
push esi
call fcn.00531732
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
push ebx
lea ebx, [edi + 0x3c]
mov dword [edi + 0x34], edx
push ebp
mov eax, dword [ebx]
cmp eax, esi
je 0x48ff79
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
mov edx, dword [0x546564]
jge 0x48ff03
lea ebp, [eax - 0xc]
cmp ebp, edx
jne 0x48ff0c
cmp dword [esi - 0xc], 0
lea ebp, [esi - 0xc]
jge 0x48ff48
mov ebp, dword [esi - 8]
mov ecx, ebx
push ebp
call fcn.00405660
test eax, eax
je 0x48ff79
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
jmp 0x48ff79
add eax, 0xfffffff4
cmp eax, edx
je 0x48ff70
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48ff68
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.00531732
add esp, 4
mov ecx, dword [0x546560]
mov dword [ebx], ecx
push ebp
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, edi
mov dword [edi + 0x2c], edx
mov dword [edi + 0x30], eax
call fcn.0048fe00
mov ebx, dword [ebx]
mov eax, dword [ebx - 8]
test eax, eax
je 0x48ffc0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48ffc0
test al, 0x10
je 0x48ffc0
lea ecx, [edi + 0x28]
push ecx
push 0
push edi
push 0x48fff0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
mov eax, dword [0x546564]
lea edx, [esi - 0xc]
pop ebp
cmp edx, eax
pop ebx
je 0x48ffe5
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48ffe5
push esi
call fcn.00531732
add esp, 4
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x10
Function at 0x490800
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1210
call fcn.00531740
push ebp
push esi
mov esi, dword [esp + 0x121c]
push edi
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [esi + eax*2]
mov eax, dword [0x553d9c]
mov dword [esp + 0x21c], eax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x220]
cmp esi, ebp
rep stosd dword es:[edi], eax
jae 0x490923
push ebx
cmp word [esi], 0x25
jne 0x4908d6
mov dword [esp + 0x14], esi
add esi, 2
cmp esi, ebp
mov ebx, esi
jae 0x4908f9
cmp word [esi], 0x25
jne 0x4908a2
mov word [esi], 0
mov ecx, dword [0x553d9c]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1c]
push 0x208
push edx
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4908ab
mov word [esi], 0x25
add esi, 2
cmp esi, ebp
jb 0x490866
jmp 0x4908f9
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x220]
push ecx
push edx
mov word [eax], 0x25
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [esp + 0x10], 1
mov word [esi], 0x25
jmp 0x4908f9
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov cx, word [esi]
mov word [esp + eax*2 + 0x220], cx
mov word [esp + eax*2 + 0x222], 0
add esi, 2
cmp esi, ebp
jb 0x49084b
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x490923
mov eax, dword [esp + 0x1220]
lea edx, [esp + 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1210
ret

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

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49095e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x49095a
call esi
cmp eax, 3
je 0x49095a
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
and al, 0x10
pop esi
neg al
sbb eax, eax
neg eax
inc eax
ret
Function at 0x4909f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x83c
push ebx
mov edx, dword [esp + 0x844]
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xc]
push edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x85c]
mov ecx, dword [0x553d9c]
or ah, 2
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], ecx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x2c], str._UserProfile_
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x48]
push 0x2e
push eax
call fcn.0053239a
add esp, 8
test eax, eax
je 0x490a6d
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], ecx
mov eax, dword [0x55cef4]
xor esi, esi
mov ebx, dword [eax - 8]
cmp ebx, esi
je 0x490ae9
mov ecx, dword [eax - 0xc]
push ebp
lea ebp, [eax - 0xc]
cmp ecx, 1
jg 0x490a8c
cmp dword [eax - 4], esi
jge 0x490ae2
cmp ebx, esi
jle 0x490a96
jne 0x490b24
mov edi, dword [0x546560]
lea ecx, [ebx + ebx + 2]
lea esi, [ebp + 0xc]
mov eax, ecx
mov dword [0x55cef4], edi
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, dword [0x55cef4]
mov dword [ecx - 8], ebx
mov eax, dword [0x546564]
cmp ebp, eax
je 0x490add
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x490add
push ebp
call fcn.00531732
add esp, 4
mov eax, dword [0x55cef4]
xor esi, esi
mov dword [esp + 0x28], eax
pop ebp
mov edx, dword [esp + 0x850]
mov eax, dword [esp + 0x854]
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
add esp, 0x83c
ret
lea edx, [ebx + ebx + 0xe]
push edx
call fcn.00531ba5
add esp, 4
cmp eax, esi
je 0x490b4e
mov dword [eax], 1
mov word [eax + ebx*2 + 0xc], si
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea edi, [eax + 0xc]
jmp 0x490a9c
xor eax, eax
jmp 0x490ae4
Function at 0x498be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov ecx, dword [esp + 0x810]
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor esi, esi
push eax
push 0xf003f
push esi
push ecx
push SHChangeNotifyDeregister
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x498d76
mov edx, dword [0x553d9c]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x24], esi
push esi
mov esi, dword [esp + 0x20]
push 0x553d98
push esi
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [0x546560]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
lea ecx, [esp + 0x20]
mov edi, esp
test ecx, ecx
mov dword [edi], eax
je 0x498cc1
lea edx, [esp + 0x20]
shr edx, 0x10
jne 0x498c8d
xor eax, eax
lea ecx, [esp + 0x20]
mov ax, cx
mov ecx, edi
push eax
call fcn.00413c90
jmp 0x498cc1
lea edx, [esp + 0x20]
push edx
call ebp
mov ebx, eax
test ebx, ebx
je 0x498cc1
push ebx
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x498cc1
mov edi, dword [edi]
lea ecx, [ebx + ebx]
mov eax, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
call fcn.004b9470
add esp, 4
cmp eax, 1
jne 0x498d6b
lea ecx, [esp + 0x1c]
test ecx, ecx
jne 0x498cde
xor ebp, ebp
jmp 0x498ce7
lea edx, [esp + 0x1c]
push edx
call ebp
mov ebp, eax
mov ebx, dword [esp + 0x824]
push ebp
mov ecx, ebx
call fcn.00405660
test eax, eax
je 0x498d25
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x1c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
test esi, esi
je 0x498d30
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x820]
mov ecx, dword [0x546564]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x498d5b
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x498d5b
push esi
call fcn.00531732
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret
test esi, esi
je 0x498d76
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x820]
mov eax, dword [0x546564]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x498da0
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x498da0
push esi
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80c
ret