joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40729e
Capabilities:
Modify service

Disassembly:
push 0xbc
mov eax, 0x42b0ca
call fcn.0041550d
mov esi, ecx
push 0x78
call fcn.00404fd9
mov dword [esp], 0xf003f
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, ebx
jne 0x407350
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040d24d
mov esi, eax
lea eax, [ebp - 0x54]
push 0x4ce
push eax
mov dword [ebp - 4], ebx
call fcn.0040d24d
push 0x42eacc
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.00402a83
mov ecx, esp
mov dword [ebp - 0x10], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.00402ac9
add esp, 0xc
push 2
call fcn.0040cf44
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0x38]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x54]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x70]
call fcn.004023e7
xor al, al
call fcn.004155e5
ret
cmp dword [esi + 0x34], 8
jb 0x40735b
mov esi, dword [esi + 0x20]
jmp 0x40735e
add esi, 0x20
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x4073f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040d24d
mov esi, eax
lea eax, [ebp - 0x54]
push 0x4cf
push eax
mov dword [ebp - 4], 3
call fcn.0040d24d
push 0x42eacc
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.00402a83
mov ecx, esp
mov dword [ebp - 0x10], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 5
call fcn.00402ac9
add esp, 0xc
push 2
call fcn.0040cf44
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0x70]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x54]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x38]
call fcn.004023e7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x407348
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
xor edi, edi
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x4074b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0040d24d
mov esi, eax
lea eax, [ebp - 0xa8]
push 0x4d0
push eax
mov dword [ebp - 4], 6
call fcn.0040d24d
push 0x42eacc
push eax
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 7
call fcn.00402a83
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 8
call fcn.00402ac9
add esp, 0xc
push 2
call fcn.0040cf44
add esp, 0x20
push ebx
push edi
lea esi, [ebp - 0x8c]
call fcn.004023e7
push ebx
push edi
lea esi, [ebp - 0xa8]
call fcn.004023e7
push ebx
push edi
lea esi, [ebp - 0xc4]
call fcn.004023e7
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x10]
call esi
mov al, bl
jmp 0x40734a
mov bl, 1
jmp 0x40749d
Function at 0x408845
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43637c]
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x408898
cmp dword [ebp - 0x1c], 6
jb 0x408898
jbe 0x408885
mov dword [0x4388a8], 3
jmp 0x4088a2
xor eax, eax
inc eax
cmp eax, dword [ebp - 0x18]
sbb eax, eax
neg eax
inc eax
inc eax
mov dword [0x4388a8], eax
jmp 0x4088a2
mov dword [0x4388a8], 1
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00412c50
add ebp, 0x78
leave
ret

Function at 0x4092fb
Capabilities:
Check os version

Disassembly:
push 0x98
mov eax, 0x42a1ca
call fcn.00415576
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov esi, edi
call fcn.004020bb
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
push 2
pop eax
inc ecx
cmp dword [ebp - 0x94], eax
jne 0x40934c
cmp dword [ebp - 0xa0], 6
jb 0x40934c
mov dword [edi + 0x1c], eax
jmp 0x40934f
mov dword [edi + 0x1c], ecx
push 0
push ecx
lea esi, [ebp + 8]
call fcn.004023e7
mov eax, edi
call fcn.004155f9
ret 0x1c
Function at 0x40c2cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [eax + 0x10], 1
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
jne 0x40c2fc
cmp byte [ebp + 8], bl
je 0x40c2f5
push 0x20019
push ebx
push str.SoftwareMacromediaFlashPlayerActiveX
jmp 0x40c313
push 0x20119
jmp 0x40c2ed
cmp byte [ebp + 8], bl
je 0x40c308
push 0x20019
jmp 0x40c30d
push 0x20119
push ebx
push str.SoftwareMacromediaFlashPlayerPlugin
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c349
lea eax, [ebp + 8]
push eax
push esi
push ebx
push ebx
push str.PlayerPath
push dword [ebp - 4]
mov dword [ebp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov al, bl
pop ebx
leave
ret 4
Function at 0x40eb70
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x42a0cd
call fcn.00415576
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x3c], edi
cmp dword [edi + 0x3c], ebx
je 0x40ec89
cmp byte [edi + 0x41], bl
je 0x40ec89
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40eba8
xor al, al
jmp 0x40ec8b
lea esi, [ebp - 0x30]
call fcn.0040e890
lea eax, [edi + 0x44]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea ebx, [ebp - 0x48]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.0040e90c
mov esi, eax
call fcn.0040f4d5
add eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x60]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.0040e90c
mov esi, eax
call fcn.0040f4d5
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x38]
push esi
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x40]
call dword [edx + 0x18]
xor ebx, ebx
sub eax, ebx
je 0x40ec0d
dec eax
je 0x40ec10
dec eax
dec eax
jne 0x40ec79
mov bl, 1
jmp 0x40ec79
mov byte [edi + 0x41], bl
lea ebx, [ebp - 0x58]
lea esi, [ebp - 0x30]
call fcn.0040e90c
mov esi, eax
call fcn.0040f4d5
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov dword [ebp - 0x34], ecx
je 0x40ec55
push dword [edi + 0x4c]
lea ebx, [ebp - 0x50]
push ecx
push 1
lea esi, [ebp - 0x30]
call fcn.0040e90c
mov esi, eax
call fcn.0040f4d5
push eax
call fcn.00414702
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x40ec77
mov ecx, dword [ebp - 0x34]
cmp byte [edi + 0x41], 0
je 0x40ec09
test ecx, ecx
jne 0x40ebb9
push ecx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.0040e8c8
mov edi, dword [ebp - 0x3c]
jmp 0x40ebb9
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004022ef
mov al, bl
jmp 0x40ec8b
mov al, 1
call fcn.004155f9
ret

Function at 0x410ac6
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push esi
push edi
push ecx
push ecx
mov edi, eax
mov eax, esp
mov dword [esp + 0x10], esp
push str.crypt32.dll
call fcn.00410735
call fcn.004111e2
test al, al
jne 0x410aea
xor al, al
jmp 0x410b51
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptVerifyMessageSignature
push dword [edi]
call esi
mov dword [edi + 4], eax
test eax, eax
je 0x410ae6
push str.CryptGetMessageCertificates
push dword [edi]
call esi
mov dword [edi + 8], eax
test eax, eax
je 0x410ae6
push str.CertCreateCertificateContext
push dword [edi]
call esi
mov dword [edi + 0xc], eax
test eax, eax
je 0x410ae6
push str.CertFindCertificateInStore
push dword [edi]
call esi
mov dword [edi + 0x10], eax
test eax, eax
je 0x410ae6
push str.CertVerifySubjectCertificateContext
push dword [edi]
call esi
mov dword [edi + 0x14], eax
test eax, eax
je 0x410ae6
push str.CertFreeCertificateContext
push dword [edi]
call esi
test eax, eax
mov dword [edi + 0x18], eax
setne al
pop edi
pop esi
pop ecx
ret
Function at 0x4111e2
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x429f84
call fcn.00415576
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x411205
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], ebx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp + 8]
call fcn.004108a5
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00410798
lea ecx, [ebp + 8]
mov edx, eax
call fcn.00410798
cmp edx, eax
jne 0x4112d4
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x411279
mov byte [ebp - 0x219], bl
lea eax, [ebp - 0x228]
mov byte [ebp - 4], bl
call fcn.00410785
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 8]
call fcn.00410785
mov al, byte [ebp - 0x219]
call fcn.004155f9
ret 8
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
call fcn.00410735
push ecx
push ecx
lea ecx, [ebp + 8]
mov eax, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], esp
call fcn.00410722
lea ecx, [ebp - 0x230]
call fcn.00410805
push ecx
push ecx
mov ecx, eax
mov eax, esp
mov dword [ebp - 0x220], esp
call fcn.00410722
lea esi, [ebp + 8]
call fcn.004107b9
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00410785
lea ecx, [ebp + 8]
call fcn.004107a8
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [edi], eax
setne byte [ebp - 0x219]
jmp 0x411251
Function at 0x411367
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x429e67
call fcn.0041550d
push 0x10
call fcn.00413395
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 0x42ea84
cmp esi, edi
je 0x4113a9
call fcn.004010c3
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.004010c3
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
jmp 0x4113ab
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [edi + 4], esi
test esi, esi
je 0x4113bb
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [ebp - 4], 2
lea esi, [edi + 0x10]
call fcn.004010c3
mov dword [esi], eax
mov byte [ebp - 4], 3
or dword [edi], 0xffffffff
mov edi, dword [ebp + 0xc]
call fcn.00405117
mov eax, dword [edi]
push 0x4309b4
push eax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00414a9c
add esp, 0xc
test eax, eax
jne 0x411499
cmp dword [ebp - 0x10], ebx
je 0x411499
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 4
push 1
push eax
call fcn.00414d8f
add esp, 0x10
cmp eax, 4
je 0x411425
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
jmp 0x411490
push 3
pop ecx
mov edi, 0x4309c0
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x411444
mov eax, dword [ebp + 8]
push ebx
mov dword [eax], 1
push 3
jmp 0x411463
mov cx, word [ebp - 0x14]
mov eax, 0x4309b8
cmp cx, word [eax]
je 0x41147b
mov eax, 0x4309bc
cmp cx, word [eax]
je 0x41147b
mov eax, dword [ebp + 8]
push ebx
mov dword [eax], ebx
push ebx
push dword [ebp - 0x10]
call fcn.00414860
add esp, 0xc
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.004114a4
jmp 0x411490
mov ecx, dword [ebp + 8]
push 2
pop eax
push ebx
push eax
push dword [ebp - 0x10]
mov dword [ecx], eax
call fcn.00414860
add esp, 0xc
push dword [ebp - 0x10]
call fcn.0041495c
pop ecx
mov eax, dword [ebp + 8]
call fcn.004155e5
ret 8
Function at 0x4115e3
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429e01
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x43637c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
add esi, 4
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov ebx, 0x42ea84
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
call fcn.004010c3
mov dword [esp + 0x14], eax
and dword [esp + 0x38], 0
xor bl, bl
mov ecx, dword [esp + 0x24]
xor al, al
cmp dword [esp + 0x20], ecx
je 0x411649
inc al
cmp esi, esi
je 0x41164f
mov al, 1
test al, al
je 0x4116b9
lea esi, [esp + 0x18]
mov eax, ecx
call fcn.004119fa
mov edi, eax
lea esi, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00405117
mov byte [esp + 0x38], 0
cmp dword [esp + 0x18], 0
je 0x411684
push dword [esp + 0x18]
call fcn.00412f89
pop ecx
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
call fcn.00411330
test al, al
je 0x4116a6
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
add esi, 4
call fcn.00405117
mov bl, 1
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
test bl, bl
je 0x41163b
test bl, bl
jne 0x4116f9
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
push ecx
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.004010c3
mov dword [edi], eax
mov eax, dword [ebp + 8]
push ecx
mov byte [esp + 0x40], 2
mov ebx, dword [eax]
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.004010c3
mov dword [edi], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x44], 0
call fcn.004118a5
cmp dword [esp + 0x14], 0
je 0x41170a
push dword [esp + 0x14]
call fcn.00412f89
pop ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412c50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43637c]
jne 0x412c5a
repz ret
jmp fcn.00418cbc
Function at 0x423aa4
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.00419328
and dword [ebp - 4], 0
cmp dword [0x43879c], 0
mov ebx, eax
jne 0x423b55
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423c06
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x423c06
push eax
call fcn.004192b6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43879c], eax
call esi
push eax
call fcn.004192b6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4387a0], eax
call esi
push eax
call fcn.004192b6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4387a4], eax
call esi
push eax
call fcn.004192b6
pop ecx
mov dword [0x4387ac], eax
test eax, eax
je 0x423b55
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004192b6
pop ecx
mov dword [0x4387a8], eax
mov eax, dword [0x4387a8]
cmp eax, ebx
je 0x423bad
cmp dword [0x4387ac], ebx
je 0x423bad
push eax
call fcn.00419331
push dword [0x4387ac]
mov esi, eax
call fcn.00419331
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423bad
test edi, edi
je 0x423bad
call esi
test eax, eax
je 0x423ba4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423ba4
test byte [ebp - 0xc], 1
jne 0x423bad
or dword [ebp + 0x10], 0x200000
jmp 0x423be6
mov eax, dword [0x4387a0]
cmp eax, ebx
je 0x423be6
push eax
call fcn.00419331
pop ecx
test eax, eax
je 0x423be6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423be6
mov eax, dword [0x4387a4]
cmp eax, ebx
je 0x423be6
push eax
call fcn.00419331
pop ecx
test eax, eax
je 0x423be6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43879c]
call fcn.00419331
pop ecx
test eax, eax
je 0x423c06
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423c08
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x68e370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x68e38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x6b7074
push ecx
mov edi, eax
call fcn.006a2198
mov esi, eax
add esp, 8
test esi, esi
jne 0x68e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006a202e
push esi
call fcn.006a1fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x691850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x6918ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x6bc720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6918ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.006a21e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x6918ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6bc720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x69192a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.006a3082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x691957
mov word [eax], si
add eax, 2
push eax
call fcn.006a3030
add esp, 4
jmp 0x691959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x6918ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6918b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x691ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x692080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6920c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6b7458
push ecx
call fcn.006a21e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006a21e1
add esp, 0x10
jmp 0x6920d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006a220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006a1dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00692050
mov eax, dword [0x6bc728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x69213b
push esi
call fcn.00691fb0
add esp, 4
mov dword [0x6bc728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x69214c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00691ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x695440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6954b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x69548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x695471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x69547e
add edx, ecx
cmp ebx, edx
jb 0x69548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x695467
xor ecx, ecx
jmp 0x6954a2
test eax, eax
jne 0x695492
xor ecx, ecx
jmp 0x6954a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.006953c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6958f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x695921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x695946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x69596e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x695993
push ecx
push esi
call fcn.006954c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x696c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x696c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x696c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x696c38
add edx, eax
cmp ebx, edx
jb 0x696c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x696c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x696c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x696c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x696cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x696c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x696ca8
add edx, ecx
cmp ebx, edx
jb 0x696cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x696c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x696f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.006a3145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x696ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x696fdd
lea eax, [esp + 0x18]
push eax
jmp 0x696fe2
push 0x6bc720
call fcn.006a2fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x696fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x696f40
push 4
push ecx
push eax
call fcn.006a343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret