joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c08bec3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c08bf0d
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c08beb4
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c08bec3
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5c491b66
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5c08bf14
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5c072d8a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c08bfb3
add edi, 4
add eax, 2
dec ecx
jne 0x5c08bef9
call 0x5c08bf60
loope 0x5c08bf56
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c08bfb0
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5c08bfc1
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5c08bf74
cmp eax, ecx
ja 0x5c08bf74
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c08bffe
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c08bff4
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5c073269
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4f4690
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x97000]
mov dword [edi + 0xcf740], 0x25eb0b03
push edi
jmp 0x4f46ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f46c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f46b0
mov eax, 1
add ebx, ebx
jne 0x4f46d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f46e4
jne 0x4f4703
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f4703
dec eax
add ebx, ebx
jne 0x4f46f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f46c8
add ebx, ebx
jne 0x4f46ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f4755
xor ecx, ecx
sub eax, 3
jb 0x4f471b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f478a
sar eax, 1
mov ebp, eax
jmp 0x4f4726
add ebx, ebx
jne 0x4f4726
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f46f4
inc ecx
add ebx, ebx
jne 0x4f4734
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f46f4
add ebx, ebx
jne 0x4f4741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f4736
jne 0x4f4752
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f4736
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f4774
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f4766
jmp 0x4f46b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f4774
add edi, ecx
jmp 0x4f46b6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f4792
cmp byte [edi], 0x11
jne 0x4f4792
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f4797
lea edi, [esi + 0xed000]
mov eax, dword [edi]
or eax, eax
je 0x4f480f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x103cd8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x103e54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f47c4
mov ecx, edi
jns 0x4f47f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x103e58]
or eax, eax
je 0x4f4809
mov dword [ebx], eax
add ebx, 4
jmp 0x4f47e1
call dword [esi + 0x103e68]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f4840
cmp al, 0xef
ja 0x4f4833
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f4815
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f4822
mov ebp, dword [esi + 0x103e5c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f4874
sub esp, 0xffffff80
jmp 0x420577
Function at 0x402520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00410f98

Function at 0x403300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x1c
mov dword [ebp - 4], edi
mov dword [edi], 0
call fcn.00406d7c
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x4033b2
mov eax, dword [0x5cd868]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov dword [esi], vtable.CThread.0
mov dword [esi + 0x10], 1
mov byte [esi + 0x14], 0
test eax, eax
jne 0x403365
push 0xffff
call dword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov dword [0x5cd868], eax
cmp eax, 0x20
jne 0x40336f
or edx, 0xffffffff
jmp 0x403379
mov edx, 1
mov ecx, eax
shl edx, cl
dec edx
push 0
push 0
push 0
push 0
mov dword [esi + 0x18], edx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push eax
push 4
push esi
push 0x406be0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov eax, edi
mov dword [edi], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x404640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x404669
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40467f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404676
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4046b2
nop
cmp esi, ecx
jae 0x404676
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4046a0
cmp esi, ecx
jae 0x404676
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.00416a19
mov ebx, eax
test ebx, ebx
jne 0x404780
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x404853
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404853
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404853
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4047e4
cmp esi, ecx
jae 0x404853
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4047d2
cmp esi, ecx
jae 0x404853
movzx eax, word [esi]
test ax, ax
je 0x404853
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40481a
push edi
mov ecx, ebx
call fcn.00402700
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40481d
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00546fc7
push eax
call fcn.004046d0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40485e
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402a40
int3
Function at 0x404b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55df88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5c4fc8]
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, ecx
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push eax
lea edx, [ebp - 0x14]
call fcn.004066f0
add esp, 4
test eax, eax
je 0x404caa
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 8
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.004173df
push 0x3e0
call fcn.00406d7c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x404c50
push 0x3e0
push 0
push ebx
call fcn.00540e60
add esp, 0xc
mov ecx, ebx
call fcn.00418e16
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x120]
mov dword [ebx], vtable.CMainFrame.0
call fcn.0041cac3
lea edi, [ebx + 0x1f8]
mov byte [ebp - 4], 2
mov ecx, edi
mov dword [ebp - 0x28], edi
call fcn.00408c7e
lea esi, [edi + 0x80]
mov byte [ebp - 4], 3
mov ecx, esi
mov dword [edi], vtable.CChildView.0
mov dword [ebp - 0x2c], esi
call fcn.0041cda2
lea eax, [edi + 0x1d8]
mov dword [esi], vtable.CThreadsListCtrl.0
mov dword [esi + 0x150], eax
mov esi, dword [ebp - 0x20]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x404c52
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x404c61
xor eax, eax
jmp 0x404caf
push 0
push 0
mov dword [esi + 0x20], ebx
mov ecx, ebx
mov eax, dword [ebx]
push 0xcf0000
push 0x80
call dword [eax + 0x168]
push 0x206
push 0x190
push 0x280
push 0
push 0
push 0
mov ecx, ebx
call fcn.00410431
push 5
mov ecx, ebx
call fcn.004104e0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
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.0053e7e5
mov esp, ebp
pop ebp
ret
Function at 0x4066f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor edi, edi
test ebx, ebx
je 0x4067a9
mov eax, dword [ebp + 8]
test eax, eax
je 0x4067a9
xor esi, esi
cmp dword [ebx], esi
jle 0x40678a
nop dword [eax]
nop dword [eax + eax]
push 0x5a5e94
push dword [eax + esi*4]
call fcn.0054748e
add esp, 8
test eax, eax
je 0x40674f
mov eax, dword [ebp + 8]
push str._accepteula
push dword [eax + esi*4]
call fcn.0054748e
add esp, 8
test eax, eax
je 0x40674f
xor edi, edi
jmp 0x406754
mov edi, 1
mov ecx, dword [ebx]
mov dword [ebp - 4], edi
test edi, edi
jne 0x406767
mov eax, dword [ebp + 8]
inc esi
cmp esi, ecx
jl 0x406720
jmp 0x40678a
lea eax, [ecx - 1]
cmp esi, eax
jge 0x406785
mov edi, dword [ebp + 8]
mov eax, dword [edi + esi*4 + 4]
mov dword [edi + esi*4], eax
inc esi
mov ecx, dword [ebx]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x406771
mov edi, dword [ebp - 4]
lea eax, [ecx - 1]
mov dword [ebx], eax
mov edx, edi
call fcn.00406290
test eax, eax
mov ecx, 1
cmovne edi, ecx
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5a5e68
push str.Shell32.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406853
push 0x5cd86c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
xor esi, esi
mov ebx, eax
cmp dword [0x5cd86c], esi
jle 0x406853
nop word [eax + eax]
push 0x5a5e94
push dword [ebx + esi*4]
call fcn.0054748e
add esp, 8
test eax, eax
je 0x406825
push str._accepteula
push dword [ebx + esi*4]
call fcn.0054748e
add esp, 8
test eax, eax
je 0x406825
inc esi
xor edi, edi
cmp esi, dword [0x5cd86c]
jl 0x4067f0
jmp 0x406853
mov ecx, dword [0x5cd86c]
mov edi, 1
lea eax, [ecx - 1]
cmp esi, eax
jge 0x40684c
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov ecx, dword [0x5cd86c]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x406837
dec ecx
mov dword [0x5cd86c], ecx
mov edx, edi
call fcn.00406290
test eax, eax
mov ecx, 1
cmovne edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406870
Capabilities:
Terminate process

Disassembly:
push str.SYSINTERNALS_SOFTWARE_LICENSE_TERMS_nThese_license_terms_are_an_agreement_between_Sysinternals_a_wholly_owned_subsidiary_of_Microsoft_Corporation__and_you.Please_read_them.They_apply_to_the_software_you_are_downloading_from_technet.microsoft.com___sysinternals__which_includes_the_media_on_which_you_received_it__if_any.The_terms_also_apply_to_any_Sysinternals_n_updates__nsupplements__nInternet___based_services__nand_support_services_nfor_this_software__unless_other_terms_accompany_those_items.If_so__those_terms_apply._nBY_USING_THE_SOFTWARE__YOU_ACCEPT_THESE_TERMS.IF_YOU_DO_NOT_ACCEPT_THEM__DO_NOT_USE_THE_SOFTWARE._n_nIf_you_comply_with_these_license_terms__you_have_the_rights_below._nINSTALLATION_AND_USER_RIGHTS_nYou_may_install_and_use_any_number_of_copies_of_the_software_on_your_devices._n_nSCOPE_OF_LICENSE_nThe_software_is_licensed__not_sold.This_agreement_only_gives_you_some_rights_to_use_the_software.Sysinternals_reserves_all_other_rights.Unless_applicable_law_gives_you_more_rights_despite_this_limitation__you_may_use_the_software_only_as_expressly_permitted_in_this_agreement.In_doing_so__you_must_comply_with_any_technical_limitations_in_the_software_that_only_allow_you_to_use_it_in_certain_ways.You_may_not_n_work_around_any_technical_limitations_in_the_software__nreverse_engineer__decompile_or_disassemble_the_software__except_and_only_to_the_extent_that_applicable_law_expressly_permits__despite_this_limitation__nmake_more_copies_of_the_software_than_specified_in_this_agreement_or_allowed_by_applicable_law__despite_this_limitation__npublish_the_software_for_others_to_copy__nrent__lease_or_lend_the_software__ntransfer_the_software_or_this_agreement_to_any_third_party__or_n_use_the_software_for_commercial_software_hosting_services._n_nSENSITIVE_INFORMATION_nPlease_be_aware_that__similar_to_other_debug_tools_that_capture
push 0x5a6004
call fcn.00405cf0
push str.This_is_the_first_run_of_this_program._You_must_accept_EULA_to_continue._n
call fcn.00405cf0
push str.Use__accepteula_to_accept_EULA._n_n
call fcn.00405cf0
add esp, 0x10
push 1
call fcn.0054732c
int3

Function at 0x4068a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5c4fc8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x101
push 0
push edx
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406920
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EulaAccepted
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x406920
cmp dword [ebp - 8], 0
je 0x406920
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e7e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0053e7e5
mov esp, ebp
pop ebp
ret
Function at 0x40ac82
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40acc7
call fcn.0041606e
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40acc7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40ace3
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004142ff
mov ebx, eax
test edi, edi
je 0x40ace1
test esi, esi
je 0x40ace1
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40b701
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40b7bf
cmp dword [esi + 0x20], 0
je 0x40b7bf
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b7bf
cmp dword [ebp + 8], 0
je 0x40b7bf
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0041606e
push 0x56e848
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40b790
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b7bf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0042153c
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x40b7b0
test edi, edi
je 0x40b7b0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x40b7bb
mov ecx, esi
call fcn.0040b4a3
mov eax, ebx
jmp 0x40b7c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410160
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x55e552
call fcn.0053eeda
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x410186
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4101e6
call fcn.00411eda
push eax
lea ecx, [ebp - 0x10]
call fcn.00406dd7
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x56c9a0]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00547c6a
push eax
call fcn.004046d0
add esp, 0x14
test esi, esi
je 0x4101d9
push esi
call fcn.00547840
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402b00
mov eax, ebx
call fcn.0053eea3
ret 8
Function at 0x410ffd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041606e
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x411034
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00411053
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x413dcc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.004100a6
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.00414089
cmp esi, 3
je 0x413e0a
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x413e53
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x413e2d
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00407cb8
jmp 0x413e3e
push 0xff
mov ecx, esi
call fcn.004076e8
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00407f06
jmp 0x413e77
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x413e77
push dword [esi]
push dword [ebp - 4]
call fcn.004225de
pop edi
pop esi
leave
ret 0xc

Function at 0x413fe0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00414089
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x414028
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00407cb8
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407f06
jmp 0x414033
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004225de
pop edi
pop esi
pop ebp
ret 0xc