joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424f50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xdc
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
mov edi, dword [esp + 0xe8]
push 0
push edi
push 0
push 0
push 1
call esi
push eax
push 0
call esi
push eax
push 0
push 0
push 0x80080000
push str.Nebula_95
push str.Nebula_95
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x4c25e0], eax
je 0x425174
mov ecx, dword [esp + 0xec]
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x4c25e0]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x4c25c8
push 0
call sub.DDRAW.dll_DirectDrawCreate
test eax, eax
mov dword [0x4c3690], eax
jne 0x425142
mov eax, dword [0x4c25c8]
mov edx, dword [0x4c25e0]
push 0x11
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test eax, eax
mov dword [0x4c3690], eax
jne 0x425142
mov eax, dword [0x4c25c8]
push 8
push 0x1e0
push 0x280
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
mov dword [0x4c3690], eax
jne 0x425142
mov eax, dword [0x4c25c8]
mov esi, 0x6c
push 0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], 0x21
mov dword [esp + 0xe4], 0x218
mov dword [esp + 0x90], 1
mov edx, dword [eax]
push 0x4c27b0
push ecx
push eax
call dword [edx + 0x18]
test eax, eax
mov dword [0x4c3690], eax
jne 0x425142
mov eax, dword [0x4c27b0]
lea ecx, [esp + 8]
mov dword [esp + 8], 4
push 0x4c265c
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x30]
test eax, eax
mov dword [0x4c3690], eax
jne 0x425142
push edi
call fcn.00424b30
mov eax, dword [0x4c25c8]
add esp, 4
mov edx, dword [eax]
push 0
push 0x4c2130
push 0x4c28e0
push 0x44
push eax
call dword [edx + 0x14]
mov eax, dword [0x4c27b0]
mov edx, dword [0x4c2130]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x7c]
mov eax, dword [0x4c25c8]
push 0
lea edx, [esp + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 7
mov dword [esp + 0x78], 0x840
mov dword [esp + 0x1c], 0x140
mov dword [esp + 0x18], 0xf0
mov ecx, dword [eax]
push 0x4c26b0
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
mov dword [0x4c3690], eax
je 0x425136
push eax
push str.Impossibile_creare_la_superfice_ndi_build____08lx___n
push 0x4c24c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x4c25e0]
add esp, 0xc
push 0x10
push str.Nebula_95
push 0x4c24c0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
add esp, 0xdc
ret
push eax
push str.Direct_Draw_Init_Failed___08lx__n
push 0x4c24c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x4c25e0]
add esp, 0xc
push 0x10
push str.Nebula_95
push 0x4c24c0
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00424ea0
pop edi
xor eax, eax
pop esi
add esp, 0xdc
ret
Function at 0x426250
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4262d0
lea ecx, [esp + 4]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4262d0
mov eax, dword [esp + 4]
cmp al, 0x5c
je 0x426285
cmp al, 0x2f
jne 0x426292
cmp al, ah
jne 0x426292
xor eax, eax
add esp, 0x10c
ret
and eax, 0xff
mov byte [esp], 0x3d
push eax
call fcn.00426ee0
add esp, 4
mov byte [esp + 1], al
lea edx, [esp + 4]
lea eax, [esp]
push edx
push eax
mov byte [esp + 0xa], 0x3a
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4262d0
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426e70
add esp, 4
or eax, 0xffffffff
add esp, 0x10c
ret

Function at 0x426800
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4c21c0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x42681f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4c21bc], 1
mov byte [0x4c21b8], bl
jne 0x426879
mov ecx, dword [0x4cdc8c]
test ecx, ecx
je 0x426867
mov esi, dword [0x4cdc88]
sub esi, 4
cmp esi, ecx
jb 0x426867
mov eax, dword [esi]
test eax, eax
je 0x426860
call eax
mov ecx, dword [0x4cdc8c]
sub esi, 4
cmp esi, ecx
jae 0x426852
push 0x430020
push 0x430014
call fcn.004268b0
add esp, 8
push 0x430028
push 0x430024
call fcn.004268b0
add esp, 8
test ebx, ebx
jne 0x4268a0
push ebp
mov dword [0x4c21c0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x426b30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x426ba1
push ebx
call fcn.00426c60
add esp, 4
test eax, eax
jne 0x426b6f
mov dword [0x4c217c], 0xf
mov dword [0x4c2178], 0xd
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x426bb1
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x426c47
inc eax
cmp eax, 0x104
ja 0x426c47
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x426c00
cmp eax, ecx
jg 0x426bdd
mov eax, ecx
push eax
call fcn.00426910
mov edx, eax
add esp, 4
test edx, edx
jne 0x426c1a
mov dword [0x4c2178], 0xc
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x426c1a
mov dword [0x4c2178], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x426c60
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x426c6e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x426c9d
cmp eax, 1
je 0x426c9d
mov eax, 1
ret
xor eax, eax
ret
Function at 0x426ca0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f828
push 0x42afc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4c2190], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4c218c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4c2188], ecx
shr eax, 0x10
mov dword [0x4c2184], eax
call fcn.00428d80
test eax, eax
jne 0x426d0a
push 0x1c
call fcn.00426e40
add esp, 4
mov dword [ebp - 4], 0
call fcn.0042acd0
call fcn.0042acc0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4cdc84], eax
call fcn.0042a890
mov dword [0x4c21c4], eax
test eax, eax
je 0x426d3d
mov eax, dword [0x4cdc84]
test eax, eax
jne 0x426d47
push 0xffffffffffffffff
call fcn.004267c0
add esp, 4
call fcn.0042a5e0
call fcn.0042a4f0
call fcn.00426790
mov esi, dword [0x4cdc84]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x426e26
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x426d8e
test al, al
je 0x426d8e
and eax, 0xff
push eax
call fcn.0042a490
add esp, 4
test eax, eax
je 0x426d68
inc esi
mov dword [ebp - 0x64], esi
jmp 0x426d68
cmp byte [esi], 0x22
jne 0x426d97
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x426da7
cmp al, 0x20
ja 0x426da7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x426d97
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x426dc8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x426dcd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004267c0
jmp 0x426e0b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x426d97
inc esi
mov dword [ebp - 0x64], esi
jmp 0x426e26
Function at 0x4278f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4ccc60]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x427a9d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4ccb60]
lea edi, [ecx*4 + 0x4ccb60]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x427a9d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x42795e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x42796f
push 2
push ebp
push eax
call fcn.0042c550
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x427ace
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x427a19
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4279ca
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4279b7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x42799a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427abf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x427a15
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x427996
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x427a8e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x427a62
cmp eax, 5
jne 0x427a4b
mov dword [0x4c217c], eax
mov dword [0x4c2178], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00426e70
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x427a82
cmp byte [ebp], 0x1a
jne 0x427a82
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4c2178], 0x1c
jmp 0x427aa7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4c2178], 9
pop edi
pop esi
pop ebp
mov dword [0x4c217c], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x427a15
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427aff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x427a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x427a19
Function at 0x42a890
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4c2308]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x42a8d2
call edi
mov esi, eax
test esi, esi
je 0x42a8bc
mov eax, 1
jmp 0x42a8cd
call ebp
mov ebx, eax
test ebx, ebx
je 0x42a9df
mov eax, 2
mov dword [0x4c2308], eax
cmp eax, 1
jne 0x42a972
test esi, esi
jne 0x42a8eb
call edi
mov esi, eax
test esi, esi
je 0x42a9df
cmp word [esi], 0
mov eax, esi
je 0x42a905
add eax, 2
cmp word [eax], 0
jne 0x42a8f3
add eax, 2
cmp word [eax], 0
jne 0x42a8f3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x42a964
push edi
call fcn.00426910
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42a964
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x42a956
push ebx
call fcn.004269c0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x42a9df
test ebx, ebx
jne 0x42a983
call ebp
mov ebx, eax
test ebx, ebx
je 0x42a9df
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x42a99b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42a98b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42a98b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00426910
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x42a9bd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x42b0e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4c0528
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x42b104
add eax, 8
inc ebp
cmp eax, 0x4c05b8
jb 0x42b0f5
cmp ecx, dword [ebp*8 + 0x4c0528]
jne 0x42b2ab
mov eax, dword [0x4c21cc]
cmp eax, 1
je 0x42b26d
test eax, eax
jne 0x42b130
cmp dword [0x4bdf44], 1
je 0x42b26d
cmp ecx, 0xfc
je 0x42b2ab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42b16b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x42b1b4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x42fbc0
add ebx, ecx
push ebx
call fcn.0042cf90
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42fba0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4c052c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0042cf00
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4ccb60]
test eax, eax
je 0x42b27e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x42b288
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4c052c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x42dee0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0042e430
mov eax, dword [0x4ccc60]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x42e042
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x4ccb60]
test byte [edx + ecx*8 + 4], 1
je 0x42e042
push 1
push ebp
push ebx
call fcn.0042c550
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x42e04c
push 2
push ebp
push ebx
call fcn.0042c550
add esp, 0xc
cmp eax, 0xffffffff
je 0x42e04c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x42dfe8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0042e3b0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x42df8f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004278f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x42dfab
sub esi, eax
test esi, esi
jle 0x42dfc1
jmp 0x42df80
cmp dword [0x4c217c], 5
jne 0x42dfbe
mov dword [0x4c2178], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0042e3b0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0042c550
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x42e029
push 0
push ecx
push ebx
call fcn.0042c550
add esp, 0xc
push ebx
call fcn.0042c4a0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x42e029
mov dword [0x4c2178], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4c217c], eax
push 0
push edi
push ebx
call fcn.0042c550
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4c2178], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x44a29a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x85d1a4
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x44a31a
arpl word [edx + esi], si
jmp 0x47cd2b29
or byte [ebx - 0x58], bh
mov ebp, edi
or byte [eax + 0x71], bl
mov ebx, 0xdbbf244f
push ebp
jge 0x44a330
test byte [esi], ah
inc ebp
adc byte [ebx + 0x58], bl
xchg esi, eax
invalid
pushfd
mov bh, 0xb5
in eax, 0xd2
inc ebx
and dl, ch
movsb byte es:[edi], byte [esi]
outsb dx, byte [esi]
add eax, 0x66926e32
mov dh, 0xe0
outsb dx, byte [esi]
xchg edx, eax
mov dh, 0xe0
xor dword [eax - 0x6ea1aa12], esi
pop esi
xchg ecx, eax
push edx
xchg esi, eax
scasd eax, dword es:[edi]
jb 0x44a326
mov dword [0x3aa59f7e], eax
mov cl, 0xf5
daa
outsd dx, dword [esi]
mov eax, 0x5e18e596
xor dl, byte [eax + 0xf89db87]
test byte [ecx - 0x12], bl
adc dword [di], ecx
movsd dword es:[edi], dword [esi]
sbb bl, byte [edi + 0x3b]
and al, 0xab
add dword cs:[edx + 0x5fff9c7e], esi
jne 0x44a3ca
xchg esi, eax
push cs
jg 0x44a3c7
jne 0x44a2f3
dec esi
invalid
add ah, byte [eax + 0x58]
dec ebp
add byte [ebx - 0x9371871], bh
shr byte [edi + 0x18], 0x26
fsub qword [ebp - 0x50ce398f]
jae 0x44a440
mov bh, 0x9f
movsd dword es:[edi], dword [esi]
pop edx
nop
push eax
out dx, eax
ror ah, 0x32
xlatb
loope 0x44a41b
je 0x44a3cb
dec edi
aad 0x4e
xor dword [ebx - 0x57], edx
mov esi, 0x826b7a7a
div byte [0xaeee5a0f]
pop esi
stosd dword es:[edi], eax
adc byte [ebp + 0x27], cl
dec edi
push ds
push ds
test byte [ebp - 0x5adc1554], al
fcmovbe st(0), st(0)
invalid
scasb al, byte es:[edi]
fmul st(7), st(0)
hlt
cmp dword [eax], esi
jle 0x44a45b
mov ah, 0x27
out dx, al
dec esi
retf
mov dword [0xe3516c14], eax
retf
Function at 0x10035bd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x100829d0]
cmp eax, 0xffffffff
je 0x10035c26
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c17
mov ecx, dword [0x10083c3c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x10083c3c], ecx
mov ecx, esi
call fcn.1001d720
mov ecx, esi
call fcn.1001d6c0
push 0x178
push esi
call sym.ScCore.dll_private:_class_ScCore::XML____thiscall_ScCore::XML::copy_class_ScCore::XML_const___class_ScCore::XML_const___bool_const
add esp, 8
push 0
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x40166d
Capabilities:
Create thread
Enumerate processes
Query environment variable
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
lea eax, [ebp - 0x634]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
mov edi, 0x104
push edi
push eax
push str.F7BB906F_6C72_4836_9E3D_3C6C9B373776
call esi
test eax, eax
je 0x4016a8
cmp eax, edi
jae 0x4016a8
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor ebx, ebx
push ebx
push str.F7BB906F_6C72_4836_9E3D_3C6C9B373776
call edi
push ebx
push ebx
push ebx
push 0x4015b0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x100
lea eax, [ebp - 0x42c]
push eax
push str.TrayMsg
call esi
test eax, eax
je 0x4016ff
cmp eax, 0x100
jae 0x4016ff
push ebx
push str.TrayMsg
call edi
inc ebx
call fcn.004014a8
lea ecx, [ebp - 0x42c]
call fcn.0040128c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401753
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401748
cmp dword [ebp - 0x224], edi
je 0x401764
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401732
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40175c
call fcn.004012ed
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
push dword [ebp - 0x214]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401753
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
jmp 0x401753