joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8d80
Capabilities:
Create thread

Disassembly:
sub esp, 0x60
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
mov eax, dword [ebx + 0x2b8]
push edi
push 0x80
push 8
push 8
push str.RamBuffer
mov dword [esp + 0x88], eax
call fcn.004b7d10
mov ecx, dword [0x6d748c]
add esp, 0x10
cmp ecx, 3
jne 0x4c8dcd
mov ecx, dword [ebx + 0x3acc]
test ecx, ecx
je 0x4c8dcd
cmp eax, 0x20
jge 0x4c8dcd
mov eax, 0x20
shl eax, 0xa
cdq
sub eax, edx
push 0x68
mov edi, eax
sar edi, 1
call fcn.004b6a20
mov esi, eax
add esp, 4
test esi, esi
je 0x4c8eff
mov ebp, dword [esp + 0x7c]
mov ecx, edi
imul ecx, ebp
push ecx
call fcn.004b6a20
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x4c8eff
mov edx, dword [esp + 0x74]
push 0
push 0
push 0
push 0
mov dword [esi + 0x64], edx
call dword [0x671a14]
test eax, eax
mov dword [esi + 0x2c], eax
je 0x4c8f1e
lea eax, [esi + 0x30]
mov dword [esi + 0x20], ebp
push eax
mov dword [esi + 0x24], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebp, 1
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebp
mov eax, dword [0x6d748c]
cmp eax, 3
jne 0x4c8e50
mov dword [esi + 0x60], ebp
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4c8e9f
mov eax, dword [ebx + 0x3acc]
test eax, eax
je 0x4c8e9f
mov dx, word [0x6d7750]
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x78]
mov word [esp + 0x1c], dx
push 0xffffffffffffffff
mov al, byte [ecx]
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x20]
push 0
push edx
call fcn.004d62c0
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4c8f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4c8f1e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esi + 0x58], ebp
push esi
call fcn.004c9230
add esp, 4
test eax, eax
je 0x4c8ee2
cmp dword [esi + 0x48], ebp
je 0x4c8ee2
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4c8ee9
push 0x64
call edi
jmp 0x4c8ec3
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x4c8eee
cmp dword [esi + 0x48], ebp
jne 0x4c8f1e
mov dword [esi + 0x5c], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
push 0x613d00
push 0x2706
call fcn.004dd120
mov ecx, dword [esp + 0x7c]
push eax
push 1
push ecx
call fcn.004d8f20
add esp, 0x14
test esi, esi
je 0x4c8f2b
push esi
call fcn.004c91d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
Function at 0x4ca660
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x614128]
mov cx, word [0x61412c]
push ebx
push ebp
push esi
push edi
mov edi, 1
mov dword [esp + 0x14], eax
mov word [esp + 0x18], cx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov esi, 0x41
test dword [esp + 0x10], edi
je 0x4ca6c3
lea edx, [esp + 0x14]
mov word [esp + 0x14], si
push edx
call dword [0x671a4c]
cmp eax, 5
jne 0x4ca6c3
mov eax, dword [esp + 0x20]
push ebx
push ebp
push eax
push esi
call fcn.004ca3b0
add esp, 0x10
shl edi, 1
inc esi
cmp si, 0x5a
jbe 0x4ca698
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4d9650
Capabilities:
Check for time delay via gettickcount

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x714a60]
cmp eax, 0x3e8
jb 0x4d9712
mov eax, dword [esp + 0x10]
push esi
test eax, eax
je 0x4d9676
push eax
jmp 0x4d967b
push 0x672d14
call fcn.004f5a8f
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x4d96af
push esi
push str.Verifying
push 0x1982
call fcn.004dd120
add esp, 8
push eax
mov eax, dword [esp + 0x14]
push str._s...__s
push 0
push eax
jmp 0x4d96f9
mov eax, dword [0x6d74a0]
push esi
test eax, eax
je 0x4d96da
push str.Simulation_of_writing_media...
push 0x18ec
call fcn.004dd120
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
push 0x63fa4c
push 0
push ecx
jmp 0x4d96f9
push str.Writing
push 0x2593
call fcn.004dd120
mov edx, dword [esp + 0x18]
add esp, 8
push eax
push str._s...__s
push 0
push edx
call fcn.004d92a0
add esp, 0x14
call edi
push esi
mov dword [0x714a60], eax
call fcn.004b6a50
add esp, 4
pop esi
pop edi
ret

Function at 0x4da2a0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 1
call fcn.00511b86
mov dword [esi + 0xb8], 0
mov eax, dword [0x6d690c]
test eax, eax
jne 0x4da2c8
mov dword [0x6d7708], 1
push edi
mov ecx, esi
call fcn.004d7410
mov edi, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x4d9f60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
pop edi
test eax, eax
jne 0x4da309
mov dword [esi + 0xb8], 1
mov ecx, esi
mov dword [0x6d7708], eax
call fcn.004d7410
pop esi
pop ecx
ret 4

Function at 0x4db2f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
xor ebp, ebp
call dword [0x671a1c]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4db31e
xor ebx, ebx
jmp 0x4db388
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jle 0x4db388
cmp esi, 0x200000
jge 0x4db388
push esi
call fcn.004f67f1
mov edi, eax
add esp, 4
test edi, edi
je 0x4db388
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4db388
push esi
push edi
call fcn.004daf50
add esp, 8
test eax, eax
je 0x4db388
push 0x190
call fcn.004b6a20
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4db388
push esi
push edi
push ebp
call fcn.004db000
add esp, 0xc
test eax, eax
jne 0x4db393
push ebp
call fcn.004b6a50
add esp, 4
xor ebp, ebp
push edi
call fcn.004b6a50
push ebx
call fcn.004b6a60
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4dbf40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [0x71d7f4]
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 5
push eax
push ecx
call dword [0x671a34]
test eax, eax
je 0x4dc13d
mov edx, dword [0x71d7f4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4dc13d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4dc13d
push esi
call fcn.004dbf30
mov ebx, dword [esi]
mov edi, eax
push esi
mov dword [esp + 0x1c], edi
call fcn.004dc150
add esp, 8
xor ebp, ebp
mov bp, word [eax]
test edi, edi
je 0x4dbfb5
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x1a]
jmp 0x4dbfb8
lea eax, [esi + 0x12]
mov cx, word [eax]
cmp cx, 0xffff
jne 0x4dbfc7
add eax, 4
jmp 0x4dbfda
add eax, 2
test cx, cx
je 0x4dbfda
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dbfcf
mov cx, word [eax]
cmp cx, 0xffff
jne 0x4dbfe9
add eax, 4
jmp 0x4dbffc
add eax, 2
test cx, cx
je 0x4dbffc
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4dbff1
mov dx, word [eax]
mov ecx, eax
add eax, 2
test dx, dx
je 0x4dc014
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4dc009
test bl, 0x40
je 0x4dc03b
neg edi
sbb edi, edi
and edi, 2
inc edi
mov dx, word [eax + edi*2]
lea eax, [eax + edi*2]
add eax, 2
test dx, dx
je 0x4dc03b
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4dc030
mov ebx, dword [esp + 0x11c]
lea edi, [eax + 3]
push ecx
push ebx
and edi, 0xfffffffc
call dword [0x671c04]
test ebp, ebp
jle 0x4dc13d
mov dword [esp + 0x10], ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [esp + 0x14]
lea esi, [edi + 0x18]
test eax, eax
jne 0x4dc070
lea esi, [edi + 0x12]
mov ax, word [esi]
cmp ax, 0xffff
jne 0x4dc07e
add esi, 4
jmp 0x4dc091
add esi, 2
test ax, ax
je 0x4dc091
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4dc086
mov ax, word [esi]
cmp ax, 0xffff
jne 0x4dc0a2
add esi, 4
jmp 0x4dc122
test ax, ax
je 0x4dc10c
mov ax, word [edi + 0x10]
cmp ax, 0xffff
je 0x4dc10c
and eax, 0xffff
push eax
push ebx
call ebp
mov edi, eax
test edi, edi
je 0x4dc10c
lea ecx, [esp + 0x18]
push 0x80
push ecx
push edi
mov word [esp + 0x24], 0
call dword [0x671b58]
lea edx, [esp + 0x18]
push str.static
push edx
call fcn.004f5afd
add esp, 8
test eax, eax
je 0x4dc104
lea eax, [esp + 0x18]
push str.button
push eax
call fcn.004f5afd
add esp, 8
test eax, eax
jne 0x4dc10c
push esi
push edi
call dword [0x671c04]
mov cx, word [esi]
add esi, 2
test cx, cx
je 0x4dc122
mov dx, word [esi]
add esi, 2
test dx, dx
jne 0x4dc117
xor eax, eax
mov ax, word [esi]
lea edi, [eax + esi + 5]
mov eax, dword [esp + 0x10]
and edi, 0xfffffffc
dec eax
mov dword [esp + 0x10], eax
jne 0x4dc062
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4dce50
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 [0x71d7f4]
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 [0x671a34]
mov ebx, eax
cmp ebx, esi
je 0x4dd053
mov eax, dword [0x71d7f4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x4dd053
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x71d7f4]
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 0x4dcf0d
add edi, 4
cmp edi, eax
jae 0x4dd053
test ebx, ebx
je 0x4dcf28
mov ebp, dword [edi + 0xc]
add edi, 0xc
mov dword [esp + 0x14], ebp
add edi, 6
jmp 0x4dcf46
mov ax, word [edi]
add edi, 2
test al, 0x10
mov dword [esp + 0x10], eax
jne 0x4dcf42
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.004f59f2
add esp, 8
cmp word [edi], 0
je 0x4dcf66
add edi, 2
cmp word [edi], 0
jne 0x4dcf5d
add edi, 2
test ebx, ebx
je 0x4dcf9d
push ebp
call fcn.004dc220
add esp, 4
test eax, eax
jne 0x4dd049
mov edx, dword [esp + 0xb24]
lea ecx, [esp + 0x320]
push eax
push ecx
push ebp
push edx
call fcn.004dc9b0
add esp, 0x10
jmp 0x4dd049
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 0x4dcffa
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.004dc9b0
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 0x4dd045
push ebp
call fcn.004dc220
add esp, 4
test eax, eax
jne 0x4dd021
mov ecx, dword [esp + esi*4 + 0x120]
push eax
lea eax, [esp + 0x324]
push eax
push ebp
push ecx
call fcn.004dc9b0
add esp, 0x10
test byte [esp + 0x10], 0x80
je 0x4dd045
dec esi
js 0x4dd053
lea eax, [esp + esi*4 + 0x220]
cmp dword [eax], 0
je 0x4dd041
dec esi
sub eax, 4
test esi, esi
jl 0x4dd053
jmp 0x4dd032
test esi, esi
jl 0x4dd053
mov ebx, dword [esp + 0x18]
cmp edi, dword [esp + 0x1c]
jb 0x4dcf15
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb10
ret
Function at 0x4dd6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [0x717d54]
mov ecx, 0x400
xor eax, eax
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x717d54]
push eax
push ecx
push edx
call fcn.004bf790
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4dd78a
mov eax, dword [0x717d54]
mov cl, byte [0x717d28]
mov byte [eax + 3], cl
mov eax, 4
cmp esi, eax
jle 0x4dd754
push ebx
mov ecx, dword [0x717d54]
mov dl, byte [0x717d28]
mov bl, byte [ecx + eax]
xor bl, dl
mov byte [ecx + eax], bl
mov cl, byte [0x717d28]
add cl, 0x11
inc eax
cmp eax, esi
mov byte [0x717d28], cl
jl 0x4dd72b
pop ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esi + 8]
push eax
mov eax, dword [0x717d54]
push ecx
mov ecx, dword [0x717d4c]
push edx
push eax
push ecx
call fcn.004b6d60
add esp, 0x14
test eax, eax
je 0x4dd78a
mov edx, dword [esp + 0x20]
pop edi
mov eax, 1
mov dword [edx], esi
pop esi
pop ebp
ret
call fcn.004dd6a0
pop edi
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x4ea3c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x126c
call fcn.004f5a60
mov ecx, dword [0x718664]
push ebx
push ebp
xor eax, eax
push esi
push edi
test ecx, ecx
je 0x4ea610
mov eax, dword [esp + 0x1280]
test eax, eax
je 0x4ea487
mov esi, dword [eax + 0x80]
mov eax, dword [eax + 0x88]
cmp eax, 8
mov dword [esp + 0x10], esi
jne 0x4ea495
mov eax, dword [esp + 0x1288]
cdq
idiv esi
mov ebx, eax
test ebx, ebx
jle 0x4ea5fe
mov ebp, dword [esp + 0x1284]
cmp ebx, 0x24c
mov edi, 0x24c
jg 0x4ea430
mov edi, ebx
mov esi, edi
xor eax, eax
imul esi, dword [esp + 0x10]
test esi, esi
jbe 0x4ea455
lea ecx, [esp + 0x1c]
mov dl, byte [eax + ebp]
add ecx, 4
add dl, 0x80
inc eax
movsx edx, dl
mov dword [ecx - 4], edx
cmp eax, esi
jb 0x4ea441
mov ecx, dword [0x718664]
lea eax, [esp + 0x1c]
push edi
push eax
push ecx
call dword [0x71863c]
add esp, 0xc
cmp eax, 1
jne 0x4ea60e
sub ebx, edi
add ebp, esi
test ebx, ebx
jg 0x4ea421
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x126c
ret
mov dword [esp + 0x10], 2
mov esi, dword [esp + 0x10]
jmp 0x4ea49e
cmp eax, 0x10
jne 0x4ea544
mov eax, dword [esp + 0x1288]
lea ecx, [esi + esi]
cdq
idiv ecx
mov ebp, eax
test ebp, ebp
jle 0x4ea5fe
cmp ebp, 0x24c
mov esi, 0x24c
jg 0x4ea4c4
mov esi, ebp
mov edx, esi
imul edx, dword [esp + 0x10]
test edx, edx
jbe 0x4ea4f5
mov eax, dword [esp + 0x1284]
lea ecx, [esp + 0x1c]
mov edi, edx
movsx edx, byte [eax + 1]
xor ebx, ebx
add ecx, 4
mov bl, byte [eax]
add eax, 2
shl edx, 8
or edx, ebx
dec edi
mov dword [ecx - 4], edx
jne 0x4ea4dc
mov ecx, dword [0x718664]
lea eax, [esp + 0x1c]
push esi
push eax
push ecx
call dword [0x71863c]
add esp, 0xc
cmp eax, 1
jne 0x4ea60e
mov edx, dword [esp + 0x10]
sub ebp, esi
mov ecx, dword [esp + 0x1284]
lea eax, [edx + edx]
imul esi, eax
add ecx, esi
test ebp, ebp
mov dword [esp + 0x1284], ecx
jg 0x4ea4b5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x126c
ret
cmp eax, 0x18
jne 0x4ea5fe
mov eax, dword [esp + 0x1288]
lea ecx, [esi + esi*2]
cdq
idiv ecx
mov dword [esp + 0x18], ecx
mov ebx, eax
test ebx, ebx
jle 0x4ea5fe
cmp ebx, 0x24c
mov ebp, 0x24c
jg 0x4ea577
mov ebp, ebx
mov edi, ebp
imul edi, esi
test edi, edi
jbe 0x4ea5c4
mov eax, dword [esp + 0x1284]
lea esi, [esp + 0x1c]
lea ecx, [eax + 1]
mov al, byte [ecx + 1]
mov dl, byte [ecx]
mov byte [esp + 0x16], al
and al, 0x80
neg al
sbb al, al
mov byte [esp + 0x15], dl
mov dl, byte [ecx - 1]
and eax, 0xff
mov byte [esp + 0x14], dl
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x14]
add ecx, 3
mov dword [esi], eax
add esi, 4
dec edi
jne 0x4ea58e
mov esi, dword [esp + 0x10]
mov edx, dword [0x718664]
lea ecx, [esp + 0x1c]
push ebp
push ecx
push edx
call dword [0x71863c]
add esp, 0xc
cmp eax, 1
jne 0x4ea60e
sub ebx, ebp
imul ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1284]
add ecx, ebp
test ebx, ebx
mov dword [esp + 0x1284], ecx
jg 0x4ea568
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x126c
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x126c
ret
Function at 0x4fa4d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x670ae0
cmp edx, dword [eax]
je 0x4fa4f7
add eax, 8
inc ecx
cmp eax, 0x670b70
jl 0x4fa4e8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x670ae0]
jne 0x4fa625
mov eax, dword [0x71fb08]
cmp eax, 1
je 0x4fa5ff
test eax, eax
jne 0x4fa528
cmp dword [0x67052c], 1
je 0x4fa5ff
cmp edx, 0xfc
je 0x4fa625
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4fa55f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004fffc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004fd3a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4fa5a2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004fd3a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5fc138
push edi
call fcn.004f7500
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004fffc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004fffd0
lea eax, [ebp - 0xa0]
push 0x5fc118
push eax
call fcn.004fffd0
push dword [esi + 0x670ae4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004fffd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0050043a
add esp, 0x2c
pop edi
jmp 0x4fa625
lea eax, [ebp + 8]
lea esi, [esi + 0x670ae4]
push 0
push eax
push dword [esi]
call fcn.004fd3a0
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 0x504922
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 0x50497a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x671c30
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50496d
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x50497c
xor eax, eax
pop esi
leave
ret 4
Function at 0x506314
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x671998]
mov dword [ebp - 4], eax
mov eax, dword [0x66f4fc]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x506343
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x5064d0
push dword [0x671828]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x5064d0
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x50637b
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x506393
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 0x5063b4
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 0x5063d1
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.00506277
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5063f4
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x506408
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.00506277
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x50643d
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x50644f
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.005061a8
test eax, eax
pop esi
jne 0x506490
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.005061a8
test eax, eax
jne 0x5064be
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.005061a8
test eax, eax
jne 0x5064d0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.005061a8
test eax, eax
je 0x5064d0
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.0050a7a8
leave
ret
Function at 0x509f70
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.004f5a60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x50a03b
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 0x50a03b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x509fee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x509ff9
or bh, 8
and edi, 0x8000000
je 0x50a014
mov eax, dword [0x762a3c]
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 0x50a03b
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