joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4424e4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x49f1e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4424e4
test cl, 0x48
je 0x44237b
cmp byte [eax + 5], 0xa
je 0x44237b
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4423cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4423b5
call fcn.0043c350
mov dword [eax], 9
call fcn.0043c359
mov dword [eax], esi
jmp 0x4423c5
cmp eax, 0x6d
je 0x4424e4
push eax
call fcn.0043c362
pop ecx
or eax, 0xffffffff
jmp 0x4424e6
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4424df
test eax, eax
je 0x4423f4
cmp byte [ebx], 0xa
jne 0x4423f4
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4423fd
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4424d9
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4424c9
cmp al, 0xd
je 0x44242f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4424bb
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x442449
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x442444
add dword [ebp + 0x10], 2
jmp 0x44249d
mov dword [ebp + 0x10], eax
jmp 0x4424b7
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442471
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4424b7
cmp dword [ebp - 0xc], 0
je 0x4424b7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x442492
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x44249d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4424ba
cmp ebx, dword [ebp + 0xc]
jne 0x4424a2
cmp byte [ebp - 1], 0xa
jne 0x4424a2
mov byte [ebx], 0xa
jmp 0x4424ba
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00440075
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4424bb
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x442413
jmp 0x4424d9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4424d9
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4424e6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443636
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x498f70]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x499448]
je 0x44366b
inc eax
cmp eax, 0x13
jb 0x44365c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x499448]
jne 0x443791
mov eax, dword [0x49eb84]
cmp eax, 1
je 0x443769
cmp eax, edx
jne 0x44369b
cmp dword [0x498b84], 1
je 0x443769
cmp ecx, 0xfc
je 0x443791
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4436d1
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00440690
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0043a710
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x443705
mov eax, edi
push eax
call fcn.0043a710
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x484028
push edi
call fcn.0043acb0
add esp, 0x10
push edi
call fcn.0043a710
push dword [esi + 0x49944c]
mov ebx, eax
call fcn.0043a710
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00439360
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00440690
push edi
push ebx
call fcn.004406a0
push 0x484008
push ebx
call fcn.004406a0
push dword [esi + 0x49944c]
push ebx
call fcn.004406a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004481bd
add esp, 0x2c
jmp 0x443791
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x49944c]
push dword [esi]
call fcn.0043a710
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0043cc0e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4481bd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x49f008], ebx
push esi
push edi
jne 0x44823d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x448278
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4857f8
push edi
call esi
test eax, eax
mov dword [0x49f008], eax
je 0x448278
push 0x4857e8
push edi
call esi
push 0x4857d4
push edi
mov dword [0x49f00c], eax
call esi
cmp dword [0x49eb38], 2
mov dword [0x49f010], eax
jne 0x44823d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x49f018], eax
je 0x44823d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x49f014], eax
mov eax, dword [0x49f014]
test eax, eax
je 0x448282
call eax
test eax, eax
je 0x448269
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x49f018]
test eax, eax
je 0x448269
test byte [ebp - 8], 1
jne 0x448282
cmp dword [0x49eb44], 4
jb 0x44827c
or byte [ebp + 0x12], 0x20
jmp 0x4482a1
xor eax, eax
jmp 0x4482b1
or byte [ebp + 0x12], 4
jmp 0x4482a1
mov eax, dword [0x49f00c]
test eax, eax
je 0x4482a1
call eax
mov ebx, eax
test ebx, ebx
je 0x4482a1
mov eax, dword [0x49f010]
test eax, eax
je 0x4482a1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x49f008]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4485de
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00439360
mov eax, dword [0x498f70]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00440075
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x448711
push 2
push esi
push dword [ebp + 8]
call fcn.00440075
add esp, 0xc
cmp eax, ebx
je 0x448711
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4486b1
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0043a0b0
push 0x8000
push dword [ebp + 8]
call fcn.00449345
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x448667
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0043fafb
add esp, 0xc
cmp eax, 0xffffffff
je 0x448687
sub edi, eax
test edi, edi
jg 0x44865f
jmp 0x44869f
call fcn.0043c359
cmp dword [eax], 5
jne 0x44869c
call fcn.0043c350
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00449345
pop ecx
pop ecx
jmp 0x4486f9
jge 0x4486f9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00440075
push dword [ebp + 8]
call fcn.00444fd6
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 0x4486f9
call fcn.0043c350
mov dword [eax], 0xd
call fcn.0043c359
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00440075
add esp, 0xc
mov eax, esi
pop edi
jmp 0x448713
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0043cc0e
leave
ret
Function at 0x449669
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x485848
call fcn.0043cd6c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x49f03c], edi
jne 0x4496ad
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x449698
mov dword [0x49f03c], ebx
jmp 0x4496ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4496ad
mov dword [0x49f03c], 2
mov eax, dword [0x49f03c]
cmp eax, ebx
jne 0x4496cd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x449790
cmp eax, 2
je 0x4496d6
cmp eax, edi
jne 0x4496fe
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4496e9
mov eax, dword [0x49efa4]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x449705
xor eax, eax
jmp 0x449790
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00439360
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x449738
cmp esi, edi
jne 0x44974e
push dword [ebp - 0x20]
call fcn.0043964c
pop ecx
mov esi, eax
cmp esi, edi
je 0x4496fe
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x449781
cmp dword [ebp + 0x14], edi
jne 0x44976b
push edi
push edi
jmp 0x449771
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x44978d
push esi
call fcn.0043965e
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0043cda7
ret
Function at 0x449799
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x485858
call fcn.0043cd6c
xor esi, esi
cmp dword [0x49f040], esi
jne 0x4497dd
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4497c8
mov dword [0x49f040], edi
jmp 0x4497dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4497dd
mov dword [0x49f040], 2
mov eax, dword [0x49f040]
cmp eax, 2
je 0x4498be
cmp eax, esi
je 0x4498be
cmp eax, 1
jne 0x449822
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x44980b
mov eax, dword [0x49efa4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x449829
xor eax, eax
jmp 0x4498d0
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00439360
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x44985f
cmp edi, esi
jne 0x44987a
lea eax, [ebx + ebx]
push eax
call fcn.0043964c
pop ecx
mov edi, eax
cmp edi, esi
je 0x449822
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4498ad
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x449897
push esi
push esi
jmp 0x44989d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4498b9
push edi
call fcn.0043965e
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4498d0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0043cda7
ret
Function at 0x449987
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4499a0
or eax, 0xffffffff
jmp 0x449a01
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4499fd
push 0x3d
push esi
call fcn.0043bc04
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4499fd
cmp esi, eax
je 0x4499fd
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x49eb58]
sete cl
cmp eax, dword [0x49eb5c]
mov dword [ebp - 8], ecx
jne 0x4499e3
mov edi, eax
call fcn.00449926
mov dword [0x49eb58], eax
cmp eax, ebx
jne 0x449a3c
cmp dword [ebp + 0xc], ebx
je 0x449a05
cmp dword [0x49eb60], ebx
je 0x449a05
call fcn.004492b5
test eax, eax
je 0x449a3c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x449a0e
xor eax, eax
jmp 0x449a00
push 4
call fcn.0043964c
cmp eax, ebx
pop ecx
mov dword [0x49eb58], eax
je 0x4499fd
mov dword [eax], ebx
cmp dword [0x49eb60], ebx
jne 0x449a3c
push 4
call fcn.0043964c
cmp eax, ebx
pop ecx
mov dword [0x49eb60], eax
je 0x4499fd
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x49eb58]
call fcn.004498d9
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x449a9d
cmp dword [esi], ebx
je 0x449a9d
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0043965e
cmp dword [ebp - 8], ebx
pop ecx
jne 0x449a80
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x449ade
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x449a77
mov eax, edi
shl eax, 2
push eax
push dword [0x49eb58]
call fcn.0043c3d5
cmp eax, ebx
pop ecx
pop ecx
je 0x449ade
jmp 0x449ad9
cmp dword [ebp - 8], ebx
jne 0x449b49
cmp edi, ebx
jge 0x449aac
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x49eb58]
call fcn.0043c3d5
cmp eax, ebx
pop ecx
pop ecx
je 0x4499fd
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x49eb58], eax
cmp dword [ebp + 0xc], ebx
je 0x449b33
push dword [ebp - 4]
call fcn.0043a710
inc eax
inc eax
push eax
call fcn.0043964c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x449b33
push dword [ebp - 4]
push esi
call fcn.00440690
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x449b2c
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0043965e
pop ecx
cmp dword [ebp - 8], ebx
je 0x449b41
push dword [ebp - 4]
call fcn.0043965e
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x449a00
push dword [ebp - 4]
call fcn.0043965e
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x449a0a
Function at 0x44d970
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x44da10
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x44d9c2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x499cf8]
xor eax, edx
inc esi
cmp esi, edi
jl 0x44d9a3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x44d9eb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x499cf8]
xor eax, edx
inc esi
cmp esi, edi
jl 0x44d9ce
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x461223
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 0x46125a
call fcn.0047049f
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 0x46126b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4612a4
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x461289
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x461291
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4612a2
test ax, ax
jne 0x4612a2
test si, si
je 0x4612a4
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4612b3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x461513
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x475afa
call fcn.0043ca14
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.0047049f
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x461553
call fcn.0047049f
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 0x461564
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x461570
or eax, 0xffffffff
jmp 0x461673
mov ecx, esi
call fcn.00461045
mov dword [ebp - 0x14], eax
call fcn.004632a5
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4615b3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4615b3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4615b3
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.00464969
push dword [ebp - 0x14]
call fcn.004631fd
push edi
push eax
push ebx
mov ecx, esi
call fcn.004612f8
xor ebx, ebx
cmp eax, ebx
je 0x461627
test byte [esi + 0x38], 0x10
je 0x4615f5
push 4
pop edi
mov ecx, esi
call fcn.004655e5
test ah, 1
je 0x4615ed
push 5
pop edi
push edi
mov ecx, esi
call fcn.00462ca1
cmp dword [esi + 0x1c], ebx
je 0x461627
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00465856
jmp 0x461627
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x46163b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x461654
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x461654
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.0046107f
cmp dword [esi + 0x54], ebx
je 0x461670
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 0x4616ad
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.0047049f
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 0x4616e4
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.004612f8
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 0x463f87
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x463fc0
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.0042f40f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040ec50
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4652d5
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 0x465318
call fcn.0047049f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x465318
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x465333
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0046443a
test ebx, ebx
mov esi, eax
je 0x465331
test edi, edi
je 0x465331
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x465cb7
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x475c09
call fcn.0043ca14
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x465cdc
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x465d28
call fcn.00466223
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.00406a20
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8