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

Disassembly:
push 0xffffffffffffffff
push 0x583378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x733f14]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor ebx, ebx
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], esi
cmp eax, esi
je 0x51d82e
cmp word [eax], si
je 0x51d82e
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push eax
call dword [0x736388]
mov edi, eax
cmp edi, 0xffffffff
jne 0x51d813
xor edi, edi
jmp 0x51d8ae
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jl 0x51d8aa
cmp esi, 0x200000
jge 0x51d8aa
push 0x218
call fcn.004f56f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x51d8aa
push 0x4e200
mov dword [ebx + 0x210], 0x4e20
call fcn.004f56f0
add esp, 4
mov dword [ebx + 0x208], eax
test eax, eax
je 0x51d8aa
test esi, esi
jle 0x51d8f4
push esi
call fcn.004f56f0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x51d8aa
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51d8aa
push esi
push ebp
call fcn.0051d1f0
add esp, 8
test eax, eax
je 0x51d8aa
push esi
push ebp
push ebx
call fcn.0051d2a0
add esp, 0xc
test eax, eax
jne 0x51d8f4
test edi, edi
jne 0x51d8bf
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push edx
push str.Open_Language_File__s_failed.
push eax
jmp 0x51d8ce
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push 0x72ee88
push edx
call fcn.00557b5d
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push eax
call fcn.004f3450
add esp, 8
test ebx, ebx
je 0x51d8f4
push ebx
call fcn.0051d240
add esp, 4
xor ebx, ebx
push edi
call fcn.004f5730
push ebp
call fcn.004f5720
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0055adeb
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x51f7c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xb10
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
mov dword [esp + 0x220], esi
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [esp + 0x224]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xb24]
mov edx, dword [0x817704]
mov dword [esp + 0x120], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xb28]
push 4
push ecx
push edx
call dword [0x7363a4]
mov ebx, eax
cmp ebx, esi
je 0x51f9c3
mov eax, dword [0x817704]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x51f9c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x817704]
push ebx
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ebx, ebx
xor edx, edx
mov bx, word [edi]
mov dx, word [edi + 2]
add eax, edi
cmp ebx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
lea edi, [edi + edx + 4]
je 0x51f87d
add edi, 4
cmp edi, eax
jae 0x51f9c3
test ebx, ebx
je 0x51f898
mov ebp, dword [edi + 0xc]
add edi, 0xc
mov dword [esp + 0x14], ebp
add edi, 6
jmp 0x51f8b6
mov ax, word [edi]
add edi, 2
test al, 0x10
mov dword [esp + 0x10], eax
jne 0x51f8b2
xor eax, eax
mov ax, word [edi]
add edi, 2
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x320]
push edi
push eax
call fcn.0053f406
add esp, 8
cmp word [edi], 0
je 0x51f8d6
add edi, 2
cmp word [edi], 0
jne 0x51f8cd
add edi, 2
test ebx, ebx
je 0x51f90d
push ebp
call fcn.0051ee60
add esp, 4
test eax, eax
jne 0x51f9b9
mov edx, dword [esp + 0xb24]
lea ecx, [esp + 0x320]
push eax
push ecx
push ebp
push edx
call fcn.0051f430
add esp, 0x10
jmp 0x51f9b9
mov ecx, dword [esp + esi*4 + 0x20]
mov al, byte [esp + 0x10]
inc ecx
test al, 0x10
mov dword [esp + esi*4 + 0x20], ecx
mov ebx, ecx
je 0x51f96a
mov ebp, dword [esp + esi*4 + 0x120]
lea eax, [esp + 0x320]
push 1
lea ecx, [ebx - 1]
push eax
push ecx
push ebp
call fcn.0051f430
mov edx, dword [esp + 0x20]
add esp, 0x10
and edx, 0x80
dec ebx
push ebx
push ebp
mov dword [esp + esi*4 + 0x228], edx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [esp + esi*4 + 0x124], eax
inc esi
mov dword [esp + esi*4 + 0x20], 0
jmp 0x51f9b5
push ebp
call fcn.0051ee60
add esp, 4
test eax, eax
jne 0x51f991
mov ecx, dword [esp + 0xb24]
push eax
lea eax, [esp + 0x324]
push eax
push ebp
push ecx
call fcn.0051f430
add esp, 0x10
test byte [esp + 0x10], 0x80
je 0x51f9b5
dec esi
js 0x51f9c3
lea eax, [esp + esi*4 + 0x220]
cmp dword [eax], 0
je 0x51f9b1
dec esi
sub eax, 4
test esi, esi
jl 0x51f9c3
jmp 0x51f9a2
test esi, esi
jl 0x51f9c3
mov ebx, dword [esp + 0x18]
cmp edi, dword [esp + 0x1c]
jb 0x51f885
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb10
ret
Function at 0x525650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
push ebx
mov ebx, dword [esp + 0x80]
push ebp
xor ebp, ebp
test ebx, ebx
mov dword [esp + 8], str.Test
mov dword [esp + 0xc], str.Languages
mov dword [esp + 0x10], 0x730c78
mov dword [esp + 0x14], 0x730c6c
mov dword [esp + 0x18], 0x670f00
mov dword [esp + 0x1c], 0x730c58
mov dword [esp + 0x20], 0x730c48
mov dword [esp + 0x24], 0x730c34
mov dword [esp + 0x28], 0x700a74
mov dword [esp + 0x2c], 0x730c2c
mov dword [esp + 0x30], 0x730c1c
mov dword [esp + 0x34], 0x730c14
mov dword [esp + 0x38], 0x730c00
mov dword [esp + 0x3c], 0x730bf8
mov dword [esp + 0x40], 0x730bec
mov dword [esp + 0x44], 0x725838
mov dword [esp + 0x48], 0x6fb104
mov dword [esp + 0x4c], 0x675b1c
mov dword [esp + 0x50], 0x69e8b8
mov dword [esp + 0x54], 0x66d40c
mov dword [esp + 0x58], 0x730be8
mov dword [esp + 0x5c], str.10240
mov dword [esp + 0x60], 0x730bc8
mov dword [esp + 0x64], 0x730bbc
mov dword [esp + 0x68], 0x730bb0
mov dword [esp + 0x6c], 0x730bac
mov dword [esp + 0x70], 0x730ba4
mov dword [esp + 0x74], 0x730b78
mov dword [esp + 0x78], 0x730b64
mov dword [esp + 0x7c], 0x730b54
jne 0x52575d
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret
cmp word [ebx], 0
jne 0x52576e
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret
push esi
push edi
lea esi, [esp + 0x10]
mov edi, 0x1e
mov eax, dword [esi]
push eax
push ebx
call fcn.0053f51d
add esp, 8
test eax, eax
jne 0x52578e
mov ebp, 1
add esi, 4
dec edi
jne 0x525779
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x78
ret

Function at 0x525a90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
push esi
mov dword [esi + 0x30], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x20], edi
call fcn.00525ae0
add esp, 4
xor edx, edx
add esi, 0x6c
mov eax, edx
mov ecx, 8
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec ecx
jne 0x525ab6
mov dword [esi], eax
inc edx
add esi, 4
cmp edx, 0x100
jb 0x525aaf
pop edi
pop esi
ret

Function at 0x5293f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0xc]
xor eax, eax
or ecx, edx
cmp ecx, 1
je 0x52943c
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x10]
mov edx, ecx
and ecx, 1
shr edx, 1
xor ebx, ebx
mov bx, word [edi + edx*2]
neg ecx
sar ecx, 4
shr ebx, 4
and ecx, 0x7f
xor ebx, ecx
mov ecx, dword [esi + ebx*4]
add eax, ecx
mov ecx, edx
cmp ecx, 1
jne 0x529413
pop edi
pop esi
pop ebx
ret

Function at 0x529490
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov edx, 1
test edi, edi
je 0x5294da
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov ecx, esi
xor ebx, ebx
and ecx, 1
mov bx, word [ebp + edx*2]
mov ebp, ecx
neg ebp
sar ebp, 4
shr ebx, 4
and ebp, 0x7f
add edx, edx
xor ebx, ebp
mov ebp, dword [esp + 0x20]
shr esi, 1
add eax, dword [ebp + ebx*4]
or edx, ecx
dec edi
jne 0x5294a7
pop esi
pop ebp
pop ebx
pop edi
ret
Function at 0x52a150
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, 0x100
or esi, edi
mov eax, esi
mov ecx, edi
shr eax, 7
and eax, 1
mov edx, esi
shl ebx, 1
push eax
and ecx, ebx
mov eax, edi
shr edx, 8
add eax, ecx
add edx, eax
lea ecx, [ebp + edx*2]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0052a0a0
shl esi, 1
mov eax, esi
add esp, 0xc
xor eax, ebx
not eax
and edi, eax
cmp esi, 0x10000
jb 0x52a167
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x52b720
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
push edi
or ch, 1
mov edi, ecx
xor ebx, ebx
shr edi, 8
mov bx, word [esi + edi*2]
mov edi, ecx
shr edi, 7
and edi, 1
neg edi
sar edi, 4
shr ebx, 4
and edi, 0x7f
xor ebx, edi
shl ecx, 1
mov edi, dword [edx + ebx*4]
add eax, edi
cmp ecx, 0x10000
jb 0x52b734
pop edi
pop esi
pop ebx
ret

Function at 0x52b770
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edx, 0x100
or ch, 1
shl esi, 1
mov edi, edx
mov ebx, ecx
and edi, esi
mov ebp, edx
shr ebx, 8
add ebp, edi
xor edi, edi
add ebx, ebp
mov ebp, dword [esp + 0x14]
mov di, word [ebp + ebx*2]
mov ebx, ecx
shr ebx, 7
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
mov ebx, dword [esp + 0x20]
shl ecx, 1
mov ebp, dword [ebx + edi*4]
mov edi, ecx
xor edi, esi
add eax, ebp
not edi
and edx, edi
cmp ecx, 0x10000
jb 0x52b786
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x52faf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [0x8111d4]
mov ecx, 0x400
xor eax, eax
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x8111d4]
push eax
push ecx
push edx
call fcn.004ff520
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x52fb9a
mov eax, dword [0x8111d4]
mov cl, byte [0x8111a8]
mov byte [eax + 3], cl
mov eax, 4
cmp esi, eax
jle 0x52fb64
push ebx
mov ecx, dword [0x8111d4]
mov dl, byte [0x8111a8]
mov bl, byte [ecx + eax]
xor bl, dl
mov byte [ecx + eax], bl
mov cl, byte [0x8111a8]
add cl, 0x11
inc eax
cmp eax, esi
mov byte [0x8111a8], cl
jl 0x52fb3b
pop ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esi + 8]
push eax
mov eax, dword [0x8111d4]
push ecx
mov ecx, dword [0x8111cc]
push edx
push eax
push ecx
call fcn.004f5ad0
add esp, 0x14
test eax, eax
je 0x52fb9a
mov edx, dword [esp + 0x20]
pop edi
mov eax, 1
mov dword [edx], esi
pop esi
pop ebp
ret
call fcn.0052fab0
pop edi
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x538730
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x583f37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x64e818
mov dword [esp + 0x10], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x90], eax
je 0x53877c
push 0
push 0
push 0x3f3
lea ecx, [esi + 0x5c]
call fcn.00538710
jmp 0x5387c1
mov eax, dword [esi + 0x80]
test eax, eax
je 0x53879e
push eax
call dword [esi + 0xa4]
add esp, 4
mov dword [esi + 0x80], 0
test eax, eax
je 0x5387c1
mov eax, dword [0x816574]
cmp eax, 0xffffffff
je 0x5387c1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x5387c1
mov eax, dword [0x816574]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [esi + 0x94]
test eax, eax
je 0x5387d2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esi + 0x6c]
push ecx
call fcn.0055f8e9
mov edx, dword [esi + 0x54]
push edx
call fcn.0055f8e9
mov eax, dword [esi + 0x4c]
push eax
call fcn.0055f8e9
mov ecx, dword [esi + 0x44]
push ecx
call fcn.0055f8e9
mov edx, dword [esi + 0x48]
push edx
call fcn.0055f8e9
mov eax, dword [esi + 0x1c]
push eax
call fcn.0055f8e9
mov ecx, dword [esi + 0x14]
push ecx
call fcn.0055f8e9
mov ecx, dword [esp + 0x24]
add esp, 0x1c
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret

Function at 0x538830
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x90], eax
je 0x53885a
mov dword [esi + 0x74], 0x3f3
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x80]
test eax, eax
je 0x53887e
push eax
call dword [esi + 0xa4]
add esp, 4
mov dword [esi + 0x80], 0
test eax, eax
jne 0x53887e
pop esi
ret
mov eax, dword [0x816574]
cmp eax, 0xffffffff
je 0x5388a1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x5388a1
mov eax, dword [0x816574]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, 1
pop esi
ret
Function at 0x53aec0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [ebx + 0x3aa4]
xor ebp, ebp
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x53aee1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 0x48
call fcn.004f56f0
mov esi, eax
add esp, 4
test esi, esi
je 0x53af6c
push 0
push 0
mov dword [edi + 0x3c], esi
mov edi, dword [0x736380]
push 0
push 0
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0xffffffff
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 8], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0xc], eax
call edi
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x53af6c
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x53af6c
test eax, eax
je 0x53af6c
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x53ade0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
je 0x53af6c
push eax
call fcn.004f5730
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x53b990
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
test eax, eax
push edi
mov dword [esp + 0x18], ecx
je 0x53ba91
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0x1f
mov eax, esi
call fcn.0053f900
mov ebx, eax
cmp ebx, 0x400
jge 0x53baaa
mov eax, dword [esp + 0x28]
and esi, 0x7fffffff
xor ebp, ebp
mov edi, 0x80000000
sub edi, esi
mov ecx, ebp
cdq
sbb ecx, ebp
cmp ecx, edx
jb 0x53b9f3
ja 0x53b9ef
cmp edi, eax
jbe 0x53b9f3
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ebx*4 + 0x1000]
test eax, eax
jne 0x53ba40
call fcn.004f9f50
mov ecx, dword [esp + 0x18]
test eax, eax
mov dword [ecx + ebx*4], eax
je 0x53ba9b
push eax
call fcn.004f58c0
mov ecx, dword [esp + 0x1c]
add esp, 4
test eax, eax
mov dword [ecx + ebx*4 + 0x1000], eax
je 0x53babb
mov edx, dword [ecx + ebx*4]
push 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edi
push ebp
mov edx, dword [ecx + ebx*4 + 0x1000]
push esi
push eax
push edx
call fcn.004f5ad0
add esp, 0x14
test eax, eax
je 0x53bac3
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, edi
cdq
add ebx, eax
mov eax, dword [esp + 0x28]
adc esi, edx
add ecx, edi
sub eax, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
jne 0x53b9ab
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 1
push 0x7cb638
call fcn.0053b880
add esp, 8
pop edi
pop esi
pop ebp
mov dword [0x85ac64], 1
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + ebx*4]
push 1
push eax
jmp 0x53baa2
mov ecx, dword [esp + 0x18]
push 1
mov edx, dword [ecx + ebx*4]
push edx
jmp 0x53baa2
Function at 0x544f71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x735360
cmp edx, dword [eax]
je 0x544f93
add eax, 8
inc ecx
cmp eax, 0x7353f0
jl 0x544f84
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x735360]
jne 0x5450c1
mov eax, dword [0x819a38]
cmp eax, 1
je 0x54509b
test eax, eax
jne 0x544fc4
cmp dword [0x734d9c], 1
je 0x54509b
cmp edx, 0xfc
je 0x5450c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x544ffb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0054b8c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00547e30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x54503e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00547e30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x653ce4
push edi
call fcn.00540f20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0054b8c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0054b8d0
lea eax, [ebp - 0xa0]
push 0x653cc4
push eax
call fcn.0054b8d0
push dword [esi + 0x735364]
lea eax, [ebp - 0xa0]
push eax
call fcn.0054b8d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0054be1a
add esp, 0x2c
pop edi
jmp 0x5450c1
lea eax, [ebp + 8]
lea esi, [esi + 0x735364]
push 0
push eax
push dword [esi]
call fcn.00547e30
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 0x54f87d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x54f8d5
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x7365a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54f8c8
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x54f8d7
xor eax, eax
pop esi
leave
ret 4
Function at 0x5512de
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x736300]
mov dword [ebp - 4], eax
mov eax, dword [0x733bdc]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x55130d
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x55149a
push dword [0x7360a8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x55149a
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x551345
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x55135d
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x55137e
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x55139b
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00551241
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5513be
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5513d2
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00551241
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x551407
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x551419
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.00551172
test eax, eax
pop esi
jne 0x55145a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00551172
test eax, eax
jne 0x551488
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00551172
test eax, eax
jne 0x55149a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00551172
test eax, eax
je 0x55149a
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.005570ed
leave
ret
Function at 0x5563a0
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.0053f480
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x55646b
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 0x55646b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x55641e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x556429
or bh, 8
and edi, 0x8000000
je 0x556444
mov eax, dword [0x85cb7c]
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 0x55646b
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