joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42beec
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c7ae4
call fcn.00494188
push ecx
push esi
mov esi, ecx
test byte [esi + 9], 0x10
je 0x42bf08
push 1
pop eax
jmp 0x42c0e0
test byte [esi + 4], 1
jne 0x42bf1f
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42bf1f
or dword [esi + 8], 1
push ebx
lea eax, [esi + 0x44]
push edi
push eax
lea ecx, [esi + 0x128]
call fcn.004b40c8
lea eax, [esi + 0x48]
lea ecx, [esi + 0x12c]
push eax
call fcn.004b40c8
lea edi, [esi + 0x130]
lea eax, [esi + 0x94]
push eax
mov ecx, edi
call fcn.004b40c8
mov ecx, edi
call fcn.004acd19
mov ecx, edi
call fcn.004acc8d
mov eax, dword [edi]
cmp dword [eax - 8], 0
jne 0x42bf7a
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov ecx, edi
call fcn.004b4118
lea ebx, [esi + 0x2fc]
mov edi, 0x504744
push edi
mov ecx, ebx
call fcn.004b4118
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
xor edx, edx
cmp eax, edx
jl 0x42bfc8
jg 0x42bf9f
cmp ecx, edx
jbe 0x42bfc8
push edx
push edx
push edx
push eax
lea eax, [ebp - 0x10]
push ecx
push eax
call fcn.00426648
add esp, 0x18
and dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.004b40c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004b3f81
lea ebx, [esi + 0x300]
push edi
mov ecx, ebx
call fcn.004b4118
lea ecx, [esi + 0x304]
push edi
call fcn.004b4118
lea ecx, [esi + 0x308]
push edi
call fcn.004b4118
lea ecx, [esi + 0x30c]
push edi
call fcn.004b4118
lea ecx, [esi + 0x38]
call fcn.004364fe
mov edi, eax
test edi, edi
je 0x42c0c9
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x38]
test ecx, ecx
jl 0x42c02c
jg 0x42c01c
test eax, eax
jbe 0x42c02c
push ecx
push eax
push str._d_f
push ebx
call fcn.004acc37
add esp, 0x10
mov eax, dword [edi + 0x58]
cmp eax, 0x2d0
jne 0x42c03d
push str.HD_720
jmp 0x42c073
cmp eax, 0x438
jne 0x42c04b
push str.HD_1080
jmp 0x42c073
cmp eax, 0x5a0
jne 0x42c059
push str.QHD_2K
jmp 0x42c073
cmp eax, 0x870
jne 0x42c067
push str.UHD_4K
jmp 0x42c073
cmp eax, 0x10e0
jne 0x42c07e
push str.UHD_8K
lea ecx, [esi + 0x304]
call fcn.004b4118
mov eax, dword [edi + 0x54]
mov ebx, str._dx_d
test eax, eax
jle 0x42c0a3
mov ecx, dword [edi + 0x58]
test ecx, ecx
jle 0x42c0a3
push ecx
push eax
lea eax, [esi + 0x308]
push ebx
push eax
call fcn.004acc37
add esp, 0x10
mov eax, dword [edi + 0x80]
test eax, eax
jle 0x42c0c9
mov edi, dword [edi + 0x84]
test edi, edi
jle 0x42c0c9
push edi
push eax
lea eax, [esi + 0x30c]
push ebx
push eax
call fcn.004acc37
add esp, 0x10
lea eax, [esi + 0xc]
lea ecx, [esi + 0x310]
push eax
call fcn.004b40c8
or byte [esi + 9], 0x10
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42c158
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c7af8
call fcn.00494188
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
cmp dword [eax - 8], 0
je 0x42c188
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c188
push dword [esi + 0x10]
mov ecx, esi
call fcn.0042c445
test eax, eax
je 0x42c1fa
test byte [esi + 4], 1
jne 0x42c1d5
mov eax, dword [0x500100]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0042c20e
test eax, eax
jne 0x42c1c9
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0042c445
test eax, eax
jne 0x42c1c9
or byte [esi + 5], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004b3f81
jmp 0x42c1fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004b3f81
push 0x4ebee0
push dword [esi + 0x128]
call fcn.00494245
pop ecx
test eax, eax
pop ecx
jne 0x42c1fe
mov ecx, esi
call fcn.0042c2af
test eax, eax
jne 0x42c1fe
or byte [esi + 5], 2
xor eax, eax
jmp 0x42c201
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x42c163
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c7af8
call fcn.00494188
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
cmp dword [eax - 8], 0
je 0x42c188
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c188
push dword [esi + 0x10]
mov ecx, esi
call fcn.0042c445
test eax, eax
je 0x42c1fa
test byte [esi + 4], 1
jne 0x42c1d5
mov eax, dword [0x500100]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0042c20e
test eax, eax
jne 0x42c1c9
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0042c445
test eax, eax
jne 0x42c1c9
or byte [esi + 5], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004b3f81
jmp 0x42c1fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004b3f81
push 0x4ebee0
push dword [esi + 0x128]
call fcn.00494245
pop ecx
test eax, eax
pop ecx
jne 0x42c1fe
mov ecx, esi
call fcn.0042c2af
test eax, eax
jne 0x42c1fe
or byte [esi + 5], 2
xor eax, eax
jmp 0x42c201
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42c20e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c7b0c
call fcn.00494188
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0xc]
cmp dword [eax - 8], 0
je 0x42c297
test byte [ebx + 4], 1
jne 0x42c297
and dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], str..jpg
mov dword [ebp - 0x1c], str..jpeg
mov dword [ebp - 0x18], str..png
mov dword [ebp - 0x14], str..bmp
lea esi, [ebp - 0x20]
push dword [esi]
mov eax, dword [ebx + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041a808
add esp, 0xc
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004b40c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004b3f81
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c2ab
inc dword [ebp - 0x10]
add esi, 4
cmp dword [ebp - 0x10], 4
jb 0x42c255
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
xor eax, eax
jmp 0x42c29a

Function at 0x42e172
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x4c8036
call fcn.00494188
push ecx
mov eax, dword [0x500100]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [0x500100]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x10], eax
mov ebx, 0x504744
mov byte [ebp - 4], 1
push ebx
mov dword [esi], 0x4d1f70
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.004b4118
push ebx
lea ecx, [esi + 0x10]
call fcn.004b4118
mov ecx, dword [ebp - 0xc]
push 0x64
pop eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42e5ca
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c8140
call fcn.00494188
sub esp, 0x48
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e707
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.0042b67a
xor ebx, ebx
lea ecx, [ebp - 0x54]
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call fcn.0042b724
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004b3ff5
mov eax, dword [0x500100]
mov dword [ebp - 0x10], eax
push 0x4f8e68
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004b4372
lea ecx, [ebp - 0x34]
call fcn.00493477
push ebx
lea ecx, [ebp - 0x34]
push dword [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0049353c
xor esi, esi
cmp eax, ebx
je 0x42e6d4
push edi
lea ecx, [ebp - 0x34]
call fcn.00493762
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00493725
test eax, eax
jne 0x42e6cb
lea eax, [ebp + 8]
lea ecx, [ebp - 0x34]
push eax
call fcn.00493831
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004b40c8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004b3f81
mov eax, dword [ebp - 0x34]
push 0x10
lea ecx, [ebp - 0x34]
call dword [eax + 0x38]
cmp eax, ebx
je 0x42e6af
cmp dword [ebp + 0x10], ebx
je 0x42e6cb
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0042e5ca
jmp 0x42e6c9
push dword [ebp - 0x10]
lea ecx, [ebp - 0x54]
call fcn.0042b7fc
test eax, eax
je 0x42e6cb
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.0042dae1
add esi, eax
cmp edi, ebx
jne 0x42e64d
pop edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004934b6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b3f81
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004b3f81
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0042b6e8
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x42e715
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4c8155
call fcn.00494188
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x1e8]
cmp eax, edi
jne 0x42e73a
call fcn.0042e7d0
push 1
pop eax
jmp 0x42e7b2
push 0x74
call fcn.004b00a6
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x42e756
push esi
call fcn.0042c4fc
jmp 0x42e758
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
mov dword [esi + 0x1f8], eax
je 0x42e78c
push edi
push edi
push 4
mov ecx, eax
call fcn.004af559
test eax, eax
jne 0x42e791
mov ecx, dword [esi + 0x1f8]
cmp ecx, edi
je 0x42e786
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x1f8], edi
or eax, 0xffffffff
jmp 0x42e7b2
mov eax, dword [esi + 0x1f8]
push edi
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x1f8]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42e7d0
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4c8169
call fcn.00494188
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x168]
test eax, eax
jne 0x42e7ef
push 1
pop eax
jmp 0x42e855
xor ebx, ebx
lea esi, [edi + 0x1fc]
push 0x78
call fcn.004b00a6
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test eax, eax
je 0x42e815
push edi
push ebx
mov ecx, eax
call fcn.0042c5b0
jmp 0x42e817
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi], eax
test eax, eax
je 0x42e880
push 0
push 0
push 4
mov ecx, eax
call fcn.004af559
test eax, eax
je 0x42e864
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc ebx
add esi, 4
cmp ebx, 2
jl 0x42e7f7
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, dword [edi + ebx*4 + 0x1fc]
lea esi, [edi + ebx*4 + 0x1fc]
test ecx, ecx
je 0x42e87d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [esi], 0
or eax, 0xffffffff
jmp 0x42e855

Function at 0x42eb30
Capabilities:
Check if file exists

Disassembly:
push dword [0x5047f0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42eb55
push 0
push 0x414
push dword [0x5047f0]
call fcn.0041a60e
add esp, 0xc
ret
Function at 0x437328
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c8ea0
call fcn.00494188
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, 0x50474c
push str._sMediaProbe.exe
push edi
call fcn.004acc37
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [0x50474c]
call esi
test eax, eax
jne 0x43736c
push str.MediaProbe.exe
mov ecx, edi
call fcn.004b4118
push ebx
mov edi, 0x504750
push str._sMediaEncode.exe
push edi
call fcn.004acc37
add esp, 0xc
push dword [0x504750]
call esi
test eax, eax
jne 0x437398
push str.MediaEncode.exe
mov ecx, edi
call fcn.004b4118
push dword [0x504750]
lea eax, [ebp - 0x14]
push eax
call fcn.0041a6fd
pop ecx
pop ecx
and dword [ebp - 4], 0
push str.Presets
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004b4226
push eax
mov ecx, 0x504754
mov byte [ebp - 4], 1
call fcn.004b40c8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004b3f81
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004b3f81
push ebx
mov edi, 0x504758
push str._sMediaPlay.exe
push edi
call fcn.004acc37
add esp, 0xc
push dword [0x504758]
call esi
test eax, eax
jne 0x43740f
push str.MediaPlay.exe
mov ecx, edi
call fcn.004b4118
cmp dword [0x50475c], 0
jne 0x437513
mov eax, dword [0x500100]
mov dword [ebp + 8], eax
push 2
lea eax, [ebp + 8]
pop edi
push ebx
push str._s_avcodec_60.dll
push eax
mov dword [ebp - 4], edi
call fcn.004acc37
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x43744f
mov dword [0x50475c], 6
cmp dword [0x50475c], 0
jne 0x437507
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_59.dll
push eax
call fcn.004acc37
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x437481
mov dword [0x50475c], 5
cmp dword [0x50475c], 0
jne 0x437507
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_58.dll
push eax
call fcn.004acc37
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x4374af
mov dword [0x50475c], 4
cmp dword [0x50475c], 0
jne 0x437507
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_57.dll
push eax
call fcn.004acc37
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x4374dd
mov dword [0x50475c], 3
cmp dword [0x50475c], 0
jne 0x437507
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_56.dll
push eax
call fcn.004acc37
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x437507
mov dword [0x50475c], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004b3f81
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [0x504760], 1
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43752e
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [0x504758]
call esi
test eax, eax
je 0x43754e
xor eax, eax
push eax
push eax
push eax
push dword [0x504758]
jmp 0x43757e
push dword [0x504750]
call esi
test eax, eax
je 0x437567
xor eax, eax
push eax
push eax
push eax
push dword [0x504750]
jmp 0x43757e
push dword [0x50474c]
call esi
test eax, eax
je 0x437586
xor eax, eax
push eax
push eax
push eax
push dword [0x50474c]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
ret

Function at 0x4385f3
Capabilities:
Check if file exists
Set current directory

Disassembly:
mov eax, 0x4c8f98
call fcn.00494188
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438631
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041a6fd
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.004b3f81
lea eax, [ebp - 0x14]
push eax
call fcn.0041c78a
pop ecx
mov eax, dword [eax]
and dword [ebp - 4], 0
push 1
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00419c0f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004b3f81
push dword [ebp + 8]
lea edi, [esi + 0x70]
mov ecx, edi
call fcn.004b4118
push dword [ebp + 0x10]
mov eax, esi
neg eax
push dword [ebp - 0x24]
lea ecx, [esi + 0x68]
sbb eax, eax
and eax, ecx
mov ecx, esi
push eax
call fcn.004383d4
test eax, eax
je 0x438688
mov esi, eax
jmp 0x4386bd
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push ebx
push dword [ebp - 0x24]
call dword [eax + 0x28]
test eax, eax
je 0x4386a2
or esi, 0xffffffff
jmp 0x4386bd
mov edi, dword [edi]
mov eax, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [eax + 0x2c]
or esi, 0xffffffff
cmp eax, esi
je 0x4386bd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00419c7c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4abc50
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.00494280
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4abd1b
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 0x4abd1b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4abcce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4abcd9
or bh, 8
and edi, 0x8000000
je 0x4abcf4
mov eax, dword [0x5085bc]
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 0x4abd1b
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 0x402b74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004048d4
test esi, esi
jne 0x402baa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004049c4
jmp 0x402bc8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a88
mov edi, eax
test esi, esi
je 0x402bc8
cmp dword [ebx], 0
je 0x402bc8
dec esi
jmp 0x402bb1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40386c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x50100c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403904
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038e4
xor eax, eax
push ebp
push 0x4038dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403920
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x50100c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x50100c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50904c], 0
je 0x404715
cmp word [0x509220], 0xd7b2
jne 0x4046dd
cmp dword [0x509228], 0
jbe 0x4046dd
mov eax, 0x50921c
call dword [0x509238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x50105c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40473c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50101c], 0
jne 0x404731
push 0
push 0x50107c
push 0x50105c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404888
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040284c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x50904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404850
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406630
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406860
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066b3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406860
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066b3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40687c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40673c
xor eax, eax
push ebp
push 0x406735
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406478
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40671a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40689c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40671a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40673c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406856
cmp byte [ebp - 0xd], 0
jne 0x406783
cmp byte [ebp - 0x12], 0
je 0x406856
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40679c
dec ebx
cmp byte [ebx], 0x2e
je 0x4067ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40679b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406856
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4067e8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406856
cmp byte [ebp - 0xd], 0
je 0x406856
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406856
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret