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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
push edi
push 0x400
mov eax, dword [ebp + 0x2b8]
push 0x10
push 0x10
push str.RamBuffer
mov dword [esp + 0x88], eax
call fcn.004e0be0
mov ecx, dword [0x769180]
add esp, 0x10
cmp ecx, 3
jne 0x4f245d
mov ecx, dword [ebp + 0x3b3c]
test ecx, ecx
je 0x4f245d
cmp eax, 0x20
jge 0x4f245d
mov eax, 0x20
shl eax, 0xa
cdq
sub eax, edx
push 0x68
mov edi, eax
sar edi, 1
call fcn.004df770
mov esi, eax
add esp, 4
test esi, esi
je 0x4f25c2
mov ebx, dword [esp + 0x7c]
mov ecx, edi
imul ecx, ebx
push ecx
call fcn.004df770
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x4f24bf
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edi, eax
cmp edi, 0x1000
jge 0x4f24ae
mov edi, 0x1000
mov edx, edi
imul edx, ebx
push edx
call fcn.004df770
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x4f25c2
mov eax, dword [esp + 0x74]
push 0
push 0
push 0
push 0
mov dword [esi + 0x64], eax
call dword [0x703238]
test eax, eax
mov dword [esi + 0x2c], eax
je 0x4f25e1
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], ebx
push ecx
mov dword [esi + 0x24], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, 1
mov dword [esi + 0x54], ebp
mov dword [esi + 0x5c], ebx
mov eax, dword [0x769180]
cmp eax, 3
jne 0x4f2512
mov dword [esi + 0x60], ebx
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4f2562
mov eax, dword [ebp + 0x3b3c]
test eax, eax
je 0x4f2562
mov edx, dword [ebp + 0x14]
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ax, word [0x769420]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov word [esp + 0x1c], ax
mov cl, byte [edx]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004ffcb0
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push 0x4f2600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4f25e1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esi + 0x58], ebx
push esi
call fcn.004f2980
add esp, 4
test eax, eax
je 0x4f25a5
cmp dword [esi + 0x48], ebx
je 0x4f25a5
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4f25ac
push 0x64
call edi
jmp 0x4f2586
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x4f25b1
cmp dword [esi + 0x48], ebx
jne 0x4f25e1
mov dword [esi + 0x5c], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
push 0x68daa0
push 0x2706
call fcn.00506990
mov edx, dword [esp + 0x7c]
push eax
push 1
push edx
call fcn.00502860
add esp, 0x14
test esi, esi
je 0x4f25ee
push esi
call fcn.004f2920
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
Function at 0x4f3d80
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x68dec8]
mov cx, word [0x68decc]
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 0x4f3de3
lea edx, [esp + 0x14]
mov word [esp + 0x14], si
push edx
call dword [0x703278]
cmp eax, 5
jne 0x4f3de3
mov eax, dword [esp + 0x20]
push ebx
push ebp
push eax
push esi
call fcn.004f3ad0
add esp, 0x10
shl edi, 1
inc esi
cmp si, 0x5a
jbe 0x4f3db8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x502fc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x7a68b8]
cmp eax, 0x3e8
jb 0x503082
mov eax, dword [esp + 0x10]
push esi
test eax, eax
je 0x502fe6
push eax
jmp 0x502feb
push 0x7045ac
call fcn.00526b7f
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x50301f
push esi
push str.Verifying
push 0x1982
call fcn.00506990
add esp, 8
push eax
mov eax, dword [esp + 0x14]
push str._s...__s
push 0
push eax
jmp 0x503069
mov eax, dword [0x769194]
push esi
test eax, eax
je 0x50304a
push str.Simulation_of_writing_media...
push 0x18ec
call fcn.00506990
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
push 0x6d2984
push 0
push ecx
jmp 0x503069
push str.Writing
push 0x2593
call fcn.00506990
mov edx, dword [esp + 0x18]
add esp, 8
push eax
push str._s...__s
push 0
push edx
call fcn.00502c10
add esp, 0x14
call edi
push esi
mov dword [0x7a68b8], eax
call fcn.004df7a0
add esp, 4
pop esi
pop edi
ret

Function at 0x503c90
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 1
call fcn.00547e2a
mov dword [esi + 0xb8], 0
mov eax, dword [0x768604]
test eax, eax
jne 0x503cb8
mov dword [0x7693d8], 1
push edi
mov ecx, esi
call fcn.00500db0
mov edi, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x503950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
pop edi
test eax, eax
jne 0x503cf9
mov dword [esi + 0xb8], 1
mov ecx, esi
mov dword [0x7693d8], eax
call fcn.00500db0
pop esi
pop ecx
ret 4

Function at 0x504c80
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 [0x703240]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x504cae
xor ebx, ebx
jmp 0x504d18
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jle 0x504d18
cmp esi, 0x200000
jge 0x504d18
push esi
call fcn.005278e2
mov edi, eax
add esp, 4
test edi, edi
je 0x504d18
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 0x504d18
push esi
push edi
call fcn.005048e0
add esp, 8
test eax, eax
je 0x504d18
push 0x190
call fcn.004df770
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x504d18
push esi
push edi
push ebp
call fcn.00504990
add esp, 0xc
test eax, eax
jne 0x504d23
push ebp
call fcn.004df7a0
add esp, 4
xor ebp, ebp
push edi
call fcn.004df7a0
push ebx
call fcn.004df7b0
add esp, 8
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x505810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [0x7af75c]
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 5
push eax
push ecx
call dword [0x70325c]
test eax, eax
je 0x505a0d
mov edx, dword [0x7af75c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x505a0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x505a0d
push esi
call fcn.00505800
mov ebx, dword [esi]
mov edi, eax
push esi
mov dword [esp + 0x1c], edi
call fcn.00505a20
add esp, 8
xor ebp, ebp
mov bp, word [eax]
test edi, edi
je 0x505885
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x1a]
jmp 0x505888
lea eax, [esi + 0x12]
mov cx, word [eax]
cmp cx, 0xffff
jne 0x505897
add eax, 4
jmp 0x5058aa
add eax, 2
test cx, cx
je 0x5058aa
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50589f
mov cx, word [eax]
cmp cx, 0xffff
jne 0x5058b9
add eax, 4
jmp 0x5058cc
add eax, 2
test cx, cx
je 0x5058cc
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x5058c1
mov dx, word [eax]
mov ecx, eax
add eax, 2
test dx, dx
je 0x5058e4
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x5058d9
test bl, 0x40
je 0x50590b
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 0x50590b
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x505900
mov ebx, dword [esp + 0x11c]
lea edi, [eax + 3]
push ecx
push ebx
and edi, 0xfffffffc
call dword [0x703440]
test ebp, ebp
jle 0x505a0d
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 0x505940
lea esi, [edi + 0x12]
mov ax, word [esi]
cmp ax, 0xffff
jne 0x50594e
add esi, 4
jmp 0x505961
add esi, 2
test ax, ax
je 0x505961
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x505956
mov ax, word [esi]
cmp ax, 0xffff
jne 0x505972
add esi, 4
jmp 0x5059f2
test ax, ax
je 0x5059dc
mov ax, word [edi + 0x10]
cmp ax, 0xffff
je 0x5059dc
and eax, 0xffff
push eax
push ebx
call ebp
mov edi, eax
test edi, edi
je 0x5059dc
lea ecx, [esp + 0x18]
push 0x80
push ecx
push edi
mov word [esp + 0x24], 0
call dword [0x703390]
lea edx, [esp + 0x18]
push str.static
push edx
call fcn.00526bed
add esp, 8
test eax, eax
je 0x5059d4
lea eax, [esp + 0x18]
push str.button
push eax
call fcn.00526bed
add esp, 8
test eax, eax
jne 0x5059dc
push esi
push edi
call dword [0x703440]
mov cx, word [esi]
add esi, 2
test cx, cx
je 0x5059f2
mov dx, word [esi]
add esi, 2
test dx, dx
jne 0x5059e7
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 0x505932
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x506700
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 [0x7af75c]
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 [0x70325c]
mov ebx, eax
cmp ebx, esi
je 0x506903
mov eax, dword [0x7af75c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x506903
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x7af75c]
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 0x5067bd
add edi, 4
cmp edi, eax
jae 0x506903
test ebx, ebx
je 0x5067d8
mov ebp, dword [edi + 0xc]
add edi, 0xc
mov dword [esp + 0x14], ebp
add edi, 6
jmp 0x5067f6
mov ax, word [edi]
add edi, 2
test al, 0x10
mov dword [esp + 0x10], eax
jne 0x5067f2
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.00526ae2
add esp, 8
cmp word [edi], 0
je 0x506816
add edi, 2
cmp word [edi], 0
jne 0x50680d
add edi, 2
test ebx, ebx
je 0x50684d
push ebp
call fcn.00505ad0
add esp, 4
test eax, eax
jne 0x5068f9
mov edx, dword [esp + 0xb24]
lea ecx, [esp + 0x320]
push eax
push ecx
push ebp
push edx
call fcn.00506260
add esp, 0x10
jmp 0x5068f9
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 0x5068aa
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.00506260
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 0x5068f5
push ebp
call fcn.00505ad0
add esp, 4
test eax, eax
jne 0x5068d1
mov ecx, dword [esp + esi*4 + 0x120]
push eax
lea eax, [esp + 0x324]
push eax
push ebp
push ecx
call fcn.00506260
add esp, 0x10
test byte [esp + 0x10], 0x80
je 0x5068f5
dec esi
js 0x506903
lea eax, [esp + esi*4 + 0x220]
cmp dword [eax], 0
je 0x5068f1
dec esi
sub eax, 4
test esi, esi
jl 0x506903
jmp 0x5068e2
test esi, esi
jl 0x506903
mov ebx, dword [esp + 0x18]
cmp edi, dword [esp + 0x1c]
jb 0x5067c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb10
ret
Function at 0x506eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [0x7a9b78]
mov ecx, 0x400
xor eax, eax
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x7a9b78]
push eax
push ecx
push edx
call fcn.004e8d90
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x506f5a
mov eax, dword [0x7a9b78]
mov cl, byte [0x7a9b50]
mov byte [eax + 3], cl
mov eax, 4
cmp esi, eax
jle 0x506f24
push ebx
mov ecx, dword [0x7a9b78]
mov dl, byte [0x7a9b50]
mov bl, byte [ecx + eax]
xor bl, dl
mov byte [ecx + eax], bl
mov cl, byte [0x7a9b50]
add cl, 0x11
inc eax
cmp eax, esi
mov byte [0x7a9b50], cl
jl 0x506efb
pop ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esi + 8]
push eax
mov eax, dword [0x7a9b78]
push ecx
mov ecx, dword [0x7a9b70]
push edx
push eax
push ecx
call fcn.004dfb90
add esp, 0x14
test eax, eax
je 0x506f5a
mov edx, dword [esp + 0x20]
pop edi
mov eax, 1
mov dword [edx], esi
pop esi
pop ebp
ret
call fcn.00506e70
pop edi
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x51fcc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x567dcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov al, byte [esp + 0x14]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 8]
mov byte [ecx], al
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x28], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x20]
cmp edx, eax
mov dword [esi], 0x66d030
je 0x51fd80
mov edi, dword [ecx + 4]
push ebp
mov ebp, dword [ecx + 8]
mov eax, ebp
cmp eax, ebp
je 0x51fd40
push ebx
mov bl, byte [eax]
mov byte [edi], bl
inc edi
inc eax
cmp eax, ebp
jne 0x51fd35
pop ebx
mov eax, dword [ecx + 8]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
lea eax, [edx + edi]
push eax
push edx
mov edx, dword [ecx + 4]
push edx
call fcn.00520d20
mov eax, dword [esi + 0xc]
pop ebp
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 0x30]
mov ax, word [eax + 0x2a]
add ax, 0x38
mov word [esi + 0x1c], ax
mov al, byte [ecx + 0x20]
test al, 1
je 0x51fd7c
add edi, 0xffffffd8
mov word [esi + 0x1e], di
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x5204d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x567e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
mov esi, dword [edi + 8]
call fcn.0051fca0
mov eax, dword [esi + 0x30]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x28], 0
cmp word [eax + 0x22], 0
jbe 0x52057c
push ebp
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 1
push ebx
push ecx
push edx
push eax
push esi
mov ecx, edi
call fcn.005208b0
mov ebp, eax
test ebp, ebp
jge 0x520532
xor ebp, ebp
mov edx, dword [esi]
lea eax, [esp + 0x10]
push ebp
push eax
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [esi + 0x30]
test byte [ecx + 0x20], 8
je 0x52055b
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x38]
mov ecx, dword [edx]
add eax, ecx
mov ecx, dword [edi + 0x3c]
adc ecx, dword [edx + 4]
jmp 0x520564
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ebp
push esi
push ecx
push eax
mov ecx, edi
call fcn.005205f0
mov esi, eax
mov edx, dword [esi + 0x30]
cmp word [edx + 0x22], 0
ja 0x520510
pop ebp
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 3
push ebx
push eax
push ecx
push edx
push esi
mov ecx, edi
call fcn.005208b0
test eax, eax
jge 0x5205b8
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x24]
dec ecx
push ecx
push esi
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.005209e0
mov ecx, esi
call fcn.00520a00
jmp 0x5205c4
mov ecx, dword [esp + 0x30]
push eax
push esi
push edi
call fcn.005209e0
lea ecx, [esp + 0xc]
call fcn.004413e0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x52b79d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x701738
cmp edx, dword [eax]
je 0x52b7bf
add eax, 8
inc ecx
cmp eax, 0x7017c8
jl 0x52b7b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x701738]
jne 0x52b8ed
mov eax, dword [0x7b1ac8]
cmp eax, 1
je 0x52b8c7
test eax, eax
jne 0x52b7f0
cmp dword [0x70117c], 1
je 0x52b8c7
cmp edx, 0xfc
je 0x52b8ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x52b827
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0052efa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0052f470
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x52b86a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0052f470
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6723f4
push edi
call fcn.005285f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0052efa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0052efb0
lea eax, [ebp - 0xa0]
push 0x6723d4
push eax
call fcn.0052efb0
push dword [esi + 0x70173c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0052efb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0053243a
add esp, 0x2c
pop edi
jmp 0x52b8ed
lea eax, [ebp + 8]
lea esi, [esi + 0x70173c]
push 0
push eax
push dword [esi]
call fcn.0052f470
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 0x537d0c
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 0x537d64
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x703470
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x537d57
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x537d66
xor eax, eax
pop esi
leave
ret 4
Function at 0x5397dc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x7031bc]
mov dword [ebp - 4], eax
mov eax, dword [0x6ffea4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x53980b
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x539998
push dword [0x702d28]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x539998
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x539843
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x53985b
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 0x53987c
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 0x539899
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.0053973f
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5398bc
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5398d0
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.0053973f
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x539905
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x539917
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.00539670
test eax, eax
pop esi
jne 0x539958
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00539670
test eax, eax
jne 0x539986
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00539670
test eax, eax
jne 0x539998
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00539670
test eax, eax
je 0x539998
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.005408f5
leave
ret
Function at 0x53f9e0
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.00526b50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x53faab
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 0x53faab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x53fa5e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x53fa69
or bh, 8
and edi, 0x8000000
je 0x53fa84
mov eax, dword [0x7f4efc]
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 0x53faab
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