Function at 0x4ad940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, dword [ebp + 0xc]
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0xb8], eax
movzx eax, byte [esi + 0xb]
test al, al
js 0x4ad30f
and eax, 0x7f
mov edx, esi
jmp 0x4ad314
mov eax, dword [esi + 4]
mov edx, dword [esi]
test eax, eax
js 0x4ad907
test edx, edx
jne 0x4ad328
test eax, eax
jne 0x4ad8f6
lea edi, [esp + 0x50]
mov ecx, edi
push eax
push edx
call fcn.0049c050
mov ecx, edi
call fcn.0049e320
mov ebx, eax
mov ecx, edi
call fcn.0049c100
test bl, bl
je 0x4ad4a5
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4ad357
mov eax, dword [esi]
push 0x22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x40]
movdqa xmmword [ebx], xmm0
mov ecx, ebx
push eax
call fcn.004d4720
cmp dword [ebx + 4], 0
je 0x4ad52f
xor eax, eax
dec eax
lea ebx, [esp + 0x34]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, ebx
mov edx, edi
push str.SIGNATURE.DAT
push str.SIGNATURE_DAT
call 0x4ad940
add esp, 8
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
cmp eax, 2
ja 0x4ad5ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x28]
push eax
push esi
call fcn.00516ab0
add esp, 8
lea ecx, [esp + 0x50]
push esi
push 0x14d
push str.GetTrustJsonFromModule
push 1
call fcn.0045bec0
lea edi, [esp + 0x8c]
mov ecx, edi
push 0x536109
push str.Cannot_find_resource
call fcn.004148f0
lea esi, [esp + 0xac]
push 0xd
push str.SIGNATURE_DAT
push esi
call fcn.004e3de0
add esp, 0xc
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4ad426
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xac]
jmp 0x4ad429
and eax, 0x7f
mov ebx, dword [ebp + 8]
mov ecx, edi
push eax
push esi
call fcn.0047cfe0
cmp byte [esp + 0xb7], 0
jns 0x4ad44e
push dword [esp + 0xac]
call fcn.004e82d5
add esp, 4
lea ecx, [esp + 0x50]
call fcn.0045bf00
cmp byte [esp + 0x33], 0
jns 0x4ad46a
push dword [esp + 0x28]
call fcn.004e82d5
add esp, 4
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4ad49a
mov ecx, dword [esp + 0x38]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x4ad925
mov dword [esp + 0x38], eax
push eax
call fcn.004e82d5
add esp, 4
lea ecx, [esp + 0x40]
call fcn.004d46f0
jmp 0x4ad517
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 0x40]
push eax
push ebx
call fcn.00516ab0
add esp, 8
lea edi, [esp + 0x50]
mov ecx, edi
push ebx
push 0x13d
push str.GetTrustJsonFromModule
push 1
call fcn.0045bec0
lea ecx, [esp + 0x8c]
push 0x536088
push str.Attempting_to_GetTrustJsonFromModule_at_an_invalid_path:
call fcn.004148f0
lea ecx, [esp + 0x58]
push esi
call fcn.00414720
mov ecx, edi
call fcn.0045bf00
cmp byte [ebx + 0xb], 0
jns 0x4ad50a
push dword [esp + 0x40]
call fcn.004e82d5
add esp, 4
xor eax, eax
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 0xac]
push eax
push ebx
call fcn.00516ab0
add esp, 8
lea edi, [esp + 0x50]
mov ecx, edi
push ebx
push 0x146
push str.GetTrustJsonFromModule
push 1
call fcn.0045bec0
lea ecx, [esp + 0x8c]
push 0x5360bb
push str.Failed_to_load_module_for_GetTrustJsonFromModule:
call fcn.004148f0
lea ecx, [esp + 0x58]
push esi
call fcn.00414720
mov ecx, edi
call fcn.0045bf00
cmp byte [ebx + 0xb], 0
jns 0x4ad59a
push dword [esp + 0xac]
call fcn.004e82d5
add esp, 4
xor eax, eax
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp 0x4ad49a
lea esi, [esp + 0x28]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
mov edx, edi
push str.TRUSTED.JSON
push str.TRUSTED_JSON
call 0x4ad940
add esp, 8
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x4ad70f
lea esi, [esp + 0xac]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push ebx
push esi
call fcn.004af510
add esp, 8
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x4ad6a2
lea ecx, [esp + 0x1c]
xor eax, eax
dec eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
call fcn.00484510
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub edx, eax
je 0x4ad8e0
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0xb0]
sub edi, esi
je 0x4ad8e0
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub eax, ebx
cmp eax, 2
jbe 0x4ad8e0
add eax, 0xfffffffe
add ebx, 2
lea ecx, [esp + 0x1c]
push edx
push dword [esp + 0x10]
push edi
push esi
push eax
push ebx
call fcn.004afb20
test al, al
je 0x4ad7d3
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ebx, edi
sub ebx, esi
cmp ebx, 0x7ffffff8
jae 0x4ad938
cmp ebx, 0xa
ja 0x4ad8b1
mov eax, dword [ebp + 8]
mov byte [eax + 0xb], bl
mov ebx, eax
jmp 0x4ad843
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x1c]
push eax
push esi
call fcn.00516ab0
add esp, 8
lea edi, [esp + 0x50]
mov ecx, edi
push esi
push 0x15a
push str.GetTrustJsonFromModule
push 1
call fcn.0045bec0
lea ecx, [esp + 0x8c]
push 0x53614d
push str.Cannot_find_key
call fcn.004148f0
mov ecx, edi
call fcn.0045bf00
cmp byte [esi + 0xb], 0
mov ebx, dword [ebp + 8]
jns 0x4ad700
push dword [esp + 0x1c]
call fcn.004e82d5
add esp, 4
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp 0x4ad853
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x1c]
push eax
push esi
call fcn.00516ab0
add esp, 8
lea ecx, [esp + 0x50]
push esi
push 0x154
push str.GetTrustJsonFromModule
push 1
call fcn.0045bec0
lea edi, [esp + 0x8c]
mov ecx, edi
push 0x536109
push str.Cannot_find_resource
call fcn.004148f0
lea esi, [esp + 0xac]
push 0xc
push str.TRUSTED_JSON
push esi
call fcn.004e3de0
add esp, 0xc
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4ad780
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xac]
jmp 0x4ad783
and eax, 0x7f
mov ebx, dword [ebp + 8]
mov ecx, edi
push eax
push esi
call fcn.0047cfe0
cmp byte [esp + 0xb7], 0
jns 0x4ad7a8
push dword [esp + 0xac]
call fcn.004e82d5
add esp, 4
lea ecx, [esp + 0x50]
call fcn.0045bf00
cmp byte [esp + 0x27], 0
jns 0x4ad7c4
push dword [esp + 0x1c]
call fcn.004e82d5
add esp, 4
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp 0x4ad882
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x10]
push eax
push esi
call fcn.00516ab0
add esp, 8
lea edi, [esp + 0x50]
mov ecx, edi
push esi
push 0x164
push str.GetTrustJsonFromModule
push 1
call fcn.0045bec0
lea ecx, [esp + 0x8c]
push 0x53615a
push str.Verify_error
call fcn.004148f0
mov ecx, edi
call fcn.0045bf00
cmp byte [esi + 0xb], 0
jns 0x4ad82e
push dword [esp + 0x10]
call fcn.004e82d5
add esp, 4
xor eax, eax
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp 0x4ad84a
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
cmp esi, edi
jne 0x4ad83d
mov byte [eax], 0
lea ecx, [esp + 0x1c]
call fcn.004af890
mov eax, dword [esp + 0xac]
test eax, eax
je 0x4ad882
mov ecx, dword [esp + 0xb0]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x4ad925
mov dword [esp + 0xb0], eax
push eax
call fcn.004e82d5
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4ad474
mov ecx, dword [esp + 0x2c]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x4ad925
mov dword [esp + 0x2c], eax
push eax
call fcn.004e82d5
add esp, 4
jmp 0x4ad474
mov eax, ebx
or eax, 7
inc eax
mov dword [esp + 0xc], eax
push eax
call fcn.004e82a5
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [esp + 0xc]
or edx, 0x80000000
mov dword [ecx + 8], edx
mov dword [ecx + 4], ebx
mov ebx, ecx
jmp 0x4ad843
push str.vector___index_out_of_bounds
push 0x52a71f
push 0x601
push str....._third_partylibc_srcinclude_vector
jmp 0x4ad91b
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x13c
jmp 0x4ad916
push str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
push str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
push 0x13a
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x44
push str....._third_partylibc_srcinclude__memoryconstruct_at.h
jmp 0x4ad91b
mov ecx, dword [ebp + 8]
call fcn.004148d0
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ebx, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ad9af
mov edi, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4ad9af
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ad9af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4ad9af
mov ebx, eax
mov ecx, esi
mov edi, dword [ebp - 0x10]
push edi
call fcn.0041da80
mov eax, dword [esi]
cmp dword [esi + 4], eax
je 0x4ad9b9
push edi
push ebx
push eax
call fcn.004ebca0
add esp, 0xc
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push str.vector___index_out_of_bounds
push 0x52a71f
push 0x601
push str....._third_partylibc_srcinclude_vector
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
int3