joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497b6c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call fcn.004a9710
push eax
call fcn.004d333d
pop ecx
mov edi, eax
pop ecx
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.hrnkh
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x497bb3
push edi
call fcn.004d3366
pop ecx
xor eax, eax
jmp 0x497bec
push ebx
push edi
push dword [ebp + 8]
call fcn.00496dfb
pop ecx
pop ecx
push eax
push edi
push 3
push esi
push 0x530050
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004d3366
xor eax, eax
cmp ebx, esi
pop ecx
pop ebx
sete al
pop edi
pop esi
leave
ret 4

Function at 0x497c7d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
mov ebx, str.hrnkh
push 0
mov edi, SysReAllocString
push ebx
push edi
mov dword [ebp - 8], 0x12c
call esi
test eax, eax
je 0x497cc7
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push edi
call esi
test eax, eax
je 0x497cc7
xor eax, eax
jmp 0x497d34
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
push 0
push 0x53005c
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
je 0x497cf5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x497cc3
cmp dword [ebp - 8], 0x14
ja 0x497cc3
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x497d08
mov dword [eax], 0x12c
cmp dword [ebp + 0xc], 0
je 0x497d24
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
push 0
push 0x530050
push dword [ebp - 4]
call esi
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x497e0d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 1
pop ebx
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 0x20006
push edi
push edi
mov esi, 0x530064
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x497e4f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x497e51
xor ebx, ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4
Function at 0x49807d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x19
xor ebx, ebx
pop eax
cmp esi, ebx
mov dword [ebp - 0x14], eax
je 0x498206
push eax
push ebx
push esi
call fcn.004a9230
push 0x94
lea eax, [ebp - 0xac]
push ebx
push eax
call fcn.004a9230
add esp, 0x18
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 2
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
jne 0x4980e9
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
jmp 0x4980ee
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jl 0x49811e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
push ebx
push str.ProductId
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 2
jb 0x498133
push esi
call fcn.004a9710
test eax, eax
pop ecx
jne 0x498206
lea eax, [ebp - 0x10]
push 0xa
push eax
push 0xd1d7
mov byte [ebp + 0xb], 0x2d
call fcn.004acad0
lea eax, [ebp - 0x10]
push eax
call fcn.004a9710
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004a9290
lea eax, [ebp + 0xb]
push 1
push eax
lea eax, [esi + 5]
push eax
call fcn.004a9290
lea eax, [ebp - 0x10]
push 8
push eax
push 0x132
call fcn.004acad0
lea eax, [ebp - 0x10]
push eax
call fcn.004a9710
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 6]
push eax
call fcn.004a9290
add esp, 0x44
lea eax, [ebp + 0xb]
push 1
push eax
lea eax, [esi + 9]
push eax
call fcn.004a9290
lea eax, [ebp - 0x10]
push 0xa
push eax
push 0x1ffa9d
call fcn.004acad0
lea eax, [ebp - 0x10]
push eax
call fcn.004a9710
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0xa]
push eax
call fcn.004a9290
lea eax, [ebp + 0xb]
push 1
push eax
lea eax, [esi + 0x11]
push eax
call fcn.004a9290
lea eax, [ebp - 0x10]
push 0xa
push eax
push 0x487c
call fcn.004acad0
add esp, 0x40
lea eax, [ebp - 0x10]
push eax
call fcn.004a9710
push eax
lea eax, [ebp - 0x10]
add esi, 0x12
push eax
push esi
call fcn.004a9290
add esp, 0x10
push 0x14
pop eax
pop esi
pop ebx
leave
ret 4

Function at 0x49823e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x498282
push 4
push esi
push dword [ebp + 8]
call fcn.004a9230
add esp, 0xc
lea eax, [ebp - 4]
push esi
push esi
push esi
push esi
push eax
push esi
push esi
push 0x5300f0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x498282
lea eax, [ebp - 4]
push 4
push eax
push dword [ebp + 8]
call fcn.004a9290
add esp, 0xc
push 4
pop eax
pop esi
leave
ret 4
Function at 0x4982ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
fld qword [0x503f80]
and dword [ebp - 0x14], 0
lea eax, [ebp - 8]
fstp qword [ebp - 0x1c]
push eax
push str.softwareclassesCLSID.HRInfo4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], 0x14
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4983da
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4983d1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4c]
push str._lx__x__x
push eax
call fcn.004aca9c
add esp, 0x14
cmp eax, 3
je 0x49838a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4c]
push 0x53001c
push eax
call fcn.004aca9c
add esp, 0xc
cmp eax, 1
je 0x49838a
fld qword [0x503f80]
leave
ret
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004a1fc9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004a1fa7
mov ecx, eax
call fcn.004a207c
fld qword [ebp - 0x38]
fmul qword [0x503f78]
fadd qword [0x503f70]
call fcn.004aa098
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [ebp - 0x1c]
leave
ret

Function at 0x498402
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x536578
lea ecx, [ebp - 4]
call fcn.004d3540
xor eax, eax
push 1
push eax
push eax
push dword [ebp - 4]
push 0x5272fc
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 4]
call fcn.004d37cb
leave
ret
Function at 0x49945e
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, 0x20000
je 0x49946f
push 1
pop eax
push ebp
mov ebp, 0x400
test ebp, ecx
je 0x49947b
or al, 2
test ecx, 0x200000
je 0x499485
or al, 4
test cl, 8
je 0x49948c
or al, 8
test ecx, 0x80000000
je 0x499496
or al, 0x10
mov edx, 0x800
test edx, ecx
je 0x4994a1
or al, 0x20
test ecx, 0x800000
je 0x4994ab
or al, 0x40
test cl, 2
je 0x4994b2
or al, 0x80
push ebx
push edi
test ecx, 0x8000000
mov ebx, 0x100
je 0x4994c3
or eax, ebx
mov edi, 0x4000
push esi
test edi, ecx
mov esi, 0x200
je 0x4994d4
or eax, esi
test ecx, 0x2000000
je 0x4994de
or eax, ebp
test ecx, 0x40000000
je 0x4994e8
or eax, edx
test cl, 0x40
mov edx, 0x1000
je 0x4994f4
or eax, edx
test esi, ecx
je 0x4994fb
or ah, 0x20
test edx, ecx
je 0x499501
or eax, edi
mov edi, 0x80000
test edi, ecx
je 0x49950d
or ah, 0x80
test ebx, ecx
mov edx, 0x10000
je 0x499518
or eax, edx
test cl, 0x10
je 0x499522
or eax, 0x20000
mov esi, 0x400000
test esi, ecx
je 0x499530
or eax, 0x40000
test edx, ecx
je 0x499536
or eax, edi
mov ebp, 0x10000000
mov ebx, 0x100000
test ebp, ecx
je 0x499546
or eax, ebx
test cl, 0x20
je 0x499550
or eax, 0x200000
mov edi, 0x4000000
test edi, ecx
je 0x49955b
or eax, esi
test ch, 0x80
pop esi
je 0x499566
or eax, 0x800000
test cl, 1
mov edx, 0x1000000
je 0x499572
or eax, edx
test edx, ecx
je 0x49957b
or eax, 0x2000000
test ebx, ecx
je 0x499581
or eax, edi
pop edi
pop ebx
test ecx, 0x40000
je 0x499590
or eax, 0x8000000
mov edx, 0x20000000
test edx, ecx
je 0x49959b
or eax, ebp
test cl, 4
pop ebp
je 0x4995a3
or eax, edx
test cl, 0x80
je 0x4995ad
or eax, 0x40000000
test ch, 0x20
je 0x4995b7
or eax, 0x80000000
ret
Function at 0x4995b8
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test cl, 1
je 0x4995c8
mov eax, 0x20000
push ebx
push ebp
test cl, 2
mov ebp, 0x400
je 0x4995d6
or eax, ebp
test cl, 4
je 0x4995e0
or eax, 0x200000
test cl, 8
je 0x4995e7
or al, 8
test cl, 0x10
je 0x4995f1
or eax, 0x80000000
test cl, 0x20
mov edx, 0x800
je 0x4995fd
or eax, edx
test cl, 0x40
je 0x499607
or eax, 0x800000
test cl, 0x80
je 0x49960e
or al, 2
mov ebx, 0x100
test ebx, ecx
je 0x49961c
or eax, 0x8000000
push esi
mov esi, 0x200
push edi
mov edi, 0x4000
test esi, ecx
je 0x49962e
or eax, edi
test ebp, ecx
je 0x499637
or eax, 0x2000000
test edx, ecx
je 0x499640
or eax, 0x40000000
mov edx, 0x1000
test edx, ecx
je 0x49964b
or al, 0x40
test ch, 0x20
je 0x499652
or eax, esi
test edi, ecx
je 0x499658
or eax, edx
mov ebp, 0x8000
mov edi, 0x80000
test ebp, ecx
je 0x499668
or eax, edi
mov esi, 0x10000
test esi, ecx
je 0x499673
or eax, ebx
test ecx, 0x20000
je 0x49967d
or al, 0x10
test ecx, 0x40000
mov edx, 0x400000
je 0x49968c
or eax, edx
test edi, ecx
je 0x499692
or eax, esi
mov edi, 0x100000
mov ebx, 0x10000000
test edi, ecx
je 0x4996a2
or eax, ebx
test ecx, 0x200000
je 0x4996ac
or al, 0x20
test edx, ecx
mov esi, 0x4000000
je 0x4996b7
or eax, esi
test ecx, 0x800000
je 0x4996c1
or eax, ebp
mov edx, 0x1000000
test edx, ecx
je 0x4996cc
or al, 1
test ecx, 0x2000000
je 0x4996d6
or eax, edx
test esi, ecx
je 0x4996dc
or eax, edi
pop edi
pop esi
test ecx, 0x8000000
je 0x4996eb
or eax, 0x40000
pop ebp
mov edx, 0x20000000
test ebx, ecx
pop ebx
je 0x4996f8
or eax, edx
test edx, ecx
je 0x4996fe
or al, 4
test ecx, 0x40000000
je 0x499708
or al, 0x80
test ecx, 0x80000000
je 0x499713
or ah, 0x20
ret
Function at 0x49ab37
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x4f95ae
call fcn.004a920c
sub esp, 0xc
push ebx
push esi
push edi
push 0x10
call fcn.004d333d
mov ebx, eax
pop ecx
mov dword [ebp - 0x18], ebx
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
je 0x49ab78
mov al, byte [ebp + 0xb]
and byte [ebx + 8], 0
mov byte [ebx], al
mov al, byte [ebp + 0xb]
mov ecx, ebx
mov byte [ebx + 1], al
call fcn.0049af16
mov dword [ebp - 0x10], ebx
jmp 0x49ab7d
mov dword [ebp - 0x10], edi
mov ebx, edi
or dword [ebp - 4], 0xffffffff
cmp ebx, edi
mov dword [0x5379e0], ebx
je 0x49ac6e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 3
mov ecx, ebx
inc eax
shl eax, 0xc
push eax
push 2
call fcn.0049a02a
push edi
mov dword [0x5379d8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x1000
push 2
mov ecx, ebx
mov dword [0x5379e4], eax
call fcn.0049a02a
cmp eax, edi
mov dword [0x5379dc], eax
je 0x49ac69
push eax
mov ecx, ebx
call fcn.0049a173
mov esi, eax
cmp esi, edi
je 0x49ac69
mov eax, dword [0x5379e4]
mov dword [esi + 0x484], edi
mov edi, 0x94
mov ecx, ebx
push edi
push 2
mov dword [esi + 0x480], eax
call fcn.0049a02a
test eax, eax
mov dword [ebp - 0x14], eax
je 0x49ac5c
mov dword [esi + 0x484], eax
mov ecx, dword [0x5379dc]
mov dword [0x5379e8], ecx
push eax
mov ecx, ebx
call fcn.0049a173
test eax, eax
mov dword [ebp - 0x18], eax
je 0x49ac5c
push edi
push 0
push eax
mov dword [esi + 0x490], 0xd040804
call fcn.004a9230
mov eax, dword [ebp - 0x18]
add esp, 0xc
push eax
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push dword [ebp - 0x14]
mov ecx, ebx
test eax, eax
jne 0x49ac75
call fcn.0049a21b
push dword [0x5379dc]
mov ecx, ebx
call fcn.0049a21b
call fcn.0049ad3a
xor al, al
jmp 0x49ad2b
call fcn.0049a21b
mov eax, dword [0x5379dc]
push 0x52f198
mov dword [0x5379ec], eax
mov dword [esi + 0x46c], 0xe050703
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.GetTickCount
push ebx
call edi
and dword [esi + 0x120], 0
push str.GetModuleFileNameA
push ebx
mov dword [esi + 0x20], eax
call edi
push str.CreateFileA
push ebx
mov dword [esi + 0x30], eax
call edi
push str.ReadFile
push ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x140], 1
call edi
push str.SetFilePointer
push ebx
mov dword [esi + 0x50], eax
call edi
and dword [esi + 0x160], 0
push str.LoadResource
push ebx
mov dword [esi + 0x60], eax
call edi
mov dword [esi + 0x90], eax
mov eax, dword [ebp + 8]
push str.LockResource
push ebx
mov dword [esi + 0x180], eax
call edi
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0xc0], eax
mov dword [esi + 0xd0], ebx
push dword [0x5379dc]
call fcn.0049a21b
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x49af9f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x49afad
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x49b08e
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x504464]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x504464]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x504464]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x504464]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x504464]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x504464]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x504464]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x504464]
xor eax, esi
inc edx
dec edi
jne 0x49afca
pop ebx
cmp dword [ebp + 0x10], 0
je 0x49b0af
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x504464]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x49b094
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x49b653
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49b6a9
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5048b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49b69c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49b6ab
xor eax, eax
pop esi
leave
ret 4
Function at 0x49c59e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x49c626
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004a9290
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x49c5e9
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x49c60b
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x49c681
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.0049c686
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x49c66d
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x49c681
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x49c5aa
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4b6234
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x534a00
cmp edx, dword [eax]
je 0x4b6256
add eax, 8
inc ecx
cmp eax, 0x534a90
jl 0x4b6247
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x534a00]
jne 0x4b6384
mov eax, dword [0x539b84]
cmp eax, 1
je 0x4b635e
test eax, eax
jne 0x4b6287
cmp dword [0x531fd4], 1
je 0x4b635e
cmp edx, 0xfc
je 0x4b6384
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b62be
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004aa670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a9710
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b6301
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a9710
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x52f184
push edi
call fcn.004aac10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004aa670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004aa680
lea eax, [ebp - 0xa0]
push 0x50db00
push eax
call fcn.004aa680
push dword [esi + 0x534a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.004aa680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bab0c
add esp, 0x2c
pop edi
jmp 0x4b6384
lea eax, [ebp + 8]
lea esi, [esi + 0x534a04]
push 0
push eax
push dword [esi]
call fcn.004a9710
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]
pop esi
leave
ret
Function at 0x4cb800
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004aa590
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4cb8cb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4cb8cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4cb87e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4cb889
or bh, 8
and edi, 0x8000000
je 0x4cb8a4
mov eax, dword [0x53b49c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4cb8cb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cbca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4cbccb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4cbcef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4cbd0a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4d077b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d07b3
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.004d3c72
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d3c4a
jmp 0x4d07bf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4