joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403750
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ecx
push esi
push esi
push esi
push 0x1000002
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x403790
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x403826
push edi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4037b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40381e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40380f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40380f
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], esi
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x4227e0
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40380f
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x4227e4
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x403817
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
pop ebx
call fcn.0041043e
mov esp, ebp
pop ebp
ret
Function at 0x403850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, 0x400000
push 0x10
cmovne esi, eax
mov dword [ebp - 0x18], ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40394f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40394f
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4227e0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40394f
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x4227e4
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
je 0x403913
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0Edition
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403913
push dword [ebp - 0x10]
call fcn.0041477a
add esp, 4
mov dword [ebx], eax
test edi, edi
je 0x40393c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0SubEdition
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40393c
push dword [ebp - 0x10]
push 0x40
push edi
call fcn.00413b76
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041043e
mov esp, ebp
pop ebp
ret

Function at 0x404270
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x403eb0
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4042ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x4042b8
lock inc dword [0x42c9b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret

Function at 0x4042d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x404040
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40430b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x404318
lock inc dword [0x42c9b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret
Function at 0x407750
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421920
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push 8
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407853
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x19
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 3
mov edx, 8
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410563
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x14]
push esi
push 0x19
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x407875
mov ebx, dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x407897
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
dec eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push esi
mov ebx, dword [eax]
call fcn.0041056c
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret
push str.Unable_to_open_process_token_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x30]
push eax
call fcn.004118ba
push str.Unable_to_retrieve_process_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x30]
push eax
call fcn.004118ba
push str.Unable_to_verify_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x40]
push eax
call fcn.004118ba
int3
Function at 0x407cb0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4219c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x407d99
cmp dword [ebp - 0x14], 0
jl 0x407d11
jg 0x407d02
cmp dword [ebp - 0x18], 0x40000000
jbe 0x407d11
push str.Unable_to_process_files_over_1GB_
push 0xdf
jmp 0x407da5
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x407d2f
push str.Unable_to_open_file_mapping_
jmp 0x407d9e
mov dword [ebp - 0x2c], esi
push 0
push 0
push 0
push 4
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x407d55
push str.Unable_to_open_file_mapping_
jmp 0x407d9e
mov dword [ebp - 0x30], edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
push edi
call fcn.00407dc0
add esp, 0xc
mov bl, al
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret
push str.Unable_to_determine_file_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x28]
push eax
call fcn.004118ba
int3
Function at 0x408660
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421a38
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], esi
mov dword [esi], 0
movups xmm0, xmmword [str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider]
mov eax, dword [0x4238fc]
mov dword [ebp - 0x40], eax
mov ax, word [0x423900]
movups xmmword [ebp - 0x70], xmm0
push 0x2a
movups xmm0, xmmword [0x4238dc]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3a]
push 0
movups xmmword [ebp - 0x60], xmm0
push eax
movups xmm0, xmmword [0x4238ec]
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00411760
add esp, 0xc
call fcn.004078c0
cmp eax, 0x5020000
jae 0x4086fc
push str.__Prototype_
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xf0000040
push 0x18
lea eax, [ebp - 0x70]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x408747
mov eax, dword [esi]
mov ecx, dword [ebp - 0x74]
mov dword [esi], ecx
test eax, eax
je 0x40872b
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret
push str.Unable_to_acquire_cryptographic_provider_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x88]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x88]
push eax
call fcn.004118ba
int3
Function at 0x4087b0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421a79
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov edi, dword [ebp + 0xc]
push 0
push 0
push eax
push 0
push 1
mov dword [ebp - 0x20], esi
push 0
mov dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408872
lea ecx, [ebp - 0x15]
xorps xmm0, xmm0
push ecx
movq qword [esi], xmm0
mov ecx, esi
push eax
mov dword [esi + 8], 0
call fcn.004085c0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push dword [esi]
mov dword [ebp - 0x1c], 1
push 1
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x408894
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x30]
push eax
call fcn.004118ba
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x30]
push eax
call fcn.004118ba
int3
Function at 0x4088c0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421ac9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0
movlpd qword [ebp - 0x18], xmm0
call fcn.00408660
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x408a12
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x40894d
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x408a34
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push 4
push esi
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408a56
lea eax, [ebp - 0x22]
mov byte [ebp - 0x21], 0
push eax
lea eax, [ebp - 0x21]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x20]
movq qword [edi], xmm0
mov ecx, edi
mov dword [edi + 8], 0
call fcn.00408520
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], 2
push eax
push dword [edi]
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408a78
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4089e4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4089f4
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret
push str.Unable_to_create_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x3c]
push eax
call fcn.004118ba
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x4c]
push eax
call fcn.004118ba
push str.Unable_to_determine_digest_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x4c]
push eax
call fcn.004118ba
push str.Unable_to_retrieve_digest_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x3c]
push eax
call fcn.004118ba
int3
Function at 0x408af0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421afc
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x42ca54]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x42c9dc]
cmp eax, dword [ecx + 4]
jg 0x408b71
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 8
push dword [0x42c9d8]
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x408bbb
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041043e
mov esp, ebp
pop ebp
ret
push 0x42c9dc
call fcn.0041034a
add esp, 4
cmp dword [0x42c9dc], 0xffffffff
jne 0x408b34
mov ecx, 0x42c9d8
mov dword [ebp - 4], 0
call fcn.00408660
push 0x421ec0
call fcn.004107d9
push 0x42c9dc
mov dword [ebp - 4], 0xffffffff
call fcn.00410300
add esp, 8
jmp 0x408b34
push str.Unable_to_generate_random_number_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407680
push 0x42a06c
lea eax, [ebp - 0x28]
push eax
call fcn.004118ba
int3
Function at 0x106f370
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 0x106f38e
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 0x1098074
push ecx
mov edi, eax
call fcn.01083198
mov esi, eax
add esp, 8
test esi, esi
jne 0x106f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0108302e
push esi
call fcn.01082fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x1072850
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 0x10728ae
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 0x109d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x10728ba
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.010831e1
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 0x10728ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x109d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x107292a
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.01084082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x1072957
mov word [eax], si
add eax, 2
push eax
call fcn.01084030
add esp, 4
jmp 0x1072959
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 0x10728ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x10728b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x1072ff0
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 0x1073080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x10730c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x1098458
push ecx
call fcn.010831e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.010831e1
add esp, 0x10
jmp 0x10730d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0108320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.01082dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.01073050
mov eax, dword [0x109d728]
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 0x107313b
push esi
call fcn.01072fb0
add esp, 4
mov dword [0x109d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x107314c
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.01072ff0
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 0x1076440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x10764b7
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 0x107648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1076471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x107647e
add edx, ecx
cmp ebx, edx
jb 0x107648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1076467
xor ecx, ecx
jmp 0x10764a2
test eax, eax
jne 0x1076492
xor ecx, ecx
jmp 0x10764a2
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.010763c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x10768f0
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 0x1076921
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 0x1076946
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 0x107696e
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 0x1076993
push ecx
push esi
call fcn.010764c0
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