joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00404b40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x402330
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x402343
xor al, al
jmp 0x402375
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.004020f0
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x402373
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov al, 1
jmp 0x402375
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x41422b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449ca0]
jne 0x414235
repz ret
jmp fcn.00419f1d

Function at 0x424580
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041b36f
and dword [ebp - 4], 0
cmp dword [0x44dc08], 0
mov ebx, eax
jne 0x424631
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4246e2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4246e2
push eax
call fcn.0041b2fd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44dc08], eax
call esi
push eax
call fcn.0041b2fd
mov dword [esp], 0x43cae8
push edi
mov dword [0x44dc0c], eax
call esi
push eax
call fcn.0041b2fd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44dc10], eax
call esi
push eax
call fcn.0041b2fd
pop ecx
mov dword [0x44dc18], eax
test eax, eax
je 0x424631
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b2fd
pop ecx
mov dword [0x44dc14], eax
mov eax, dword [0x44dc14]
cmp eax, ebx
je 0x424689
cmp dword [0x44dc18], ebx
je 0x424689
push eax
call fcn.0041b378
push dword [0x44dc18]
mov esi, eax
call fcn.0041b378
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x424689
test edi, edi
je 0x424689
call esi
test eax, eax
je 0x424680
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424680
test byte [ebp - 0xc], 1
jne 0x424689
or dword [ebp + 0x10], 0x200000
jmp 0x4246c2
mov eax, dword [0x44dc0c]
cmp eax, ebx
je 0x4246c2
push eax
call fcn.0041b378
pop ecx
test eax, eax
je 0x4246c2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4246c2
mov eax, dword [0x44dc10]
cmp eax, ebx
je 0x4246c2
push eax
call fcn.0041b378
pop ecx
test eax, eax
je 0x4246c2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dc08]
call fcn.0041b378
pop ecx
test eax, eax
je 0x4246e2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4246e4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429d50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x449ca0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x429d70
xor eax, eax
jmp 0x429e1c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429e1a
call fcn.00429310
test eax, eax
je 0x429d96
mov eax, 1
jmp 0x429e1c
mov dword [ebp - 0x258], 0
push 0x24c
push 0
lea ecx, [ebp - 0x254]
push ecx
call fcn.00414240
add esp, 0xc
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x429e1a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0xffffffff
je 0x429df1
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp + 0xc]
je 0x429df1
xor eax, eax
jmp 0x429e1c
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004298e0
add esp, 8
test eax, eax
je 0x429e1a
cmp dword [ebp + 0xc], 0xffffffff
jne 0x429e13
mov eax, dword [ebp - 0x238]
jmp 0x429e1c
mov eax, 1
jmp 0x429e1c
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041422b
mov esp, ebp
pop ebp
ret
Function at 0x429ec0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436928
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x449ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 8
lea ecx, [ebp - 0x30]
call fcn.00405050
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405110
mov ecx, dword [ebp - 0x38]
shl ecx, 2
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov byte [ebp - 0xd], 1
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x429f94
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x30]
call fcn.004051f0
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x429f80
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x34]
jb 0x429f71
mov eax, dword [ebp - 0x38]
shl eax, 1
mov dword [ebp - 0x38], eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00405110
mov edx, dword [ebp - 0x38]
shl edx, 2
mov dword [ebp - 0x34], edx
jmp 0x429f7e
mov eax, dword [ebp - 0x18]
shr eax, 2
mov dword [ebp - 0x38], eax
mov byte [ebp - 0xd], 0
jmp 0x429f92
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0
jmp 0x429f24
cmp dword [ebp - 0x14], 0
je 0x429fd3
mov ecx, dword [ebp + 8]
call fcn.004052a0
mov dword [ebp - 0x3c], 0
jmp 0x429fb4
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x38]
jae 0x429fd3
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004051f0
push eax
mov ecx, dword [ebp + 8]
call fcn.00405220
jmp 0x429fab
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004050c0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42a000
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4369cc
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x449ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x14]
call fcn.00429e50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401ce0
movzx ecx, al
test ecx, ecx
je 0x42a17c
lea ecx, [ebp - 0x38]
call fcn.00404ed0
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
push edx
push 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00429e30
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x42a148
movzx ecx, byte [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xe4
add ecx, 0x20
mov dword [ebp - 0x40], ecx
push 0
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x38]
call fcn.00404f60
cmp dword [ebp - 0x18], 0
je 0x42a148
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x42a0ed
mov ecx, dword [ebp - 0x40]
push ecx
push 0
lea ecx, [ebp - 0x38]
call fcn.00405020
push eax
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00429e30
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x20], eax
jmp 0x42a111
mov eax, dword [ebp - 0x40]
push eax
push 0
lea ecx, [ebp - 0x38]
call fcn.00405020
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00429e30
push eax
call sub.PSAPI.DLL_GetModuleBaseNameW
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x40]
jb 0x42a141
mov eax, dword [ebp - 0x40]
shl eax, 1
mov dword [ebp - 0x40], eax
push 0
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00404f60
cmp dword [ebp - 0x20], 0x104
jbe 0x42a13f
mov dword [ebp - 0x18], 0
jmp 0x42a143
jmp 0x42a148
jmp 0x42a0b5
cmp dword [ebp - 0x20], 0
ja 0x42a155
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 1
jne 0x42a16e
push 0
lea ecx, [ebp - 0x38]
call fcn.00405020
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004026d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00404f40
jmp 0x42a183
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
jne 0x42a191
mov ecx, dword [ebp + 0xc]
call fcn.00403000
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00429e80
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42a6a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436f1f
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x449ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 1
lea ecx, [ebp - 0x2c]
call fcn.00402550
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402550
mov byte [ebp - 4], 1
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.004030b0
push eax
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x30], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403110
cmp dword [ebp - 0x30], 0
jne 0x42a731
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004026b0
push str.AdobeARM1.0
lea ecx, [ebp - 0x28]
call fcn.00402710
jmp 0x42a787
push str.SHGetFolderPath_in_UpdateArmFiles_failed
lea ecx, [ebp - 0x44]
call fcn.00402590
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x44]
push ecx
push 1
call fcn.004355e0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00402690
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402690
mov eax, dword [ebp - 0x48]
jmp 0x42a86f
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x24]
call fcn.004082f5
mov byte [ebp - 4], 3
push 0x43d4dc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402e60
add esp, 0xc
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x3c]
call fcn.00404b40
push eax
lea ecx, [ebp - 0x24]
call fcn.004083bc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x42a82b
cmp dword [ebp - 0x38], 0
jne 0x42a82b
lea ecx, [ebp - 0x24]
call fcn.00407fd7
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x24]
call fcn.004082b6
test eax, eax
je 0x42a7ee
jmp 0x42a7c9
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x24]
call fcn.0040867a
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042a260
add esp, 0xc
test eax, eax
jne 0x42a81d
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00402690
jmp 0x42a7c9
lea ecx, [ebp - 0x24]
call fcn.00407ef1
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00402690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0040831e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402690
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42a880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436f4a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x449ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00402550
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004030b0
push eax
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403110
cmp dword [ebp - 0x14], 0
jne 0x42a8fe
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.004026b0
push str.AdobeARM1.0AdobeARM.exe
mov ecx, dword [ebp + 8]
call fcn.00402710
jmp 0x42a948
push str.SHGetFolderPath_in_GetARMExePath_failed:
lea ecx, [ebp - 0x18]
call fcn.00402590
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push 1
call fcn.004355e0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402690
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402690
mov eax, dword [ebp - 0x1c]
jmp 0x42a961
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402690
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x42ab30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x44dd00], eax
mov ecx, dword [ebp + 0x10]
mov dword [0x44dd08], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x44dd04], edx
mov dword [0x44dd18], 0
push 0
push 0
push 0
push 0x42aa80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x42abb0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x449ca0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0x20
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 8
jae 0x42ad4d
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x94]
movzx ecx, byte [eax]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 8
jae 0x42ac44
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x94]
movzx ecx, byte [eax]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0x94], edx
jmp 0x42ac4e
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0x94], 8
jae 0x42ac86
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x94]
movzx edx, byte [ecx]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
jmp 0x42ac90
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x98]
shr edx, 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp + edx*2 - 0x90]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xa0]
shr ecx, 4
mov edx, dword [ebp - 0x98]
and edx, 3
shl edx, 4
or ecx, edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov cx, word [ebp + ecx*2 - 0x90]
mov word [edx + eax*2], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x9c]
shr eax, 6
mov ecx, dword [ebp - 0xa0]
and ecx, 0xf
shl ecx, 2
or eax, ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x90]
mov word [ecx + edx*2], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x9c]
and edx, 0x3f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp + edx*2 - 0x90]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x42abea
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, 0x3d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041422b
mov esp, ebp
pop ebp
ret
Function at 0x42b420
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x449ca0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov byte [ebp - 5], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x10
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42b4f3
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x42b4f3
cmp dword [ebp - 0xc], 0
je 0x42b4f3
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x42b4f3
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 2
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x42b4f3
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042b330
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x42b4f3
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0042abb0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x42b4f3
mov byte [ebp - 5], 1
cmp dword [ebp - 0xc], 0
je 0x42b503
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x10], 0
je 0x42b515
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 5]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041422b
mov esp, ebp
pop ebp
ret
Function at 0x42c170
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
push 0
push 0x80
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x40000000
mov ecx, dword [ebp + 0xc]
call fcn.00404b40
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42c269
mov dword [ebp - 0x18], 0x100000
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00414865
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x42c251
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c251
cmp dword [ebp - 0x10], 0
jbe 0x42c251
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42c230
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00414240
add esp, 0xc
jmp 0x42c1d7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call fcn.00414788
add esp, 4
jmp 0x42c272
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x42c280
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42c2c0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42c2cd
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42c2e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42c372
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
jne 0x42c372
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x42c380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42c3df
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42c8a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x104
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42c951
push 0x208
call fcn.00414865
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xea
jne 0x42c951
mov edx, dword [ebp - 0x14]
push edx
call fcn.00414788
add esp, 4
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.00414865
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42c963
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004026d0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00414788
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret