joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4536b5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x453784
mov eax, dword [0x667bc4]
push edi
mov edi, dword [0x667bc0]
mov dword [ebp - 4], eax
test edi, edi
je 0x453783
test eax, eax
je 0x453783
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
test ecx, ecx
jle 0x453708
test esi, esi
jge 0x4536f6
xor eax, eax
jmp 0x4536fe
cmp esi, ecx
mov eax, ecx
jg 0x4536fe
mov eax, esi
imul eax, eax, 0x64
cdq
idiv ecx
mov ebx, eax
jmp 0x45370b
push 0x64
pop ebx
cmp byte [ebp + 0x18], 0
mov eax, 0x5f19b4
jne 0x45371b
mov eax, str.install
push dword [ebp + 0x14]
push ecx
push esi
push eax
push 0x5f1960
call fcn.004437b6
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
add esp, 0x14
push 4
push edi
call esi
cmp dword [ebp + 0x14], 0
je 0x453752
push 4
push dword [ebp - 4]
call esi
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push ebx
push 0x402
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp + 0x18], 0
mov eax, dword [ebp + 8]
pop esi
pop ebx
je 0x453779
mov eax, dword [eax + 0xc]
jmp 0x45377c
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_PulseEvent]
pop edi
leave
ret
Function at 0x45a9c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
mov esi, ecx
mov dword [esi + 0x10], eax
call fcn.0045a770
test eax, eax
jne 0x45a9db
xor eax, eax
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0xc]
test edx, edx
je 0x45a9d4
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x45a9f6
mov eax, SysReAllocStringLen
lea ecx, [edi + 3]
jmp 0x45aa0e
cmp edi, 1
je 0x45aa04
cmp edi, 2
jne 0x45aae0
mov eax, 0x40000000
mov ecx, 2
push 0
push 0x8000000
push ecx
push 0
push 1
push eax
push edx
mov dword [esi + 8], edi
call fcn.0043c633
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x45aae0
mov dword [esp + 0x18], 0
test edi, edi
jne 0x45aaa1
push edi
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45aad9
mov eax, 0xfeff
cmp word [esp + 0x18], ax
jne 0x45aa76
mov dword [esi + 0xc], 2
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push ecx
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45aa6b
mov ecx, esi
call fcn.0045a770
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
cmp edi, 1
jne 0x45aab1
mov dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
cmp edi, 2
jne 0x45aa6b
push 0
lea edx, [esp + 0xc]
push edx
push edi
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esi + 0xc], edi
mov dword [esp + 0x2c], 0xfffffeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45aa6b
mov ecx, esi
call fcn.0045a770
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x45aaf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebp
mov ebp, ecx
cmp dword [ebp + 4], 0xffffffff
jne 0x45ab05
xor eax, eax
pop ebp
add esp, 0xc
ret 4
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 2
jne 0x45ab67
mov edi, dword [esp + 0x1c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push 0x5f3f48
mov esi, eax
call ebx
add esi, eax
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x10], esi
neg ecx
or ecx, eax
push ecx
call fcn.004959d1
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5f3f48
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0x10]
add eax, eax
pop ebx
jmp 0x45abcb
cmp eax, 1
jne 0x45ac08
push 0x5ec414
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x1c]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
mov dword [esp + 0xc], esi
inc esi
push esi
call fcn.004959d1
mov esi, eax
mov eax, dword [esp + 0x10]
inc eax
push eax
push 0
push esi
call fcn.0058fa90
mov eax, dword [esp + 0x1c]
inc eax
push eax
push edi
push eax
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.00595898
add esp, 0x24
push 0x5ec414
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0xc]
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x10], eax
je 0x45abe8
mov edx, dword [ebp + 0x14]
push edx
push 1
push eax
push esi
mov ecx, ebp
call fcn.0045a8a0
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 4]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x45ac13
call fcn.004959c6
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
mov eax, dword [esp + 0x18]
add dword [ebp + 0x14], eax
call fcn.004959c6
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret 4
Function at 0x468470
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5c2508
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x664e94]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00468040
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 8]
mov eax, dword [edi + 4]
mov edx, dword [ecx + 0xc]
sub esi, eax
lea ebp, [edx + eax*4 + 4]
dec esi
xor ecx, ecx
lea eax, [esi + 1]
mov dword [esp + 0x18], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004959d1
mov ecx, eax
xor edx, edx
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
cmp esi, edx
jbe 0x4684f4
mov edx, dword [ebp]
mov dword [ecx + eax*4], edx
inc eax
add ebp, 4
cmp eax, esi
jb 0x4684e4
xor edx, edx
mov esi, dword [edi + 8]
mov dword [ecx + eax*4], esi
mov edi, vtable.tList_unsigned_int_.0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], edi
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x44], edx
call fcn.00467ea0
test eax, eax
je 0x468570
lea ecx, [esp + 0x20]
call fcn.004692a0
mov esi, eax
test esi, esi
je 0x468570
lea esp, [esp]
mov ecx, dword [ebx + 0x10]
call fcn.00468040
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
mov ecx, ebx
call fcn.00468140
test eax, eax
je 0x468561
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x20]
call fcn.0045f840
mov esi, eax
test esi, esi
jne 0x468540
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004959c6
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.0046ad00
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.tLinkedList_unsigned_int_.0
call fcn.0046ad00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x47d5d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47d5fc
xor al, al
jmp 0x47d629
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0xffffffff
jne 0x47d61f
xor al, al
jmp 0x47d629
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x47d890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47d8b0
xor al, al
jmp 0x47d934
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004959d1
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 5], 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x47d8f1
mov byte [ebp - 5], 0
jmp 0x47d91f
cmp dword [ebp - 0xc], 0
jne 0x47d900
mov dword [ebp - 0x18], 0
jmp 0x47d90f
mov eax, dword [ebp - 0xc]
push eax
call fcn.0058f15d
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401216
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004959c6
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x47d940
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret

Function at 0x47d960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x47d97b
xor al, al
jmp 0x47d985
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x47db30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3b11
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x664e94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00479150
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0047dfc0
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor edx, edx
cmp eax, 2
sete dl
mov byte [ebp - 0x25], dl
lea ecx, [ebp - 0x2c]
call fcn.00401443
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00489f70
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x47dcf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47dd20
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x47dd1c
mov edx, dword [ebp + 8]
push edx
push 0x71
call fcn.00478b90
add esp, 8
jmp 0x47dd20
xor al, al
jmp 0x47dd22
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x47dd30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x47dd64
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x47dd60
mov eax, dword [ebp + 8]
push eax
push 0x72
call fcn.00478b90
add esp, 8
jmp 0x47dd64
xor al, al
jmp 0x47dd66
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x48a6d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.00489820
jp 0x48a6c5
stosb byte es:[edi], al
pop es
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004897fe
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00489830
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004897e5
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00489820
loop 0x48a7e1
jmp [esi + eax*8]
mov word [ecx + 0x10468], cs
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x491ecc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.00491e90
pop ecx
pop ecx
test al, al
je 0x491f3f
push 1
push dword [ebp + 0xc]
call fcn.00491e90
pop ecx
pop ecx
test al, al
je 0x491f3f
mov esi, dword [ebp + 0x10]
push 1
push esi
call fcn.00491e90
pop ecx
pop ecx
test al, al
je 0x491f3f
mov edi, dword [ebp + 0x14]
push ebx
shr edi, 2
xor ebx, ebx
test edi, edi
jbe 0x491f2b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub ecx, esi
mov eax, esi
sub edx, esi
mov ebx, edi
mov esi, dword [ecx + eax]
xor esi, dword [eax]
mov dword [edx + eax], esi
add eax, 4
dec edi
jne 0x491f1d
mov eax, ebx
shl eax, 2
sub dword [ebp + 0x14], eax
pop ebx
je 0x491f61
add dword [ebp + 8], eax
add dword [ebp + 0xc], eax
add dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
jbe 0x491f61
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
sub ecx, eax
sub esi, eax
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov byte [eax + esi], dl
inc eax
dec edi
jne 0x491f55
pop edi
pop esi
pop ebp
ret
Function at 0x4921ea
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 0x8c]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
push 0x3f
mov dword [ebp - 4], eax
add edx, 8
mov dword [ebp - 8], 8
pop ecx
ror eax, 4
xor eax, dword [edx - 8]
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x5fa440]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x5fa640]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x5fa840]
and eax, ecx
xor edi, dword [eax*4 + 0x5faa40]
mov eax, dword [edx - 4]
xor eax, dword [ebp - 4]
xor esi, edi
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x5fa540]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x5fa740]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x5fa940]
and eax, ecx
xor edi, dword [eax*4 + 0x5fab40]
xor esi, edi
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 0x10
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x5fa440]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x5fa640]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x5fa840]
and eax, ecx
xor edi, dword [eax*4 + 0x5faa40]
mov eax, dword [edx - 0xc]
xor dword [ebp - 4], edi
xor eax, esi
mov edi, eax
shr edi, 0x18
mov ebx, eax
and edi, ecx
mov edi, dword [edi*4 + 0x5fa540]
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x5fa740]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x5fa940]
and eax, ecx
xor edi, dword [eax*4 + 0x5fab40]
mov eax, dword [ebp - 4]
xor eax, edi
dec dword [ebp - 8]
mov dword [ebp - 4], eax
jne 0x492212
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
leave
ret 8
Function at 0x4923da
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
push 0x78
lea ecx, [ebp - 0x14]
call fcn.00437f2d
mov esi, dword [ebp - 0xc]
mov dword [ebp - 4], str.91__
sub dword [ebp - 4], esi
lea ecx, [esi + 0x70]
mov dword [ebp - 8], 0x38
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
mov edi, dword [ebp + 0xc]
dec eax
mov edx, eax
sar edx, 3
mov dl, byte [edx + edi]
and eax, 7
test byte [eax*4 + 0x5fa070], dl
setne al
mov byte [esi], al
inc esi
dec dword [ebp - 8]
jne 0x492406
and dword [ebp + 0xc], 0
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x5fa030]
xor edx, edx
add eax, edi
cmp edi, 0x1c
setge dl
mov esi, eax
dec edx
and edx, 0xffffffe4
add edx, 0x38
cmp eax, edx
jl 0x49245e
lea esi, [eax - 0x1c]
mov eax, dword [ebp - 0xc]
mov dl, byte [esi + eax]
mov byte [edi + eax + 0x38], dl
inc edi
cmp edi, 0x38
jl 0x49243a
xor esi, esi
movzx eax, byte [esi + 0x5fa040]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx + 0x37], 0
je 0x492499
mov eax, esi
cdq
push 6
pop edi
idiv edi
mov edi, edx
mov edx, dword [edi*4 + 0x5fa070]
add eax, ecx
sar edx, 2
or byte [eax], dl
inc esi
cmp esi, 0x30
jl 0x492470
movzx edx, byte [ecx]
movzx esi, byte [ecx + 2]
mov eax, dword [ebp + 0xc]
shl edx, 8
or edx, esi
movzx esi, byte [ecx + 4]
shl edx, 8
or edx, esi
movzx esi, byte [ecx + 6]
shl edx, 8
or edx, esi
mov esi, dword [ebx + 0x8c]
shl eax, 3
mov dword [eax + esi], edx
movzx edx, byte [ecx + 1]
movzx esi, byte [ecx + 3]
shl edx, 8
or edx, esi
movzx esi, byte [ecx + 5]
shl edx, 8
or edx, esi
movzx esi, byte [ecx + 7]
shl edx, 8
or edx, esi
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
mov esi, dword [ebx + 0x8c]
mov dword [eax + esi + 4], edx
jl 0x492432
cmp dword [ebp + 8], 1
jne 0x492542
push 0x7c
xor edi, edi
pop esi
mov eax, dword [ebx + 0x8c]
lea ecx, [esi + eax - 4]
push ecx
add eax, edi
push eax
call fcn.00493351
mov eax, dword [ebx + 0x8c]
lea ecx, [esi + eax]
push ecx
lea eax, [edi + eax + 4]
push eax
call fcn.00493351
sub esi, 8
add esp, 0x10
add edi, 8
cmp esi, 0x3c
jg 0x49250d
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.00436b18
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4a01c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4a0208
call fcn.004988c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a0208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4a0224
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0049fd39
mov esi, eax
test edi, edi
je 0x4a0222
test ebx, ebx
je 0x4a0222
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a15dc
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5cf14a
call fcn.0058f985
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4a1601
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4a1647
lea ecx, [ebp - 0x10]
call fcn.0040144d
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00495b8c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401019
mov eax, esi
call fcn.0058fa5d
ret 8

Function at 0x4a27ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004988c7
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4a27e4
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.004a23f7
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 0x4a2842
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4a2866
cmp dword [edi + 0x54], 0
jne 0x4a2866
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004988c7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004a2803
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ac963
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4ac97b
mov edi, dword [esi + 0xc]
jmp 0x4ac9bb
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4ac994
call fcn.00498cea
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ac9a9
call fcn.00498cea
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ac9bb
call fcn.00498cea
call fcn.004988c7
cmp dword [eax + 0x3c], 0
je 0x4ac9d0
push edi
mov ecx, ebx
call fcn.004ab77f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ac889
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4ac9ee
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ac9fa
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4ae21d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4ae265
call fcn.004988c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ae265
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4ae2a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4ae291
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4ae291
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4ae2a5
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc