joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a3d1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CCommandLineInfo.virtual_0
lea edi, [esi + 4]
call fcn.004787a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x12c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x120]
mov dword [esi + 0x20], ecx
push eax
mov ecx, edi
mov dword [esp + 0x11c], 0
mov dword [esi + 0x2c], edx
call fcn.00406118
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esi + 0x20]
or edi, 0xffffffff
test eax, eax
mov dword [esi + 0x1c], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
je 0x45214a
mov eax, dword [eax + 0x1c]
push 0xff
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.00402ca3
mov ecx, dword [esp + 8]
push str.SysListView32
push ecx
call fcn.0041059c
add esp, 8
neg eax
sbb al, al
inc al
movzx edx, al
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esi + 0x24], edx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x452151
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x452151
mov dword [esi + 0x24], 0
mov ecx, dword [esp + 0x110]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 0x10

Function at 0x4547a6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a3e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004469d0
mov edi, dword [esp + 0x28]
test edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], 0
mov dword [esi], 0x4b4e28
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
jne 0x4547dc
mov edi, 0x4a6b73
test edi, edi
lea ecx, [esi + 0x10]
jne 0x4547e7
xor eax, eax
jmp 0x4547fa
mov eax, edi
push ebp
lea ebp, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4547f0
sub eax, ebp
pop ebp
push eax
push edi
call fcn.00402bd1
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x6c], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x78], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], 0
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], 0
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x455630
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a3f78
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [esp + 0x58]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
shl eax, 0x10
or eax, 1
cmp esi, 0x21
jb 0x455686
cmp esi, 0x2f
ja 0x455686
or eax, 0x1000000
push 0x32
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.00402ca3
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 4]
mov esi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, esi
or eax, ecx
mov dword [esp + 0x4c], 0
jge 0x4556d2
push esi
lea ecx, [esp + 0x10]
call fcn.00402ab9
mov edx, dword [esp + 0xc]
push edx
call fcn.0046f1e0
mov eax, dword [esp + 0x10]
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
add esp, 4
xor esi, esi
test ecx, ecx
jle 0x455763
mov edi, dword [sym.imp.USER32.dll_IsCharLowerA]
lea ecx, [ecx]
mov bl, byte [esi + eax]
mov byte [esp + 0x58], bl
mov edx, dword [esp + 0x58]
push edx
call edi
test eax, eax
jne 0x455720
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
inc esi
cmp esi, ecx
jl 0x455700
jmp 0x455763
movsx eax, bl
push eax
call fcn.0046f12e
mov bl, al
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 4]
mov edi, dword [eax - 0xc]
add esp, 4
cmp ecx, 1
jle 0x45574d
mov ecx, edi
push ecx
lea ecx, [esp + 0x10]
call fcn.00402944
mov eax, dword [esp + 0xc]
mov byte [esi + eax], bl
mov edx, dword [esp + 0xc]
mov dword [edx - 0xc], edi
mov eax, dword [esp + 0xc]
mov byte [edi + eax], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
mov esi, dword [esp + 0x54]
push ecx
push eax
mov ecx, esi
call fcn.0040cbd3
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x4557af
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
mov ecx, 1
sub ecx, edx
sub eax, edi
or eax, ecx
jge 0x45579e
push edi
mov ecx, esi
call fcn.00402ab9
mov eax, dword [esi]
mov byte [eax + ebx], 0x2b
mov ecx, dword [esi]
mov dword [ecx - 0xc], edi
mov edx, dword [esi]
mov byte [edi + edx], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x4557d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc
Function at 0x457870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a418b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x30]
push esi
push edi
push eax
mov esi, ecx
push 0x3f05
mov dword [esp + 0x10], esi
call fcn.00473223
lea edi, [esi + 0x70]
mov ecx, edi
mov dword [esp + 0x2c], 0
mov dword [esi], method.CDialog.virtual_0
call fcn.004756c9
mov dword [edi], vtable.CStatic.0
lea edi, [esi + 0xc0]
mov ecx, edi
mov byte [esp + 0x2c], 1
call fcn.004756c9
mov dword [edi], vtable.CStatic.0
lea edi, [esi + 0x110]
mov ecx, edi
mov byte [esp + 0x2c], 2
call fcn.004756c9
mov dword [edi], vtable.CStatic.0
push esi
lea ecx, [esi + 0x160]
mov byte [esp + 0x30], 3
call fcn.004562f0
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x228], ecx
lea edi, [esi + 0x258]
mov ecx, edi
mov byte [esp + 0x2c], 4
call fcn.00492870
mov dword [edi], 0x4b54f8
lea ecx, [esi + 0x944]
mov byte [esp + 0x2c], 5
call fcn.00453a80
mov eax, dword [esi + 0x228]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xc]
push edx
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x22c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
mov dword [esi + 0x230], ecx
jne 0x457969
movzx eax, word [esp + 0x1e]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x234], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x45b520
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a4531
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.GDI32.dll_GetStockObject]
xor ebp, ebp
push ebp
mov esi, ecx
call edi
push eax
call fcn.0047d0f7
push 4
mov ebx, eax
call edi
push eax
call fcn.0047d0f7
mov edi, eax
mov eax, vtable.CRgn.0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc0], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x3c]
add ecx, 2
push ecx
dec edx
push edx
push eax
mov ecx, esi
mov byte [esp + 0xd0], 2
call fcn.0045b1e0
mov ebp, dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push 1
push 6
lea ecx, [esp + 0x30]
push ecx
call ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.0047d105
test ebx, ebx
jne 0x45b5cb
xor eax, eax
jmp 0x45b5ce
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc8]
push 2
push 2
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_FrameRgn]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esi + 0x3c]
add edx, 2
push edx
push eax
push ecx
mov ecx, esi
call fcn.0045b1e0
push 1
push 6
lea edx, [esp + 0x60]
push edx
call ebp
push eax
lea ecx, [esp + 0x24]
call fcn.0047d105
test edi, edi
jne 0x45b621
xor eax, eax
jmp 0x45b624
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 4]
push 1
push 1
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.GDI32.dll_FrameRgn]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x88]
push edx
mov edx, dword [esi + 0x3c]
dec eax
push eax
push ecx
push edx
mov ecx, esi
call fcn.0045b1e0
push 1
push 6
lea eax, [esp + 0x90]
push eax
call ebp
push eax
lea ecx, [esp + 0x14]
call fcn.0047d105
test edi, edi
je 0x45b673
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
push 1
push 1
push edi
push ecx
push edx
call dword [sym.imp.GDI32.dll_FrameRgn]
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov byte [esp + 0xc0], 1
mov dword [esp + 0x20], esi
call fcn.0047d15c
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 0
mov dword [esp + 0x18], esi
call fcn.0047d15c
lea ecx, [esp + 0x10]
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0x10], esi
call fcn.0047d15c
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret 4
Function at 0x46e19a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 4], 0
push edi
xor eax, eax
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call fcn.0041f9c6
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x46e1cc
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x46e1d5
xor eax, eax
inc eax
leave
ret
sub al, 0x32
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
leave
ret

Function at 0x46efd4
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x46eff0
call fcn.00411c51
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x46f062
push esi
push 0x88
push 1
call fcn.00410ec7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x46f048
push esi
call fcn.00412b9c
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x46ef34
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x46f040
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x46f05f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040f55d
test ebx, ebx
pop ecx
je 0x46f05a
push ebx
call fcn.00411c63
pop ecx
or eax, 0xffffffff
jmp 0x46f061
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x4704a7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040f3e0
mov eax, dword [0x4cc468]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00414dfd
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4705d1
push 2
push esi
push dword [ebp + 8]
call fcn.00414dfd
add esp, 0xc
cmp eax, ebx
je 0x4705d1
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x470574
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0040f730
push 0x8000
push dword [ebp + 8]
call fcn.004705e2
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x47052d
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00414834
add esp, 0xc
cmp eax, 0xffffffff
je 0x47054d
sub edi, eax
test edi, edi
jg 0x470525
jmp 0x470565
call fcn.00411c5a
cmp dword [eax], 5
jne 0x470562
call fcn.00411c51
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004705e2
pop ecx
pop ecx
jmp 0x4705bc
jge 0x4705bc
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414dfd
push dword [ebp + 8]
call fcn.00411f19
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4705bc
call fcn.00411c51
mov dword [eax], 0xd
call fcn.00411c5a
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00414dfd
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4705d3
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0041087c
leave
ret
Function at 0x470876
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4a094f
call fcn.0040e97c
sub esp, 0x9c
mov eax, dword [0x4cc468]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call fcn.00473223
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00402b36
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x470907
mov edi, 0x94
push edi
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.0040f730
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 2
jne 0x470900
cmp dword [ebp - 0xa4], 5
mov dword [ebp + 0x20], 0x58
jae 0x470907
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0040f54b
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x47091c
call fcn.00470b9e
push dword [ebp + 0x20]
push ebx
push dword [esi + 0x70]
call fcn.0040f730
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x47099b
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0048f258
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x470ecc
je 0x4709c7
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x4709fd
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00402c6c
push ebx
mov ecx, edi
call fcn.00402b4a
jmp 0x4709e6
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00410521
cmp eax, ebx
pop ecx
pop ecx
jne 0x4709e3
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0041087c
leave
ret 0x1c
Function at 0x4735c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x4735fc
call fcn.0048f258
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47360d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x473646
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x47362b
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x473633
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x473644
test ax, ax
jne 0x473644
test si, si
je 0x473646
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x473655
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4738a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4a08f6
call fcn.0040e97c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.0048f258
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4738f5
call fcn.0048f258
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x473906
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x473912
or eax, 0xffffffff
jmp 0x473a15
mov ecx, esi
call fcn.004733ef
mov dword [ebp - 0x14], eax
call fcn.0047646d
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x473955
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x473955
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x473955
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00477a80
push dword [ebp - 0x14]
call fcn.004763c5
push edi
push eax
push ebx
mov ecx, esi
call fcn.0047369a
xor ebx, ebx
cmp eax, ebx
je 0x4739c9
test byte [esi + 0x38], 0x10
je 0x473997
push 4
pop edi
mov ecx, esi
call fcn.00474181
test ah, 1
je 0x47398f
push 5
pop edi
push edi
mov ecx, esi
call fcn.00475e69
cmp dword [esi + 0x1c], ebx
je 0x4739c9
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00474347
jmp 0x4739c9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4739dd
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4739f6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4739f6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00473429
cmp dword [esi + 0x54], ebx
je 0x473a12
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x473a4f
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 ebx, ebx
call fcn.0048f258
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x473a86
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0047369a
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 0x473ade
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x54], ebx
jne 0x473afe
cmp dword [edi + 0x50], 0
jne 0x473afe
movzx eax, bx
mov dword [edi + 0x50], eax
call fcn.0048f258
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00473aa5
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4743c0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4a0973
call fcn.0040e97c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4743e5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x474431
call fcn.004787a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401162
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x47709f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x4770d9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040d881
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040cdd6
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4783ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x478430
call fcn.0048f258
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x478430
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47844b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00477554
test ebx, ebx
mov esi, eax
je 0x478449
test edi, edi
je 0x478449
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4