joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a120
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x45a298
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45a277
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x45a176
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.00476a0b
mov esi, eax
add esp, 4
test esi, esi
je 0x45a298
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x45a28f
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45a28f
mov edi, dword [esp + 0x20]
test edi, edi
je 0x45a28f
push ebp
push edi
call fcn.0045a120
add esp, 8
test eax, eax
je 0x45a284
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4af79c]
test eax, eax
je 0x45a221
test ebp, ebp
je 0x45a221
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x45a28f
jmp 0x45a22d
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x45a28f
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x45a26e
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x45a28f
mov eax, dword [esp + 0x14]
jmp 0x45a1ca
push esi
call fcn.00476a34
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x45a28f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00476a34
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x462670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x4626be
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4626be
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x4626c3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x4626a9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x4626d3
test esi, esi
jne 0x4626f1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x4626ef
mov byte [eax + esi - 1], 0
jne 0x4626f8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x467e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x467ea0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x467ea0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x467ea5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x467e8b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x467eb2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x46d920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x46d961
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x46d963
mov esi, edi
test esi, esi
je 0x46d9d8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x46d9cd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x46d9cd
cmp dword [esp + 0x1c], eax
jbe 0x46d99e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x46d9cd
cmp esi, edi
je 0x46d9bf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x46d9d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x46db30
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x46db8f
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x46db8f
cmp dword [esp + 0xc], 3
jne 0x46db8f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x46db8f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x46db8f
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x46dcf0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4927ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4a52e4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x46dd5b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x46dd5d
mov esi, edi
test esi, esi
je 0x46de27
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46de1c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x46dd9f
cmp eax, 2
je 0x46dd9f
cmp eax, 6
je 0x46dd9f
cmp eax, 7
jne 0x46de1c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.00476a0b
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x46de02
lea ecx, [esp + 0x14]
call fcn.00476e59
cmp esi, dword [esp + 0x14]
je 0x46ddf7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00476a34
add esp, 4
jmp 0x46de39
call fcn.00476a34
add esp, 4
lea ecx, [esp + 0x10]
push 0x495c68
call fcn.00476e59
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x46de27
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46de39
push eax
lea ecx, [esp + 0x14]
call fcn.00476e59
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00476a45
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00476cd0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x46df80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x46dfb7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x46dfba
mov esi, dword [ebp + 8]
test esi, esi
je 0x46e16b
call fcn.004299c0
test eax, eax
je 0x46e0a4
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x46dfdb
mov dword [ebp + 0x10], eax
jmp 0x46e00e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.0040f030
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46e15f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x46e048
cmp eax, 2
je 0x46e048
cmp eax, 6
je 0x46e048
cmp eax, 7
jne 0x46e15f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.00476a0b
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x46e14a
mov ecx, dword [ebp + 0x18]
call fcn.004495c0
cmp esi, dword [ebp + 8]
je 0x46e134
jmp 0x46e12d
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46e15f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x46e0de
cmp eax, 2
je 0x46e0de
cmp eax, 6
je 0x46e0de
cmp eax, 7
jne 0x46e15f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.00476a0b
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x46e14a
mov ecx, dword [ebp + 0x18]
call fcn.00449690
cmp esi, dword [ebp + 8]
je 0x46e134
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00476a34
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.00476a34
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x495c68
call fcn.00449690
cmp esi, dword [ebp + 8]
je 0x46e16b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x46eb90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4928c8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x46ebe6
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x46ebe9
mov esi, dword [ebp + 8]
test esi, esi
je 0x46eccf
call fcn.004299c0
test eax, eax
je 0x46ec6a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x46ec05
xor ebx, ebx
jmp 0x46ec35
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.0040f030
mov eax, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 0x18]
push edi
call fcn.0040d6ae
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46ecc3
cmp esi, dword [ebp + 8]
je 0x46ec63
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x46ecd1
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.00443160
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x46ecb4
cmp esi, dword [ebp + 8]
je 0x46ec9e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00443970
mov eax, 1
jmp 0x46ecd1
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00443970
cmp esi, dword [ebp + 8]
je 0x46eccf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f980
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x46faf8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46fad7
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x46f9d6
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.00476a0b
mov esi, eax
add esp, 4
test esi, esi
je 0x46faf8
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x46faef
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46faef
mov edi, dword [esp + 0x20]
test edi, edi
je 0x46faef
push ebp
push edi
call fcn.0046f980
add esp, 8
test eax, eax
je 0x46fae4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4af7ac]
test eax, eax
je 0x46fa81
test ebp, ebp
je 0x46fa81
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x46faef
jmp 0x46fa8d
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x46faef
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x46face
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x46faef
mov eax, dword [esp + 0x14]
jmp 0x46fa2a
push esi
call fcn.00476a34
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x46faef
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00476a34
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4779e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x48ef80
call fcn.0040dbe8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00486ffd
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x477a24
call fcn.00486ffd
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x477a32
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x477a40
or eax, 0xffffffff
jmp 0x477b28
mov ecx, esi
call fcn.0047795b
mov dword [ebp - 0x14], eax
call fcn.0047881b
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x477a77
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x477a77
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004787cf
push dword [ebp - 0x14]
call fcn.00478300
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00477676
cmp eax, edi
je 0x477aea
test byte [esi + 0x24], 0x10
je 0x477ab8
push 4
mov ecx, esi
pop ebx
call fcn.0047b682
test ah, 1
je 0x477ab0
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0047ad6c
cmp dword [esi + 0x1c], edi
je 0x477aea
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0047b80e
jmp 0x477aea
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x477afe
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x477b17
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x477b17
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00477995
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x478d13
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x478d4b
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.00477177
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047714f
jmp 0x478d57
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x47ab15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47ab57
call fcn.00486ffd
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47ab57
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47ab4e
xor eax, eax
jmp 0x47ab5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047ab65
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b1a60
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x4b1a8c
cmp byte [esi], 0
je 0x4b1a8c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4b1a8c
test al, 0x50
jne 0x4b1a8c
test ah, 0x11
jne 0x4b1a8c
and eax, 0xfffffff8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x4b1a90
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x2f
push 0x5a98a0
call fcn.00570260
add esp, 8
test eax, eax
je 0x4b1ab9
push 0x2f
push 0x5a98a0
mov byte [eax], 0x5c
call fcn.00570260
add esp, 8
test eax, eax
jne 0x4b1aa3
push 0x5a15c8
push 0x5a14c8
push 0x5a13c8
push 0x5a13c0
push 0x5a98a0
call fcn.005706cf
mov al, byte [0x5a98a0]
add esp, 0x14
cmp al, 0x5c
jne 0x4b1b20
cmp byte [0x5a98a1], 0x5c
jne 0x4b1b20
mov al, byte [0x5a14c8]
test al, al
jne 0x4b1b8e
mov al, byte [0x5a15c8]
test al, al
jne 0x4b1b8e
push 0x5a9798
push str._sMirc.ini
push 0x5a98a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4b1b85
mov al, byte [0x5a14c8]
test al, al
jne 0x4b1b32
mov al, byte [0x5a15c8]
test al, al
je 0x4b1b06
mov al, byte [0x5a13c0]
test al, al
jne 0x4b1b85
mov al, byte [0x5a13c8]
test al, al
push 0x5a15c8
push 0x5a14c8
je 0x4b1b6d
push 0x5a13c8
push 0x5a9798
push str._s_s_s_s
push 0x5a98a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x4b1b85
push 0x5a9798
push str._s_s_s
push 0x5a98a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov al, byte [0x5a98a0]
test al, al
je 0x4b1bb6
push 0x5a98a0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4b1bb6
test al, 0x50
jne 0x4b1bb6
test ah, 0x11
jne 0x4b1bb6
and eax, 0xfffffff8
push eax
push 0x5a98a0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x529e80
Capabilities:
Hide graphical window

Disassembly:
call fcn.00529e00
test eax, eax
je 0x529ec5
mov eax, dword [0x5b4310]
mov ecx, dword [0x5b4314]
push 0
push eax
push 0x80b5
push ecx
push 0
push 0
push 0
push 0
push 0x42000000
push 0x583b74
push str.Mirc_SwitchBar
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x5b1880], eax
jne 0x529ec8
xor eax, eax
ret
push 0x5a98a0
push 0x180
push 0x5b26c0
push 0x583b74
mov edx, str.switchbar
mov ecx, 0x584528
mov dword [0x5b1898], eax
call fcn.004b1f10
mov al, byte [0x5b26c0]
test al, al
je 0x529f14
mov ecx, 0x5b26c0
call fcn.0041d820
push 0
mov edx, 0x5b26c0
mov ecx, 0x5b1898
call fcn.00421c10
mov eax, dword [0x59bd48]
test eax, eax
je 0x529f32
mov edx, dword [0x5b1880]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b1880]
ret
mov eax, dword [0x5b1880]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b1880]
ret